1. Packages
  2. Datadog Provider
  3. API Docs
  4. getCsmThreatsAgentRules
Datadog v4.52.0 published on Monday, Jul 14, 2025 by Pulumi

datadog.getCsmThreatsAgentRules

Explore with Pulumi AI

datadog logo
Datadog v4.52.0 published on Monday, Jul 14, 2025 by Pulumi

    Use this data source to retrieve information about existing Agent rules.

    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 dictionary

    The following arguments are supported:

    PolicyId string
    Listing only the rules in the policy with this field as the ID
    PolicyId string
    Listing only the rules in the policy with this field as the ID
    policyId String
    Listing only the rules in the policy with this field as the ID
    policyId 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
    policyId String
    Listing only the rules in the policy with this field as the ID

    getCsmThreatsAgentRules Result

    The following output properties are available:

    AgentRules List<GetCsmThreatsAgentRulesAgentRule>
    List of Agent rules
    AgentRulesIds List<string>
    List of IDs for the Agent rules.
    Id string
    The ID of the data source
    PolicyId string
    Listing only the rules in the policy with this field as the ID
    AgentRules []GetCsmThreatsAgentRulesAgentRule
    List of Agent rules
    AgentRulesIds []string
    List of IDs for the Agent rules.
    Id string
    The ID of the data source
    PolicyId string
    Listing only the rules in the policy with this field as the ID
    agentRules List<GetCsmThreatsAgentRulesAgentRule>
    List of Agent rules
    agentRulesIds List<String>
    List of IDs for the Agent rules.
    id String
    The ID of the data source
    policyId String
    Listing only the rules in the policy with this field as the ID
    agentRules GetCsmThreatsAgentRulesAgentRule[]
    List of Agent rules
    agentRulesIds string[]
    List of IDs for the Agent rules.
    id string
    The ID of the data source
    policyId string
    Listing only the rules in the policy with this field as the ID
    agent_rules Sequence[GetCsmThreatsAgentRulesAgentRule]
    List of Agent rules
    agent_rules_ids Sequence[str]
    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
    agentRules List<Property Map>
    List of Agent rules
    agentRulesIds List<String>
    List of IDs for the Agent rules.
    id String
    The ID of the data source
    policyId String
    Listing only the rules in the policy with this field as the ID

    Supporting Types

    GetCsmThreatsAgentRulesAgentRule

    actions List<Property Map>
    description String
    enabled Boolean
    expression String
    id String
    name String
    productTags List<String>

    GetCsmThreatsAgentRulesAgentRuleAction

    GetCsmThreatsAgentRulesAgentRuleActionSet

    Append bool
    Field string
    Name string
    Scope string
    Size int
    Ttl int
    Value string
    Append bool
    Field string
    Name string
    Scope string
    Size int
    Ttl int
    Value string
    append Boolean
    field String
    name String
    scope String
    size Integer
    ttl Integer
    value String
    append boolean
    field string
    name string
    scope string
    size number
    ttl number
    value string
    append bool
    field str
    name str
    scope str
    size int
    ttl int
    value str
    append Boolean
    field String
    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 datadog Terraform Provider.
    datadog logo
    Datadog v4.52.0 published on Monday, Jul 14, 2025 by Pulumi