1. Packages
  2. Datadog Provider
  3. API Docs
  4. getCloudWorkloadSecurityAgentRules
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

datadog.getCloudWorkloadSecurityAgentRules

Explore with Pulumi AI

datadog logo
Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const test = datadog.getCloudWorkloadSecurityAgentRules({});
    
    import pulumi
    import pulumi_datadog as datadog
    
    test = datadog.get_cloud_workload_security_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.GetCloudWorkloadSecurityAgentRules(ctx, map[string]interface{}{}, 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.GetCloudWorkloadSecurityAgentRules.Invoke();
    
    });
    
    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();
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: datadog:getCloudWorkloadSecurityAgentRules
          Arguments: {}
    

    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>
    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]
    func GetCloudWorkloadSecurityAgentRules(ctx *Context, opts ...InvokeOption) (*GetCloudWorkloadSecurityAgentRulesResult, error)
    func GetCloudWorkloadSecurityAgentRulesOutput(ctx *Context, opts ...InvokeOption) GetCloudWorkloadSecurityAgentRulesResultOutput

    > 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)
    }
    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 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 string
    The description of the Agent rule.
    Enabled bool
    Whether the Agent rule is enabled.
    Expression string
    The SECL expression of the Agent rule.
    Id string
    The id of the Agent rule.
    Name string
    The name of the Agent rule.
    Description string
    The description of the Agent rule.
    Enabled bool
    Whether the Agent rule is enabled.
    Expression string
    The SECL expression of the Agent rule.
    Id string
    The id of the Agent rule.
    Name string
    The name of the Agent rule.
    description String
    The description of the Agent rule.
    enabled Boolean
    Whether the Agent rule is enabled.
    expression String
    The SECL expression of the Agent rule.
    id String
    The id of the Agent rule.
    name String
    The name of the Agent rule.
    description string
    The description of the Agent rule.
    enabled boolean
    Whether the Agent rule is enabled.
    expression string
    The SECL expression of the Agent rule.
    id string
    The id of the Agent rule.
    name string
    The name of the Agent rule.
    description str
    The description of the Agent rule.
    enabled bool
    Whether the Agent rule is enabled.
    expression str
    The SECL expression of the Agent rule.
    id str
    The id of the Agent rule.
    name str
    The name of the Agent rule.
    description String
    The description of the Agent rule.
    enabled Boolean
    Whether the Agent rule is enabled.
    expression String
    The SECL expression of the Agent rule.
    id String
    The id of the Agent rule.
    name 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.
    datadog logo
    Datadog v4.36.1 published on Friday, Nov 15, 2024 by Pulumi