Microsoft.AlertsManagement (preview:2019-05-05)

2025/11/19 • 10 new, 10 deleted methods

ActionRules_ListBySubscription (new)
Description List all action rules of the subscription and given input filters
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/actionRules
{
subscriptionId: string ,
targetResourceGroup: string ,
targetResourceType: string ,
targetResource: string ,
severity: string ,
monitorService: string ,
impactedScope: string ,
description: string ,
alertRuleId: string ,
actionGroup: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
nextLink: string ,
value:
[
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_ListByResourceGroup (new)
Description List all action rules of the subscription, created in given resource group and given input filters
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules
{
subscriptionId: string ,
resourceGroupName: string ,
targetResourceGroup: string ,
targetResourceType: string ,
targetResource: string ,
severity: string ,
monitorService: string ,
impactedScope: string ,
description: string ,
alertRuleId: string ,
actionGroup: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
nextLink: string ,
value:
[
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_GetByName (new)
Description Get a specific action rule
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_CreateUpdate (new)
Description Creates/Updates a specific action rule
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName}
{
subscriptionId: string ,
resourceGroupName: string ,
actionRuleName: string ,
actionRule:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_Delete (new)
Description Deletes a given action rule
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema: boolean ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_Update (new)
Description Update enabled flag and/or tags for the given action rule
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName}
{
subscriptionId: string ,
resourceGroupName: string ,
actionRuleName: string ,
actionRulePatch:
{
properties:
{
status: enum ,
}
,
tags: object ,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_GetAll (new)
Description List all the Smart Groups within a specified subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
{
subscriptionId: string ,
targetResource: string ,
targetResourceGroup: string ,
targetResourceType: string ,
monitorService: string ,
monitorCondition: string ,
severity: string ,
smartGroupState: string ,
timeRange: string ,
pageCount: integer ,
sortBy: string ,
sortOrder: string ,
api-version: string ,
}

⚐ Response (200)

{
nextLink: string ,
value:
[
{
properties:
{
alertsCount: integer ,
smartGroupState: enum ,
severity: enum ,
startDateTime: string ,
lastModifiedDateTime: string ,
lastModifiedUserName: string ,
resources:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceTypes:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceGroups:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorServices:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorConditions:
[
{
name: string ,
count: integer ,
}
,
]
,
alertStates:
[
{
name: string ,
count: integer ,
}
,
]
,
alertSeverities:
[
{
name: string ,
count: integer ,
}
,
]
,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_GetById (new)
Description Get information related to a specific Smart Group.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
alertsCount: integer ,
smartGroupState: enum ,
severity: enum ,
startDateTime: string ,
lastModifiedDateTime: string ,
lastModifiedUserName: string ,
resources:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceTypes:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceGroups:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorServices:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorConditions:
[
{
name: string ,
count: integer ,
}
,
]
,
alertStates:
[
{
name: string ,
count: integer ,
}
,
]
,
alertSeverities:
[
{
name: string ,
count: integer ,
}
,
]
,
nextLink: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_ChangeState (new)
Description Change the state of a Smart Group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState
{
subscriptionId: string ,
smartGroupId: string ,
api-version: string ,
newState: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
alertsCount: integer ,
smartGroupState: enum ,
severity: enum ,
startDateTime: string ,
lastModifiedDateTime: string ,
lastModifiedUserName: string ,
resources:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceTypes:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceGroups:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorServices:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorConditions:
[
{
name: string ,
count: integer ,
}
,
]
,
alertStates:
[
{
name: string ,
count: integer ,
}
,
]
,
alertSeverities:
[
{
name: string ,
count: integer ,
}
,
]
,
nextLink: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_GetHistory (new)
Description Get the history a smart group, which captures any Smart Group state changes (New/Acknowledged/Closed) .
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
smartGroupId: string ,
modifications:
[
{
modificationEvent: enum ,
oldValue: string ,
newValue: string ,
modifiedAt: string ,
modifiedBy: string ,
comments: string ,
description: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_ListBySubscription (removed)
Description List all action rules of the subscription and given input filters
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/actionRules
{
subscriptionId: string ,
targetResourceGroup: string ,
targetResourceType: string ,
targetResource: string ,
severity: string ,
monitorService: string ,
impactedScope: string ,
description: string ,
alertRuleId: string ,
actionGroup: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
nextLink: string ,
value:
[
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_ListByResourceGroup (removed)
Description List all action rules of the subscription, created in given resource group and given input filters
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules
{
subscriptionId: string ,
resourceGroupName: string ,
targetResourceGroup: string ,
targetResourceType: string ,
targetResource: string ,
severity: string ,
monitorService: string ,
impactedScope: string ,
description: string ,
alertRuleId: string ,
actionGroup: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
nextLink: string ,
value:
[
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_GetByName (removed)
Description Get a specific action rule
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_CreateUpdate (removed)
Description Creates/Updates a specific action rule
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName}
{
subscriptionId: string ,
resourceGroupName: string ,
actionRuleName: string ,
actionRule:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_Delete (removed)
Description Deletes a given action rule
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema: boolean ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
ActionRules_Update (removed)
Description Update enabled flag and/or tags for the given action rule
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName}
{
subscriptionId: string ,
resourceGroupName: string ,
actionRuleName: string ,
actionRulePatch:
{
properties:
{
status: enum ,
}
,
tags: object ,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
scope:
{
scopeType: enum ,
values:
[
string ,
]
,
}
,
conditions:
{
severity:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorService:
{
operator: enum ,
values:
[
string ,
]
,
}
,
monitorCondition:
{
operator: enum ,
values:
[
string ,
]
,
}
,
targetResourceType:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleId:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertRuleName:
{
operator: enum ,
values:
[
string ,
]
,
}
,
description:
{
operator: enum ,
values:
[
string ,
]
,
}
,
alertContext:
{
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
description: string ,
createdAt: string ,
lastModifiedAt: string ,
createdBy: string ,
lastModifiedBy: string ,
status: enum ,
type: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_GetAll (removed)
Description List all the Smart Groups within a specified subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups
{
subscriptionId: string ,
targetResource: string ,
targetResourceGroup: string ,
targetResourceType: string ,
monitorService: string ,
monitorCondition: string ,
severity: string ,
smartGroupState: string ,
timeRange: string ,
pageCount: integer ,
sortBy: string ,
sortOrder: string ,
api-version: string ,
}

⚐ Response (200)

{
nextLink: string ,
value:
[
{
properties:
{
alertsCount: integer ,
smartGroupState: enum ,
severity: enum ,
startDateTime: string ,
lastModifiedDateTime: string ,
lastModifiedUserName: string ,
resources:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceTypes:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceGroups:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorServices:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorConditions:
[
{
name: string ,
count: integer ,
}
,
]
,
alertStates:
[
{
name: string ,
count: integer ,
}
,
]
,
alertSeverities:
[
{
name: string ,
count: integer ,
}
,
]
,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_GetById (removed)
Description Get information related to a specific Smart Group.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
alertsCount: integer ,
smartGroupState: enum ,
severity: enum ,
startDateTime: string ,
lastModifiedDateTime: string ,
lastModifiedUserName: string ,
resources:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceTypes:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceGroups:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorServices:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorConditions:
[
{
name: string ,
count: integer ,
}
,
]
,
alertStates:
[
{
name: string ,
count: integer ,
}
,
]
,
alertSeverities:
[
{
name: string ,
count: integer ,
}
,
]
,
nextLink: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_ChangeState (removed)
Description Change the state of a Smart Group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.AlertsManagement/smartGroups/{smartGroupId}/changeState
{
subscriptionId: string ,
smartGroupId: string ,
api-version: string ,
newState: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-request-id: string ,
}
,
$schema:
{
properties:
{
alertsCount: integer ,
smartGroupState: enum ,
severity: enum ,
startDateTime: string ,
lastModifiedDateTime: string ,
lastModifiedUserName: string ,
resources:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceTypes:
[
{
name: string ,
count: integer ,
}
,
]
,
resourceGroups:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorServices:
[
{
name: string ,
count: integer ,
}
,
]
,
monitorConditions:
[
{
name: string ,
count: integer ,
}
,
]
,
alertStates:
[
{
name: string ,
count: integer ,
}
,
]
,
alertSeverities:
[
{
name: string ,
count: integer ,
}
,
]
,
nextLink: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
SmartGroups_GetHistory (removed)
Description Get the history a smart group, which captures any Smart Group state changes (New/Acknowledged/Closed) .
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
smartGroupId: string ,
modifications:
[
{
modificationEvent: enum ,
oldValue: string ,
newValue: string ,
modifiedAt: string ,
modifiedBy: string ,
comments: string ,
description: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}