Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DatabaseMigration.getJobOutput
Explore with Pulumi AI
This data source provides details about a specific Job Output resource in Oracle Cloud Infrastructure Database Migration service.
List the Job Outputs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testJobOutput = oci.DatabaseMigration.getJobOutput({
jobId: testJob.id,
});
import pulumi
import pulumi_oci as oci
test_job_output = oci.DatabaseMigration.get_job_output(job_id=test_job["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DatabaseMigration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseMigration.GetJobOutput(ctx, databasemigration.GetJobOutputArgs{
JobId: testJob.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 testJobOutput = Oci.DatabaseMigration.GetJobOutput.Invoke(new()
{
JobId = testJob.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseMigration.DatabaseMigrationFunctions;
import com.pulumi.oci.DatabaseMigration.inputs.GetJobOutputArgs;
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 testJobOutput = DatabaseMigrationFunctions.getJobOutput(GetJobOutputArgs.builder()
.jobId(testJob.id())
.build());
}
}
variables:
testJobOutput:
fn::invoke:
Function: oci:DatabaseMigration:getJobOutput
Arguments:
jobId: ${testJob.id}
Using getJobOutput
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 getJobOutput(args: GetJobOutputArgs, opts?: InvokeOptions): Promise<GetJobOutputResult>
function getJobOutputOutput(args: GetJobOutputOutputArgs, opts?: InvokeOptions): Output<GetJobOutputResult>
def get_job_output(job_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetJobOutputResult
def get_job_output_output(job_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetJobOutputResult]
func GetJobOutput(ctx *Context, args *GetJobOutputArgs, opts ...InvokeOption) (*GetJobOutputResult, error)
func GetJobOutputOutput(ctx *Context, args *GetJobOutputOutputArgs, opts ...InvokeOption) GetJobOutputResultOutput
> Note: This function is named GetJobOutput
in the Go SDK.
public static class GetJobOutput
{
public static Task<GetJobOutputResult> InvokeAsync(GetJobOutputArgs args, InvokeOptions? opts = null)
public static Output<GetJobOutputResult> Invoke(GetJobOutputInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetJobOutputResult> getJobOutput(GetJobOutputArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseMigration/getJobOutput:getJobOutput
arguments:
# arguments dictionary
The following arguments are supported:
- Job
Id string - The OCID of the job
- Job
Id string - The OCID of the job
- job
Id String - The OCID of the job
- job
Id string - The OCID of the job
- job_
id str - The OCID of the job
- job
Id String - The OCID of the job
getJobOutput Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Job Output Item> - Items in collection.
- Job
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Job Output Item - Items in collection.
- Job
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Job Output Item> - Items in collection.
- job
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Job Output Item[] - Items in collection.
- job
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[databasemigration.
Get Job Output Item] - Items in collection.
- job_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- Items in collection.
- job
Id String
Supporting Types
GetJobOutputItem
- Message string
- Job output line.
- Message string
- Job output line.
- message String
- Job output line.
- message string
- Job output line.
- message str
- Job output line.
- message String
- Job output line.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.