Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.CloudGuard.getProblemEntity
Explore with Pulumi AI
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: testProblem.id,
});
import pulumi
import pulumi_oci as oci
test_problem_entity = oci.CloudGuard.get_problem_entity(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.GetProblemEntity(ctx, &cloudguard.GetProblemEntityArgs{
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 testProblemEntity = Oci.CloudGuard.GetProblemEntity.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.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(testProblem.id())
.build());
}
}
variables:
testProblemEntity:
fn::invoke:
function: oci:CloudGuard:getProblemEntity
arguments:
problemId: ${testProblem.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)
public static Output<GetProblemEntityResult> getProblemEntity(GetProblemEntityArgs args, InvokeOptions options)
fn::invoke:
function: oci:CloudGuard/getProblemEntity:getProblemEntity
arguments:
# arguments dictionary
The following arguments are supported:
- Problem
Id This property is required. string - OCId of the problem.
- Problem
Id This property is required. string - OCId of the problem.
- problem
Id This property is required. String - OCId of the problem.
- problem
Id This property is required. string - OCId of the problem.
- problem_
id This property is required. str - OCId of the problem.
- problem
Id This property is required. 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<Get
Problem Entity Item> - List of problem entities summaries related to a data source.
- Problem
Id string - Attached problem id
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Problem Entity Item - List of problem entities summaries related to a data source.
- Problem
Id string - Attached problem id
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Problem Entity Item> - List of problem entities summaries related to a data source.
- problem
Id String - Attached problem id
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Problem Entity Item[] - List of problem entities summaries related to a data source.
- problem
Id string - Attached problem id
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[cloudguard.
Get Problem Entity Item] - 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.
- problem
Id String - Attached problem id
Supporting Types
GetProblemEntityItem
- Entity
Details This property is required. List<GetProblem Entity Item Entity Detail> - List of event related to a DataSource
- Problem
Id This property is required. string - OCId of the problem.
- Regions
This property is required. List<string> - Data source problem entities region
- Result
Url This property is required. string - Log result query url for a data source query
- Time
First Detected This property is required. string - Data source problem entities first detected time
- Time
Last Detected This property is required. string - Data source problem entities last detected time
- Entity
Details This property is required. []GetProblem Entity Item Entity Detail - List of event related to a DataSource
- Problem
Id This property is required. string - OCId of the problem.
- Regions
This property is required. []string - Data source problem entities region
- Result
Url This property is required. string - Log result query url for a data source query
- Time
First Detected This property is required. string - Data source problem entities first detected time
- Time
Last Detected This property is required. string - Data source problem entities last detected time
- entity
Details This property is required. List<GetProblem Entity Item Entity Detail> - List of event related to a DataSource
- problem
Id This property is required. String - OCId of the problem.
- regions
This property is required. List<String> - Data source problem entities region
- result
Url This property is required. String - Log result query url for a data source query
- time
First Detected This property is required. String - Data source problem entities first detected time
- time
Last Detected This property is required. String - Data source problem entities last detected time
- entity
Details This property is required. GetProblem Entity Item Entity Detail[] - List of event related to a DataSource
- problem
Id This property is required. string - OCId of the problem.
- regions
This property is required. string[] - Data source problem entities region
- result
Url This property is required. string - Log result query url for a data source query
- time
First Detected This property is required. string - Data source problem entities first detected time
- time
Last Detected This property is required. string - Data source problem entities last detected time
- entity_
details This property is required. Sequence[cloudguard.Get Problem Entity Item Entity Detail] - List of event related to a DataSource
- problem_
id This property is required. str - OCId of the problem.
- regions
This property is required. Sequence[str] - Data source problem entities region
- result_
url This property is required. str - Log result query url for a data source query
- time_
first_ detected This property is required. str - Data source problem entities first detected time
- time_
last_ detected This property is required. str - Data source problem entities last detected time
- entity
Details This property is required. List<Property Map> - List of event related to a DataSource
- problem
Id This property is required. String - OCId of the problem.
- regions
This property is required. List<String> - Data source problem entities region
- result
Url This property is required. String - Log result query url for a data source query
- time
First Detected This property is required. String - Data source problem entities first detected time
- time
Last Detected This property is required. String - Data source problem entities last detected time
GetProblemEntityItemEntityDetail
- Display
Name This property is required. string - The display name of entity
- Type
This property is required. string - Type of entity
- Value
This property is required. string - The entity value
- Display
Name This property is required. string - The display name of entity
- Type
This property is required. string - Type of entity
- Value
This property is required. string - The entity value
- display
Name This property is required. String - The display name of entity
- type
This property is required. String - Type of entity
- value
This property is required. String - The entity value
- display
Name This property is required. string - The display name of entity
- type
This property is required. string - Type of entity
- value
This property is required. string - The entity value
- display_
name This property is required. str - The display name of entity
- type
This property is required. str - Type of entity
- value
This property is required. str - The entity value
- display
Name This property is required. String - The display name of entity
- type
This property is required. String - Type of entity
- value
This property is required. 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.