Document Models - Copy Model To
ターゲット リソース、リージョン、および modelId にドキュメント モデルをコピーします。
POST {endpoint}/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
endpoint
|
path | True |
string |
ドキュメント インテリジェンス サービス エンドポイント。 |
model
|
path | True |
string |
一意のドキュメント モデル名。 Regex pattern: |
api-version
|
query | True |
string |
この操作に使用する API バージョン。 |
要求本文
名前 | 必須 | 型 | 説明 |
---|---|---|---|
accessToken | True |
string |
要求の承認に使用されるトークン。 |
expirationDateTime | True |
string |
アクセス トークンの有効期限が切れる日付/時刻。 |
targetModelId | True |
string |
ターゲット ドキュメント モデルの識別子。 |
targetModelLocation | True |
string |
ターゲット アカウントでコピーしたドキュメント モデルの URL。 |
targetResourceId | True |
string |
ドキュメント モデルのコピー先となるターゲット Azure リソースの ID。 |
targetResourceRegion | True |
string |
ドキュメント モデルのコピー先となるターゲット Azure リソースの場所。 |
応答
名前 | 型 | 説明 |
---|---|---|
202 Accepted |
要求は処理に対して受け入れ済みですが、処理はまだ完了していません。 Headers
|
|
Other Status Codes |
予期しないエラー応答。 |
セキュリティ
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
OAuth2Auth
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Token URL:
https://login.microsoftonline.com/common/oauth2/token
Scopes
名前 | 説明 |
---|---|
https://cognitiveservices.azure.com/.default |
例
Copy Document Model To
Sample Request
POST https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/sourceModel:copyTo?api-version=2024-02-29-preview
{
"targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService",
"targetResourceRegion": "targetResourceRegion",
"targetModelId": "targetModel",
"targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentModels/targetModel",
"accessToken": "accessToken",
"expirationDateTime": "2021-09-23T09:12:54.552Z"
}
Sample Response
Operation-Location: https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-02-29-preview
定義
名前 | 説明 |
---|---|
Copy |
指定したターゲット リソースと modelId にドキュメント モデルをコピーするための承認。 |
Error |
error オブジェクト。 |
Error |
エラー応答オブジェクト。 |
Inner |
エラーに関するより具体的な情報を含むオブジェクト。 |
CopyAuthorization
指定したターゲット リソースと modelId にドキュメント モデルをコピーするための承認。
名前 | 型 | 説明 |
---|---|---|
accessToken |
string |
要求の承認に使用されるトークン。 |
expirationDateTime |
string |
アクセス トークンの有効期限が切れる日付/時刻。 |
targetModelId |
string |
ターゲット ドキュメント モデルの識別子。 |
targetModelLocation |
string |
ターゲット アカウントでコピーしたドキュメント モデルの URL。 |
targetResourceId |
string |
ドキュメント モデルのコピー先となるターゲット Azure リソースの ID。 |
targetResourceRegion |
string |
ドキュメント モデルのコピー先となるターゲット Azure リソースの場所。 |
Error
error オブジェクト。
名前 | 型 | 説明 |
---|---|---|
code |
string |
サーバー定義のエラー コードのセットの 1 つ。 |
details |
Error[] |
この報告されたエラーの原因となった特定のエラーに関する詳細の配列。 |
innererror |
エラーに関する現在のオブジェクトよりも具体的な情報を含む オブジェクト。 |
|
message |
string |
エラーの人間が判読できる表現。 |
target |
string |
エラーのターゲット。 |
ErrorResponse
エラー応答オブジェクト。
名前 | 型 | 説明 |
---|---|---|
error |
エラー情報。 |
InnerError
エラーに関するより具体的な情報を含むオブジェクト。
名前 | 型 | 説明 |
---|---|---|
code |
string |
サーバー定義のエラー コードのセットの 1 つ。 |
innererror |
内部エラー。 |
|
message |
string |
エラーの人間が判読できる表現。 |