Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.StackMonitoring.getDiscoveryJobLogs
Explore with Pulumi AI
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:
- Discovery
Job stringId - The Discovery Job ID
- Filters
List<Get
Discovery Job Logs Filter> - Log
Type string - The log type like INFO, WARNING, ERROR, SUCCESS
- Discovery
Job stringId - The Discovery Job ID
- Filters
[]Get
Discovery Job Logs Filter - Log
Type string - The log type like INFO, WARNING, ERROR, SUCCESS
- discovery
Job StringId - The Discovery Job ID
- filters
List<Get
Discovery Job Logs Filter> - log
Type String - The log type like INFO, WARNING, ERROR, SUCCESS
- discovery
Job stringId - The Discovery Job ID
- filters
Get
Discovery Job Logs Filter[] - log
Type string - The log type like INFO, WARNING, ERROR, SUCCESS
- discovery_
job_ strid - The Discovery Job ID
- filters
Sequence[stackmonitoring.
Get Discovery Job Logs Filter] - log_
type str - The log type like INFO, WARNING, ERROR, SUCCESS
- discovery
Job StringId - The Discovery Job ID
- filters List<Property Map>
- log
Type String - The log type like INFO, WARNING, ERROR, SUCCESS
getDiscoveryJobLogs Result
The following output properties are available:
- Discovery
Job stringId - Discovery
Job List<GetLog Collections Discovery Job Logs Discovery Job Log Collection> - The list of discovery_job_log_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Discovery Job Logs Filter> - Log
Type string - Type of log (INFO, WARNING, ERROR or SUCCESS)
- Discovery
Job stringId - Discovery
Job []GetLog Collections Discovery Job Logs Discovery Job Log Collection - The list of discovery_job_log_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Discovery Job Logs Filter - Log
Type string - Type of log (INFO, WARNING, ERROR or SUCCESS)
- discovery
Job StringId - discovery
Job List<GetLog Collections Discovery Job Logs Discovery Job Log Collection> - The list of discovery_job_log_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Discovery Job Logs Filter> - log
Type String - Type of log (INFO, WARNING, ERROR or SUCCESS)
- discovery
Job stringId - discovery
Job GetLog Collections Discovery Job Logs Discovery Job Log Collection[] - The list of discovery_job_log_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Discovery Job Logs Filter[] - log
Type string - Type of log (INFO, WARNING, ERROR or SUCCESS)
- discovery_
job_ strid - discovery_
job_ Sequence[stackmonitoring.log_ collections Get Discovery Job Logs Discovery Job Log Collection] - The list of discovery_job_log_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[stackmonitoring.
Get Discovery Job Logs Filter] - log_
type str - Type of log (INFO, WARNING, ERROR or SUCCESS)
- discovery
Job StringId - discovery
Job List<Property Map>Log Collections - The list of discovery_job_log_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- log
Type String - Type of log (INFO, WARNING, ERROR or SUCCESS)
Supporting Types
GetDiscoveryJobLogsDiscoveryJobLogCollection
- items List<Property Map>
- List of logs
GetDiscoveryJobLogsDiscoveryJobLogCollectionItem
- Id string
- The OCID of Discovery job
- Log
Message string - Log message
- Log
Type string - The log type like INFO, WARNING, ERROR, SUCCESS
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time the Job log was created
- Id string
- The OCID of Discovery job
- Log
Message string - Log message
- Log
Type string - The log type like INFO, WARNING, ERROR, SUCCESS
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - Time the Job log was created
- id String
- The OCID of Discovery job
- log
Message String - Log message
- log
Type String - The log type like INFO, WARNING, ERROR, SUCCESS
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time the Job log was created
- id string
- The OCID of Discovery job
- log
Message string - Log message
- log
Type string - The log type like INFO, WARNING, ERROR, SUCCESS
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created 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
- 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
- log
Message String - Log message
- log
Type String - The log type like INFO, WARNING, ERROR, SUCCESS
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - Time the Job log was created
GetDiscoveryJobLogsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi