1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudGuard
  5. getProblemEntities
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.CloudGuard.getProblemEntities

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Problem Entities in Oracle Cloud Infrastructure Cloud Guard service.

    Returns a list of entities for a CloudGuard Problem Returns a list of entities for a problem.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testProblemEntities = oci.CloudGuard.getProblemEntities({
        problemId: testProblem.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_problem_entities = oci.CloudGuard.get_problem_entities(problem_id=test_problem["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CloudGuard"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudGuard.GetProblemEntities(ctx, &cloudguard.GetProblemEntitiesArgs{
    			ProblemId: testProblem.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 testProblemEntities = Oci.CloudGuard.GetProblemEntities.Invoke(new()
        {
            ProblemId = testProblem.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.GetProblemEntitiesArgs;
    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 testProblemEntities = CloudGuardFunctions.getProblemEntities(GetProblemEntitiesArgs.builder()
                .problemId(testProblem.id())
                .build());
    
        }
    }
    
    variables:
      testProblemEntities:
        fn::invoke:
          Function: oci:CloudGuard:getProblemEntities
          Arguments:
            problemId: ${testProblem.id}
    

    Using getProblemEntities

    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 getProblemEntities(args: GetProblemEntitiesArgs, opts?: InvokeOptions): Promise<GetProblemEntitiesResult>
    function getProblemEntitiesOutput(args: GetProblemEntitiesOutputArgs, opts?: InvokeOptions): Output<GetProblemEntitiesResult>
    def get_problem_entities(filters: Optional[Sequence[_cloudguard.GetProblemEntitiesFilter]] = None,
                             problem_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetProblemEntitiesResult
    def get_problem_entities_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudguard.GetProblemEntitiesFilterArgs]]]] = None,
                             problem_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetProblemEntitiesResult]
    func GetProblemEntities(ctx *Context, args *GetProblemEntitiesArgs, opts ...InvokeOption) (*GetProblemEntitiesResult, error)
    func GetProblemEntitiesOutput(ctx *Context, args *GetProblemEntitiesOutputArgs, opts ...InvokeOption) GetProblemEntitiesResultOutput

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

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

    The following arguments are supported:

    ProblemId string
    OCID of the problem.
    Filters []GetProblemEntitiesFilter
    problemId string
    OCID of the problem.
    filters GetProblemEntitiesFilter[]
    problemId String
    OCID of the problem.
    filters List<Property Map>

    getProblemEntities Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ProblemEntityCollections List<GetProblemEntitiesProblemEntityCollection>
    The list of problem_entity_collection.
    ProblemId string
    Attached problem ID
    Filters List<GetProblemEntitiesFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ProblemEntityCollections []GetProblemEntitiesProblemEntityCollection
    The list of problem_entity_collection.
    ProblemId string
    Attached problem ID
    Filters []GetProblemEntitiesFilter
    id String
    The provider-assigned unique ID for this managed resource.
    problemEntityCollections List<GetProblemEntitiesProblemEntityCollection>
    The list of problem_entity_collection.
    problemId String
    Attached problem ID
    filters List<GetProblemEntitiesFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    problemEntityCollections GetProblemEntitiesProblemEntityCollection[]
    The list of problem_entity_collection.
    problemId string
    Attached problem ID
    filters GetProblemEntitiesFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    problem_entity_collections Sequence[cloudguard.GetProblemEntitiesProblemEntityCollection]
    The list of problem_entity_collection.
    problem_id str
    Attached problem ID
    filters Sequence[cloudguard.GetProblemEntitiesFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    problemEntityCollections List<Property Map>
    The list of problem_entity_collection.
    problemId String
    Attached problem ID
    filters List<Property Map>

    Supporting Types

    GetProblemEntitiesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetProblemEntitiesProblemEntityCollection

    Items List<GetProblemEntitiesProblemEntityCollectionItem>
    List of entity details related to a data source
    Items []GetProblemEntitiesProblemEntityCollectionItem
    List of entity details related to a data source
    items List<GetProblemEntitiesProblemEntityCollectionItem>
    List of entity details related to a data source
    items GetProblemEntitiesProblemEntityCollectionItem[]
    List of entity details related to a data source
    items Sequence[cloudguard.GetProblemEntitiesProblemEntityCollectionItem]
    List of entity details related to a data source
    items List<Property Map>
    List of entity details related to a data source

    GetProblemEntitiesProblemEntityCollectionItem

    EntityDetails List<GetProblemEntitiesProblemEntityCollectionItemEntityDetail>
    List of entity details related to a data source
    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 []GetProblemEntitiesProblemEntityCollectionItemEntityDetail
    List of entity details related to a data source
    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<GetProblemEntitiesProblemEntityCollectionItemEntityDetail>
    List of entity details related to a data source
    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 GetProblemEntitiesProblemEntityCollectionItemEntityDetail[]
    List of entity details related to a data source
    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.GetProblemEntitiesProblemEntityCollectionItemEntityDetail]
    List of entity details related to a data source
    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 entity details related to a data source
    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

    GetProblemEntitiesProblemEntityCollectionItemEntityDetail

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi