IWebAppsOperations.RestartWithHttpMessagesAsync(String, String, Nullable<Boolean>, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Restarts an app (or deployment slot, if specified).

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> RestartWithHttpMessagesAsync (string resourceGroupName, string name, Nullable<bool> softRestart = null, Nullable<bool> synchronous = null, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member RestartWithHttpMessagesAsync : string * string * Nullable<bool> * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>

Parameters

resourceGroupName
System.String

Name of the resource group to which the resource belongs.

name
System.String

Name of the app.

softRestart
System.Nullable<System.Boolean>

Specify true to apply the configuration settings and restarts the app only if necessary. By default, the API always restarts and reprovisions the app.

synchronous
System.Nullable<System.Boolean>

Specify true to block until the app is restarted. By default, it is set to false, and the API responds immediately (asynchronous).

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<Microsoft.Rest.Azure.AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

Remarks

Restarts an app (or deployment slot, if specified).

Applies to