Skip to content

Commit 1929f46

Browse files
authored
Update disaster-recovery.md
1 parent 25e2b78 commit 1929f46

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/ai-services/document-intelligence/disaster-recovery.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: azure-ai-document-intelligence
88
ms.custom:
99
- ignite-2023
1010
ms.topic: how-to
11-
ms.date: 03/06/2024
11+
ms.date: 04/17/2024
1212
ms.author: lajanuar
1313
---
1414

@@ -65,7 +65,7 @@ The process for copying a custom model consists of the following steps:
6565
The following HTTP request gets copy authorization from your target resource. You need to enter the endpoint and key of your target resource as headers.
6666

6767
```http
68-
POST https://<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
68+
POST https://<your-resource-endpoint>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
6969
Ocp-Apim-Subscription-Key: {<your-key>}
7070
```
7171

@@ -96,7 +96,7 @@ You receive a `200` response code with response body that contains the JSON payl
9696
The following HTTP request starts the copy operation on the source resource. You need to enter the endpoint and key of your source resource as the url and header. Notice that the request URL contains the model ID of the source model you want to copy.
9797

9898
```http
99-
POST https://<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
99+
POST https://<your-resource-endpoint>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview
100100
Ocp-Apim-Subscription-Key: {<your-key>}
101101
```
102102

@@ -117,7 +117,7 @@ You receive a `202\Accepted` response with an Operation-Location header. This va
117117

118118
```http
119119
HTTP/1.1 202 Accepted
120-
Operation-Location: https://<your-resource-name>.cognitiveservices.azure.com/documentintelligence/operations/{operation-id}?api-version=2024-02-29-preview
120+
Operation-Location: https://<your-resource-endpoint>.cognitiveservices.azure.com/documentintelligence/operations/{operation-id}?api-version=2024-02-29-preview
121121
```
122122

123123
> [!NOTE]
@@ -126,7 +126,7 @@ Operation-Location: https://<your-resource-name>.cognitiveservices.azure.com/doc
126126
## Track Copy progress
127127

128128
```console
129-
GET https://<your-resource-name>.cognitiveservices.azure.com/documentintelligence/operations/{<operation-id>}?api-version=2024-02-29-preview
129+
GET https://<your-resource-endpoint>.cognitiveservices.azure.com/documentintelligence/operations/{<operation-id>}?api-version=2024-02-29-preview
130130
Ocp-Apim-Subscription-Key: {<your-key>}
131131
```
132132

@@ -135,7 +135,7 @@ Ocp-Apim-Subscription-Key: {<your-key>}
135135
You can also use the **[Get model](/rest/api/aiservices/document-models/get-model?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP)** API to track the status of the operation by querying the target model. Call the API using the target model ID that you copied down from the [Generate Copy authorization request](#generate-copy-authorization-request) response.
136136

137137
```http
138-
GET https://<your-resource-name>/documentintelligence/documentModels/{modelId}?api-version=2024-02-29-preview" -H "Ocp-Apim-Subscription-Key: <your-key>
138+
GET https://<your-resource-endpoint>/documentintelligence/documentModels/{modelId}?api-version=2024-02-29-preview" -H "Ocp-Apim-Subscription-Key: <your-key>
139139
```
140140

141141
In the response body, you see information about the model. Check the `"status"` field for the status of the model.
@@ -155,7 +155,7 @@ The following code snippets use cURL to make API calls. You also need to fill in
155155
**Request**
156156

157157
```bash
158-
curl -i -X POST "<your-resource-name>/documentintelligence/documentModels:authorizeCopy?api-version=2024-02-29-preview"
158+
curl -i -X POST "<your-resource-endpoint>/documentintelligence/documentModels:authorizeCopy?api-version=2024-02-29-preview"
159159
-H "Content-Type: application/json"
160160
-H "Ocp-Apim-Subscription-Key: <YOUR-KEY>"
161161
--data-ascii "{
@@ -182,7 +182,7 @@ curl -i -X POST "<your-resource-name>/documentintelligence/documentModels:author
182182
**Request**
183183

184184
```bash
185-
curl -i -X POST "<your-resource-name>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview"
185+
curl -i -X POST "<your-resource-endpoint>/documentintelligence/documentModels/{modelId}:copyTo?api-version=2024-02-29-preview"
186186
-H "Content-Type: application/json"
187187
-H "Ocp-Apim-Subscription-Key: <YOUR-KEY>"
188188
--data-ascii "{
@@ -200,7 +200,7 @@ curl -i -X POST "<your-resource-name>/documentintelligence/documentModels/{model
200200

201201
```http
202202
HTTP/1.1 202 Accepted
203-
Operation-Location: https://<your-resource-name>.cognitiveservices.azure.com/documentintelligence/operations/{operation-id}?api-version=2024-02-29-preview
203+
Operation-Location: https://<your-resource-endpoint>.cognitiveservices.azure.com/documentintelligence/operations/{operation-id}?api-version=2024-02-29-preview
204204
```
205205

206206
### Track copy operation progress

0 commit comments

Comments
 (0)