Share via


AvsPrivateCloudClusterResource.GetAvsHostAsync Method

Definition

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
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.AvsHostResource>> GetAvsHostAsync(string hostId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAvsHostAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.AvsHostResource>>
override this.GetAvsHostAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.AvsHostResource>>
Public Overridable Function GetAvsHostAsync (hostId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AvsHostResource))

Parameters

hostId
String

The host identifier.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

hostId is null.

hostId is an empty string, and was expected to be non-empty.

Applies to