1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AiAnomalyDetection
  5. getDetectAnomalyJob
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.AiAnomalyDetection.getDetectAnomalyJob

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

This data source provides details about a specific Detect Anomaly Job resource in Oracle Cloud Infrastructure Ai Anomaly Detection service.

Gets a detect anomaly asynchronous job by identifier.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDetectAnomalyJob = oci.AiAnomalyDetection.getDetectAnomalyJob({
    detectAnomalyJobId: testDetectAnomalyJobOciAiAnomalyDetectionDetectAnomalyJob.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_detect_anomaly_job = oci.AiAnomalyDetection.get_detect_anomaly_job(detect_anomaly_job_id=test_detect_anomaly_job_oci_ai_anomaly_detection_detect_anomaly_job["id"])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aianomalydetection.GetDetectAnomalyJob(ctx, &aianomalydetection.GetDetectAnomalyJobArgs{
			DetectAnomalyJobId: testDetectAnomalyJobOciAiAnomalyDetectionDetectAnomalyJob.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDetectAnomalyJob = Oci.AiAnomalyDetection.GetDetectAnomalyJob.Invoke(new()
    {
        DetectAnomalyJobId = testDetectAnomalyJobOciAiAnomalyDetectionDetectAnomalyJob.Id,
    });

});
Copy
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.GetDetectAnomalyJobArgs;
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 testDetectAnomalyJob = AiAnomalyDetectionFunctions.getDetectAnomalyJob(GetDetectAnomalyJobArgs.builder()
            .detectAnomalyJobId(testDetectAnomalyJobOciAiAnomalyDetectionDetectAnomalyJob.id())
            .build());

    }
}
Copy
variables:
  testDetectAnomalyJob:
    fn::invoke:
      function: oci:AiAnomalyDetection:getDetectAnomalyJob
      arguments:
        detectAnomalyJobId: ${testDetectAnomalyJobOciAiAnomalyDetectionDetectAnomalyJob.id}
Copy

Using getDetectAnomalyJob

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 getDetectAnomalyJob(args: GetDetectAnomalyJobArgs, opts?: InvokeOptions): Promise<GetDetectAnomalyJobResult>
function getDetectAnomalyJobOutput(args: GetDetectAnomalyJobOutputArgs, opts?: InvokeOptions): Output<GetDetectAnomalyJobResult>
Copy
def get_detect_anomaly_job(detect_anomaly_job_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDetectAnomalyJobResult
def get_detect_anomaly_job_output(detect_anomaly_job_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDetectAnomalyJobResult]
Copy
func GetDetectAnomalyJob(ctx *Context, args *GetDetectAnomalyJobArgs, opts ...InvokeOption) (*GetDetectAnomalyJobResult, error)
func GetDetectAnomalyJobOutput(ctx *Context, args *GetDetectAnomalyJobOutputArgs, opts ...InvokeOption) GetDetectAnomalyJobResultOutput
Copy

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

public static class GetDetectAnomalyJob 
{
    public static Task<GetDetectAnomalyJobResult> InvokeAsync(GetDetectAnomalyJobArgs args, InvokeOptions? opts = null)
    public static Output<GetDetectAnomalyJobResult> Invoke(GetDetectAnomalyJobInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDetectAnomalyJobResult> getDetectAnomalyJob(GetDetectAnomalyJobArgs args, InvokeOptions options)
public static Output<GetDetectAnomalyJobResult> getDetectAnomalyJob(GetDetectAnomalyJobArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:AiAnomalyDetection/getDetectAnomalyJob:getDetectAnomalyJob
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DetectAnomalyJobId This property is required. string
Unique asynchronous job identifier.
DetectAnomalyJobId This property is required. string
Unique asynchronous job identifier.
detectAnomalyJobId This property is required. String
Unique asynchronous job identifier.
detectAnomalyJobId This property is required. string
Unique asynchronous job identifier.
detect_anomaly_job_id This property is required. str
Unique asynchronous job identifier.
detectAnomalyJobId This property is required. String
Unique asynchronous job identifier.

getDetectAnomalyJob Result

The following output properties are available:

CompartmentId string
The OCID of the compartment that starts the job.
DefinedTags Dictionary<string, string>
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.
DetectAnomalyJobId string
DisplayName string
Detect anomaly job display name.
FreeformTags Dictionary<string, string>
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<GetDetectAnomalyJobInputDetail>
Input details for detect anomaly job.
LifecycleStateDetails string
The current state details of the batch document job.
ModelId string
The OCID of the trained model.
OutputDetails List<GetDetectAnomalyJobOutputDetail>
Output details for detect anomaly job.
ProjectId string
The OCID of the project.
Sensitivity double
The value that customer can adjust to control the sensitivity of anomaly detection
State string
The current state of the batch document job.
SystemTags Dictionary<string, string>
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 OCID of the compartment that starts the job.
DefinedTags map[string]string
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.
DetectAnomalyJobId string
DisplayName string
Detect anomaly job display name.
FreeformTags map[string]string
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 []GetDetectAnomalyJobInputDetail
Input details for detect anomaly job.
LifecycleStateDetails string
The current state details of the batch document job.
ModelId string
The OCID of the trained model.
OutputDetails []GetDetectAnomalyJobOutputDetail
Output details for detect anomaly job.
ProjectId string
The OCID of the project.
Sensitivity float64
The value that customer can adjust to control the sensitivity of anomaly detection
State string
The current state of the batch document job.
SystemTags map[string]string
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 OCID of the compartment that starts the job.
definedTags Map<String,String>
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.
detectAnomalyJobId String
displayName String
Detect anomaly job display name.
freeformTags Map<String,String>
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<GetDetectAnomalyJobInputDetail>
Input details for detect anomaly job.
lifecycleStateDetails String
The current state details of the batch document job.
modelId String
The OCID of the trained model.
outputDetails List<GetDetectAnomalyJobOutputDetail>
Output details for detect anomaly job.
projectId String
The OCID of the project.
sensitivity Double
The value that customer can adjust to control the sensitivity of anomaly detection
state String
The current state of the batch document job.
systemTags Map<String,String>
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 OCID of the compartment that starts the job.
definedTags {[key: string]: string}
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.
detectAnomalyJobId string
displayName string
Detect anomaly job display name.
freeformTags {[key: string]: string}
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 GetDetectAnomalyJobInputDetail[]
Input details for detect anomaly job.
lifecycleStateDetails string
The current state details of the batch document job.
modelId string
The OCID of the trained model.
outputDetails GetDetectAnomalyJobOutputDetail[]
Output details for detect anomaly job.
projectId string
The OCID of the project.
sensitivity number
The value that customer can adjust to control the sensitivity of anomaly detection
state string
The current state of the batch document job.
systemTags {[key: string]: string}
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 OCID of the compartment that starts the job.
defined_tags Mapping[str, str]
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.
detect_anomaly_job_id str
display_name str
Detect anomaly job display name.
freeform_tags Mapping[str, str]
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 Sequence[aianomalydetection.GetDetectAnomalyJobInputDetail]
Input details for detect anomaly job.
lifecycle_state_details str
The current state details of the batch document job.
model_id str
The OCID of the trained model.
output_details Sequence[aianomalydetection.GetDetectAnomalyJobOutputDetail]
Output details for detect anomaly job.
project_id str
The OCID of the project.
sensitivity float
The value that customer can adjust to control the sensitivity of anomaly detection
state str
The current state of the batch document job.
system_tags Mapping[str, str]
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 OCID of the compartment that starts the job.
definedTags Map<String>
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.
detectAnomalyJobId String
displayName String
Detect anomaly job display name.
freeformTags Map<String>
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 OCID of the trained model.
outputDetails List<Property Map>
Output details for detect anomaly job.
projectId String
The OCID of the project.
sensitivity Number
The value that customer can adjust to control the sensitivity of anomaly detection
state String
The current state of the batch document job.
systemTags Map<String>
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

Supporting Types

GetDetectAnomalyJobInputDetail

Content This property is required. string
ContentType This property is required. string
Datas This property is required. List<GetDetectAnomalyJobInputDetailData>
InputType This property is required. string
The type of input location Allowed values are:

  • INLINE: Inline input data.
  • OBJECT_LIST: Object store output location.
Message This property is required. string
Inline input details.
ObjectLocations This property is required. List<GetDetectAnomalyJobInputDetailObjectLocation>
List of ObjectLocations.
SignalNames This property is required. List<string>
Content This property is required. string
ContentType This property is required. string
Datas This property is required. []GetDetectAnomalyJobInputDetailData
InputType This property is required. string
The type of input location Allowed values are:

  • INLINE: Inline input data.
  • OBJECT_LIST: Object store output location.
Message This property is required. string
Inline input details.
ObjectLocations This property is required. []GetDetectAnomalyJobInputDetailObjectLocation
List of ObjectLocations.
SignalNames This property is required. []string
content This property is required. String
contentType This property is required. String
datas This property is required. List<GetDetectAnomalyJobInputDetailData>
inputType This property is required. String
The type of input location Allowed values are:

  • INLINE: Inline input data.
  • OBJECT_LIST: Object store output location.
message This property is required. String
Inline input details.
objectLocations This property is required. List<GetDetectAnomalyJobInputDetailObjectLocation>
List of ObjectLocations.
signalNames This property is required. List<String>
content This property is required. string
contentType This property is required. string
datas This property is required. GetDetectAnomalyJobInputDetailData[]
inputType This property is required. string
The type of input location Allowed values are:

  • INLINE: Inline input data.
  • OBJECT_LIST: Object store output location.
message This property is required. string
Inline input details.
objectLocations This property is required. GetDetectAnomalyJobInputDetailObjectLocation[]
List of ObjectLocations.
signalNames This property is required. string[]
content This property is required. str
content_type This property is required. str
datas This property is required. Sequence[aianomalydetection.GetDetectAnomalyJobInputDetailData]
input_type This property is required. str
The type of input location Allowed values are:

  • INLINE: Inline input data.
  • OBJECT_LIST: Object store output location.
message This property is required. str
Inline input details.
object_locations This property is required. Sequence[aianomalydetection.GetDetectAnomalyJobInputDetailObjectLocation]
List of ObjectLocations.
signal_names This property is required. Sequence[str]
content This property is required. String
contentType This property is required. String
datas This property is required. List<Property Map>
inputType This property is required. String
The type of input location Allowed values are:

  • INLINE: Inline input data.
  • OBJECT_LIST: Object store output location.
message This property is required. String
Inline input details.
objectLocations This property is required. List<Property Map>
List of ObjectLocations.
signalNames This property is required. List<String>

GetDetectAnomalyJobInputDetailData

Timestamp This property is required. string
Values This property is required. List<double>
Timestamp This property is required. string
Values This property is required. []float64
timestamp This property is required. String
values This property is required. List<Double>
timestamp This property is required. string
values This property is required. number[]
timestamp This property is required. str
values This property is required. Sequence[float]
timestamp This property is required. String
values This property is required. List<Number>

GetDetectAnomalyJobInputDetailObjectLocation

Bucket This property is required. string
Object Storage bucket name.
Namespace This property is required. string
Object Storage namespace.
Object This property is required. string
Object Storage object name.
Bucket This property is required. string
Object Storage bucket name.
Namespace This property is required. string
Object Storage namespace.
Object This property is required. string
Object Storage object name.
bucket This property is required. String
Object Storage bucket name.
namespace This property is required. String
Object Storage namespace.
object This property is required. String
Object Storage object name.
bucket This property is required. string
Object Storage bucket name.
namespace This property is required. string
Object Storage namespace.
object This property is required. string
Object Storage object name.
bucket This property is required. str
Object Storage bucket name.
namespace This property is required. str
Object Storage namespace.
object This property is required. str
Object Storage object name.
bucket This property is required. String
Object Storage bucket name.
namespace This property is required. String
Object Storage namespace.
object This property is required. String
Object Storage object name.

GetDetectAnomalyJobOutputDetail

Bucket This property is required. string
Object Storage bucket name.
Namespace This property is required. string
Object Storage namespace.
OutputType This property is required. string
The type of output location Allowed values are:

  • OBJECT_STORAGE: Object store output location.
Prefix This property is required. string
Object Storage folder name.
Bucket This property is required. string
Object Storage bucket name.
Namespace This property is required. string
Object Storage namespace.
OutputType This property is required. string
The type of output location Allowed values are:

  • OBJECT_STORAGE: Object store output location.
Prefix This property is required. string
Object Storage folder name.
bucket This property is required. String
Object Storage bucket name.
namespace This property is required. String
Object Storage namespace.
outputType This property is required. String
The type of output location Allowed values are:

  • OBJECT_STORAGE: Object store output location.
prefix This property is required. String
Object Storage folder name.
bucket This property is required. string
Object Storage bucket name.
namespace This property is required. string
Object Storage namespace.
outputType This property is required. string
The type of output location Allowed values are:

  • OBJECT_STORAGE: Object store output location.
prefix This property is required. string
Object Storage folder name.
bucket This property is required. str
Object Storage bucket name.
namespace This property is required. str
Object Storage namespace.
output_type This property is required. str
The type of output location Allowed values are:

  • OBJECT_STORAGE: Object store output location.
prefix This property is required. str
Object Storage folder name.
bucket This property is required. String
Object Storage bucket name.
namespace This property is required. String
Object Storage namespace.
outputType This property is required. String
The type of output location Allowed values are:

  • OBJECT_STORAGE: Object store output location.
prefix This property is required. String
Object Storage folder name.

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 v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi