1. Packages
  2. Datadog Provider
  3. API Docs
  4. getCloudWorkloadSecurityAgentRules
Datadog v4.47.0 published on Thursday, Mar 20, 2025 by Pulumi

datadog.getCloudWorkloadSecurityAgentRules

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const test = datadog.getCloudWorkloadSecurityAgentRules({});
Copy
import pulumi
import pulumi_datadog as datadog

test = datadog.get_cloud_workload_security_agent_rules()
Copy
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.GetCloudWorkloadSecurityAgentRules(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;

return await Deployment.RunAsync(() => 
{
    var test = Datadog.GetCloudWorkloadSecurityAgentRules.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
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.getCloudWorkloadSecurityAgentRules();

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: datadog:getCloudWorkloadSecurityAgentRules
      arguments: {}
Copy

Using getCloudWorkloadSecurityAgentRules

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 getCloudWorkloadSecurityAgentRules(opts?: InvokeOptions): Promise<GetCloudWorkloadSecurityAgentRulesResult>
function getCloudWorkloadSecurityAgentRulesOutput(opts?: InvokeOptions): Output<GetCloudWorkloadSecurityAgentRulesResult>
Copy
def get_cloud_workload_security_agent_rules(opts: Optional[InvokeOptions] = None) -> GetCloudWorkloadSecurityAgentRulesResult
def get_cloud_workload_security_agent_rules_output(opts: Optional[InvokeOptions] = None) -> Output[GetCloudWorkloadSecurityAgentRulesResult]
Copy
func GetCloudWorkloadSecurityAgentRules(ctx *Context, opts ...InvokeOption) (*GetCloudWorkloadSecurityAgentRulesResult, error)
func GetCloudWorkloadSecurityAgentRulesOutput(ctx *Context, opts ...InvokeOption) GetCloudWorkloadSecurityAgentRulesResultOutput
Copy

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

public static class GetCloudWorkloadSecurityAgentRules 
{
    public static Task<GetCloudWorkloadSecurityAgentRulesResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetCloudWorkloadSecurityAgentRulesResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCloudWorkloadSecurityAgentRulesResult> getCloudWorkloadSecurityAgentRules(InvokeOptions options)
public static Output<GetCloudWorkloadSecurityAgentRulesResult> getCloudWorkloadSecurityAgentRules(InvokeOptions options)
Copy
fn::invoke:
  function: datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules
  arguments:
    # arguments dictionary
Copy

getCloudWorkloadSecurityAgentRules Result

The following output properties are available:

AgentRules List<GetCloudWorkloadSecurityAgentRulesAgentRule>
List of Agent rules.
Id string
The provider-assigned unique ID for this managed resource.
AgentRules []GetCloudWorkloadSecurityAgentRulesAgentRule
List of Agent rules.
Id string
The provider-assigned unique ID for this managed resource.
agentRules List<GetCloudWorkloadSecurityAgentRulesAgentRule>
List of Agent rules.
id String
The provider-assigned unique ID for this managed resource.
agentRules GetCloudWorkloadSecurityAgentRulesAgentRule[]
List of Agent rules.
id string
The provider-assigned unique ID for this managed resource.
agent_rules Sequence[GetCloudWorkloadSecurityAgentRulesAgentRule]
List of Agent rules.
id str
The provider-assigned unique ID for this managed resource.
agentRules List<Property Map>
List of Agent rules.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

GetCloudWorkloadSecurityAgentRulesAgentRule

Description This property is required. string
The description of the Agent rule.
Enabled This property is required. bool
Whether the Agent rule is enabled.
Expression This property is required. string
The SECL expression of the Agent rule.
Id This property is required. string
The id of the Agent rule.
Name This property is required. string
The name of the Agent rule.
Description This property is required. string
The description of the Agent rule.
Enabled This property is required. bool
Whether the Agent rule is enabled.
Expression This property is required. string
The SECL expression of the Agent rule.
Id This property is required. string
The id of the Agent rule.
Name This property is required. string
The name of the Agent rule.
description This property is required. String
The description of the Agent rule.
enabled This property is required. Boolean
Whether the Agent rule is enabled.
expression This property is required. String
The SECL expression of the Agent rule.
id This property is required. String
The id of the Agent rule.
name This property is required. String
The name of the Agent rule.
description This property is required. string
The description of the Agent rule.
enabled This property is required. boolean
Whether the Agent rule is enabled.
expression This property is required. string
The SECL expression of the Agent rule.
id This property is required. string
The id of the Agent rule.
name This property is required. string
The name of the Agent rule.
description This property is required. str
The description of the Agent rule.
enabled This property is required. bool
Whether the Agent rule is enabled.
expression This property is required. str
The SECL expression of the Agent rule.
id This property is required. str
The id of the Agent rule.
name This property is required. str
The name of the Agent rule.
description This property is required. String
The description of the Agent rule.
enabled This property is required. Boolean
Whether the Agent rule is enabled.
expression This property is required. String
The SECL expression of the Agent rule.
id This property is required. String
The id of the Agent rule.
name This property is required. String
The name of the Agent rule.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.