1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AiAnomalyDetection
  5. getDetectionProject
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

oci.AiAnomalyDetection.getDetectionProject

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

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

    Gets a Project by identifier

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testProject = oci.AiAnomalyDetection.getDetectionProject({
        projectId: testProjectOciAiAnomalyDetectionProject.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_project = oci.AiAnomalyDetection.get_detection_project(project_id=test_project_oci_ai_anomaly_detection_project["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.GetDetectionProject(ctx, &aianomalydetection.GetDetectionProjectArgs{
    			ProjectId: testProjectOciAiAnomalyDetectionProject.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 testProject = Oci.AiAnomalyDetection.GetDetectionProject.Invoke(new()
        {
            ProjectId = testProjectOciAiAnomalyDetectionProject.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.GetDetectionProjectArgs;
    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 testProject = AiAnomalyDetectionFunctions.getDetectionProject(GetDetectionProjectArgs.builder()
                .projectId(testProjectOciAiAnomalyDetectionProject.id())
                .build());
    
        }
    }
    
    variables:
      testProject:
        fn::invoke:
          Function: oci:AiAnomalyDetection:getDetectionProject
          Arguments:
            projectId: ${testProjectOciAiAnomalyDetectionProject.id}
    

    Using getDetectionProject

    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 getDetectionProject(args: GetDetectionProjectArgs, opts?: InvokeOptions): Promise<GetDetectionProjectResult>
    function getDetectionProjectOutput(args: GetDetectionProjectOutputArgs, opts?: InvokeOptions): Output<GetDetectionProjectResult>
    def get_detection_project(project_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetDetectionProjectResult
    def get_detection_project_output(project_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetDetectionProjectResult]
    func GetDetectionProject(ctx *Context, args *GetDetectionProjectArgs, opts ...InvokeOption) (*GetDetectionProjectResult, error)
    func GetDetectionProjectOutput(ctx *Context, args *GetDetectionProjectOutputArgs, opts ...InvokeOption) GetDetectionProjectResultOutput

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

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

    The following arguments are supported:

    ProjectId string
    The OCID of the Project.
    ProjectId string
    The OCID of the Project.
    projectId String
    The OCID of the Project.
    projectId string
    The OCID of the Project.
    project_id str
    The OCID of the Project.
    projectId String
    The OCID of the Project.

    getDetectionProject Result

    The following output properties are available:

    CompartmentId string
    The OCID for the project's compartment.
    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
    A short description of the project.
    DisplayName string
    A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
    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
    The OCID of the project that is immutable on creation.
    ProjectId string
    State string
    The lifecycle state of the Project.
    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
    The date and time the resource was created in the timestamp format defined by RFC3339.
    TimeUpdated string
    The date and time the resource was updated in the timestamp format defined by RFC3339.
    CompartmentId string
    The OCID for the project's compartment.
    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
    A short description of the project.
    DisplayName string
    A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
    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
    The OCID of the project that is immutable on creation.
    ProjectId string
    State string
    The lifecycle state of the Project.
    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
    The date and time the resource was created in the timestamp format defined by RFC3339.
    TimeUpdated string
    The date and time the resource was updated in the timestamp format defined by RFC3339.
    compartmentId String
    The OCID for the project's compartment.
    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
    A short description of the project.
    displayName String
    A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
    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
    The OCID of the project that is immutable on creation.
    projectId String
    state String
    The lifecycle state of the Project.
    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
    The date and time the resource was created in the timestamp format defined by RFC3339.
    timeUpdated String
    The date and time the resource was updated in the timestamp format defined by RFC3339.
    compartmentId string
    The OCID for the project's compartment.
    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
    A short description of the project.
    displayName string
    A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
    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
    The OCID of the project that is immutable on creation.
    projectId string
    state string
    The lifecycle state of the Project.
    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
    The date and time the resource was created in the timestamp format defined by RFC3339.
    timeUpdated string
    The date and time the resource was updated in the timestamp format defined by RFC3339.
    compartment_id str
    The OCID for the project's compartment.
    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
    A short description of the project.
    display_name str
    A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
    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
    The OCID of the project that is immutable on creation.
    project_id str
    state str
    The lifecycle state of the Project.
    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
    The date and time the resource was created in the timestamp format defined by RFC3339.
    time_updated str
    The date and time the resource was updated in the timestamp format defined by RFC3339.
    compartmentId String
    The OCID for the project's compartment.
    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
    A short description of the project.
    displayName String
    A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
    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
    The OCID of the project that is immutable on creation.
    projectId String
    state String
    The lifecycle state of the Project.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the resource was created in the timestamp format defined by RFC3339.
    timeUpdated String
    The date and time the resource was updated in the timestamp format defined by RFC3339.

    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 v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi