Delen via


DedicatedHostCollection Class

Definition

A class representing a collection of DedicatedHostResource and their operations. Each DedicatedHostResource in the collection will belong to the same instance of DedicatedHostGroupResource. To get a DedicatedHostCollection instance call the GetDedicatedHosts method from an instance of DedicatedHostGroupResource.

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

Constructors

DedicatedHostCollection()

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

Create or update a dedicated host .

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
CreateOrUpdateAsync(WaitUntil, String, DedicatedHostData, CancellationToken)

Create or update a dedicated host .

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
Exists(String, Nullable<InstanceViewType>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
ExistsAsync(String, Nullable<InstanceViewType>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
Get(String, Nullable<InstanceViewType>, CancellationToken)

Retrieves information about a dedicated host.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
GetAll(CancellationToken)

Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts
  • Operation Id: DedicatedHosts_ListByHostGroup
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
GetAllAsync(CancellationToken)

Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts
  • Operation Id: DedicatedHosts_ListByHostGroup
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
GetAsync(String, Nullable<InstanceViewType>, CancellationToken)

Retrieves information about a dedicated host.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
GetIfExists(String, Nullable<InstanceViewType>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
GetIfExistsAsync(String, Nullable<InstanceViewType>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}
  • Operation Id: DedicatedHosts_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostResource
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<DedicatedHostResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DedicatedHostResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to