WebSiteManagementClient.ValidateWithHttpMessagesAsync(String, ValidateRequestInner, Dictionary<String,List<String>>, CancellationToken) Method
Definition
Validate if a resource can be created.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ValidateResponseInner>> ValidateWithHttpMessagesAsync (string resourceGroupName, Microsoft.Azure.Management.AppService.Fluent.Models.ValidateRequestInner validateRequest, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ValidateWithHttpMessagesAsync : string * Microsoft.Azure.Management.AppService.Fluent.Models.ValidateRequestInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ValidateResponseInner>>
override this.ValidateWithHttpMessagesAsync : string * Microsoft.Azure.Management.AppService.Fluent.Models.ValidateRequestInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.AppService.Fluent.Models.ValidateResponseInner>>
Parameters
- resourceGroupName
- String
Name of the resource group to which the resource belongs.
- validateRequest
- ValidateRequestInner
Request with the resources to validate.
- customHeaders
- Dictionary<String,List<String>>
Headers that will be added to request.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
- Task<Microsoft.Rest.Azure.AzureOperationResponse<ValidateResponseInner>>
Implements
Exceptions
Microsoft.Rest.Azure.CloudException
Thrown when the operation returned an invalid status code
Microsoft.Rest.SerializationException
Thrown when unable to deserialize the response
Microsoft.Rest.ValidationException
Thrown when a required parameter is null
Thrown when a required parameter is null
Remarks
Validate if a resource can be created.