NetworkExtensions.GetExpressRouteCrossConnections 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.
Overloads
GetExpressRouteCrossConnections(SubscriptionResource, String, CancellationToken) |
Retrieves all the ExpressRouteCrossConnections in a subscription.
|
GetExpressRouteCrossConnections(ResourceGroupResource) |
Gets a collection of ExpressRouteCrossConnectionResources in the ResourceGroupResource. MockingTo mock this method, please mock GetExpressRouteCrossConnections() instead. |
GetExpressRouteCrossConnections(SubscriptionResource, String, CancellationToken)
- Source:
- NetworkExtensions.cs
Retrieves all the ExpressRouteCrossConnections in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections
- Operation Id: ExpressRouteCrossConnections_List
- Default Api Version: 2024-03-01
- Resource: ExpressRouteCrossConnectionResource
public static Azure.Pageable<Azure.ResourceManager.Network.ExpressRouteCrossConnectionResource> GetExpressRouteCrossConnections (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetExpressRouteCrossConnections : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.ExpressRouteCrossConnectionResource>
<Extension()>
Public Function GetExpressRouteCrossConnections (subscriptionResource As SubscriptionResource, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ExpressRouteCrossConnectionResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- filter
- String
The filter to apply on the operation. For example, you can use $filter=name eq '{circuitServiceKey}'.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ExpressRouteCrossConnectionResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
GetExpressRouteCrossConnections(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of ExpressRouteCrossConnectionResources in the ResourceGroupResource. MockingTo mock this method, please mock GetExpressRouteCrossConnections() instead.
public static Azure.ResourceManager.Network.ExpressRouteCrossConnectionCollection GetExpressRouteCrossConnections (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetExpressRouteCrossConnections : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.ExpressRouteCrossConnectionCollection
<Extension()>
Public Function GetExpressRouteCrossConnections (resourceGroupResource As ResourceGroupResource) As ExpressRouteCrossConnectionCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of ExpressRouteCrossConnectionResources and their operations over a ExpressRouteCrossConnectionResource.
Exceptions
resourceGroupResource
is null.