AppServicePlanVirtualNetworkConnectionResource.GetRoutesForVnetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Description for Get all routes that are associated with a Virtual Network in an App Service plan.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/routes
- Operation Id: AppServicePlans_ListRoutesForVnet
- Default Api Version: 2024-04-01
- Resource: AppServicePlanVirtualNetworkConnectionResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkRoute> GetRoutesForVnetAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoutesForVnetAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkRoute>
override this.GetRoutesForVnetAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceVirtualNetworkRoute>
Public Overridable Function GetRoutesForVnetAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AppServiceVirtualNetworkRoute)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of AppServiceVirtualNetworkRoute that may take multiple service requests to iterate over.