Sdílet prostřednictvím


ExpressRoutePortCollection Class

Definition

A class representing a collection of ExpressRoutePortResource and their operations. Each ExpressRoutePortResource in the collection will belong to the same instance of ResourceGroupResource. To get an ExpressRoutePortCollection instance call the GetExpressRoutePorts method from an instance of ResourceGroupResource.

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

Constructors

ExpressRoutePortCollection()

Initializes a new instance of the ExpressRoutePortCollection 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

CreateOrUpdate(WaitUntil, String, ExpressRoutePortData, CancellationToken)

Creates or updates the specified ExpressRoutePort resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
CreateOrUpdateAsync(WaitUntil, String, ExpressRoutePortData, CancellationToken)

Creates or updates the specified ExpressRoutePort resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_Get
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_Get
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
Get(String, CancellationToken)

Retrieves the requested ExpressRoutePort resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_Get
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
GetAll(CancellationToken)

List all the ExpressRoutePort resources in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts
  • Operation Id: ExpressRoutePorts_ListByResourceGroup
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
GetAllAsync(CancellationToken)

List all the ExpressRoutePort resources in the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts
  • Operation Id: ExpressRoutePorts_ListByResourceGroup
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
GetAsync(String, CancellationToken)

Retrieves the requested ExpressRoutePort resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_Get
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_Get
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_Get
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
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<ExpressRoutePortResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ExpressRoutePortResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to