Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5062,25 +5062,14 @@
"description": "A route pattern of the rule. Must not have any * except possibly after the final / at the end of the path."
}
},
"compressionSettings": {
"description": "compression settings.",
"type": "object",
"items": {
"$ref": "#/definitions/CompressionSettings"
}
"enableCache": {
"description": "A boolean field for enable or disable cache. If enableCache is true, cacheConfiguration cannot be null.",
"type": "boolean"
},
"queryStringCachingBehavior": {
"description": "Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.",
"enum": [
"IgnoreQueryString",
"UseQueryString",
"NotSet"
],
"type": "string",
"x-ms-enum": {
"name": "afdQueryStringCachingBehavior",
"modelAsString": false
}
"cacheConfiguration": {
"description": "The caching configuration for this route.",
"type": "object",
"$ref": "./cdn.json#/definitions/CacheConfiguration"
},
"forwardingProtocol": {
"description": "Protocol this rule will use when forwarding traffic to backends.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3772,6 +3772,7 @@
"enum": [
"CacheExpiration",
"CacheKeyQueryString",
"ModifyCacheConfiguration",
"ModifyRequestHeader",
"ModifyResponseHeader",
"UrlRedirect",
Expand Down Expand Up @@ -3973,6 +3974,19 @@
"description": "defines the OriginGroup that would override the DefaultOriginGroup.",
"type": "object",
"$ref": "#/definitions/ResourceReference"
},
"forwardingProtocol": {
"description": "Protocol this rule will use when forwarding traffic to backends.",
"type": "object",
"enum": [
"HttpOnly",
"HttpsOnly",
"MatchRequest"
],
"x-ms-enum": {
"name": "ForwardingProtocol",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -4210,12 +4224,115 @@
}
}
},
"DeliveryRuleCacheConfigurationAction": {
"description": "Defines the cache configuration action for the delivery rule. Only applicable to AFDX - need to update this later",
"x-ms-discriminator-value": "ModifyCacheConfiguration",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleAction"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the action.",
"$ref": "#/definitions/CacheConfigurationActionParameters"
}
}
},
"CacheConfigurationActionParameters": {
"description": "Defines the parameters for the cache configuration action. To disable caching, do not provide a cacheConfiguration object.",
"required": [
"@odata.type"
],
"properties": {
"@odata.type": {
"type": "string",
"enum": [
"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheConfigurationActionParameters"
]
},
"enableCache": {
"description": "A boolean field for enable or disable cache. If enableCache is true, cacheConfiguration cannot be null.",
"type": "boolean"
},
"cacheConfiguration": {
"description": "The caching configuration associated with this rule.",
"$ref": "#/definitions/CacheConfiguration"
}
}
},
"CacheConfiguration": {
"description": "Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.",
"type": "object",
"properties": {
"queryStringCachingBehavior": {
"description": "Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.",
"enum": [
"IgnoreQueryStrings",
"CacheEveryUniqueUrl",
"IgnoreSpecifiedQueryStrings",
"IncludeSpecifiedQueryStrings"
],
"type": "string",
"x-ms-enum": {
"name": "afdQueryStringCachingBehavior",
"modelAsString": true
}
},
"queryParameters": {
"description": "query parameters to include or exclude (comma separated).",
"type": "string"
},
"cacheBehavior": {
"description": "Caching behavior for the requests",
"type": "string",
"enum": [
"HonorOrigin",
"OverrideAlways",
"OverrideIfOriginMissing"
],
"x-ms-enum": {
"name": "cacheBehavior",
"modelAsString": true
}
},
"cacheDuration": {
"description": "The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss",
"type": "string",
"format": "duration"
},
"compressionSettings": {
"description": "settings for compression.",
"type": "object",
"properties": {
"contentTypesToCompress": {
"description": "List of content types on which compression applies. The value should be a valid MIME type.",
"type": "array",
"items": {
"type": "string"
}
},
"isCompressionEnabled": {
"description": "Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on AzureFrontDoor when requested content is smaller than 1 byte or larger than 1 MB.",
"type": "boolean"
}
}
}
}
},
"transform": {
"description": "Describes what transforms are applied before matching",
"type": "string",
"enum": [
"Lowercase",
"Uppercase"
"Uppercase",
"Trim",
"UrlDecode",
"UrlEncode",
"RemoveNulls"
],
"x-ms-enum": {
"name": "transform",
Expand Down