Share via


IRecommendationsOperations.GetRuleDetailsByHostingEnvironmentWithHttpMessagesAsync Method

Definition

Get a recommendation rule for an app.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.WebSites.Models.RecommendationRule>> GetRuleDetailsByHostingEnvironmentWithHttpMessagesAsync (string resourceGroupName, string hostingEnvironmentName, 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 GetRuleDetailsByHostingEnvironmentWithHttpMessagesAsync : 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 GetRuleDetailsByHostingEnvironmentWithHttpMessagesAsync (resourceGroupName As String, hostingEnvironmentName 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
String

Name of the resource group to which the resource belongs.

hostingEnvironmentName
String

Name of the hosting environment.

name
String

Name of the recommendation.

updateSeen
Nullable<Boolean>

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

recommendationId
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
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

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