Dynatrace.Observability (stable:2024-04-24)

2025/11/27 • 1 updated methods

MonitoredSubscriptions_CreateOrUpdate (updated)
Description Add the subscriptions that should be monitored by the Dynatrace monitor resource.
Reference Link ¶

⚶ Changes

{
  "#id": "MonitoredSubscriptions_CreateOrUpdate",
  "$parameters": [
    {
      "#name": "monitorName",
      "Description": {
        "new": "Monitor resource name",
        "old": "The name of the MonitorResource"
      }
    }
  ]
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/monitoredSubscriptions/default
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
monitorName: string ,
body:
{
properties:
{
operation: enum ,
monitoredSubscriptionList:
[
{
subscriptionId: string ,
status: enum ,
error: string ,
tagRules:
{
logRules:
{
sendAadLogs: enum ,
sendSubscriptionLogs: enum ,
sendActivityLogs: enum ,
filteringTags:
[
{
name: string ,
value: string ,
action: enum ,
}
,
]
,
}
,
metricRules:
{
sendingMetrics: enum ,
filteringTags:
[
{
name: string ,
value: string ,
action: enum ,
}
,
]
,
}
,
provisioningState: enum ,
}
,
}
,
]
,
provisioningState: enum ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
operation: enum ,
monitoredSubscriptionList:
[
{
subscriptionId: string ,
status: enum ,
error: string ,
tagRules:
{
logRules:
{
sendAadLogs: enum ,
sendSubscriptionLogs: enum ,
sendActivityLogs: enum ,
filteringTags:
[
{
name: string ,
value: string ,
action: enum ,
}
,
]
,
}
,
metricRules:
{
sendingMetrics: enum ,
filteringTags:
[
{
name: string ,
value: string ,
action: enum ,
}
,
]
,
}
,
provisioningState: enum ,
}
,
}
,
]
,
provisioningState: enum ,
}
,
}

⚐ Response (201)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
properties:
{
operation: enum ,
monitoredSubscriptionList:
[
{
subscriptionId: string ,
status: enum ,
error: string ,
tagRules:
{
logRules:
{
sendAadLogs: enum ,
sendSubscriptionLogs: enum ,
sendActivityLogs: enum ,
filteringTags:
[
{
name: string ,
value: string ,
action: enum ,
}
,
]
,
}
,
metricRules:
{
sendingMetrics: enum ,
filteringTags:
[
{
name: string ,
value: string ,
action: enum ,
}
,
]
,
}
,
provisioningState: enum ,
}
,
}
,
]
,
provisioningState: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}