Share via


ExpressRoutePortsLocationCollection Class

Definition

A class representing a collection of ExpressRoutePortsLocationResource and their operations. Each ExpressRoutePortsLocationResource in the collection will belong to the same instance of SubscriptionResource. To get an ExpressRoutePortsLocationCollection instance call the GetExpressRoutePortsLocations method from an instance of SubscriptionResource.

public class ExpressRoutePortsLocationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Network.ExpressRoutePortsLocationResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.ExpressRoutePortsLocationResource>
type ExpressRoutePortsLocationCollection = class
    inherit ArmCollection
    interface seq<ExpressRoutePortsLocationResource>
    interface IEnumerable
    interface IAsyncEnumerable<ExpressRoutePortsLocationResource>
Public Class ExpressRoutePortsLocationCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of ExpressRoutePortsLocationResource), IEnumerable(Of ExpressRoutePortsLocationResource)
Inheritance
ExpressRoutePortsLocationCollection
Implements

Constructors

ExpressRoutePortsLocationCollection()

Initializes a new instance of the ExpressRoutePortsLocationCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}
  • Operation Id: ExpressRoutePortsLocations_Get
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}
  • Operation Id: ExpressRoutePortsLocations_Get
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
Get(String, CancellationToken)

Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}
  • Operation Id: ExpressRoutePortsLocations_Get
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
GetAll(CancellationToken)

Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. Available bandwidths can only be obtained when retrieving a specific peering location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations
  • Operation Id: ExpressRoutePortsLocations_List
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
GetAllAsync(CancellationToken)

Retrieves all ExpressRoutePort peering locations. Does not return available bandwidths for each location. Available bandwidths can only be obtained when retrieving a specific peering location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations
  • Operation Id: ExpressRoutePortsLocations_List
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
GetAsync(String, CancellationToken)

Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}
  • Operation Id: ExpressRoutePortsLocations_Get
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}
  • Operation Id: ExpressRoutePortsLocations_Get
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}
  • Operation Id: ExpressRoutePortsLocations_Get
  • Default Api Version: 2023-09-01
  • Resource: ExpressRoutePortsLocationResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<ExpressRoutePortsLocationResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ExpressRoutePortsLocationResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to