Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getDiscoveryJobLogs

This data source provides the list of Discovery Job Logs in Oracle Cloud Infrastructure Stack Monitoring service.

API to get all the logs of a Discovery Job.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDiscoveryJobLogs = Output.Create(Oci.StackMonitoring.GetDiscoveryJobLogs.InvokeAsync(new Oci.StackMonitoring.GetDiscoveryJobLogsArgs
        {
            DiscoveryJobId = oci_stack_monitoring_discovery_job.Test_discovery_job.Id,
            LogType = @var.Discovery_job_log_log_type,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/StackMonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := StackMonitoring.GetDiscoveryJobLogs(ctx, &stackmonitoring.GetDiscoveryJobLogsArgs{
			DiscoveryJobId: oci_stack_monitoring_discovery_job.Test_discovery_job.Id,
			LogType:        pulumi.StringRef(_var.Discovery_job_log_log_type),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_discovery_job_logs = oci.StackMonitoring.get_discovery_job_logs(discovery_job_id=oci_stack_monitoring_discovery_job["test_discovery_job"]["id"],
    log_type=var["discovery_job_log_log_type"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDiscoveryJobLogs = oci.StackMonitoring.getDiscoveryJobLogs({
    discoveryJobId: oci_stack_monitoring_discovery_job.test_discovery_job.id,
    logType: _var.discovery_job_log_log_type,
});

Coming soon!

Using getDiscoveryJobLogs

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 getDiscoveryJobLogs(args: GetDiscoveryJobLogsArgs, opts?: InvokeOptions): Promise<GetDiscoveryJobLogsResult>
function getDiscoveryJobLogsOutput(args: GetDiscoveryJobLogsOutputArgs, opts?: InvokeOptions): Output<GetDiscoveryJobLogsResult>
def get_discovery_job_logs(discovery_job_id: Optional[str] = None,
                           filters: Optional[Sequence[_stackmonitoring.GetDiscoveryJobLogsFilter]] = None,
                           log_type: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDiscoveryJobLogsResult
def get_discovery_job_logs_output(discovery_job_id: Optional[pulumi.Input[str]] = None,
                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[_stackmonitoring.GetDiscoveryJobLogsFilterArgs]]]] = None,
                           log_type: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDiscoveryJobLogsResult]
func GetDiscoveryJobLogs(ctx *Context, args *GetDiscoveryJobLogsArgs, opts ...InvokeOption) (*GetDiscoveryJobLogsResult, error)
func GetDiscoveryJobLogsOutput(ctx *Context, args *GetDiscoveryJobLogsOutputArgs, opts ...InvokeOption) GetDiscoveryJobLogsResultOutput

> Note: This function is named GetDiscoveryJobLogs in the Go SDK.

public static class GetDiscoveryJobLogs 
{
    public static Task<GetDiscoveryJobLogsResult> InvokeAsync(GetDiscoveryJobLogsArgs args, InvokeOptions? opts = null)
    public static Output<GetDiscoveryJobLogsResult> Invoke(GetDiscoveryJobLogsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDiscoveryJobLogsResult> getDiscoveryJobLogs(GetDiscoveryJobLogsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:StackMonitoring/getDiscoveryJobLogs:getDiscoveryJobLogs
  Arguments:
    # Arguments dictionary

The following arguments are supported:

DiscoveryJobId string

The Discovery Job ID

Filters List<GetDiscoveryJobLogsFilter>
LogType string

The log type like INFO, WARNING, ERROR, SUCCESS

DiscoveryJobId string

The Discovery Job ID

Filters []GetDiscoveryJobLogsFilter
LogType string

The log type like INFO, WARNING, ERROR, SUCCESS

discoveryJobId String

The Discovery Job ID

filters List<GetDiscoveryJobLogsFilter>
logType String

The log type like INFO, WARNING, ERROR, SUCCESS

discoveryJobId string

The Discovery Job ID

filters GetDiscoveryJobLogsFilter[]
logType string

The log type like INFO, WARNING, ERROR, SUCCESS

discovery_job_id str

The Discovery Job ID

filters GetDiscoveryJobLogsFilter]
log_type str

The log type like INFO, WARNING, ERROR, SUCCESS

discoveryJobId String

The Discovery Job ID

filters List<Property Map>
logType String

The log type like INFO, WARNING, ERROR, SUCCESS

getDiscoveryJobLogs Result

The following output properties are available:

DiscoveryJobId string
DiscoveryJobLogCollections List<GetDiscoveryJobLogsDiscoveryJobLogCollection>

The list of discovery_job_log_collection.

Id string

The provider-assigned unique ID for this managed resource.

Filters List<GetDiscoveryJobLogsFilter>
LogType string

Type of log (INFO, WARNING, ERROR or SUCCESS)

DiscoveryJobId string
DiscoveryJobLogCollections []GetDiscoveryJobLogsDiscoveryJobLogCollection

The list of discovery_job_log_collection.

Id string

The provider-assigned unique ID for this managed resource.

Filters []GetDiscoveryJobLogsFilter
LogType string

Type of log (INFO, WARNING, ERROR or SUCCESS)

discoveryJobId String
discoveryJobLogCollections List<GetDiscoveryJobLogsDiscoveryJobLogCollection>

The list of discovery_job_log_collection.

id String

The provider-assigned unique ID for this managed resource.

filters List<GetDiscoveryJobLogsFilter>
logType String

Type of log (INFO, WARNING, ERROR or SUCCESS)

discoveryJobId string
discoveryJobLogCollections GetDiscoveryJobLogsDiscoveryJobLogCollection[]

The list of discovery_job_log_collection.

id string

The provider-assigned unique ID for this managed resource.

filters GetDiscoveryJobLogsFilter[]
logType string

Type of log (INFO, WARNING, ERROR or SUCCESS)

discovery_job_id str
discovery_job_log_collections GetDiscoveryJobLogsDiscoveryJobLogCollection]

The list of discovery_job_log_collection.

id str

The provider-assigned unique ID for this managed resource.

filters GetDiscoveryJobLogsFilter]
log_type str

Type of log (INFO, WARNING, ERROR or SUCCESS)

discoveryJobId String
discoveryJobLogCollections List<Property Map>

The list of discovery_job_log_collection.

id String

The provider-assigned unique ID for this managed resource.

filters List<Property Map>
logType String

Type of log (INFO, WARNING, ERROR or SUCCESS)

Supporting Types

GetDiscoveryJobLogsDiscoveryJobLogCollection

GetDiscoveryJobLogsDiscoveryJobLogCollectionItem

Id string

The OCID of Discovery job

LogMessage string

Log message

LogType string

The log type like INFO, WARNING, ERROR, SUCCESS

TimeCreated string

Time the Job log was created

Id string

The OCID of Discovery job

LogMessage string

Log message

LogType string

The log type like INFO, WARNING, ERROR, SUCCESS

TimeCreated string

Time the Job log was created

id String

The OCID of Discovery job

logMessage String

Log message

logType String

The log type like INFO, WARNING, ERROR, SUCCESS

timeCreated String

Time the Job log was created

id string

The OCID of Discovery job

logMessage string

Log message

logType string

The log type like INFO, WARNING, ERROR, SUCCESS

timeCreated string

Time the Job log was created

id str

The OCID of Discovery job

log_message str

Log message

log_type str

The log type like INFO, WARNING, ERROR, SUCCESS

time_created str

Time the Job log was created

id String

The OCID of Discovery job

logMessage String

Log message

logType String

The log type like INFO, WARNING, ERROR, SUCCESS

timeCreated String

Time the Job log was created

GetDiscoveryJobLogsFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.