Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getJobOutput

This data source provides details about a specific Job Output resource in Oracle Cloud Infrastructure Database Migration service.

List the Job Outputs

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testJobOutput = Oci.DatabaseMigration.GetJobOutput.Invoke(new()
    {
        JobId = oci_database_migration_job.Test_job.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: oci_database_migration_job.Test_job.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_database_migration_job.test_job().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_job_output = oci.DatabaseMigration.get_job_output(job_id=oci_database_migration_job["test_job"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testJobOutput = oci.DatabaseMigration.getJobOutput({
    jobId: oci_database_migration_job.test_job.id,
});
variables:
  testJobOutput:
    Fn::Invoke:
      Function: oci:DatabaseMigration:getJobOutput
      Arguments:
        jobId: ${oci_database_migration_job.test_job.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:

JobId string

The OCID of the job

JobId string

The OCID of the job

jobId String

The OCID of the job

jobId string

The OCID of the job

job_id str

The OCID of the job

jobId 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<GetJobOutputItem>

Items in collection.

JobId string
Id string

The provider-assigned unique ID for this managed resource.

Items []GetJobOutputItem

Items in collection.

JobId string
id String

The provider-assigned unique ID for this managed resource.

items List<GetJobOutputItem>

Items in collection.

jobId String
id string

The provider-assigned unique ID for this managed resource.

items GetJobOutputItem[]

Items in collection.

jobId string
id str

The provider-assigned unique ID for this managed resource.

items GetJobOutputItem]

Items in collection.

job_id str
id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

Items in collection.

jobId 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.