Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
Use this data source to retrieve information about existing Agent rules.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const test = datadog.getCsmThreatsAgentRules({});
import pulumi
import pulumi_datadog as datadog
test = datadog.get_csm_threats_agent_rules()
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datadog.GetCsmThreatsAgentRules(ctx, &datadog.GetCsmThreatsAgentRulesArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var test = Datadog.GetCsmThreatsAgentRules.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
import com.pulumi.datadog.inputs.GetCsmThreatsAgentRulesArgs;
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 test = DatadogFunctions.getCsmThreatsAgentRules(GetCsmThreatsAgentRulesArgs.builder()
.build());
}
}
variables:
test:
fn::invoke:
function: datadog:getCsmThreatsAgentRules
arguments: {}
Using getCsmThreatsAgentRules
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 getCsmThreatsAgentRules(args: GetCsmThreatsAgentRulesArgs, opts?: InvokeOptions): Promise<GetCsmThreatsAgentRulesResult>
function getCsmThreatsAgentRulesOutput(args: GetCsmThreatsAgentRulesOutputArgs, opts?: InvokeOptions): Output<GetCsmThreatsAgentRulesResult>def get_csm_threats_agent_rules(policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCsmThreatsAgentRulesResult
def get_csm_threats_agent_rules_output(policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCsmThreatsAgentRulesResult]func GetCsmThreatsAgentRules(ctx *Context, args *GetCsmThreatsAgentRulesArgs, opts ...InvokeOption) (*GetCsmThreatsAgentRulesResult, error)
func GetCsmThreatsAgentRulesOutput(ctx *Context, args *GetCsmThreatsAgentRulesOutputArgs, opts ...InvokeOption) GetCsmThreatsAgentRulesResultOutput> Note: This function is named GetCsmThreatsAgentRules in the Go SDK.
public static class GetCsmThreatsAgentRules
{
public static Task<GetCsmThreatsAgentRulesResult> InvokeAsync(GetCsmThreatsAgentRulesArgs args, InvokeOptions? opts = null)
public static Output<GetCsmThreatsAgentRulesResult> Invoke(GetCsmThreatsAgentRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCsmThreatsAgentRulesResult> getCsmThreatsAgentRules(GetCsmThreatsAgentRulesArgs args, InvokeOptions options)
public static Output<GetCsmThreatsAgentRulesResult> getCsmThreatsAgentRules(GetCsmThreatsAgentRulesArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getCsmThreatsAgentRules:getCsmThreatsAgentRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Policy
Id string - Listing only the rules in the policy with this field as the ID
- Policy
Id string - Listing only the rules in the policy with this field as the ID
- policy
Id String - Listing only the rules in the policy with this field as the ID
- policy
Id string - Listing only the rules in the policy with this field as the ID
- policy_
id str - Listing only the rules in the policy with this field as the ID
- policy
Id String - Listing only the rules in the policy with this field as the ID
getCsmThreatsAgentRules Result
The following output properties are available:
- Agent
Rules List<GetCsm Threats Agent Rules Agent Rule> - List of Agent rules
- Agent
Rules List<string>Ids - List of IDs for the Agent rules.
- Id string
- The ID of the data source
- Policy
Id string - Listing only the rules in the policy with this field as the ID
- Agent
Rules []GetCsm Threats Agent Rules Agent Rule - List of Agent rules
- Agent
Rules []stringIds - List of IDs for the Agent rules.
- Id string
- The ID of the data source
- Policy
Id string - Listing only the rules in the policy with this field as the ID
- agent
Rules List<GetCsm Threats Agent Rules Agent Rule> - List of Agent rules
- agent
Rules List<String>Ids - List of IDs for the Agent rules.
- id String
- The ID of the data source
- policy
Id String - Listing only the rules in the policy with this field as the ID
- agent
Rules GetCsm Threats Agent Rules Agent Rule[] - List of Agent rules
- agent
Rules string[]Ids - List of IDs for the Agent rules.
- id string
- The ID of the data source
- policy
Id string - Listing only the rules in the policy with this field as the ID
- agent_
rules Sequence[GetCsm Threats Agent Rules Agent Rule] - List of Agent rules
- agent_
rules_ Sequence[str]ids - List of IDs for the Agent rules.
- id str
- The ID of the data source
- policy_
id str - Listing only the rules in the policy with this field as the ID
- agent
Rules List<Property Map> - List of Agent rules
- agent
Rules List<String>Ids - List of IDs for the Agent rules.
- id String
- The ID of the data source
- policy
Id String - Listing only the rules in the policy with this field as the ID
Supporting Types
GetCsmThreatsAgentRulesAgentRule
- Actions
List<Get
Csm Threats Agent Rules Agent Rule Action> - Description string
- Enabled bool
- Expression string
- Id string
- Name string
- List<string>
- Actions
[]Get
Csm Threats Agent Rules Agent Rule Action - Description string
- Enabled bool
- Expression string
- Id string
- Name string
- []string
- actions
List<Get
Csm Threats Agent Rules Agent Rule Action> - description String
- enabled Boolean
- expression String
- id String
- name String
- List<String>
- actions
Get
Csm Threats Agent Rules Agent Rule Action[] - description string
- enabled boolean
- expression string
- id string
- name string
- string[]
- actions
Sequence[Get
Csm Threats Agent Rules Agent Rule Action] - description str
- enabled bool
- expression str
- id str
- name str
- Sequence[str]
- actions List<Property Map>
- description String
- enabled Boolean
- expression String
- id String
- name String
- List<String>
GetCsmThreatsAgentRulesAgentRuleAction
GetCsmThreatsAgentRulesAgentRuleActionHash
- Field string
- Field string
- field String
- field string
- field str
- field String
GetCsmThreatsAgentRulesAgentRuleActionSet
- Append bool
- Default
Value string - Expression string
- Field string
- Inherited bool
- Name string
- Scope string
- Size int
- Ttl int
- Value string
- Append bool
- Default
Value string - Expression string
- Field string
- Inherited bool
- Name string
- Scope string
- Size int
- Ttl int
- Value string
- append Boolean
- default
Value String - expression String
- field String
- inherited Boolean
- name String
- scope String
- size Integer
- ttl Integer
- value String
- append boolean
- default
Value string - expression string
- field string
- inherited boolean
- name string
- scope string
- size number
- ttl number
- value string
- append bool
- default_
value str - expression str
- field str
- inherited bool
- name str
- scope str
- size int
- ttl int
- value str
- append Boolean
- default
Value String - expression String
- field String
- inherited Boolean
- name String
- scope String
- size Number
- ttl Number
- value String
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
Viewing docs for Datadog v4.68.0
published on Wednesday, Feb 25, 2026 by Pulumi
published on Wednesday, Feb 25, 2026 by Pulumi
