MigrationAssessmentProjectResource.GetMigrationAssessmentPrivateLinkResourceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a PrivateLinkResource
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/privateLinkResources/{privateLinkResourceName}
- Operation Id: PrivateLinkResourceOperations_Get
- Default Api Version: 2023-03-15
- Resource: MigrationAssessmentPrivateLinkResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentPrivateLinkResource>> GetMigrationAssessmentPrivateLinkResourceAsync(string privateLinkResourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMigrationAssessmentPrivateLinkResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentPrivateLinkResource>>
override this.GetMigrationAssessmentPrivateLinkResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Migration.Assessment.MigrationAssessmentPrivateLinkResource>>
Public Overridable Function GetMigrationAssessmentPrivateLinkResourceAsync (privateLinkResourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MigrationAssessmentPrivateLinkResource))
Parameters
- privateLinkResourceName
- String
Private link resource ARM name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
privateLinkResourceName
is null.
privateLinkResourceName
is an empty string, and was expected to be non-empty.