We recommend using Azure Native.
Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi
azure.dynatrace.getMonitor
Explore with Pulumi AI
Use this data source to access information about an existing Dynatrace Monitor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.dynatrace.getMonitor({
name: "example-dynatracemonitor",
resourceGroupName: "example-resources",
});
import pulumi
import pulumi_azure as azure
example = azure.dynatrace.get_monitor(name="example-dynatracemonitor",
resource_group_name="example-resources")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dynatrace"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dynatrace.LookupMonitor(ctx, &dynatrace.LookupMonitorArgs{
Name: "example-dynatracemonitor",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Dynatrace.GetMonitor.Invoke(new()
{
Name = "example-dynatracemonitor",
ResourceGroupName = "example-resources",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.dynatrace.DynatraceFunctions;
import com.pulumi.azure.dynatrace.inputs.GetMonitorArgs;
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 example = DynatraceFunctions.getMonitor(GetMonitorArgs.builder()
.name("example-dynatracemonitor")
.resourceGroupName("example-resources")
.build());
}
}
variables:
example:
fn::invoke:
function: azure:dynatrace:getMonitor
arguments:
name: example-dynatracemonitor
resourceGroupName: example-resources
Using getMonitor
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 getMonitor(args: GetMonitorArgs, opts?: InvokeOptions): Promise<GetMonitorResult>
function getMonitorOutput(args: GetMonitorOutputArgs, opts?: InvokeOptions): Output<GetMonitorResult>
def get_monitor(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMonitorResult
def get_monitor_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMonitorResult]
func LookupMonitor(ctx *Context, args *LookupMonitorArgs, opts ...InvokeOption) (*LookupMonitorResult, error)
func LookupMonitorOutput(ctx *Context, args *LookupMonitorOutputArgs, opts ...InvokeOption) LookupMonitorResultOutput
> Note: This function is named LookupMonitor
in the Go SDK.
public static class GetMonitor
{
public static Task<GetMonitorResult> InvokeAsync(GetMonitorArgs args, InvokeOptions? opts = null)
public static Output<GetMonitorResult> Invoke(GetMonitorInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
public static Output<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
fn::invoke:
function: azure:dynatrace/getMonitor:getMonitor
arguments:
# arguments dictionary
The following arguments are supported:
- Name
This property is required. string - Name of the Dynatrace monitor.
- Resource
Group Name This property is required. string - The name of the Resource Group where the Dynatrace monitor should exist.
- Name
This property is required. string - Name of the Dynatrace monitor.
- Resource
Group Name This property is required. string - The name of the Resource Group where the Dynatrace monitor should exist.
- name
This property is required. String - Name of the Dynatrace monitor.
- resource
Group Name This property is required. String - The name of the Resource Group where the Dynatrace monitor should exist.
- name
This property is required. string - Name of the Dynatrace monitor.
- resource
Group Name This property is required. string - The name of the Resource Group where the Dynatrace monitor should exist.
- name
This property is required. str - Name of the Dynatrace monitor.
- resource_
group_ name This property is required. str - The name of the Resource Group where the Dynatrace monitor should exist.
- name
This property is required. String - Name of the Dynatrace monitor.
- resource
Group Name This property is required. String - The name of the Resource Group where the Dynatrace monitor should exist.
getMonitor Result
The following output properties are available:
- Environment
Properties List<GetMonitor Environment Property> - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Monitor Identity> - The kind of managed identity assigned to this resource. A
identity
block as defined below. - Location string
- The Azure Region where the Dynatrace monitor should exist.
- Marketplace
Subscription string - Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
- Monitoring
Enabled bool - Flag specifying if the resource monitoring is enabled or disabled.
- Name string
- Plans
List<Get
Monitor Plan> - Plan id as published by Dynatrace.
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Users
List<Get
Monitor User> - User's information. A
user
block as defined below.
- Environment
Properties []GetMonitor Environment Property - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Monitor Identity - The kind of managed identity assigned to this resource. A
identity
block as defined below. - Location string
- The Azure Region where the Dynatrace monitor should exist.
- Marketplace
Subscription string - Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
- Monitoring
Enabled bool - Flag specifying if the resource monitoring is enabled or disabled.
- Name string
- Plans
[]Get
Monitor Plan - Plan id as published by Dynatrace.
- Resource
Group stringName - map[string]string
- A mapping of tags to assign to the resource.
- Users
[]Get
Monitor User - User's information. A
user
block as defined below.
- environment
Properties List<GetMonitor Environment Property> - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Monitor Identity> - The kind of managed identity assigned to this resource. A
identity
block as defined below. - location String
- The Azure Region where the Dynatrace monitor should exist.
- marketplace
Subscription String - Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
- monitoring
Enabled Boolean - Flag specifying if the resource monitoring is enabled or disabled.
- name String
- plans
List<Get
Monitor Plan> - Plan id as published by Dynatrace.
- resource
Group StringName - Map<String,String>
- A mapping of tags to assign to the resource.
- users
List<Get
Monitor User> - User's information. A
user
block as defined below.
- environment
Properties GetMonitor Environment Property[] - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Monitor Identity[] - The kind of managed identity assigned to this resource. A
identity
block as defined below. - location string
- The Azure Region where the Dynatrace monitor should exist.
- marketplace
Subscription string - Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
- monitoring
Enabled boolean - Flag specifying if the resource monitoring is enabled or disabled.
- name string
- plans
Get
Monitor Plan[] - Plan id as published by Dynatrace.
- resource
Group stringName - {[key: string]: string}
- A mapping of tags to assign to the resource.
- users
Get
Monitor User[] - User's information. A
user
block as defined below.
- environment_
properties Sequence[GetMonitor Environment Property] - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Monitor Identity] - The kind of managed identity assigned to this resource. A
identity
block as defined below. - location str
- The Azure Region where the Dynatrace monitor should exist.
- marketplace_
subscription str - Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
- monitoring_
enabled bool - Flag specifying if the resource monitoring is enabled or disabled.
- name str
- plans
Sequence[Get
Monitor Plan] - Plan id as published by Dynatrace.
- resource_
group_ strname - Mapping[str, str]
- A mapping of tags to assign to the resource.
- users
Sequence[Get
Monitor User] - User's information. A
user
block as defined below.
- environment
Properties List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- The kind of managed identity assigned to this resource. A
identity
block as defined below. - location String
- The Azure Region where the Dynatrace monitor should exist.
- marketplace
Subscription String - Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.
- monitoring
Enabled Boolean - Flag specifying if the resource monitoring is enabled or disabled.
- name String
- plans List<Property Map>
- Plan id as published by Dynatrace.
- resource
Group StringName - Map<String>
- A mapping of tags to assign to the resource.
- users List<Property Map>
- User's information. A
user
block as defined below.
Supporting Types
GetMonitorEnvironmentProperty
- Environment
Infos This property is required. List<GetMonitor Environment Property Environment Info>
- Environment
Infos This property is required. []GetMonitor Environment Property Environment Info
- environment
Infos This property is required. List<GetMonitor Environment Property Environment Info>
- environment
Infos This property is required. GetMonitor Environment Property Environment Info[]
- environment_
infos This property is required. Sequence[GetMonitor Environment Property Environment Info]
- environment
Infos This property is required. List<Property Map>
GetMonitorEnvironmentPropertyEnvironmentInfo
- Environment
Id This property is required. string
- Environment
Id This property is required. string
- environment
Id This property is required. String
- environment
Id This property is required. string
- environment_
id This property is required. str
- environment
Id This property is required. String
GetMonitorIdentity
- Principal
Id This property is required. string - Tenant
Id This property is required. string - Type
This property is required. string - The type of identity used for the resource.
- Principal
Id This property is required. string - Tenant
Id This property is required. string - Type
This property is required. string - The type of identity used for the resource.
- principal
Id This property is required. String - tenant
Id This property is required. String - type
This property is required. String - The type of identity used for the resource.
- principal
Id This property is required. string - tenant
Id This property is required. string - type
This property is required. string - The type of identity used for the resource.
- principal_
id This property is required. str - tenant_
id This property is required. str - type
This property is required. str - The type of identity used for the resource.
- principal
Id This property is required. String - tenant
Id This property is required. String - type
This property is required. String - The type of identity used for the resource.
GetMonitorPlan
- Billing
Cycle This property is required. string - Different billing cycles.
- Effective
Date This property is required. string - Date when plan was applied.
- Plan
This property is required. string - Plan id as published by Dynatrace.
- Usage
Type This property is required. string - Different usage type.
- Billing
Cycle This property is required. string - Different billing cycles.
- Effective
Date This property is required. string - Date when plan was applied.
- Plan
This property is required. string - Plan id as published by Dynatrace.
- Usage
Type This property is required. string - Different usage type.
- billing
Cycle This property is required. String - Different billing cycles.
- effective
Date This property is required. String - Date when plan was applied.
- plan
This property is required. String - Plan id as published by Dynatrace.
- usage
Type This property is required. String - Different usage type.
- billing
Cycle This property is required. string - Different billing cycles.
- effective
Date This property is required. string - Date when plan was applied.
- plan
This property is required. string - Plan id as published by Dynatrace.
- usage
Type This property is required. string - Different usage type.
- billing_
cycle This property is required. str - Different billing cycles.
- effective_
date This property is required. str - Date when plan was applied.
- plan
This property is required. str - Plan id as published by Dynatrace.
- usage_
type This property is required. str - Different usage type.
- billing
Cycle This property is required. String - Different billing cycles.
- effective
Date This property is required. String - Date when plan was applied.
- plan
This property is required. String - Plan id as published by Dynatrace.
- usage
Type This property is required. String - Different usage type.
GetMonitorUser
- Country
This property is required. string - Country of the user.
- Email
This property is required. string - Email of the user used by Dynatrace for contacting them if needed.
- First
Name This property is required. string - First name of the user.
- Last
Name This property is required. string - Last name of the user.
- Phone
Number This property is required. string - phone number of the user by Dynatrace for contacting them if needed.
- Country
This property is required. string - Country of the user.
- Email
This property is required. string - Email of the user used by Dynatrace for contacting them if needed.
- First
Name This property is required. string - First name of the user.
- Last
Name This property is required. string - Last name of the user.
- Phone
Number This property is required. string - phone number of the user by Dynatrace for contacting them if needed.
- country
This property is required. String - Country of the user.
- email
This property is required. String - Email of the user used by Dynatrace for contacting them if needed.
- first
Name This property is required. String - First name of the user.
- last
Name This property is required. String - Last name of the user.
- phone
Number This property is required. String - phone number of the user by Dynatrace for contacting them if needed.
- country
This property is required. string - Country of the user.
- email
This property is required. string - Email of the user used by Dynatrace for contacting them if needed.
- first
Name This property is required. string - First name of the user.
- last
Name This property is required. string - Last name of the user.
- phone
Number This property is required. string - phone number of the user by Dynatrace for contacting them if needed.
- country
This property is required. str - Country of the user.
- email
This property is required. str - Email of the user used by Dynatrace for contacting them if needed.
- first_
name This property is required. str - First name of the user.
- last_
name This property is required. str - Last name of the user.
- phone_
number This property is required. str - phone number of the user by Dynatrace for contacting them if needed.
- country
This property is required. String - Country of the user.
- email
This property is required. String - Email of the user used by Dynatrace for contacting them if needed.
- first
Name This property is required. String - First name of the user.
- last
Name This property is required. String - Last name of the user.
- phone
Number This property is required. String - phone number of the user by Dynatrace for contacting them if needed.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.