1. Packages
  2. Dynatrace
  3. API Docs
  4. HostMonitoringMode
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.HostMonitoringMode

Explore with Pulumi AI

Create HostMonitoringMode Resource

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

Constructor syntax

new HostMonitoringMode(name: string, args: HostMonitoringModeArgs, opts?: CustomResourceOptions);
@overload
def HostMonitoringMode(resource_name: str,
                       args: HostMonitoringModeArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def HostMonitoringMode(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       host_id: Optional[str] = None,
                       monitoring_mode: Optional[str] = None)
func NewHostMonitoringMode(ctx *Context, name string, args HostMonitoringModeArgs, opts ...ResourceOption) (*HostMonitoringMode, error)
public HostMonitoringMode(string name, HostMonitoringModeArgs args, CustomResourceOptions? opts = null)
public HostMonitoringMode(String name, HostMonitoringModeArgs args)
public HostMonitoringMode(String name, HostMonitoringModeArgs args, CustomResourceOptions options)
type: dynatrace:HostMonitoringMode
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. HostMonitoringModeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. HostMonitoringModeArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. HostMonitoringModeArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. HostMonitoringModeArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. HostMonitoringModeArgs
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 hostMonitoringModeResource = new Dynatrace.HostMonitoringMode("hostMonitoringModeResource", new()
{
    HostId = "string",
    MonitoringMode = "string",
});
Copy
example, err := dynatrace.NewHostMonitoringMode(ctx, "hostMonitoringModeResource", &dynatrace.HostMonitoringModeArgs{
	HostId:         pulumi.String("string"),
	MonitoringMode: pulumi.String("string"),
})
Copy
var hostMonitoringModeResource = new HostMonitoringMode("hostMonitoringModeResource", HostMonitoringModeArgs.builder()
    .hostId("string")
    .monitoringMode("string")
    .build());
Copy
host_monitoring_mode_resource = dynatrace.HostMonitoringMode("hostMonitoringModeResource",
    host_id="string",
    monitoring_mode="string")
Copy
const hostMonitoringModeResource = new dynatrace.HostMonitoringMode("hostMonitoringModeResource", {
    hostId: "string",
    monitoringMode: "string",
});
Copy
type: dynatrace:HostMonitoringMode
properties:
    hostId: string
    monitoringMode: string
Copy

HostMonitoringMode 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 HostMonitoringMode resource accepts the following input properties:

HostId
This property is required.
Changes to this property will trigger replacement.
string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
MonitoringMode This property is required. string
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
HostId
This property is required.
Changes to this property will trigger replacement.
string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
MonitoringMode This property is required. string
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
hostId
This property is required.
Changes to this property will trigger replacement.
String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoringMode This property is required. String
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
hostId
This property is required.
Changes to this property will trigger replacement.
string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoringMode This property is required. string
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
host_id
This property is required.
Changes to this property will trigger replacement.
str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoring_mode This property is required. str
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
hostId
This property is required.
Changes to this property will trigger replacement.
String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoringMode This property is required. String
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY

Outputs

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

Get an existing HostMonitoringMode 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?: HostMonitoringModeState, opts?: CustomResourceOptions): HostMonitoringMode
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        host_id: Optional[str] = None,
        monitoring_mode: Optional[str] = None) -> HostMonitoringMode
func GetHostMonitoringMode(ctx *Context, name string, id IDInput, state *HostMonitoringModeState, opts ...ResourceOption) (*HostMonitoringMode, error)
public static HostMonitoringMode Get(string name, Input<string> id, HostMonitoringModeState? state, CustomResourceOptions? opts = null)
public static HostMonitoringMode get(String name, Output<String> id, HostMonitoringModeState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:HostMonitoringMode    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
HostId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
MonitoringMode string
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
HostId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
MonitoringMode string
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
hostId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoringMode String
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
hostId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoringMode string
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
host_id Changes to this property will trigger replacement. str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoring_mode str
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY
hostId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
monitoringMode String
Possible Values: DISCOVERY, FULL_STACK, INFRA_ONLY

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.