1. Packages
  2. Dynatrace
  3. API Docs
  4. ContainerRule
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.ContainerRule

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    Create ContainerRule Resource

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

    Constructor syntax

    new ContainerRule(name: string, args: ContainerRuleArgs, opts?: CustomResourceOptions);
    @overload
    def ContainerRule(resource_name: str,
                      args: ContainerRuleArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContainerRule(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      enabled: Optional[bool] = None,
                      mode: Optional[str] = None,
                      operator: Optional[str] = None,
                      property: Optional[str] = None,
                      value: Optional[str] = None)
    func NewContainerRule(ctx *Context, name string, args ContainerRuleArgs, opts ...ResourceOption) (*ContainerRule, error)
    public ContainerRule(string name, ContainerRuleArgs args, CustomResourceOptions? opts = null)
    public ContainerRule(String name, ContainerRuleArgs args)
    public ContainerRule(String name, ContainerRuleArgs args, CustomResourceOptions options)
    
    type: dynatrace:ContainerRule
    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 ContainerRuleArgs
    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 ContainerRuleArgs
    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 ContainerRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var containerRuleResource = new Dynatrace.ContainerRule("containerRuleResource", new()
    {
        Enabled = false,
        Mode = "string",
        Operator = "string",
        Property = "string",
        Value = "string",
    });
    
    example, err := dynatrace.NewContainerRule(ctx, "containerRuleResource", &dynatrace.ContainerRuleArgs{
    	Enabled:  pulumi.Bool(false),
    	Mode:     pulumi.String("string"),
    	Operator: pulumi.String("string"),
    	Property: pulumi.String("string"),
    	Value:    pulumi.String("string"),
    })
    
    var containerRuleResource = new ContainerRule("containerRuleResource", ContainerRuleArgs.builder()        
        .enabled(false)
        .mode("string")
        .operator("string")
        .property("string")
        .value("string")
        .build());
    
    container_rule_resource = dynatrace.ContainerRule("containerRuleResource",
        enabled=False,
        mode="string",
        operator="string",
        property="string",
        value="string")
    
    const containerRuleResource = new dynatrace.ContainerRule("containerRuleResource", {
        enabled: false,
        mode: "string",
        operator: "string",
        property: "string",
        value: "string",
    });
    
    type: dynatrace:ContainerRule
    properties:
        enabled: false
        mode: string
        operator: string
        property: string
        value: string
    

    ContainerRule Resource Properties

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

    Inputs

    The ContainerRule resource accepts the following input properties:

    Enabled bool
    This setting is enabled (true) or disabled (false)
    Mode string
    Possible Values: MONITORING_OFF, MONITORING_ON
    Operator string
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    Property string
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    Value string
    Condition value
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Mode string
    Possible Values: MONITORING_OFF, MONITORING_ON
    Operator string
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    Property string
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    Value string
    Condition value
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    mode String
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator String
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property String
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value String
    Condition value
    enabled boolean
    This setting is enabled (true) or disabled (false)
    mode string
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator string
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property string
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value string
    Condition value
    enabled bool
    This setting is enabled (true) or disabled (false)
    mode str
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator str
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property str
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value str
    Condition value
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    mode String
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator String
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property String
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value String
    Condition value

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ContainerRule 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 ContainerRule Resource

    Get an existing ContainerRule 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?: ContainerRuleState, opts?: CustomResourceOptions): ContainerRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            mode: Optional[str] = None,
            operator: Optional[str] = None,
            property: Optional[str] = None,
            value: Optional[str] = None) -> ContainerRule
    func GetContainerRule(ctx *Context, name string, id IDInput, state *ContainerRuleState, opts ...ResourceOption) (*ContainerRule, error)
    public static ContainerRule Get(string name, Input<string> id, ContainerRuleState? state, CustomResourceOptions? opts = null)
    public static ContainerRule get(String name, Output<String> id, ContainerRuleState 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.
    The following state arguments are supported:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Mode string
    Possible Values: MONITORING_OFF, MONITORING_ON
    Operator string
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    Property string
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    Value string
    Condition value
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Mode string
    Possible Values: MONITORING_OFF, MONITORING_ON
    Operator string
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    Property string
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    Value string
    Condition value
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    mode String
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator String
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property String
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value String
    Condition value
    enabled boolean
    This setting is enabled (true) or disabled (false)
    mode string
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator string
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property string
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value string
    Condition value
    enabled bool
    This setting is enabled (true) or disabled (false)
    mode str
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator str
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property str
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value str
    Condition value
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    mode String
    Possible Values: MONITORING_OFF, MONITORING_ON
    operator String
    Possible Values: CONTAINS, ENDS, EQUALS, EXISTS, NOT_CONTAINS, NOT_ENDS, NOT_EQUALS, NOT_EXISTS, NOT_STARTS, STARTS
    property String
    Possible Values: CONTAINER_NAME, IMAGE_NAME, KUBERNETES_BASEPODNAME, KUBERNETES_CONTAINERNAME, KUBERNETES_FULLPODNAME, KUBERNETES_NAMESPACE, KUBERNETES_PODUID
    value String
    Condition value

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs