Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.AiAnomalyDetection.getDetectAnomalyJob
Explore with Pulumi AI
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,
});
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"])
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testDetectAnomalyJob:
    fn::invoke:
      function: oci:AiAnomalyDetection:getDetectAnomalyJob
      arguments:
        detectAnomalyJobId: ${testDetectAnomalyJobOciAiAnomalyDetectionDetectAnomalyJob.id}
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>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]func LookupDetectAnomalyJob(ctx *Context, args *LookupDetectAnomalyJobArgs, opts ...InvokeOption) (*LookupDetectAnomalyJobResult, error)
func LookupDetectAnomalyJobOutput(ctx *Context, args *LookupDetectAnomalyJobOutputArgs, opts ...InvokeOption) LookupDetectAnomalyJobResultOutput> Note: This function is named LookupDetectAnomalyJob 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)
}public static CompletableFuture<GetDetectAnomalyJobResult> getDetectAnomalyJob(GetDetectAnomalyJobArgs args, InvokeOptions options)
public static Output<GetDetectAnomalyJobResult> getDetectAnomalyJob(GetDetectAnomalyJobArgs args, InvokeOptions options)
fn::invoke:
  function: oci:AiAnomalyDetection/getDetectAnomalyJob:getDetectAnomalyJob
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DetectAnomaly stringJob Id 
- Unique asynchronous job identifier.
- DetectAnomaly stringJob Id 
- Unique asynchronous job identifier.
- detectAnomaly StringJob Id 
- Unique asynchronous job identifier.
- detectAnomaly stringJob Id 
- Unique asynchronous job identifier.
- detect_anomaly_ strjob_ id 
- Unique asynchronous job identifier.
- detectAnomaly StringJob Id 
- Unique asynchronous job identifier.
getDetectAnomalyJob Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that starts the job.
- 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.
- DetectAnomaly stringJob Id 
- DisplayName string
- Detect anomaly job display name.
- 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<GetDetect Anomaly Job Input Detail> 
- Input details for detect anomaly job.
- LifecycleState stringDetails 
- The current state details of the batch document job.
- ModelId string
- The OCID of the trained model.
- OutputDetails List<GetDetect Anomaly Job Output Detail> 
- 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.
- 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.
- 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.
- DetectAnomaly stringJob Id 
- DisplayName string
- Detect anomaly job display name.
- 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 []GetDetect Anomaly Job Input Detail 
- Input details for detect anomaly job.
- LifecycleState stringDetails 
- The current state details of the batch document job.
- ModelId string
- The OCID of the trained model.
- OutputDetails []GetDetect Anomaly Job Output Detail 
- 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.
- 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.
- 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.
- detectAnomaly StringJob Id 
- displayName String
- Detect anomaly job display name.
- 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<GetDetect Anomaly Job Input Detail> 
- Input details for detect anomaly job.
- lifecycleState StringDetails 
- The current state details of the batch document job.
- modelId String
- The OCID of the trained model.
- outputDetails List<GetDetect Anomaly Job Output Detail> 
- 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.
- 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.
- {[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.
- detectAnomaly stringJob Id 
- displayName string
- Detect anomaly job display name.
- {[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 GetDetect Anomaly Job Input Detail[] 
- Input details for detect anomaly job.
- lifecycleState stringDetails 
- The current state details of the batch document job.
- modelId string
- The OCID of the trained model.
- outputDetails GetDetect Anomaly Job Output Detail[] 
- 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.
- {[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.
- 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_ strjob_ id 
- display_name str
- Detect anomaly job display name.
- 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[GetDetect Anomaly Job Input Detail] 
- Input details for detect anomaly job.
- lifecycle_state_ strdetails 
- The current state details of the batch document job.
- model_id str
- The OCID of the trained model.
- output_details Sequence[GetDetect Anomaly Job Output Detail] 
- 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.
- 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.
- 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.
- detectAnomaly StringJob Id 
- displayName String
- Detect anomaly job display name.
- 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.
- lifecycleState StringDetails 
- 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.
- 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 string
- ContentType string
- Datas
List<GetDetect Anomaly Job Input Detail Data> 
- InputType string
- The type of input location Allowed values are:- INLINE: Inline input data.
- OBJECT_LIST: Object store output location.
 
- Message string
- Inline input details.
- ObjectLocations List<GetDetect Anomaly Job Input Detail Object Location> 
- List of ObjectLocations.
- SignalNames List<string>
- Content string
- ContentType string
- Datas
[]GetDetect Anomaly Job Input Detail Data 
- InputType string
- The type of input location Allowed values are:- INLINE: Inline input data.
- OBJECT_LIST: Object store output location.
 
- Message string
- Inline input details.
- ObjectLocations []GetDetect Anomaly Job Input Detail Object Location 
- List of ObjectLocations.
- SignalNames []string
- content String
- contentType String
- datas
List<GetDetect Anomaly Job Input Detail Data> 
- inputType String
- The type of input location Allowed values are:- INLINE: Inline input data.
- OBJECT_LIST: Object store output location.
 
- message String
- Inline input details.
- objectLocations List<GetDetect Anomaly Job Input Detail Object Location> 
- List of ObjectLocations.
- signalNames List<String>
- content string
- contentType string
- datas
GetDetect Anomaly Job Input Detail Data[] 
- inputType string
- The type of input location Allowed values are:- INLINE: Inline input data.
- OBJECT_LIST: Object store output location.
 
- message string
- Inline input details.
- objectLocations GetDetect Anomaly Job Input Detail Object Location[] 
- List of ObjectLocations.
- signalNames string[]
- content str
- content_type str
- datas
Sequence[GetDetect Anomaly Job Input Detail Data] 
- input_type str
- The type of input location Allowed values are:- INLINE: Inline input data.
- OBJECT_LIST: Object store output location.
 
- message str
- Inline input details.
- object_locations Sequence[GetDetect Anomaly Job Input Detail Object Location] 
- List of ObjectLocations.
- signal_names Sequence[str]
- content String
- contentType String
- datas List<Property Map>
- inputType String
- The type of input location Allowed values are:- INLINE: Inline input data.
- OBJECT_LIST: Object store output location.
 
- message String
- Inline input details.
- objectLocations List<Property Map>
- List of ObjectLocations.
- signalNames List<String>
GetDetectAnomalyJobInputDetailData      
GetDetectAnomalyJobInputDetailObjectLocation       
GetDetectAnomalyJobOutputDetail     
- Bucket string
- Object Storage bucket name.
- Namespace string
- Object Storage namespace.
- OutputType string
- The type of output location Allowed values are:- OBJECT_STORAGE: Object store output location.
 
- 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:- OBJECT_STORAGE: Object store output location.
 
- 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:- OBJECT_STORAGE: Object store output location.
 
- 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:- OBJECT_STORAGE: Object store output location.
 
- 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:- OBJECT_STORAGE: Object store output location.
 
- 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:- OBJECT_STORAGE: Object store output location.
 
- prefix String
- Object Storage folder name.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.