FormTrainingClient.GetCopyAuthorizationAsync Method

Definition

Generate authorization for copying a custom model into the target Form Recognizer resource.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>> GetCopyAuthorizationAsync (string resourceId, string resourceRegion, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCopyAuthorizationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>>
override this.GetCopyAuthorizationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>>
Public Overridable Function GetCopyAuthorizationAsync (resourceId As String, resourceRegion As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CopyAuthorization))

Parameters

resourceId
System.String

Azure Resource Id of the target Form Recognizer resource where the model will be copied to. This information can be found in the Properties section of the Form Recognizer resource in the Azure Portal.

resourceRegion
System.String

Location of the target Form Recognizer resource. This information can be found in the Keys and Endpoint section of the Form Recognizer resource in the Azure Portal.

cancellationToken
System.Threading.CancellationToken

A System.Threading.CancellationToken controlling the request lifetime.

Returns

System.Threading.Tasks.Task<Response<CopyAuthorization>>

A Response<T> representing the result of the operation. It can be cast to CopyAuthorization containing the authorization information necessary to copy a custom model into a target Form Recognizer resource.

Applies to