Share via


StandbyVirtualMachineCollection Class

Definition

A class representing a collection of StandbyVirtualMachineResource and their operations. Each StandbyVirtualMachineResource in the collection will belong to the same instance of StandbyVirtualMachinePoolResource. To get a StandbyVirtualMachineCollection instance call the GetStandbyVirtualMachines method from an instance of StandbyVirtualMachinePoolResource.

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

Constructors

StandbyVirtualMachineCollection()

Initializes a new instance of the StandbyVirtualMachineCollection 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}
  • Operation Id: StandbyVirtualMachines_Get
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}
  • Operation Id: StandbyVirtualMachines_Get
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
Get(String, CancellationToken)

Get a StandbyVirtualMachineResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}
  • Operation Id: StandbyVirtualMachines_Get
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
GetAll(CancellationToken)

List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines
  • Operation Id: StandbyVirtualMachineResource_ListByStandbyVirtualMachinePoolResource
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
GetAllAsync(CancellationToken)

List StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines
  • Operation Id: StandbyVirtualMachineResource_ListByStandbyVirtualMachinePoolResource
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
GetAsync(String, CancellationToken)

Get a StandbyVirtualMachineResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}
  • Operation Id: StandbyVirtualMachines_Get
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}
  • Operation Id: StandbyVirtualMachines_Get
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}
  • Operation Id: StandbyVirtualMachines_Get
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachineResource
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<StandbyVirtualMachineResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<StandbyVirtualMachineResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to