共用方式為


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
String

Name of the resource group to which the resource belongs.

siteName
String

Name of the app.

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