Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.AiAnomalyDetection.getDetectionProjects
Explore with Pulumi AI
This data source provides the list of Projects in Oracle Cloud Infrastructure Ai Anomaly Detection service.
Returns a list of Projects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProjects = oci.AiAnomalyDetection.getDetectionProjects({
compartmentId: compartmentId,
displayName: projectDisplayName,
state: projectState,
});
import pulumi
import pulumi_oci as oci
test_projects = oci.AiAnomalyDetection.get_detection_projects(compartment_id=compartment_id,
display_name=project_display_name,
state=project_state)
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.GetDetectionProjects(ctx, &aianomalydetection.GetDetectionProjectsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(projectDisplayName),
State: pulumi.StringRef(projectState),
}, 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 testProjects = Oci.AiAnomalyDetection.GetDetectionProjects.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = projectDisplayName,
State = projectState,
});
});
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.GetDetectionProjectsArgs;
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 testProjects = AiAnomalyDetectionFunctions.getDetectionProjects(GetDetectionProjectsArgs.builder()
.compartmentId(compartmentId)
.displayName(projectDisplayName)
.state(projectState)
.build());
}
}
variables:
testProjects:
fn::invoke:
Function: oci:AiAnomalyDetection:getDetectionProjects
Arguments:
compartmentId: ${compartmentId}
displayName: ${projectDisplayName}
state: ${projectState}
Using getDetectionProjects
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 getDetectionProjects(args: GetDetectionProjectsArgs, opts?: InvokeOptions): Promise<GetDetectionProjectsResult>
function getDetectionProjectsOutput(args: GetDetectionProjectsOutputArgs, opts?: InvokeOptions): Output<GetDetectionProjectsResult>
def get_detection_projects(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_aianomalydetection.GetDetectionProjectsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDetectionProjectsResult
def get_detection_projects_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_aianomalydetection.GetDetectionProjectsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDetectionProjectsResult]
func GetDetectionProjects(ctx *Context, args *GetDetectionProjectsArgs, opts ...InvokeOption) (*GetDetectionProjectsResult, error)
func GetDetectionProjectsOutput(ctx *Context, args *GetDetectionProjectsOutputArgs, opts ...InvokeOption) GetDetectionProjectsResultOutput
> Note: This function is named GetDetectionProjects
in the Go SDK.
public static class GetDetectionProjects
{
public static Task<GetDetectionProjectsResult> InvokeAsync(GetDetectionProjectsArgs args, InvokeOptions? opts = null)
public static Output<GetDetectionProjectsResult> Invoke(GetDetectionProjectsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDetectionProjectsResult> getDetectionProjects(GetDetectionProjectsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:AiAnomalyDetection/getDetectionProjects:getDetectionProjects
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Detection Projects Filter> - State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Detection Projects Filter - State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Detection Projects Filter> - state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Detection Projects Filter[] - 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.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[aianomalydetection.
Get Detection Projects Filter] - state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
getDetectionProjects Result
The following output properties are available:
- Compartment
Id string - The OCID for the project's compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Collections List<GetDetection Projects Project Collection> - The list of project_collection.
- 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.
- Filters
List<Get
Detection Projects Filter> - State string
- The lifecycle state of the Project.
- Compartment
Id string - The OCID for the project's compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Collections []GetDetection Projects Project Collection - The list of project_collection.
- 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.
- Filters
[]Get
Detection Projects Filter - State string
- The lifecycle state of the Project.
- compartment
Id String - The OCID for the project's compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Collections List<GetDetection Projects Project Collection> - The list of project_collection.
- 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.
- filters
List<Get
Detection Projects Filter> - state String
- The lifecycle state of the Project.
- compartment
Id string - The OCID for the project's compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Collections GetDetection Projects Project Collection[] - The list of project_collection.
- 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.
- filters
Get
Detection Projects Filter[] - state string
- The lifecycle state of the Project.
- compartment_
id str - The OCID for the project's compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
collections Sequence[aianomalydetection.Get Detection Projects Project Collection] - The list of project_collection.
- 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.
- filters
Sequence[aianomalydetection.
Get Detection Projects Filter] - state str
- The lifecycle state of the Project.
- compartment
Id String - The OCID for the project's compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Collections List<Property Map> - The list of project_collection.
- 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.
- filters List<Property Map>
- state String
- The lifecycle state of the Project.
Supporting Types
GetDetectionProjectsFilter
GetDetectionProjectsProjectCollection
GetDetectionProjectsProjectCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources.
- 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
- A short description of the project.
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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
- The OCID of the project that is immutable on creation.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Dictionary<string, string>
- 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 ID of the compartment in which to list resources.
- 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
- A short description of the project.
- Display
Name string - A filter to return only resources that match the entire display name given.
- 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
- The OCID of the project that is immutable on creation.
- State string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- map[string]string
- 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 ID of the compartment in which to list resources.
- 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
- A short description of the project.
- display
Name String - A filter to return only resources that match the entire display name given.
- 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
- The OCID of the project that is immutable on creation.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Map<String,String>
- 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 ID of the compartment in which to list resources.
- {[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
- A short description of the project.
- display
Name string - A filter to return only resources that match the entire display name given.
- {[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
- The OCID of the project that is immutable on creation.
- state string
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- {[key: string]: string}
- 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 ID of the compartment in which to list resources.
- 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
- A short description of the project.
- display_
name str - A filter to return only resources that match the entire display name given.
- 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
- The OCID of the project that is immutable on creation.
- state str
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Mapping[str, str]
- 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 ID of the compartment in which to list resources.
- Map<String>
- 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 filter to return only resources that match the entire display name given.
- 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
- The OCID of the project that is immutable on creation.
- state String
- Filter results by the specified lifecycle state. Must be a valid state for the resource type.
- Map<String>
- 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.