FormTrainingClient.GetCopyAuthorization 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.
Generate authorization for copying a custom model into the target Form Recognizer resource.
public virtual Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization> GetCopyAuthorization (string resourceId, string resourceRegion, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCopyAuthorization : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>
override this.GetCopyAuthorization : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.FormRecognizer.Training.CopyAuthorization>
Public Overridable Function GetCopyAuthorization (resourceId As String, resourceRegion As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CopyAuthorization)
Parameters
- resourceId
- 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
- 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
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
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
Azure SDK for .NET