Skip to content

Commit 8a63c31

Browse files
authored
Merge pull request #191444 from dlepow/fr
[APIM Update policy tutorial for form-based editor
2 parents 891894a + 49aef23 commit 8a63c31

12 files changed

+39
-33
lines changed

articles/api-management/api-management-advanced-policies.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ This policy can be used in the following policy [sections](./api-management-howt
144144

145145
The `forward-request` policy forwards the incoming request to the backend service specified in the request [context](api-management-policy-expressions.md#ContextVariables). The backend service URL is specified in the API [settings](./import-and-publish.md) and can be changed using the [set backend service](api-management-transformation-policies.md) policy.
146146

147-
> [!NOTE]
148-
> Removing this policy results in the request not being forwarded to the backend service and the policies in the outbound section are evaluated immediately upon the successful completion of the policies in the inbound section.
147+
> [!IMPORTANT]
148+
> * This policy is required to forward requests to an API backend. By default, API Management sets up this policy at the global scope.
149+
> * Removing this policy results in the request not being forwarded to the backend service. Policies in the outbound section are evaluated immediately upon the successful completion of the policies in the inbound section.
149150
150151
[!INCLUDE [api-management-policy-generic-alert](../../includes/api-management-policy-generic-alert.md)]
151152

@@ -250,9 +251,9 @@ This operation level policy does not forward requests to the backend service.
250251
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |
251252
| timeout="integer" | The amount of time in seconds to wait for the HTTP response headers to be returned by the backend service before a timeout error is raised. Minimum value is 0 seconds. Values greater than 240 seconds may not be honored as the underlying network infrastructure can drop idle connections after this time. | No | None |
252253
| follow-redirects="false | true" | Specifies whether redirects from the backend service are followed by the gateway or returned to the caller. | No | false |
253-
| buffer-request-body="false | true" | When set to "true" request is buffered and will be reused on [retry](api-management-advanced-policies.md#Retry). | No | false |
254-
| buffer-response="false &#124; true" | Affects processing of chunked responses. When set to "false", each chunk received from the backend is immediately returned to the caller. When set to "true", chunks are buffered (8KB, unless end of stream is detected) and only then returned to the caller.<br/><br/>Set to "false" with backends such as those implementing [server-sent events (SSE)](how-to-server-sent-events.md) that require content to be returned or streamed immediately to the caller. | No | true |
255-
| fail-on-error-status-code="false &#124; true" | When set to true triggers [on-error](api-management-error-handling-policies.md) section for response codes in the range from 400 to 599 inclusive. | No | false |
254+
| buffer-request-body="false &#124; true" | When set to "true", request is buffered and will be reused on [retry](api-management-advanced-policies.md#Retry). | No | false |
255+
| buffer-response="false &#124; true" | Affects processing of chunked responses. When set to "false", each chunk received from the backend is immediately returned to the caller. When set to "true", chunks are buffered (8 KB, unless end of stream is detected) and only then returned to the caller.<br/><br/>Set to "false" with backends such as those implementing [server-sent events (SSE)](how-to-server-sent-events.md) that require content to be returned or streamed immediately to the caller. | No | true |
256+
| fail-on-error-status-code="false &#124; true" | When set to true, triggers [on-error](api-management-error-handling-policies.md) section for response codes in the range from 400 to 599 inclusive. | No | false |
256257

257258
### Usage
258259

@@ -263,7 +264,7 @@ This policy can be used in the following policy [sections](./api-management-howt
263264

264265
## <a name="LimitConcurrency"></a> Limit concurrency
265266

266-
The `limit-concurrency` policy prevents enclosed policies from executing by more than the specified number of requests at any time. Upon exceeding that number, new requests will fail immediately with the `429` Too Many Requests status code.
267+
The `limit-concurrency` policy prevents enclosed policies from executing by more than the specified number of requests at any time. When that number is exceeded, new requests will fail immediately with the `429` Too Many Requests status code.
267268

268269
[!INCLUDE [api-management-policy-generic-alert](../../includes/api-management-policy-generic-alert.md)]
269270

@@ -559,7 +560,7 @@ In the following example, request forwarding is retried up to ten times using an
559560
560561
### Usage
561562

562-
This policy can be used in the following policy [sections](./api-management-howto-policies.md#sections) and [scopes](./api-management-howto-policies.md#scopes) . Note that child policy usage restrictions will be inherited by this policy.
563+
This policy can be used in the following policy [sections](./api-management-howto-policies.md#sections) and [scopes](./api-management-howto-policies.md#scopes). Child policy usage restrictions will be inherited by this policy.
563564

564565
- **Policy sections:** inbound, outbound, backend, on-error
565566

@@ -1092,7 +1093,7 @@ The `wait` policy executes its immediate child policies in parallel, and waits f
10921093

10931094
### Example
10941095

1095-
In the following example there are two `choose` policies as immediate child policies of the `wait` policy. Each of these `choose` policies executes in parallel. Each `choose` policy attempts to retrieve a cached value. If there is a cache miss, a backend service is called to provide the value. In this example the `wait` policy does not complete until all of its immediate child policies complete, because the `for` attribute is set to `all`. In this example the context variables (`execute-branch-one`, `value-one`, `execute-branch-two`, and `value-two`) are declared outside of the scope of this example policy.
1096+
In the following example, there are two `choose` policies as immediate child policies of the `wait` policy. Each of these `choose` policies executes in parallel. Each `choose` policy attempts to retrieve a cached value. If there is a cache miss, a backend service is called to provide the value. In this example the `wait` policy does not complete until all of its immediate child policies complete, because the `for` attribute is set to `all`. In this example the context variables (`execute-branch-one`, `value-one`, `execute-branch-two`, and `value-two`) are declared outside of the scope of this example policy.
10961097

10971098
```xml
10981099
<wait for="all">
83.6 KB
Loading
74.5 KB
Loading
60.3 KB
Loading
83.2 KB
Loading
23.3 KB
Loading
-6.34 KB
Loading
-10.8 KB
Loading
152 KB
Loading
150 KB
Loading

0 commit comments

Comments
 (0)