/// <summary> /// Deletes specific backend entity of the Api Management service /// instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.ApiManagement.IBackendOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='serviceName'> /// Required. The name of the Api Management service. /// </param> /// <param name='backendid'> /// Required. Identifier of the backend. /// </param> /// <param name='etag'> /// Required. ETag. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IBackendOperations operations, string resourceGroupName, string serviceName, string backendid, string etag) { return(operations.DeleteAsync(resourceGroupName, serviceName, backendid, etag, CancellationToken.None)); }
/// <summary> /// Deletes the specified backend. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='backendId'> /// Identifier of the Backend entity. Must be unique in the current API /// Management service instance. /// </param> /// <param name='ifMatch'> /// ETag of the Entity. ETag should match the current entity state from the /// header response of the GET request or it should be * for unconditional /// update. /// </param> public static void Delete(this IBackendOperations operations, string resourceGroupName, string serviceName, string backendId, string ifMatch) { operations.DeleteAsync(resourceGroupName, serviceName, backendId, ifMatch).GetAwaiter().GetResult(); }