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


MigrationAssessmentHyperVCollectorCollection.GetAsync Method

Definition

Get a HypervCollector

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/hypervcollectors/{hypervCollectorName}
  • Operation Id: HypervCollectorsOperations_Get
  • Default Api Version: 2023-03-15
  • Resource: MigrationAssessmentHyperVCollectorResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorResource>> GetAsync(string hyperVCollectorName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentHyperVCollectorResource>>
Public Overridable Function GetAsync (hyperVCollectorName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MigrationAssessmentHyperVCollectorResource))

Parameters

hyperVCollectorName
String

Hyper-V collector ARM name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

hyperVCollectorName is null.

Applies to