Skip to content

Commit a1f9e8c

Browse files
Merge pull request #232687 from dlepow/pol6
[APIM] Policy expression support in policies - 6
2 parents 4844339 + a3a2610 commit a1f9e8c

10 files changed

+40
-44
lines changed

articles/api-management/validate-client-certificate-policy.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@ For more information about custom CA certificates and certificate authorities, s
5252

5353
| Name | Description | Required | Default |
5454
| ------------------------------- | -----------------| -------- | ----------- |
55-
| validate-revocation  | Boolean. Specifies whether certificate is validated against online revocation list.  | No | `true` |
56-
| validate-trust | Boolean. Specifies if validation should fail in case chain cannot be successfully built up to trusted CA. | No | `true` |
57-
| validate-not-before | Boolean. Validates value against current time. | No | `true` |
58-
| validate-not-after  | Boolean. Validates value against current time. | No | `true`|
59-
| ignore-error  | Boolean. Specifies if policy should proceed to the next handler or jump to on-error upon failed validation. | No | `false` |
60-
| identity | String. Combination of certificate claim values that make certificate valid. | Yes | N/A |
55+
| validate-revocation  | Boolean. Specifies whether certificate is validated against online revocation list. Policy expressions aren't allowed.  | No | `true` |
56+
| validate-trust | Boolean. Specifies if validation should fail in case chain cannot be successfully built up to trusted CA. Policy expressions aren't allowed. | No | `true` |
57+
| validate-not-before | Boolean. Validates value against current time. Policy expressions aren't allowed.| No | `true` |
58+
| validate-not-after  | Boolean. Validates value against current time. Policy expressions aren't allowed.| No | `true`|
59+
| ignore-error  | Boolean. Specifies if policy should proceed to the next handler or jump to on-error upon failed validation. Policy expressions aren't allowed. | No | `false` |
6160

6261
## Elements
6362

articles/api-management/validate-content-policy.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ The policy validates the following content in the request or response against th
5252

5353
| Attribute | Description | Required | Default |
5454
| ----------------- | ------------------------------------------------------ | -------- | ------- |
55-
| unspecified-content-type-action | [Action](#actions) to perform for requests or responses with a content type that isn’t specified in the API schema. | Yes | N/A |
56-
| max-size | Maximum length of the body of the request or response in bytes, checked against the `Content-Length` header. If the request body or response body is compressed, this value is the decompressed length. Maximum allowed value: 102,400 bytes (100 KB). (Contact [support](https://azure.microsoft.com/support/options/) if you need to increase this limit.) | Yes | N/A |
57-
| size-exceeded-action | [Action](#actions) to perform for requests or responses whose body exceeds the size specified in `max-size`. | Yes | N/A |
58-
| errors-variable-name | Name of the variable in `context.Variables` to log validation errors to. | No | N/A |
55+
| unspecified-content-type-action | [Action](#actions) to perform for requests or responses with a content type that isn’t specified in the API schema. Policy expressions are allowed. | Yes | N/A |
56+
| max-size | Maximum length of the body of the request or response in bytes, checked against the `Content-Length` header. If the request body or response body is compressed, this value is the decompressed length. Maximum allowed value: 102,400 bytes (100 KB). (Contact [support](https://azure.microsoft.com/support/options/) if you need to increase this limit.) Policy expressions are allowed. | Yes | N/A |
57+
| size-exceeded-action | [Action](#actions) to perform for requests or responses whose body exceeds the size specified in `max-size`. Policy expressions are allowed.| Yes | N/A |
58+
| errors-variable-name | Name of the variable in `context.Variables` to log validation errors to. Policy expressions aren't allowed. | No | N/A |
5959

6060
## Elements
6161

@@ -68,8 +68,8 @@ The policy validates the following content in the request or response against th
6868

6969
| Attribute | Description | Required | Default |
7070
| ----------------- | ------------------------------------------------------ | -------- | ------- |
71-
| any-content-type-value | Content type used for validation of the body of a request or response, regardless of the incoming content type. | No | N/A |
72-
| missing-content-type-value | Content type used for validation of the body of a request or response, when the incoming content type is missing or empty. | No | N/A |
71+
| any-content-type-value | Content type used for validation of the body of a request or response, regardless of the incoming content type. Policy expressions aren't allowed. | No | N/A |
72+
| missing-content-type-value | Content type used for validation of the body of a request or response, when the incoming content type is missing or empty. Policy expressions aren't allowed. | No | N/A |
7373

7474
### content-type-map-elements
7575

articles/api-management/validate-graphql-request-policy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ The `validate-graphql-request` policy validates the GraphQL request and authoriz
3030

3131
| Attribute | Description | Required | Default |
3232
| ----------------- | ------------------------------------------------------ | -------- | ------- |
33-
| error-variable-name | Name of the variable in `context.Variables` to log validation errors to. | No | N/A |
34-
| max-size | Maximum size of the request payload in bytes. Maximum allowed value: 102,400 bytes (100 KB). (Contact [support](https://azure.microsoft.com/support/options/) if you need to increase this limit.) | Yes | N/A |
35-
| max-depth | An integer. Maximum query depth. | No | 6 |
33+
| error-variable-name | Name of the variable in `context.Variables` to log validation errors to. Policy expressions are allowed. | No | N/A |
34+
| max-size | Maximum size of the request payload in bytes. Maximum allowed value: 102,400 bytes (100 KB). (Contact [support](https://azure.microsoft.com/support/options/) if you need to increase this limit.) Policy expressions are allowed. | Yes | N/A |
35+
| max-depth | An integer. Maximum query depth. Policy expressions are allowed. | No | 6 |
3636

3737

3838
## Elements

articles/api-management/validate-headers-policy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ The `validate-headers` policy validates the response headers against the API sch
3333

3434
| Attribute | Description | Required | Default |
3535
| ----------------- | ------------------------------------------------------ | -------- | ------- |
36-
| specified-header-action | [Action](#actions) to perform for response headers specified in the API schema. | Yes | N/A |
37-
| unspecified-header-action | [Action](#actions) to perform for response headers that aren’t specified in the API schema. | Yes | N/A |
38-
| errors-variable-name | Name of the variable in `context.Variables` to log validation errors to. | No | N/A |
36+
| specified-header-action | [Action](#actions) to perform for response headers specified in the API schema. Policy expressions are allowed. | Yes | N/A |
37+
| unspecified-header-action | [Action](#actions) to perform for response headers that aren’t specified in the API schema. Policy expressions are allowed. | Yes | N/A |
38+
| errors-variable-name | Name of the variable in `context.Variables` to log validation errors to. Policy expressions aren't allowed. | No | N/A |
3939

4040
## Elements
4141

0 commit comments

Comments
 (0)