Skip to content

Commit e11962b

Browse files
authored
Merge pull request #69090 from vladvino/2019-03-11-backendid
Added information about backend-id
2 parents 05e6ac4 + 8e10c6d commit e11962b

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.workload: mobile
1212
ms.tgt_pltfrm: na
1313
ms.devlang: na
1414
ms.topic: article
15-
ms.date: 11/27/2017
15+
ms.date: 03/11/2019
1616
ms.author: apimpm
1717
---
1818
# API Management transformation policies
@@ -203,6 +203,15 @@ This topic provides a reference for the following API Management policies. For i
203203
<set-backend-service base-url="base URL of the backend service" />
204204
```
205205

206+
or
207+
208+
```xml
209+
<set-backend-service backend-id="identifier of the backend entity specifying base URL of the backend service" />
210+
```
211+
212+
> [!NOTE]
213+
> Backend entities can be managed via management [API](https://docs.microsoft.com/en-us/rest/api/apimanagement/backend) and [PowerShell](https://www.powershellgallery.com/packages?q=apimanagement).
214+
206215
### Example
207216

208217
```xml
@@ -255,8 +264,8 @@ In this example the policy routes the request to a service fabric backend, using
255264

256265
|Name|Description|Required|Default|
257266
|----------|-----------------|--------------|-------------|
258-
|base-url|New backend service base URL.|No|N/A|
259-
|backend-id|Identifier of the backend to route to.|No|N/A|
267+
|base-url|New backend service base URL.|One of `base-url` or `backend-id` must be present.|N/A|
268+
|backend-id|Identifier of the backend to route to. (Backend entities are managed via [API](https://docs.microsoft.com/en-us/rest/api/apimanagement/backend) and [PowerShell](https://www.powershellgallery.com/packages?q=apimanagement).)|One of `base-url` or `backend-id` must be present.|N/A|
260269
|sf-partition-key|Only applicable when the backend is a Service Fabric service and is specified using 'backend-id'. Used to resolve a specific partition from the name resolution service.|No|N/A|
261270
|sf-replica-type|Only applicable when the backend is a Service Fabric service and is specified using 'backend-id'. Controls if the request should go to the primary or secondary replica of a partition. |No|N/A|
262271
|sf-resolve-condition|Only applicable when the backend is a Service Fabric service. Condition identifying if the call to Service Fabric backend has to be repeated with new resolution.|No|N/A|
@@ -477,17 +486,17 @@ OriginalUrl.
477486
For more information, see [Policy expressions](api-management-policy-expressions.md) and [Context variable](api-management-policy-expressions.md#ContextVariables).
478487

479488
> [!NOTE]
480-
> Multiple values of a header are concatenated to a CSV string, for example:
489+
> Multiple values of a header are concatenated to a CSV string, for example:
481490
> `headerName: value1,value2,value3`
482491
>
483492
> Exceptions include standardized headers, which values:
484493
> - may contain commas (`User-Agent`, `WWW-Authenticate`, `Proxy-Authenticate`),
485494
> - may contain date (`Cookie`, `Set-Cookie`, `Warning`),
486495
> - contain date (`Date`, `Expires`, `If-Modified-Since`, `If-Unmodified-Since`, `Last-Modified`, `Retry-After`).
487496
>
488-
> In case of those exceptions, multiple header values will not be concatenated into one string and will be passed as separate headers, for example:
489-
>`User-Agent: value1`
490-
>`User-Agent: value2`
497+
> In case of those exceptions, multiple header values will not be concatenated into one string and will be passed as separate headers, for example:
498+
>`User-Agent: value1`
499+
>`User-Agent: value2`
491500
>`User-Agent: value3`
492501
493502
### Elements

0 commit comments

Comments
 (0)