Microsoft.AlertsManagement (stable:2023-03-01)

2025/10/23 • 6 new, 6 deleted methods

PrometheusRuleGroups_ListBySubscription (new)
Description Retrieve Prometheus all rule group definitions in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/prometheusRuleGroups
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_ListByResourceGroup (new)
Description Retrieve Prometheus rule group definitions in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_Get (new)
Description Retrieve a Prometheus rule group definition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_CreateOrUpdate (new)
Description Create or update a Prometheus rule group definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
parameters:
{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_Update (new)
Description Update an Prometheus rule group definition.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
parameters:
{
tags: object ,
properties:
{
enabled: boolean ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_Delete (new)
Description Delete a Prometheus rule group definition.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_ListBySubscription (removed)
Description Retrieve Prometheus all rule group definitions in a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/prometheusRuleGroups
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_ListByResourceGroup (removed)
Description Retrieve Prometheus rule group definitions in a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_Get (removed)
Description Retrieve a Prometheus rule group definition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_CreateOrUpdate (removed)
Description Create or update a Prometheus rule group definition.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
parameters:
{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_Update (removed)
Description Update an Prometheus rule group definition.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
parameters:
{
tags: object ,
properties:
{
enabled: boolean ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
description: string ,
enabled: boolean ,
clusterName: string ,
scopes:
[
string ,
]
,
interval: string ,
rules:
[
{
record: string ,
alert: string ,
enabled: boolean ,
expression: string ,
labels: object ,
severity: integer ,
for: string ,
annotations: object ,
actions:
[
{
actionGroupId: string ,
actionProperties: object ,
}
,
]
,
resolveConfiguration:
{
autoResolved: boolean ,
timeToResolve: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PrometheusRuleGroups_Delete (removed)
Description Delete a Prometheus rule group definition.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

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