v1

latestSwagger 2.02026-07-13295146626.9 KB
Recommendations

Gets a list of recommendations associated with the specified web site.

get/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations

Path parameters

resourceGroupNamestring required

Resource group name

siteNamestring required

Site name

subscriptionIdstring required

Subscription Id

Query parameters

featuredboolean

If set, this API returns only the most critical recommendation among the others. Otherwise this API returns all recommendations available

siteSkustring

The name of site SKU.

numSlotsinteger

The number of site slots associated to the site

api-versionstring required

API Version

Response

OK

creationTimestring date-time

Timestamp when this instance was created.

recommendationIdstring

A GUID value that each recommendation object is associated with.

resourceIdstring

Full ARM resource ID string that this recommendation object is associated with.

resourceScopestring

Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.

ruleNamestring

Unique name of the rule

displayNamestring

UI friendly name of the rule (may not be unique)

messagestring

Localized text of recommendation, good for UI.

level'Critical' | 'Warning' | 'Information' | 'NonUrgentSuggestion' required

Level indicating how critical this recommendation can impact.

channels'Notification' | 'Api' | 'Email' | 'All' required

List of channels that this recommendation can apply.

tagsstring[]

The list of category tags that this recommendation belongs to.

actionNamestring

Name of action recommended by this object.

enabledinteger

On/off flag indicating the rule is currently enabled or disabled.

startTimestring date-time

The beginning time of a range that the recommendation refers to.

endTimestring date-time

The end time of a range that the recommendation refers to.

nextNotificationTimestring date-time

When to notify this recommendation next. Null means that this will never be notified anymore.

notificationExpirationTimestring date-time

Date and time when this notification expires.

notifiedTimestring date-time

Last timestamp this instance was actually notified. Null means that this recommendation hasn't been notified yet.

scorenumber double

A metric value measured by the rule.