1. Packages
  2. Dynatrace
  3. API Docs
  4. DiscoveryDefaultRules
Dynatrace v0.21.1 published on Monday, Nov 25, 2024 by Pulumiverse

dynatrace.DiscoveryDefaultRules

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.1 published on Monday, Nov 25, 2024 by Pulumiverse

    Create DiscoveryDefaultRules Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DiscoveryDefaultRules(name: string, args: DiscoveryDefaultRulesArgs, opts?: CustomResourceOptions);
    @overload
    def DiscoveryDefaultRules(resource_name: str,
                              args: DiscoveryDefaultRulesArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def DiscoveryDefaultRules(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              rule: Optional[DiscoveryDefaultRulesRuleArgs] = None,
                              settings: Optional[DiscoveryDefaultRulesSettingsArgs] = None)
    func NewDiscoveryDefaultRules(ctx *Context, name string, args DiscoveryDefaultRulesArgs, opts ...ResourceOption) (*DiscoveryDefaultRules, error)
    public DiscoveryDefaultRules(string name, DiscoveryDefaultRulesArgs args, CustomResourceOptions? opts = null)
    public DiscoveryDefaultRules(String name, DiscoveryDefaultRulesArgs args)
    public DiscoveryDefaultRules(String name, DiscoveryDefaultRulesArgs args, CustomResourceOptions options)
    
    type: dynatrace:DiscoveryDefaultRules
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DiscoveryDefaultRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DiscoveryDefaultRulesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DiscoveryDefaultRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DiscoveryDefaultRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DiscoveryDefaultRulesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var discoveryDefaultRulesResource = new Dynatrace.DiscoveryDefaultRules("discoveryDefaultRulesResource", new()
    {
        Rule = new Dynatrace.Inputs.DiscoveryDefaultRulesRuleArgs
        {
            Category = "string",
            Description = "string",
            EnvironmentScope = false,
            Id = "string",
            Priority = "string",
            Query = "string",
            Title = "string",
            Actions = new Dynatrace.Inputs.DiscoveryDefaultRulesRuleActionsArgs
            {
                Actions = new[]
                {
                    new Dynatrace.Inputs.DiscoveryDefaultRulesRuleActionsActionArgs
                    {
                        Name = "string",
                        Parameters = new Dynatrace.Inputs.DiscoveryDefaultRulesRuleActionsActionParametersArgs
                        {
                            Parameters = new[]
                            {
                                new Dynatrace.Inputs.DiscoveryDefaultRulesRuleActionsActionParametersParameterArgs
                                {
                                    Name = "string",
                                    Value = "string",
                                },
                            },
                        },
                    },
                },
            },
            ZeroRated = false,
        },
        Settings = new Dynatrace.Inputs.DiscoveryDefaultRulesSettingsArgs
        {
            Muted = false,
        },
    });
    
    example, err := dynatrace.NewDiscoveryDefaultRules(ctx, "discoveryDefaultRulesResource", &dynatrace.DiscoveryDefaultRulesArgs{
    	Rule: &dynatrace.DiscoveryDefaultRulesRuleArgs{
    		Category:         pulumi.String("string"),
    		Description:      pulumi.String("string"),
    		EnvironmentScope: pulumi.Bool(false),
    		Id:               pulumi.String("string"),
    		Priority:         pulumi.String("string"),
    		Query:            pulumi.String("string"),
    		Title:            pulumi.String("string"),
    		Actions: &dynatrace.DiscoveryDefaultRulesRuleActionsArgs{
    			Actions: dynatrace.DiscoveryDefaultRulesRuleActionsActionArray{
    				&dynatrace.DiscoveryDefaultRulesRuleActionsActionArgs{
    					Name: pulumi.String("string"),
    					Parameters: &dynatrace.DiscoveryDefaultRulesRuleActionsActionParametersArgs{
    						Parameters: dynatrace.DiscoveryDefaultRulesRuleActionsActionParametersParameterArray{
    							&dynatrace.DiscoveryDefaultRulesRuleActionsActionParametersParameterArgs{
    								Name:  pulumi.String("string"),
    								Value: pulumi.String("string"),
    							},
    						},
    					},
    				},
    			},
    		},
    		ZeroRated: pulumi.Bool(false),
    	},
    	Settings: &dynatrace.DiscoveryDefaultRulesSettingsArgs{
    		Muted: pulumi.Bool(false),
    	},
    })
    
    var discoveryDefaultRulesResource = new DiscoveryDefaultRules("discoveryDefaultRulesResource", DiscoveryDefaultRulesArgs.builder()
        .rule(DiscoveryDefaultRulesRuleArgs.builder()
            .category("string")
            .description("string")
            .environmentScope(false)
            .id("string")
            .priority("string")
            .query("string")
            .title("string")
            .actions(DiscoveryDefaultRulesRuleActionsArgs.builder()
                .actions(DiscoveryDefaultRulesRuleActionsActionArgs.builder()
                    .name("string")
                    .parameters(DiscoveryDefaultRulesRuleActionsActionParametersArgs.builder()
                        .parameters(DiscoveryDefaultRulesRuleActionsActionParametersParameterArgs.builder()
                            .name("string")
                            .value("string")
                            .build())
                        .build())
                    .build())
                .build())
            .zeroRated(false)
            .build())
        .settings(DiscoveryDefaultRulesSettingsArgs.builder()
            .muted(false)
            .build())
        .build());
    
    discovery_default_rules_resource = dynatrace.DiscoveryDefaultRules("discoveryDefaultRulesResource",
        rule={
            "category": "string",
            "description": "string",
            "environment_scope": False,
            "id": "string",
            "priority": "string",
            "query": "string",
            "title": "string",
            "actions": {
                "actions": [{
                    "name": "string",
                    "parameters": {
                        "parameters": [{
                            "name": "string",
                            "value": "string",
                        }],
                    },
                }],
            },
            "zero_rated": False,
        },
        settings={
            "muted": False,
        })
    
    const discoveryDefaultRulesResource = new dynatrace.DiscoveryDefaultRules("discoveryDefaultRulesResource", {
        rule: {
            category: "string",
            description: "string",
            environmentScope: false,
            id: "string",
            priority: "string",
            query: "string",
            title: "string",
            actions: {
                actions: [{
                    name: "string",
                    parameters: {
                        parameters: [{
                            name: "string",
                            value: "string",
                        }],
                    },
                }],
            },
            zeroRated: false,
        },
        settings: {
            muted: false,
        },
    });
    
    type: dynatrace:DiscoveryDefaultRules
    properties:
        rule:
            actions:
                actions:
                    - name: string
                      parameters:
                        parameters:
                            - name: string
                              value: string
            category: string
            description: string
            environmentScope: false
            id: string
            priority: string
            query: string
            title: string
            zeroRated: false
        settings:
            muted: false
    

    DiscoveryDefaultRules Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DiscoveryDefaultRules resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DiscoveryDefaultRules resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DiscoveryDefaultRules Resource

    Get an existing DiscoveryDefaultRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DiscoveryDefaultRulesState, opts?: CustomResourceOptions): DiscoveryDefaultRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            rule: Optional[DiscoveryDefaultRulesRuleArgs] = None,
            settings: Optional[DiscoveryDefaultRulesSettingsArgs] = None) -> DiscoveryDefaultRules
    func GetDiscoveryDefaultRules(ctx *Context, name string, id IDInput, state *DiscoveryDefaultRulesState, opts ...ResourceOption) (*DiscoveryDefaultRules, error)
    public static DiscoveryDefaultRules Get(string name, Input<string> id, DiscoveryDefaultRulesState? state, CustomResourceOptions? opts = null)
    public static DiscoveryDefaultRules get(String name, Output<String> id, DiscoveryDefaultRulesState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.

    Supporting Types

    DiscoveryDefaultRulesRule, DiscoveryDefaultRulesRuleArgs

    Category string
    no documentation available
    Description string
    no documentation available
    EnvironmentScope bool
    Environment scope
    Id string
    no documentation available
    Priority string
    no documentation available
    Query string
    Rule query
    Title string
    no documentation available
    Actions Pulumiverse.Dynatrace.Inputs.DiscoveryDefaultRulesRuleActions
    no documentation available
    ZeroRated bool
    Zero rated
    Category string
    no documentation available
    Description string
    no documentation available
    EnvironmentScope bool
    Environment scope
    Id string
    no documentation available
    Priority string
    no documentation available
    Query string
    Rule query
    Title string
    no documentation available
    Actions DiscoveryDefaultRulesRuleActions
    no documentation available
    ZeroRated bool
    Zero rated
    category String
    no documentation available
    description String
    no documentation available
    environmentScope Boolean
    Environment scope
    id String
    no documentation available
    priority String
    no documentation available
    query String
    Rule query
    title String
    no documentation available
    actions DiscoveryDefaultRulesRuleActions
    no documentation available
    zeroRated Boolean
    Zero rated
    category string
    no documentation available
    description string
    no documentation available
    environmentScope boolean
    Environment scope
    id string
    no documentation available
    priority string
    no documentation available
    query string
    Rule query
    title string
    no documentation available
    actions DiscoveryDefaultRulesRuleActions
    no documentation available
    zeroRated boolean
    Zero rated
    category str
    no documentation available
    description str
    no documentation available
    environment_scope bool
    Environment scope
    id str
    no documentation available
    priority str
    no documentation available
    query str
    Rule query
    title str
    no documentation available
    actions DiscoveryDefaultRulesRuleActions
    no documentation available
    zero_rated bool
    Zero rated
    category String
    no documentation available
    description String
    no documentation available
    environmentScope Boolean
    Environment scope
    id String
    no documentation available
    priority String
    no documentation available
    query String
    Rule query
    title String
    no documentation available
    actions Property Map
    no documentation available
    zeroRated Boolean
    Zero rated

    DiscoveryDefaultRulesRuleActions, DiscoveryDefaultRulesRuleActionsArgs

    DiscoveryDefaultRulesRuleActionsAction, DiscoveryDefaultRulesRuleActionsActionArgs

    Name string
    no documentation available
    Parameters DiscoveryDefaultRulesRuleActionsActionParameters
    no documentation available
    name String
    no documentation available
    parameters DiscoveryDefaultRulesRuleActionsActionParameters
    no documentation available
    name string
    no documentation available
    parameters DiscoveryDefaultRulesRuleActionsActionParameters
    no documentation available
    name str
    no documentation available
    parameters DiscoveryDefaultRulesRuleActionsActionParameters
    no documentation available
    name String
    no documentation available
    parameters Property Map
    no documentation available

    DiscoveryDefaultRulesRuleActionsActionParameters, DiscoveryDefaultRulesRuleActionsActionParametersArgs

    DiscoveryDefaultRulesRuleActionsActionParametersParameter, DiscoveryDefaultRulesRuleActionsActionParametersParameterArgs

    Name string
    no documentation available
    Value string
    no documentation available
    Name string
    no documentation available
    Value string
    no documentation available
    name String
    no documentation available
    value String
    no documentation available
    name string
    no documentation available
    value string
    no documentation available
    name str
    no documentation available
    value str
    no documentation available
    name String
    no documentation available
    value String
    no documentation available

    DiscoveryDefaultRulesSettings, DiscoveryDefaultRulesSettingsArgs

    Muted bool
    no documentation available
    Muted bool
    no documentation available
    muted Boolean
    no documentation available
    muted boolean
    no documentation available
    muted bool
    no documentation available
    muted Boolean
    no documentation available

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.21.1 published on Monday, Nov 25, 2024 by Pulumiverse