1. Packages
  2. Datadog
  3. API Docs
  4. getMonitorConfigPolicies
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

datadog.getMonitorConfigPolicies

Explore with Pulumi AI

datadog logo
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Use this data source to list existing monitor config policies for use in other resources.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Datadog.GetMonitorConfigPolicies.Invoke();
    
    });
    
    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.GetMonitorConfigPolicies(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.getMonitorConfigPolicies();
    
        }
    }
    
    import pulumi
    import pulumi_datadog as datadog
    
    test = datadog.get_monitor_config_policies()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    const test = datadog.getMonitorConfigPolicies({});
    
    variables:
      test:
        fn::invoke:
          Function: datadog:getMonitorConfigPolicies
          Arguments: {}
    

    Using getMonitorConfigPolicies

    function getMonitorConfigPolicies(opts?: InvokeOptions): Promise<GetMonitorConfigPoliciesResult>
    def get_monitor_config_policies(opts: Optional[InvokeOptions] = None) -> GetMonitorConfigPoliciesResult
    func GetMonitorConfigPolicies(ctx *Context, opts ...InvokeOption) (*GetMonitorConfigPoliciesResult, error)

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

    public static class GetMonitorConfigPolicies 
    {
        public static Task<GetMonitorConfigPoliciesResult> InvokeAsync(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMonitorConfigPoliciesResult> getMonitorConfigPolicies(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: datadog:index/getMonitorConfigPolicies:getMonitorConfigPolicies
      arguments:
        # arguments dictionary

    getMonitorConfigPolicies Result

    The following output properties are available:

    Id string

    The provider-assigned unique ID for this managed resource.

    MonitorConfigPolicies List<GetMonitorConfigPoliciesMonitorConfigPolicy>

    List of monitor config policies

    Id string

    The provider-assigned unique ID for this managed resource.

    MonitorConfigPolicies []GetMonitorConfigPoliciesMonitorConfigPolicy

    List of monitor config policies

    id String

    The provider-assigned unique ID for this managed resource.

    monitorConfigPolicies List<GetMonitorConfigPoliciesMonitorConfigPolicy>

    List of monitor config policies

    id string

    The provider-assigned unique ID for this managed resource.

    monitorConfigPolicies GetMonitorConfigPoliciesMonitorConfigPolicy[]

    List of monitor config policies

    id str

    The provider-assigned unique ID for this managed resource.

    monitor_config_policies Sequence[GetMonitorConfigPoliciesMonitorConfigPolicy]

    List of monitor config policies

    id String

    The provider-assigned unique ID for this managed resource.

    monitorConfigPolicies List<Property Map>

    List of monitor config policies

    Supporting Types

    GetMonitorConfigPoliciesMonitorConfigPolicy

    id String

    The ID of this resource.

    policyType String
    tagPolicy Property Map

    GetMonitorConfigPoliciesMonitorConfigPolicyTagPolicy

    TagKey string
    TagKeyRequired bool
    ValidTagValues List<string>
    tagKey String
    tagKeyRequired Boolean
    validTagValues List<String>
    tagKey string
    tagKeyRequired boolean
    validTagValues string[]
    tagKey String
    tagKeyRequired Boolean
    validTagValues List<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.23.0 published on Wednesday, Sep 27, 2023 by Pulumi