Datadog

Pulumi Official
Package maintained by Pulumi
v4.8.0 published on Monday, Mar 28, 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
	})
}

Coming soon!

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());

Coming soon!

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>

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 ListCloudWorkloadSecurityAgentRulesAgentRule>

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

List of Agent rules.

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetCloudWorkloadSecurityAgentRulesAgentRule

Description string
Enabled bool
Expression string
Id string

The ID of this resource.

Name string
Description string
Enabled bool
Expression string
Id string

The ID of this resource.

Name string
description String
enabled Boolean
expression String
id String

The ID of this resource.

name String
description string
enabled boolean
expression string
id string

The ID of this resource.

name string
description str
enabled bool
expression str
id str

The ID of this resource.

name str
description String
enabled Boolean
expression String
id String

The ID of this resource.

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.