oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.AiAnomalyDetection.getDetectAnomalyJobs

This data source provides the list of Detect Anomaly Jobs in Oracle Cloud Infrastructure Ai Anomaly Detection service.

Returns a list of all the Anomaly Detection jobs in the specified compartment.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testDetectAnomalyJobs = Oci.AiAnomalyDetection.GetDetectAnomalyJobs.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        DetectAnomalyJobId = oci_ai_anomaly_detection_detect_anomaly_job.Test_detect_anomaly_job.Id,
        DisplayName = @var.Detect_anomaly_job_display_name,
        ModelId = oci_ai_anomaly_detection_model.Test_model.Id,
        ProjectId = oci_ai_anomaly_detection_project.Test_project.Id,
        State = @var.Detect_anomaly_job_state,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := AiAnomalyDetection.GetDetectAnomalyJobs(ctx, &aianomalydetection.GetDetectAnomalyJobsArgs{
			CompartmentId:      _var.Compartment_id,
			DetectAnomalyJobId: pulumi.StringRef(oci_ai_anomaly_detection_detect_anomaly_job.Test_detect_anomaly_job.Id),
			DisplayName:        pulumi.StringRef(_var.Detect_anomaly_job_display_name),
			ModelId:            pulumi.StringRef(oci_ai_anomaly_detection_model.Test_model.Id),
			ProjectId:          pulumi.StringRef(oci_ai_anomaly_detection_project.Test_project.Id),
			State:              pulumi.StringRef(_var.Detect_anomaly_job_state),
		}, 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.AiAnomalyDetection.AiAnomalyDetectionFunctions;
import com.pulumi.oci.AiAnomalyDetection.inputs.GetDetectAnomalyJobsArgs;
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 testDetectAnomalyJobs = AiAnomalyDetectionFunctions.getDetectAnomalyJobs(GetDetectAnomalyJobsArgs.builder()
            .compartmentId(var_.compartment_id())
            .detectAnomalyJobId(oci_ai_anomaly_detection_detect_anomaly_job.test_detect_anomaly_job().id())
            .displayName(var_.detect_anomaly_job_display_name())
            .modelId(oci_ai_anomaly_detection_model.test_model().id())
            .projectId(oci_ai_anomaly_detection_project.test_project().id())
            .state(var_.detect_anomaly_job_state())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_detect_anomaly_jobs = oci.AiAnomalyDetection.get_detect_anomaly_jobs(compartment_id=var["compartment_id"],
    detect_anomaly_job_id=oci_ai_anomaly_detection_detect_anomaly_job["test_detect_anomaly_job"]["id"],
    display_name=var["detect_anomaly_job_display_name"],
    model_id=oci_ai_anomaly_detection_model["test_model"]["id"],
    project_id=oci_ai_anomaly_detection_project["test_project"]["id"],
    state=var["detect_anomaly_job_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDetectAnomalyJobs = oci.AiAnomalyDetection.getDetectAnomalyJobs({
    compartmentId: _var.compartment_id,
    detectAnomalyJobId: oci_ai_anomaly_detection_detect_anomaly_job.test_detect_anomaly_job.id,
    displayName: _var.detect_anomaly_job_display_name,
    modelId: oci_ai_anomaly_detection_model.test_model.id,
    projectId: oci_ai_anomaly_detection_project.test_project.id,
    state: _var.detect_anomaly_job_state,
});
variables:
  testDetectAnomalyJobs:
    fn::invoke:
      Function: oci:AiAnomalyDetection:getDetectAnomalyJobs
      Arguments:
        compartmentId: ${var.compartment_id}
        detectAnomalyJobId: ${oci_ai_anomaly_detection_detect_anomaly_job.test_detect_anomaly_job.id}
        displayName: ${var.detect_anomaly_job_display_name}
        modelId: ${oci_ai_anomaly_detection_model.test_model.id}
        projectId: ${oci_ai_anomaly_detection_project.test_project.id}
        state: ${var.detect_anomaly_job_state}

Using getDetectAnomalyJobs

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 getDetectAnomalyJobs(args: GetDetectAnomalyJobsArgs, opts?: InvokeOptions): Promise<GetDetectAnomalyJobsResult>
function getDetectAnomalyJobsOutput(args: GetDetectAnomalyJobsOutputArgs, opts?: InvokeOptions): Output<GetDetectAnomalyJobsResult>
def get_detect_anomaly_jobs(compartment_id: Optional[str] = None,
                            detect_anomaly_job_id: Optional[str] = None,
                            display_name: Optional[str] = None,
                            filters: Optional[Sequence[_aianomalydetection.GetDetectAnomalyJobsFilter]] = None,
                            model_id: Optional[str] = None,
                            project_id: Optional[str] = None,
                            state: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDetectAnomalyJobsResult
def get_detect_anomaly_jobs_output(compartment_id: Optional[pulumi.Input[str]] = None,
                            detect_anomaly_job_id: Optional[pulumi.Input[str]] = None,
                            display_name: Optional[pulumi.Input[str]] = None,
                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_aianomalydetection.GetDetectAnomalyJobsFilterArgs]]]] = None,
                            model_id: Optional[pulumi.Input[str]] = None,
                            project_id: Optional[pulumi.Input[str]] = None,
                            state: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDetectAnomalyJobsResult]
func GetDetectAnomalyJobs(ctx *Context, args *GetDetectAnomalyJobsArgs, opts ...InvokeOption) (*GetDetectAnomalyJobsResult, error)
func GetDetectAnomalyJobsOutput(ctx *Context, args *GetDetectAnomalyJobsOutputArgs, opts ...InvokeOption) GetDetectAnomalyJobsResultOutput

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

public static class GetDetectAnomalyJobs 
{
    public static Task<GetDetectAnomalyJobsResult> InvokeAsync(GetDetectAnomalyJobsArgs args, InvokeOptions? opts = null)
    public static Output<GetDetectAnomalyJobsResult> Invoke(GetDetectAnomalyJobsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDetectAnomalyJobsResult> getDetectAnomalyJobs(GetDetectAnomalyJobsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:AiAnomalyDetection/getDetectAnomalyJobs:getDetectAnomalyJobs
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The ID of the compartment in which to list resources.

DetectAnomalyJobId string

Unique Async Job identifier

DisplayName string

A filter to return only resources that match the entire display name given.

Filters List<GetDetectAnomalyJobsFilter>
ModelId string

The ID of the trained model for which to list the resources.

ProjectId string

The ID of the project for which to list the objects.

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

CompartmentId string

The ID of the compartment in which to list resources.

DetectAnomalyJobId string

Unique Async Job identifier

DisplayName string

A filter to return only resources that match the entire display name given.

Filters []GetDetectAnomalyJobsFilter
ModelId string

The ID of the trained model for which to list the resources.

ProjectId string

The ID of the project for which to list the objects.

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

compartmentId String

The ID of the compartment in which to list resources.

detectAnomalyJobId String

Unique Async Job identifier

displayName String

A filter to return only resources that match the entire display name given.

filters List<GetDetectAnomalyJobsFilter>
modelId String

The ID of the trained model for which to list the resources.

projectId String

The ID of the project for which to list the objects.

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

compartmentId string

The ID of the compartment in which to list resources.

detectAnomalyJobId string

Unique Async Job identifier

displayName string

A filter to return only resources that match the entire display name given.

filters GetDetectAnomalyJobsFilter[]
modelId string

The ID of the trained model for which to list the resources.

projectId string

The ID of the project for which to list the objects.

state string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

compartment_id str

The ID of the compartment in which to list resources.

detect_anomaly_job_id str

Unique Async Job identifier

display_name str

A filter to return only resources that match the entire display name given.

filters GetDetectAnomalyJobsFilter]
model_id str

The ID of the trained model for which to list the resources.

project_id str

The ID of the project for which to list the objects.

state str

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

compartmentId String

The ID of the compartment in which to list resources.

detectAnomalyJobId String

Unique Async Job identifier

displayName String

A filter to return only resources that match the entire display name given.

filters List<Property Map>
modelId String

The ID of the trained model for which to list the resources.

projectId String

The ID of the project for which to list the objects.

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

getDetectAnomalyJobs Result

The following output properties are available:

CompartmentId string

The OCID of the compartment that starts the job.

DetectAnomalyJobCollections List<GetDetectAnomalyJobsDetectAnomalyJobCollection>

The list of detect_anomaly_job_collection.

Id string

The provider-assigned unique ID for this managed resource.

DetectAnomalyJobId string
DisplayName string

Detect anomaly job display name.

Filters List<GetDetectAnomalyJobsFilter>
ModelId string

The OCID of the trained model.

ProjectId string

The OCID of the project.

State string

The current state of the batch document job.

CompartmentId string

The OCID of the compartment that starts the job.

DetectAnomalyJobCollections []GetDetectAnomalyJobsDetectAnomalyJobCollection

The list of detect_anomaly_job_collection.

Id string

The provider-assigned unique ID for this managed resource.

DetectAnomalyJobId string
DisplayName string

Detect anomaly job display name.

Filters []GetDetectAnomalyJobsFilter
ModelId string

The OCID of the trained model.

ProjectId string

The OCID of the project.

State string

The current state of the batch document job.

compartmentId String

The OCID of the compartment that starts the job.

detectAnomalyJobCollections List<GetDetectAnomalyJobsDetectAnomalyJobCollection>

The list of detect_anomaly_job_collection.

id String

The provider-assigned unique ID for this managed resource.

detectAnomalyJobId String
displayName String

Detect anomaly job display name.

filters List<GetDetectAnomalyJobsFilter>
modelId String

The OCID of the trained model.

projectId String

The OCID of the project.

state String

The current state of the batch document job.

compartmentId string

The OCID of the compartment that starts the job.

detectAnomalyJobCollections GetDetectAnomalyJobsDetectAnomalyJobCollection[]

The list of detect_anomaly_job_collection.

id string

The provider-assigned unique ID for this managed resource.

detectAnomalyJobId string
displayName string

Detect anomaly job display name.

filters GetDetectAnomalyJobsFilter[]
modelId string

The OCID of the trained model.

projectId string

The OCID of the project.

state string

The current state of the batch document job.

compartment_id str

The OCID of the compartment that starts the job.

detect_anomaly_job_collections GetDetectAnomalyJobsDetectAnomalyJobCollection]

The list of detect_anomaly_job_collection.

id str

The provider-assigned unique ID for this managed resource.

detect_anomaly_job_id str
display_name str

Detect anomaly job display name.

filters GetDetectAnomalyJobsFilter]
model_id str

The OCID of the trained model.

project_id str

The OCID of the project.

state str

The current state of the batch document job.

compartmentId String

The OCID of the compartment that starts the job.

detectAnomalyJobCollections List<Property Map>

The list of detect_anomaly_job_collection.

id String

The provider-assigned unique ID for this managed resource.

detectAnomalyJobId String
displayName String

Detect anomaly job display name.

filters List<Property Map>
modelId String

The OCID of the trained model.

projectId String

The OCID of the project.

state String

The current state of the batch document job.

Supporting Types

GetDetectAnomalyJobsDetectAnomalyJobCollection

GetDetectAnomalyJobsDetectAnomalyJobCollectionItem

CompartmentId string

The ID of the compartment in which to list resources.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

Detect anomaly job description.

DisplayName string

A filter to return only resources that match the entire display name given.

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Id of the job.

InputDetails List<GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetail>

Input details for detect anomaly job.

LifecycleStateDetails string

The current state details of the batch document job.

ModelId string

The ID of the trained model for which to list the resources.

OutputDetails List<GetDetectAnomalyJobsDetectAnomalyJobCollectionItemOutputDetail>

Output details for detect anomaly job.

ProjectId string

The ID of the project for which to list the objects.

Sensitivity double

The value that customer can adjust to control the sensitivity of anomaly detection

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

SystemTags Dictionary<string, object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeAccepted string

Job accepted time

TimeFinished string

Job finished time

TimeStarted string

Job started time

CompartmentId string

The ID of the compartment in which to list resources.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

Description string

Detect anomaly job description.

DisplayName string

A filter to return only resources that match the entire display name given.

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id string

Id of the job.

InputDetails []GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetail

Input details for detect anomaly job.

LifecycleStateDetails string

The current state details of the batch document job.

ModelId string

The ID of the trained model for which to list the resources.

OutputDetails []GetDetectAnomalyJobsDetectAnomalyJobCollectionItemOutputDetail

Output details for detect anomaly job.

ProjectId string

The ID of the project for which to list the objects.

Sensitivity float64

The value that customer can adjust to control the sensitivity of anomaly detection

State string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

SystemTags map[string]interface{}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeAccepted string

Job accepted time

TimeFinished string

Job finished time

TimeStarted string

Job started time

compartmentId String

The ID of the compartment in which to list resources.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

Detect anomaly job description.

displayName String

A filter to return only resources that match the entire display name given.

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Id of the job.

inputDetails List<GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetail>

Input details for detect anomaly job.

lifecycleStateDetails String

The current state details of the batch document job.

modelId String

The ID of the trained model for which to list the resources.

outputDetails List<GetDetectAnomalyJobsDetectAnomalyJobCollectionItemOutputDetail>

Output details for detect anomaly job.

projectId String

The ID of the project for which to list the objects.

sensitivity Double

The value that customer can adjust to control the sensitivity of anomaly detection

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

systemTags Map<String,Object>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeAccepted String

Job accepted time

timeFinished String

Job finished time

timeStarted String

Job started time

compartmentId string

The ID of the compartment in which to list resources.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description string

Detect anomaly job description.

displayName string

A filter to return only resources that match the entire display name given.

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id string

Id of the job.

inputDetails GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetail[]

Input details for detect anomaly job.

lifecycleStateDetails string

The current state details of the batch document job.

modelId string

The ID of the trained model for which to list the resources.

outputDetails GetDetectAnomalyJobsDetectAnomalyJobCollectionItemOutputDetail[]

Output details for detect anomaly job.

projectId string

The ID of the project for which to list the objects.

sensitivity number

The value that customer can adjust to control the sensitivity of anomaly detection

state string

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

systemTags {[key: string]: any}

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeAccepted string

Job accepted time

timeFinished string

Job finished time

timeStarted string

Job started time

compartment_id str

The ID of the compartment in which to list resources.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description str

Detect anomaly job description.

display_name str

A filter to return only resources that match the entire display name given.

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id str

Id of the job.

input_details GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetail]

Input details for detect anomaly job.

lifecycle_state_details str

The current state details of the batch document job.

model_id str

The ID of the trained model for which to list the resources.

output_details GetDetectAnomalyJobsDetectAnomalyJobCollectionItemOutputDetail]

Output details for detect anomaly job.

project_id str

The ID of the project for which to list the objects.

sensitivity float

The value that customer can adjust to control the sensitivity of anomaly detection

state str

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

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_accepted str

Job accepted time

time_finished str

Job finished time

time_started str

Job started time

compartmentId String

The ID of the compartment in which to list resources.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}

description String

Detect anomaly job description.

displayName String

A filter to return only resources that match the entire display name given.

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

id String

Id of the job.

inputDetails List<Property Map>

Input details for detect anomaly job.

lifecycleStateDetails String

The current state details of the batch document job.

modelId String

The ID of the trained model for which to list the resources.

outputDetails List<Property Map>

Output details for detect anomaly job.

projectId String

The ID of the project for which to list the objects.

sensitivity Number

The value that customer can adjust to control the sensitivity of anomaly detection

state String

Filter results by the specified lifecycle state. Must be a valid state for the resource type.

systemTags Map<Any>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

timeAccepted String

Job accepted time

timeFinished String

Job finished time

timeStarted String

Job started time

GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetail

content String
contentType String
datas List<Property Map>
inputType String

The type of input location Allowed values are:

message String

Inline input details.

objectLocations List<Property Map>

List of ObjectLocations.

signalNames List<String>

GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetailData

Timestamp string
Values List<double>
Timestamp string
Values []float64
timestamp String
values List<Double>
timestamp string
values number[]
timestamp str
values Sequence[float]
timestamp String
values List<Number>

GetDetectAnomalyJobsDetectAnomalyJobCollectionItemInputDetailObjectLocation

Bucket string

Object Storage bucket name.

Namespace string

Object Storage namespace.

Object string

Object Storage object name.

Bucket string

Object Storage bucket name.

Namespace string

Object Storage namespace.

Object string

Object Storage object name.

bucket String

Object Storage bucket name.

namespace String

Object Storage namespace.

object String

Object Storage object name.

bucket string

Object Storage bucket name.

namespace string

Object Storage namespace.

object string

Object Storage object name.

bucket str

Object Storage bucket name.

namespace str

Object Storage namespace.

object str

Object Storage object name.

bucket String

Object Storage bucket name.

namespace String

Object Storage namespace.

object String

Object Storage object name.

GetDetectAnomalyJobsDetectAnomalyJobCollectionItemOutputDetail

Bucket string

Object Storage bucket name.

Namespace string

Object Storage namespace.

OutputType string

The type of output location Allowed values are:

Prefix string

Object Storage folder name.

Bucket string

Object Storage bucket name.

Namespace string

Object Storage namespace.

OutputType string

The type of output location Allowed values are:

Prefix string

Object Storage folder name.

bucket String

Object Storage bucket name.

namespace String

Object Storage namespace.

outputType String

The type of output location Allowed values are:

prefix String

Object Storage folder name.

bucket string

Object Storage bucket name.

namespace string

Object Storage namespace.

outputType string

The type of output location Allowed values are:

prefix string

Object Storage folder name.

bucket str

Object Storage bucket name.

namespace str

Object Storage namespace.

output_type str

The type of output location Allowed values are:

prefix str

Object Storage folder name.

bucket String

Object Storage bucket name.

namespace String

Object Storage namespace.

outputType String

The type of output location Allowed values are:

prefix String

Object Storage folder name.

GetDetectAnomalyJobsFilter

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.