NetworkExtensions.GetExpressRouteProviderPortsAsync 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.
Retrieves all the ExpressRouteProviderPorts in a subscription. <item> Mocking. To mock this method, please mock GetExpressRouteProviderPortsAsync(String, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.Models.ExpressRouteProviderPortListResult>> GetExpressRouteProviderPortsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetExpressRouteProviderPortsAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.Models.ExpressRouteProviderPortListResult>>
<Extension()>
Public Function GetExpressRouteProviderPortsAsync (subscriptionResource As SubscriptionResource, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ExpressRouteProviderPortListResult))
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- filter
- String
The filter to apply on the operation. For example, you can use $filter=location eq '{state}'.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
subscriptionResource is null.