次の方法で共有


Document Models - Copy Model To

ターゲット リソース、リージョン、および modelId にドキュメント モデルをコピーします。

POST {endpoint}/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-11-30

URI パラメーター

名前 / 必須 説明
endpoint
path True

string

uri

ドキュメント インテリジェンス サービス エンドポイント。

modelId
path True

string

一意のドキュメント モデル名。

正規表現パターン: ^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$

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

要求は処理のために受け入れ済みですが、処理はまだ完了していません。

ヘッダー

  • Operation-Location: string
  • Retry-After: integer
Other Status Codes

DocumentIntelligenceErrorResponse

予期しないエラー応答。

セキュリティ

Ocp-Apim-Subscription-Key

型: apiKey
/: header

OAuth2Auth

型: oauth2
フロー: accessCode
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize
Token URL (トークン URL): https://login.microsoftonline.com/common/oauth2/token

スコープ

名前 説明
https://cognitiveservices.azure.com/.default

Copy Document Model To

要求のサンプル

POST https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/sourceModel:copyTo?api-version=2024-11-30

{
  "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"
}

応答のサンプル

Operation-Location: https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30

定義

名前 説明
DocumentIntelligenceError

エラー オブジェクト。

DocumentIntelligenceErrorResponse

エラー応答オブジェクト。

DocumentIntelligenceInnerError

エラーに関するより具体的な情報を含むオブジェクト。

ModelCopyAuthorization

指定したターゲット リソースと modelId にドキュメント モデルをコピーするための承認。

DocumentIntelligenceError

エラー オブジェクト。

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

details

DocumentIntelligenceError[]

この報告されたエラーの原因となった特定のエラーに関する詳細の配列。

innererror

DocumentIntelligenceInnerError

エラーに関する現在のオブジェクトよりも具体的な情報を含むオブジェクト。

message

string

エラーの人間が判読できる表現。

target

string

エラーのターゲット。

DocumentIntelligenceErrorResponse

エラー応答オブジェクト。

名前 説明
error

DocumentIntelligenceError

エラー情報。

DocumentIntelligenceInnerError

エラーに関するより具体的な情報を含むオブジェクト。

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

innererror

DocumentIntelligenceInnerError

内部エラー。

message

string

エラーの人間が判読できる表現。

ModelCopyAuthorization

指定したターゲット リソースと modelId にドキュメント モデルをコピーするための承認。

名前 説明
accessToken

string

要求の承認に使用されるトークン。

expirationDateTime

string

アクセス トークンの有効期限が切れる日付/時刻。

targetModelId

string

ターゲット ドキュメント モデルの識別子。

targetModelLocation

string

コピー先アカウント内のコピーされたドキュメント モデルの URL。

targetResourceId

string

ドキュメント モデルのコピー先となるターゲット Azure リソースの ID。

targetResourceRegion

string

ドキュメント モデルのコピー先となるターゲット Azure リソースの場所。