1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getProblemEntity
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.CloudGuard.getProblemEntity

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Problem Entity resource in Oracle Cloud Infrastructure Cloud Guard service.

    Returns a list of entities for a CloudGuard Problem

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testProblemEntity = oci.CloudGuard.getProblemEntity({
        problemId: oci_cloud_guard_problem.test_problem.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_problem_entity = oci.CloudGuard.get_problem_entity(problem_id=oci_cloud_guard_problem["test_problem"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/CloudGuard"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudGuard.GetProblemEntity(ctx, &cloudguard.GetProblemEntityArgs{
    			ProblemId: oci_cloud_guard_problem.Test_problem.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 testProblemEntity = Oci.CloudGuard.GetProblemEntity.Invoke(new()
        {
            ProblemId = oci_cloud_guard_problem.Test_problem.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudGuard.CloudGuardFunctions;
    import com.pulumi.oci.CloudGuard.inputs.GetProblemEntityArgs;
    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 testProblemEntity = CloudGuardFunctions.getProblemEntity(GetProblemEntityArgs.builder()
                .problemId(oci_cloud_guard_problem.test_problem().id())
                .build());
    
        }
    }
    
    variables:
      testProblemEntity:
        fn::invoke:
          Function: oci:CloudGuard:getProblemEntity
          Arguments:
            problemId: ${oci_cloud_guard_problem.test_problem.id}
    

    Using getProblemEntity

    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 getProblemEntity(args: GetProblemEntityArgs, opts?: InvokeOptions): Promise<GetProblemEntityResult>
    function getProblemEntityOutput(args: GetProblemEntityOutputArgs, opts?: InvokeOptions): Output<GetProblemEntityResult>
    def get_problem_entity(problem_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetProblemEntityResult
    def get_problem_entity_output(problem_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetProblemEntityResult]
    func GetProblemEntity(ctx *Context, args *GetProblemEntityArgs, opts ...InvokeOption) (*GetProblemEntityResult, error)
    func GetProblemEntityOutput(ctx *Context, args *GetProblemEntityOutputArgs, opts ...InvokeOption) GetProblemEntityResultOutput

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

    public static class GetProblemEntity 
    {
        public static Task<GetProblemEntityResult> InvokeAsync(GetProblemEntityArgs args, InvokeOptions? opts = null)
        public static Output<GetProblemEntityResult> Invoke(GetProblemEntityInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProblemEntityResult> getProblemEntity(GetProblemEntityArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudGuard/getProblemEntity:getProblemEntity
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProblemId string
    OCId of the problem.
    ProblemId string
    OCId of the problem.
    problemId String
    OCId of the problem.
    problemId string
    OCId of the problem.
    problem_id str
    OCId of the problem.
    problemId String
    OCId of the problem.

    getProblemEntity Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetProblemEntityItem>
    List of problem entities summaries related to a data source.
    ProblemId string
    Attached problem id
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetProblemEntityItem
    List of problem entities summaries related to a data source.
    ProblemId string
    Attached problem id
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetProblemEntityItem>
    List of problem entities summaries related to a data source.
    problemId String
    Attached problem id
    id string
    The provider-assigned unique ID for this managed resource.
    items GetProblemEntityItem[]
    List of problem entities summaries related to a data source.
    problemId string
    Attached problem id
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[cloudguard.GetProblemEntityItem]
    List of problem entities summaries related to a data source.
    problem_id str
    Attached problem id
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of problem entities summaries related to a data source.
    problemId String
    Attached problem id

    Supporting Types

    GetProblemEntityItem

    EntityDetails List<GetProblemEntityItemEntityDetail>
    List of event related to a DataSource
    ProblemId string
    OCId of the problem.
    Regions List<string>
    Data source problem entities region
    ResultUrl string
    Log result query url for a data source query
    TimeFirstDetected string
    Data source problem entities first detected time
    TimeLastDetected string
    Data source problem entities last detected time
    EntityDetails []GetProblemEntityItemEntityDetail
    List of event related to a DataSource
    ProblemId string
    OCId of the problem.
    Regions []string
    Data source problem entities region
    ResultUrl string
    Log result query url for a data source query
    TimeFirstDetected string
    Data source problem entities first detected time
    TimeLastDetected string
    Data source problem entities last detected time
    entityDetails List<GetProblemEntityItemEntityDetail>
    List of event related to a DataSource
    problemId String
    OCId of the problem.
    regions List<String>
    Data source problem entities region
    resultUrl String
    Log result query url for a data source query
    timeFirstDetected String
    Data source problem entities first detected time
    timeLastDetected String
    Data source problem entities last detected time
    entityDetails GetProblemEntityItemEntityDetail[]
    List of event related to a DataSource
    problemId string
    OCId of the problem.
    regions string[]
    Data source problem entities region
    resultUrl string
    Log result query url for a data source query
    timeFirstDetected string
    Data source problem entities first detected time
    timeLastDetected string
    Data source problem entities last detected time
    entity_details Sequence[cloudguard.GetProblemEntityItemEntityDetail]
    List of event related to a DataSource
    problem_id str
    OCId of the problem.
    regions Sequence[str]
    Data source problem entities region
    result_url str
    Log result query url for a data source query
    time_first_detected str
    Data source problem entities first detected time
    time_last_detected str
    Data source problem entities last detected time
    entityDetails List<Property Map>
    List of event related to a DataSource
    problemId String
    OCId of the problem.
    regions List<String>
    Data source problem entities region
    resultUrl String
    Log result query url for a data source query
    timeFirstDetected String
    Data source problem entities first detected time
    timeLastDetected String
    Data source problem entities last detected time

    GetProblemEntityItemEntityDetail

    DisplayName string
    The display name of entity
    Type string
    Type of entity
    Value string
    The entity value
    DisplayName string
    The display name of entity
    Type string
    Type of entity
    Value string
    The entity value
    displayName String
    The display name of entity
    type String
    Type of entity
    value String
    The entity value
    displayName string
    The display name of entity
    type string
    Type of entity
    value string
    The entity value
    display_name str
    The display name of entity
    type str
    Type of entity
    value str
    The entity value
    displayName String
    The display name of entity
    type String
    Type of entity
    value String
    The entity value

    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 v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi