Document Models - Copy Model To
A dokumentummodellt a célerőforrásba, régióba és modelId-be másolja.
POST {endpoint}/formrecognizer/documentModels/{modelId}:copyTo?api-version=2023-07-31
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
endpoint
|
path | True |
string url |
Támogatott Cognitive Services-végpontok (protokoll és állomásnév, például: https://westus2.api.cognitive.microsoft.com). |
model
|
path | True |
string |
Egyedi dokumentummodell neve. Regex pattern: |
api-version
|
query | True |
string |
Kért API-verzió. |
Kérelem fejléce
Name | Kötelező | Típus | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Az Azure Cognitive Services-előfizetés titkos kulcsa. |
Kérelem törzse
Name | Kötelező | Típus | Description |
---|---|---|---|
accessToken | True |
string |
A kérés engedélyezéséhez használt jogkivonat. |
expirationDateTime | True |
string |
A hozzáférési jogkivonat lejáratának dátuma/időpontja. |
targetModelId | True |
string |
A céldokumentum-modell azonosítója. |
targetModelLocation | True |
string |
A másolt dokumentummodell URL-címe a célfiókban. |
targetResourceId | True |
string |
Annak a cél Azure-erőforrásnak az azonosítója, ahová a dokumentummodellt át kell másolni. |
targetResourceRegion | True |
string |
Annak a cél Azure-erőforrásnak a helye, ahová a dokumentummodellt át kell másolni. |
Válaszok
Name | Típus | Description |
---|---|---|
202 Accepted |
A kérés sikeresen várólistára van helyezve. Headers Operation-Location: string |
|
Other Status Codes |
Hiba történt. |
Biztonság
Ocp-Apim-Subscription-Key
Az Azure Cognitive Services-előfizetés titkos kulcsa.
Type:
apiKey
In:
header
Példák
Copy Document Model To
Sample Request
POST https://myendpoint.cognitiveservices.azure.com/formrecognizer/documentModels/sourceModel:copyTo?api-version=2023-07-31
{
"targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService",
"targetResourceRegion": "targetResourceRegion",
"targetModelId": "targetModel",
"targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/formrecognizer/documentModels/targetModel",
"accessToken": "accessToken",
"expirationDateTime": "2021-09-23T09:12:54.552Z"
}
Sample Response
Operation-Location: https://myendpoint.cognitiveservices.azure.com/formrecognizer/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2023-07-31
Definíciók
Name | Description |
---|---|
Copy |
Dokumentummodell másolásának engedélyezése a megadott célerőforrásba és modelId-be. |
Error |
Hibainformáció. |
Error |
Hibaválasz-objektum. |
Inner |
Részletes hiba. |
CopyAuthorization
Dokumentummodell másolásának engedélyezése a megadott célerőforrásba és modelId-be.
Name | Típus | Description |
---|---|---|
accessToken |
string |
A kérés engedélyezéséhez használt jogkivonat. |
expirationDateTime |
string |
A hozzáférési jogkivonat lejáratának dátuma/időpontja. |
targetModelId |
string |
A céldokumentum-modell azonosítója. |
targetModelLocation |
string |
A másolt dokumentummodell URL-címe a célfiókban. |
targetResourceId |
string |
Annak a cél Azure-erőforrásnak az azonosítója, ahová a dokumentummodellt át kell másolni. |
targetResourceRegion |
string |
Annak a cél Azure-erőforrásnak a helye, ahová a dokumentummodellt át kell másolni. |
Error
Hibainformáció.
Name | Típus | Description |
---|---|---|
code |
string |
Hibakód. |
details |
Error[] |
Részletes hibák listája. |
innererror |
Részletes hiba. |
|
message |
string |
Hibaüzenet. |
target |
string |
A hiba célja. |
ErrorResponse
Hibaválasz-objektum.
Name | Típus | Description |
---|---|---|
error |
Hibainformáció. |
InnerError
Részletes hiba.
Name | Típus | Description |
---|---|---|
code |
string |
Hibakód. |
innererror |
Részletes hiba. |
|
message |
string |
Hibaüzenet. |