Microsoft.Insights (stable:2016-03-01)

2024/12/05 • 6 deleted methods

AlertRules_CreateOrUpdate (removed)
Description Creates or updates a classic metric alert rule.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
{
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
parameters:
{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}
,
subscriptionId: string ,
}

⚐ Response (default)

{
code: string ,
message: string ,
}

⚐ Response (200)

{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}

⚐ Response (201)

{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}
AlertRules_Delete (removed)
Description Deletes a classic metric alert rule
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
{
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
code: string ,
message: string ,
}
AlertRules_Get (removed)
Description Gets a classic metric alert rule
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
{
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
AlertRules_Update (removed)
Description Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}
{
subscriptionId: string ,
resourceGroupName: string ,
ruleName: string ,
api-version: string ,
alertRulesResource:
{
tags: string ,
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}

⚐ Response (201)

{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
AlertRules_ListByResourceGroup (removed)
Description List the classic metric alert rules within a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
AlertRules_ListBySubscription (removed)
Description List the classic metric alert rules within a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
name: string ,
description: string ,
provisioningState: string ,
isEnabled: boolean ,
condition:
{
odata.type: string ,
dataSource:
{
odata.type: string ,
resourceUri: string ,
legacyResourceId: string ,
resourceLocation: string ,
metricNamespace: string ,
}
,
}
,
action:
{
odata.type: string ,
}
,
actions:
[
{
odata.type: string ,
}
,
]
,
lastUpdatedTime: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}