Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.AiAnomalyDetection.getDetectionProject
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Project
Id string - The OCID of the Project.
- Project
Id string - The OCID of the Project.
- project
Id String - The OCID of the Project.
- project
Id string - The OCID of the Project.
- project_
id str - The OCID of the Project.
- project
Id String - The OCID of the Project.
getDetectionProject Result
The following output properties are available:
- Compartment
Id string - The OCID for the project's compartment.
- 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.
- Display
Name string - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- 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.
- Project
Id string - State string
- The lifecycle state of the Project.
- 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 - The date and time the resource was created in the timestamp format defined by RFC3339.
- Time
Updated string - The date and time the resource was updated in the timestamp format defined by RFC3339.
- Compartment
Id string - The OCID for the project's compartment.
- 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.
- Display
Name string - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- 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.
- Project
Id string - State string
- The lifecycle state of the Project.
- 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 - The date and time the resource was created in the timestamp format defined by RFC3339.
- Time
Updated string - The date and time the resource was updated in the timestamp format defined by RFC3339.
- compartment
Id String - The OCID for the project's compartment.
- 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.
- display
Name String - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- 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.
- project
Id String - state String
- The lifecycle state of the Project.
- 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 - The date and time the resource was created in the timestamp format defined by RFC3339.
- time
Updated String - The date and time the resource was updated in the timestamp format defined by RFC3339.
- compartment
Id string - The OCID for the project's compartment.
- {[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.
- display
Name string - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- {[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.
- project
Id string - state string
- The lifecycle state of the Project.
- {[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 - The date and time the resource was created in the timestamp format defined by RFC3339.
- time
Updated 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.
- 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.
- 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.
- 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.
- compartment
Id String - The OCID for the project's compartment.
- 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.
- display
Name String - A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information.
- 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.
- project
Id String - state String
- The lifecycle state of the Project.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the resource was created in the timestamp format defined by RFC3339.
- time
Updated 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi