1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getDiscoveryJobLogs
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.StackMonitoring.getDiscoveryJobLogs

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDiscoveryJobLogs = oci.StackMonitoring.getDiscoveryJobLogs({
        discoveryJobId: testDiscoveryJob.id,
        logType: discoveryJobLogLogType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_discovery_job_logs = oci.StackMonitoring.get_discovery_job_logs(discovery_job_id=test_discovery_job["id"],
        log_type=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: testDiscoveryJob.Id,
    			LogType:        pulumi.StringRef(discoveryJobLogLogType),
    		}, 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 testDiscoveryJobLogs = Oci.StackMonitoring.GetDiscoveryJobLogs.Invoke(new()
        {
            DiscoveryJobId = testDiscoveryJob.Id,
            LogType = discoveryJobLogLogType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
    import com.pulumi.oci.StackMonitoring.inputs.GetDiscoveryJobLogsArgs;
    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 testDiscoveryJobLogs = StackMonitoringFunctions.getDiscoveryJobLogs(GetDiscoveryJobLogsArgs.builder()
                .discoveryJobId(testDiscoveryJob.id())
                .logType(discoveryJobLogLogType)
                .build());
    
        }
    }
    
    variables:
      testDiscoveryJobLogs:
        fn::invoke:
          Function: oci:StackMonitoring:getDiscoveryJobLogs
          Arguments:
            discoveryJobId: ${testDiscoveryJob.id}
            logType: ${discoveryJobLogLogType}
    

    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 Sequence[stackmonitoring.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 Sequence[stackmonitoring.GetDiscoveryJobLogsDiscoveryJobLogCollection]
    The list of discovery_job_log_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[stackmonitoring.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
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    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
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    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
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    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
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    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
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    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
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi