Share via


AvsHostCollection.GetAsync(String, CancellationToken) 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>> GetAsync(string hostId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.AvsHostResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Avs.AvsHostResource>>
Public Overridable Function GetAsync (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 an empty string, and was expected to be non-empty.

hostId is null.

Applies to