Поделиться через


AvsHostCollection Class

Definition

A class representing a collection of AvsHostResource and their operations. Each AvsHostResource in the collection will belong to the same instance of AvsPrivateCloudClusterResource. To get an AvsHostCollection instance call the GetAvsHosts method from an instance of AvsPrivateCloudClusterResource.

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

Constructors

AvsHostCollection()

Initializes a new instance of the AvsHostCollection 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.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts/{hostId}
  • Operation Id: Host_Get
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts/{hostId}
  • Operation Id: Host_Get
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
Get(String, CancellationToken)

Get a Host

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts/{hostId}
  • Operation Id: Host_Get
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
GetAll(CancellationToken)

List Host resources by Cluster

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts
  • Operation Id: Host_List
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
GetAllAsync(CancellationToken)

List Host resources by Cluster

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts
  • Operation Id: Host_List
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
GetAsync(String, CancellationToken)

Get a Host

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts/{hostId}
  • Operation Id: Host_Get
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts/{hostId}
  • Operation Id: Host_Get
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/hosts/{hostId}
  • Operation Id: Host_Get
  • Default Api Version: 2024-09-01
  • Resource: AvsHostResource
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<AvsHostResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<AvsHostResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to