Rules - Get
取得規則集中的現有傳遞規則。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}?api-version=2025-04-15
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
profile
|
path | True |
string minLength: 1maxLength: 260 pattern: ^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$ |
Azure Front Door Standard 或 Azure Front Door Premium 的名稱,在資源群組中是唯一的。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
資源群組的名稱。 名稱不區分大小寫。 |
rule
|
path | True |
string |
端點內唯一的傳遞規則名稱。 |
rule
|
path | True |
string |
配置檔底下的規則集名稱。 |
subscription
|
path | True |
string (uuid) |
目標訂用帳戶的標識碼。 此值必須是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
要用於這項作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行 |
|
Other Status Codes |
描述作業失敗原因的 Azure Front Door 錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Rules_Get
範例要求
範例回覆
{
"name": "rule1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/rulesets/ruleSet1/rules/rule1",
"type": "Microsoft.Cdn/profiles/rulesets/rules",
"properties": {
"order": 1,
"conditions": [
{
"name": "RequestMethod",
"parameters": {
"typeName": "DeliveryRuleRequestMethodConditionParameters",
"operator": "Equal",
"matchValues": [
"GET"
],
"negateCondition": false,
"transforms": []
}
}
],
"actions": [
{
"name": "ModifyResponseHeader",
"parameters": {
"typeName": "DeliveryRuleHeaderActionParameters",
"headerAction": "Overwrite",
"headerName": "X-CDN",
"value": "MSFT"
}
}
],
"matchProcessingBehavior": "Continue",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
定義
AfdProvisioningState
佈建狀態
值 | Description |
---|---|
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
algorithm
用於 URL 簽署的演算法
值 | Description |
---|---|
SHA256 |
cacheBehavior
要求的快取行為
值 | Description |
---|---|
BypassCache | |
Override | |
SetIfMissing |
CacheConfiguration
快取類型路由的快取設定。 若要停用快取,請勿提供 cacheConfiguration 物件。
名稱 | 類型 | Description |
---|---|---|
cacheBehavior |
要求的快取行為 |
|
cacheDuration |
string |
需要快取內容的持續時間。 允許的格式為 [d.]hh:mm:ss |
isCompressionEnabled |
指出是否啟用內容壓縮。 如果啟用壓縮,如果使用者要求壓縮版本,內容將會做為壓縮。 當要求的內容小於 1 位元組或大於 1 MB 時,將不會在 AzureFrontDoor 上壓縮內容。 |
|
queryParameters |
string |
要包含或排除的查詢參數(以逗號分隔)。 |
queryStringCachingBehavior |
定義 Frontdoor 如何快取包含查詢字串的要求。 您可以在快取、忽略特定查詢字串、使用唯一 URL 快取每個要求,或快取特定查詢字串時忽略任何查詢字串。 |
CacheExpirationActionParameters
定義快取到期動作的參數。
名稱 | 類型 | Description |
---|---|---|
cacheBehavior |
要求的快取行為 |
|
cacheDuration |
string |
需要快取內容的持續時間。 允許的格式為 [d.]hh:mm:ss |
cacheType |
內容需要快取的層級。 |
|
typeName |
string:
Delivery |
CacheKeyQueryStringActionParameters
定義快取索引鍵查詢字串動作的參數。
名稱 | 類型 | Description |
---|---|---|
queryParameters |
string |
要包含或排除的查詢參數(以逗號分隔)。 |
queryStringBehavior |
要求的快取行為 |
|
typeName |
string:
Delivery |
CacheType
內容需要快取的層級。
值 | Description |
---|---|
All |
ClientPortMatchConditionParameters
定義 ClientPort 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
ClientPortOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
CookiesMatchConditionParameters
定義 Cookie 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
selector |
string |
要比對的 Cookie 名稱 |
|
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
CookiesOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
createdByType
建立資源的身分識別類型。
值 | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
DeliveryRuleCacheExpirationAction
定義傳遞規則的快取到期動作。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Cache |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
DeliveryRuleCacheKeyQueryStringAction
定義傳遞規則的快取索引鍵查詢字串動作。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Cache |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
DeliveryRuleClientPortCondition
定義傳遞規則的 ClientPort 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Client |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleCookiesCondition
定義傳遞規則的 Cookie 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Cookies |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleHostNameCondition
定義傳遞規則的 HostName 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Host |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleHttpVersionCondition
定義傳遞規則的 HttpVersion 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Http |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleIsDeviceCondition
定義傳遞規則的 IsDevice 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Is |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRulePostArgsCondition
定義傳遞規則的 PostArgs 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Post |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleQueryStringCondition
定義傳遞規則的QueryString條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Query |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleRemoteAddressCondition
定義傳遞規則的 RemoteAddress 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Remote |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleRequestBodyCondition
定義傳遞規則的 RequestBody 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Request |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleRequestHeaderAction
定義傳遞規則的要求標頭動作。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Modify |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
DeliveryRuleRequestHeaderCondition
定義傳遞規則的 RequestHeader 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Request |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleRequestMethodCondition
定義傳遞規則的 RequestMethod 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Request |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleRequestSchemeCondition
定義傳遞規則的 RequestScheme 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Request |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleRequestUriCondition
定義傳遞規則的 RequestUri 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Request |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleResponseHeaderAction
定義傳遞規則的回應標頭動作。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Modify |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
DeliveryRuleRouteConfigurationOverrideAction
定義傳遞規則的路由組態覆寫動作。 僅適用於 Frontdoor Standard/Premium 配置檔。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Route |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
DeliveryRuleServerPortCondition
定義傳遞規則的 ServerPort 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Server |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleSocketAddrCondition
定義傳遞規則的 SocketAddress 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Socket |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleSslProtocolCondition
定義傳遞規則的 SslProtocol 條件。
名稱 | 類型 | Description |
---|---|---|
name | string: |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleUrlFileExtensionCondition
定義傳遞規則的 UrlFileExtension 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Url |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleUrlFileNameCondition
定義傳遞規則的 UrlFileName 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Url |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeliveryRuleUrlPathCondition
定義傳遞規則的 UrlPath 條件。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Url |
傳遞規則的條件名稱。 |
parameters |
定義條件的參數。 |
DeploymentStatus
值 | Description |
---|---|
Failed | |
InProgress | |
NotStarted | |
Succeeded |
DestinationProtocol
要用於重新導向的通訊協定。 預設值為 MatchRequest
值 | Description |
---|---|
Http | |
Https | |
MatchRequest |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
ForwardingProtocol
將流量轉送至後端時,會使用此規則的通訊協定。
值 | Description |
---|---|
HttpOnly | |
HttpsOnly | |
MatchRequest |
HeaderAction
要執行的動作
值 | Description |
---|---|
Append | |
Delete | |
Overwrite |
HeaderActionParameters
定義要求標頭動作的參數。
名稱 | 類型 | Description |
---|---|---|
headerAction |
要執行的動作 |
|
headerName |
string |
要修改的標頭名稱 |
typeName |
string:
Delivery |
|
value |
string |
指定動作的值 |
HostNameMatchConditionParameters
定義 HostName 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
HostNameOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
HttpVersionMatchConditionParameters
定義 HttpVersion 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
HttpVersionOperator
描述要比對的運算符
值 | Description |
---|---|
Equal |
IsDeviceMatchConditionParameters
定義 IsDevice 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
傳遞規則條件的比對值 |
||
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
IsDeviceMatchValue
傳遞規則條件的比對值
值 | Description |
---|---|
Desktop | |
Mobile |
IsDeviceOperator
描述要比對的運算符
值 | Description |
---|---|
Equal |
MatchProcessingBehavior
如果此規則相符,規則引擎應該繼續執行其餘規則或停止。 如果不存在,則預設為 [繼續]。
值 | Description |
---|---|
Continue | |
Stop |
OriginGroupOverride
定義源群組覆寫組態的參數。
名稱 | 類型 | Description |
---|---|---|
forwardingProtocol |
將流量轉送至後端時,會使用此規則的通訊協定。 |
|
originGroup |
會定義在路由上覆寫 DefaultOriginGroup 的 OriginGroup。 |
OriginGroupOverrideAction
定義傳遞規則的源群組覆寫動作。
名稱 | 類型 | Description |
---|---|---|
name | string: |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
OriginGroupOverrideActionParameters
定義源群組覆寫動作的參數。
名稱 | 類型 | Description |
---|---|---|
originGroup |
會定義會覆寫 DefaultOriginGroup 的 OriginGroup。 |
|
typeName |
string:
Delivery |
paramIndicator
指出參數的用途
值 | Description |
---|---|
Expires | |
KeyId | |
Signature |
PostArgsMatchConditionParameters
定義 PostArgs 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
selector |
string |
要比對的 PostArg 名稱 |
|
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
PostArgsOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
queryStringBehavior
要求的快取行為
值 | Description |
---|---|
Exclude | |
ExcludeAll | |
Include | |
IncludeAll |
QueryStringMatchConditionParameters
定義 QueryString 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
QueryStringOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
RedirectType
重新導向類型,規則會在重新導向流量時使用。
值 | Description |
---|---|
Found | |
Moved | |
PermanentRedirect | |
TemporaryRedirect |
RemoteAddressMatchConditionParameters
定義 RemoteAddress 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
比對要比對的值。 運算子會套用至此處具有 OR 語意的每個值。 如果其中任一項符合變數與指定的運算符,則此比對條件會被視為相符專案。 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
RemoteAddressOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
GeoMatch | |
IPMatch |
RequestBodyMatchConditionParameters
定義 RequestBody 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
RequestBodyOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
RequestHeaderMatchConditionParameters
定義 RequestHeader 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
selector |
string |
要比對的標頭名稱 |
|
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
RequestHeaderOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
RequestMethodMatchConditionParameters
定義 RequestMethod 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
傳遞規則條件的比對值 |
||
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
RequestMethodMatchValue
傳遞規則條件的比對值
值 | Description |
---|---|
DELETE | |
GET | |
HEAD | |
OPTIONS | |
POST | |
PUT | |
TRACE |
RequestMethodOperator
描述要比對的運算符
值 | Description |
---|---|
Equal |
RequestSchemeMatchConditionParameters
定義 RequestScheme 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
傳遞規則條件的比對值 |
||
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
enum:
Equal |
描述要比對的運算符 |
|
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
RequestSchemeMatchValue
傳遞規則條件的比對值
值 | Description |
---|---|
HTTP | |
HTTPS |
RequestUriMatchConditionParameters
定義 RequestUri 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
RequestUriOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
ResourceReference
另一個資源的參考。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源標識碼。 |
RouteConfigurationOverrideActionParameters
定義路由組態覆寫動作的參數。
名稱 | 類型 | Description |
---|---|---|
cacheConfiguration |
與此規則相關聯的快取組態。 若要停用快取,請勿提供 cacheConfiguration 物件。 |
|
originGroupOverride |
源群組覆寫組態的參考。 保留空白,以在路由上使用預設原始群組。 |
|
typeName |
string:
Delivery |
Rule
易記規則名稱對應至任何規則或秘密相關信息。
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
id |
string (arm-id) |
資源的完整資源標識碼。 例如 “/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
|
name |
string |
資源的名稱 |
|
properties.actions | DeliveryRuleAction[]: |
符合規則所有條件時所執行的動作清單。 |
|
properties.conditions |
DeliveryRuleCondition[]:
|
必須比對要執行之動作的條件清單 |
|
properties.deploymentStatus | |||
properties.matchProcessingBehavior | Continue |
如果此規則相符,規則引擎應該繼續執行其餘規則或停止。 如果不存在,則預設為 [繼續]。 |
|
properties.order |
integer (int32) |
為端點套用規則的順序。 可能的值 {0,1,2,3,.........}。 具有較低順序的規則將會套用在具有較大順序的規則之前。 具有順序 0 的規則是特殊規則。 它不需要任何條件,而且一律會套用其中所列的動作。 |
|
properties.provisioningState |
佈建狀態 |
||
properties.ruleSetName |
string |
包含規則的規則集名稱。 |
|
systemData |
包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。 |
||
type |
string |
資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
ruleCacheBehavior
要求的快取行為
值 | Description |
---|---|
HonorOrigin | |
OverrideAlways | |
OverrideIfOriginMissing |
ruleIsCompressionEnabled
指出是否啟用內容壓縮。 如果啟用壓縮,如果使用者要求壓縮版本,內容將會做為壓縮。 當要求的內容小於 1 位元組或大於 1 MB 時,將不會在 AzureFrontDoor 上壓縮內容。
值 | Description |
---|---|
Disabled | |
Enabled |
ruleQueryStringCachingBehavior
定義 Frontdoor 如何快取包含查詢字串的要求。 您可以在快取、忽略特定查詢字串、使用唯一 URL 快取每個要求,或快取特定查詢字串時忽略任何查詢字串。
值 | Description |
---|---|
IgnoreQueryString | |
IgnoreSpecifiedQueryStrings | |
IncludeSpecifiedQueryStrings | |
UseQueryString |
ServerPortMatchConditionParameters
定義 ServerPort 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
ServerPortOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
SocketAddrMatchConditionParameters
定義 SocketAddress 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
SocketAddrOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
IPMatch |
SslProtocol
所建立 TLS 連線的通訊協定。
值 | Description |
---|---|
TLSv1 | |
TLSv1.1 | |
TLSv1.2 |
SslProtocolMatchConditionParameters
定義 SslProtocol 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
傳遞規則條件的比對值 |
||
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
SslProtocolOperator
描述要比對的運算符
值 | Description |
---|---|
Equal |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string (date-time) |
資源建立的時間戳(UTC)。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |
transform
描述比對之前套用的轉換
值 | Description |
---|---|
Lowercase | |
RemoveNulls | |
Trim | |
Uppercase | |
UrlDecode | |
UrlEncode |
UrlFileExtensionMatchConditionParameters
定義 UrlFileExtension 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
UrlFileExtensionOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
UrlFileNameMatchConditionParameters
定義 UrlFilename 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
UrlFileNameOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx |
UrlPathMatchConditionParameters
定義 UrlPath 比對條件的參數
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
matchValues |
string[] |
傳遞規則條件的比對值 |
|
negateCondition |
boolean |
False |
描述這是否為否定條件 |
operator |
描述要比對的運算符 |
||
transforms |
轉換清單 |
||
typeName |
string:
Delivery |
UrlPathOperator
描述要比對的運算符
值 | Description |
---|---|
Any | |
BeginsWith | |
Contains | |
EndsWith | |
Equal | |
GreaterThan | |
GreaterThanOrEqual | |
LessThan | |
LessThanOrEqual | |
RegEx | |
Wildcard |
UrlRedirectAction
定義傳遞規則的 URL 重新導向動作。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Url |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
UrlRedirectActionParameters
定義 URL 重新導向動作的參數。
名稱 | 類型 | Description |
---|---|---|
customFragment |
string |
要新增至重新導向 URL 的片段。 片段是之後 URL 的一部分。 請勿包含 #。 |
customHostname |
string |
要重新導向的主機。 保留空白,以使用傳入主機作為目的地主機。 |
customPath |
string |
要重新導向的完整路徑。 路徑不可以是空的,而且必須以 /開頭。 保留空白,以使用傳入路徑作為目的地路徑。 |
customQueryString |
string |
要放在重新導向 URL 中的查詢字串集。 設定此值會取代任何現有的查詢字串;保留空白以保留傳入查詢字串。 查詢字串必須是 = 格式。 ? 和 & 會自動新增,因此請勿包含它們。 |
destinationProtocol |
要用於重新導向的通訊協定。 預設值為 MatchRequest |
|
redirectType |
重新導向類型,規則會在重新導向流量時使用。 |
|
typeName |
string:
Delivery |
UrlRewriteAction
定義傳遞規則的 URL 重寫動作。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Url |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
UrlRewriteActionParameters
定義 URL 重寫動作的參數。
名稱 | 類型 | Description |
---|---|---|
destination |
string |
定義將重寫上述要求的相對URL。 |
preserveUnmatchedPath |
boolean |
是否要保留不相符的路徑。 預設值為 True。 |
sourcePattern |
string |
定義可識別可能重寫之要求類型的要求 URI 模式。 如果值為空白,則會比對所有字串。 |
typeName |
string:
Delivery |
UrlSigningAction
定義傳遞規則的 URL 簽署動作。
名稱 | 類型 | Description |
---|---|---|
name |
string:
Url |
傳遞規則的動作名稱。 |
parameters |
定義動作的參數。 |
UrlSigningActionParameters
定義 URL 簽署動作的參數。
名稱 | 類型 | Description |
---|---|---|
algorithm |
用於 URL 簽署的演算法 |
|
parameterNameOverride |
定義 URL 中要考慮到期、金鑰標識碼等的查詢字串參數。 |
|
typeName |
string:
Delivery |
UrlSigningParamIdentifier
定義如何識別特定用途的參數,例如到期
名稱 | 類型 | Description |
---|---|---|
paramIndicator |
指出參數的用途 |
|
paramName |
string |
參數名稱 |