共用方式為


Document Classifiers - Authorize Classifier Copy

使用指定的 classifierId 和選擇性描述,產生將檔案分類器複製到此位置的授權。

POST {endpoint}/documentintelligence/documentClassifiers:authorizeCopy?api-version=2024-07-31-preview

URI 參數

名稱 位於 必要 類型 Description
endpoint
path True

string

uri

Document Intelligence 服務端點。

api-version
query True

string

要用於這項作業的 API 版本。

要求本文

名稱 必要 類型 Description
classifierId True

string

唯一的檔分類器名稱。

description

string

檔分類器描述。

tags

object

與檔案分類器相關聯的索引鍵/值標記屬性清單。

回應

名稱 類型 Description
200 OK

ClassifierCopyAuthorization

要求已成功。

Other Status Codes

ErrorResponse

未預期的錯誤回應。

安全性

Ocp-Apim-Subscription-Key

類型: apiKey
位於: header

OAuth2Auth

類型: oauth2
Flow: accessCode
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize
權杖 URL: https://login.microsoftonline.com/common/oauth2/token

範圍

名稱 Description
https://cognitiveservices.azure.com/.default

範例

Authorize Copy of Document Classifier

範例要求

POST https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers:authorizeCopy?api-version=2024-07-31-preview

{
  "classifierId": "targetClassifier",
  "description": "Target classifier description"
}

範例回覆

{
  "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService",
  "targetResourceRegion": "targetResourceRegion",
  "targetClassifierId": "targetClassifier",
  "targetClassifierLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/targetClassifier",
  "accessToken": "accessToken",
  "expirationDateTime": "2021-09-23T09:12:54.552Z"
}

定義

名稱 Description
AuthorizeClassifierCopyRequest

要求本文以授權文件分類器複本。

ClassifierCopyAuthorization

將檔案分類器複製到指定的目標資源和分類器Id的授權。

Error

error 物件。

ErrorResponse

錯誤回應物件。

InnerError

物件,包含有關錯誤的更特定資訊。

AuthorizeClassifierCopyRequest

要求本文以授權文件分類器複本。

名稱 類型 Description
classifierId

string

唯一的檔分類器名稱。

description

string

檔分類器描述。

tags

object

與檔案分類器相關聯的索引鍵/值標記屬性清單。

ClassifierCopyAuthorization

將檔案分類器複製到指定的目標資源和分類器Id的授權。

名稱 類型 Description
accessToken

string

用來授權要求的令牌。

expirationDateTime

string

存取令牌到期的日期/時間。

targetClassifierId

string

目標檔分類器的識別碼。

targetClassifierLocation

string

目標帳戶中複製之文件分類器的URL。

targetResourceId

string

應將檔分類器複製到的目標 Azure 資源識別碼。

targetResourceRegion

string

應將檔分類器複製到的目標 Azure 資源位置。

Error

error 物件。

名稱 類型 Description
code

string

其中一組伺服器定義的錯誤碼。

details

Error[]

導致此錯誤之特定錯誤的詳細數據陣列。

innererror

InnerError

物件,包含與目前對象有關錯誤更具體的資訊。

message

string

錯誤的人類可讀取表示法。

target

string

錯誤的目標。

ErrorResponse

錯誤回應物件。

名稱 類型 Description
error

Error

錯誤資訊。

InnerError

物件,包含有關錯誤的更特定資訊。

名稱 類型 Description
code

string

其中一組伺服器定義的錯誤碼。

innererror

InnerError

內部錯誤。

message

string

錯誤的人類可讀取表示法。