Datadog

v4.11.0 published on Thursday, Sep 8, 2022 by Pulumi

getCloudWorkloadSecurityAgentRules

Use this data source to retrieve information about existing Cloud Workload Security Agent Rules for use in other resources.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Datadog.GetCloudWorkloadSecurityAgentRules.InvokeAsync());
    }

}
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, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var test = Output.of(DatadogFunctions.getCloudWorkloadSecurityAgentRules());

    }
}
import pulumi
import pulumi_datadog as datadog

test = datadog.get_cloud_workload_security_agent_rules()
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const test = pulumi.output(datadog.getCloudWorkloadSecurityAgentRules());
variables:
  test:
    Fn::Invoke:
      Function: datadog:getCloudWorkloadSecurityAgentRules
      Arguments: {}

Using getCloudWorkloadSecurityAgentRules

function getCloudWorkloadSecurityAgentRules(opts?: InvokeOptions): Promise<GetCloudWorkloadSecurityAgentRulesResult>
def get_cloud_workload_security_agent_rules(opts: Optional[InvokeOptions] = None) -> GetCloudWorkloadSecurityAgentRulesResult
func GetCloudWorkloadSecurityAgentRules(ctx *Context, opts ...InvokeOption) (*GetCloudWorkloadSecurityAgentRulesResult, error)

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

public static class GetCloudWorkloadSecurityAgentRules 
{
    public static Task<GetCloudWorkloadSecurityAgentRulesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetCloudWorkloadSecurityAgentRulesResult> getCloudWorkloadSecurityAgentRules(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: datadog:index/getCloudWorkloadSecurityAgentRules:getCloudWorkloadSecurityAgentRules
  Arguments:
    # Arguments dictionary

getCloudWorkloadSecurityAgentRules Result

The following output properties are available:

AgentRules List<GetCloudWorkloadSecurityAgentRulesAgentRule>
Id string

The provider-assigned unique ID for this managed resource.

AgentRules []GetCloudWorkloadSecurityAgentRulesAgentRule
Id string

The provider-assigned unique ID for this managed resource.

agentRules List<GetCloudWorkloadSecurityAgentRulesAgentRule>
id String

The provider-assigned unique ID for this managed resource.

agentRules GetCloudWorkloadSecurityAgentRulesAgentRule[]
id string

The provider-assigned unique ID for this managed resource.

agent_rules Sequence[GetCloudWorkloadSecurityAgentRulesAgentRule]
id str

The provider-assigned unique ID for this managed resource.

agentRules List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetCloudWorkloadSecurityAgentRulesAgentRule

Description string
Enabled bool
Expression string
Id string
Name string
Description string
Enabled bool
Expression string
Id string
Name string
description String
enabled Boolean
expression String
id String
name String
description string
enabled boolean
expression string
id string
name string
description String
enabled Boolean
expression String
id String
name String

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.