共用方式為


VirtualRouterCollection Class

Definition

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

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

Constructors

VirtualRouterCollection()

Initializes a new instance of the VirtualRouterCollection 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, VirtualRouterData, CancellationToken)

Creates or updates the specified Virtual Router.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}
  • Operation Id: VirtualRouters_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
CreateOrUpdateAsync(WaitUntil, String, VirtualRouterData, CancellationToken)

Creates or updates the specified Virtual Router.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}
  • Operation Id: VirtualRouters_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}
  • Operation Id: VirtualRouters_Get
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}
  • Operation Id: VirtualRouters_Get
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
Get(String, String, CancellationToken)

Gets the specified Virtual Router.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}
  • Operation Id: VirtualRouters_Get
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
GetAll(CancellationToken)

Lists all Virtual Routers in a resource group.

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

Lists all Virtual Routers in a resource group.

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

Gets the specified Virtual Router.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}
  • Operation Id: VirtualRouters_Get
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}
  • Operation Id: VirtualRouters_Get
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

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

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<VirtualRouterResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to