IRecommendationsOperations.GetRuleDetailsByWebAppWithHttpMessagesAsync Method

Definition

Get a recommendation rule for an app.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.WebSites.Models.RecommendationRule>> GetRuleDetailsByWebAppWithHttpMessagesAsync (string resourceGroupName, string siteName, string name, bool? updateSeen = default, string recommendationId = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRuleDetailsByWebAppWithHttpMessagesAsync : string * string * string * Nullable<bool> * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.WebSites.Models.RecommendationRule>>
Public Function GetRuleDetailsByWebAppWithHttpMessagesAsync (resourceGroupName As String, siteName As String, name As String, Optional updateSeen As Nullable(Of Boolean) = Nothing, Optional recommendationId As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of RecommendationRule))

Parameters

resourceGroupName
System.String

Name of the resource group to which the resource belongs.

siteName
System.String

Name of the app.

name
System.String

Name of the recommendation.

updateSeen
System.Nullable<System.Boolean>

Specify <code>true</code> to update the last-seen timestamp of the recommendation object.

recommendationId
System.String

The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry.

customHeaders
System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.List<System.String>>

The headers that will be added to request.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<AzureOperationResponse<RecommendationRule>>

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Remarks

Description for Get a recommendation rule for an app.

Applies to