Microsoft.Cdn profiles/ruleSets/rules 2020-09-01
Bicep リソース定義
profiles/ruleSets/rules リソースの種類は、次を対象とする操作と共にデプロイできます。
- リソース グループ - リソース グループのデプロイ コマンドを参照してください
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
リソース形式
Microsoft.Cdn/profiles/ruleSets/rules リソースを作成するには、次の Bicep をテンプレートに追加します。
resource symbolicname 'Microsoft.Cdn/profiles/ruleSets/rules@2020-09-01' = {
name: 'string'
parent: resourceSymbolicName
properties: {
actions: [
{
name: 'string'
// For remaining properties, see DeliveryRuleActionAutoGenerated objects
}
]
conditions: [
{
name: 'string'
// For remaining properties, see DeliveryRuleCondition objects
}
]
matchProcessingBehavior: 'string'
order: int
}
}
DeliveryRuleActionAutoGenerated オブジェクト
name プロパティを設定して、オブジェクトの種類を指定します。
CacheExpiration の場合は、次の値を使用します。
name: 'CacheExpiration'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters'
cacheBehavior: 'string'
cacheDuration: 'string'
cacheType: 'All'
}
CacheKeyQueryString の場合は、次の値を使用します。
name: 'CacheKeyQueryString'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters'
queryParameters: 'string'
queryStringBehavior: 'string'
}
ModifyRequestHeader の場合は、次の値を使用します。
name: 'ModifyRequestHeader'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters'
headerAction: 'string'
headerName: 'string'
value: 'string'
}
ModifyResponseHeader の場合は、次の値を使用します。
name: 'ModifyResponseHeader'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters'
headerAction: 'string'
headerName: 'string'
value: 'string'
}
OriginGroupOverride の場合は、次の値を使用します。
name: 'OriginGroupOverride'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters'
originGroup: {
id: 'string'
}
}
UrlRedirect の場合は、次の値を使用します。
name: 'UrlRedirect'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters'
customFragment: 'string'
customHostname: 'string'
customPath: 'string'
customQueryString: 'string'
destinationProtocol: 'string'
redirectType: 'string'
}
UrlRewrite の場合は、次の値を使用します。
name: 'UrlRewrite'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters'
destination: 'string'
preserveUnmatchedPath: bool
sourcePattern: 'string'
}
UrlSigning の場合は、次の値を使用します。
name: 'UrlSigning'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters'
algorithm: 'SHA256'
parameterNameOverride: [
{
paramIndicator: 'string'
paramName: 'string'
}
]
}
DeliveryRuleCondition オブジェクト
name プロパティを設定して、オブジェクトの種類を指定します。
Cookie の場合は、次の値を使用します。
name: 'Cookies'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
selector: 'string'
transforms: [
'string'
]
}
HttpVersion の場合は、次の値を使用します。
name: 'HttpVersion'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'Equal'
}
IsDevice の場合は、次の値を使用します。
name: 'IsDevice'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'Equal'
transforms: [
'string'
]
}
PostArgs の場合は、次の値を使用します。
name: 'PostArgs'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
selector: 'string'
transforms: [
'string'
]
}
QueryString の場合は、次の値を使用します。
name: 'QueryString'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
transforms: [
'string'
]
}
RemoteAddress の場合は、次の値を使用します。
name: 'RemoteAddress'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
transforms: [
'string'
]
}
RequestBody の場合は、次の値を使用します。
name: 'RequestBody'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
transforms: [
'string'
]
}
RequestHeader の場合は、次の値を使用します。
name: 'RequestHeader'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
selector: 'string'
transforms: [
'string'
]
}
RequestMethod の場合は、次の値を使用します。
name: 'RequestMethod'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'Equal'
}
RequestScheme の場合は、次の値を使用します。
name: 'RequestScheme'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'Equal'
}
RequestUri の場合は、次の値を使用します。
name: 'RequestUri'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
transforms: [
'string'
]
}
UrlFileExtension の場合は、次の値を使用します。
name: 'UrlFileExtension'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
transforms: [
'string'
]
}
UrlFileName の場合は、次の値を使用します。
name: 'UrlFileName'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
transforms: [
'string'
]
}
UrlPath の場合は、次の値を使用します。
name: 'UrlPath'
parameters: {
'@odata.type': '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters'
matchValues: [
'string'
]
negateCondition: bool
operator: 'string'
transforms: [
'string'
]
}
プロパティ値
profiles/ruleSets/rules
名前 | 説明 | 値 |
---|---|---|
name | リソース名 Bicep で子リソースの名前と型を設定する方法を参照してください。 |
string (必須) |
parent | Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。 詳細については、「 親リソースの外部の子リソース」を参照してください。 |
種類のリソースのシンボル名: ruleSets |
properties | 作成する Rules のプロパティを含む JSON オブジェクト。 | RuleProperties |
RuleProperties
名前 | 説明 | 値 |
---|---|---|
actions | ルールのすべての条件が満たされたときに実行されるアクションの一覧。 | DeliveryRuleActionAutoGenerated[] |
設定 | アクションを実行するために一致する必要がある条件の一覧 | DeliveryRuleCondition[] |
matchProcessingBehavior | このルールが一致する場合、ルール エンジンは残りのルールの実行を続行するか、停止する必要があります。 存在しない場合、既定値は Continue です。 | 'Continue' 'Stop' |
順序 | エンドポイントにルールが適用される順序。 使用可能な値 {0,1,2,3,.........} 順序が小さいルールは、より大きな順序のルールの前に適用されます。 順序 0 のルールは特別なルールです。 条件を必要とせず、それに記載されているアクションは常に適用されます。 | INT |
DeliveryRuleActionAutoGenerated
名前 | 説明 | 値 |
---|---|---|
name | オブジェクトの種類を設定する | CacheExpiration CacheKeyQueryString ModifyRequestHeader ModifyResponseHeader OriginGroupOverride UrlRedirect UrlRewrite UrlSigning (必須) |
DeliveryRuleCacheExpirationAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'CacheExpiration' (必須) |
parameters | アクションのパラメーターを定義します。 | CacheExpirationActionParameters (必須) |
CacheExpirationActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters' (必須) | |
cacheBehavior | 要求のキャッシュ動作 | 'BypassCache' 'Override' 'SetIfMissing' (必須) |
cacheDuration | コンテンツをキャッシュする必要がある期間。 使用できる形式は [d.]hh:mm:ss です | string |
cacheType | コンテンツをキャッシュする必要があるレベル。 | 'All' (必須) |
DeliveryRuleCacheKeyQueryStringAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'CacheKeyQueryString' (必須) |
parameters | アクションのパラメーターを定義します。 | CacheKeyQueryStringActionParameters (必須) |
CacheKeyQueryStringActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters' (必須) | |
queryParameters | を含めるか除外するクエリ パラメーター (コンマ区切り)。 | string |
queryStringBehavior | 要求のキャッシュ動作 | 'Exclude' 'ExcludeAll' 'Include' 'IncludeAll' (必須) |
DeliveryRuleRequestHeaderAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'ModifyRequestHeader' (必須) |
parameters | アクションのパラメーターを定義します。 | HeaderActionParameters (必須) |
HeaderActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters' (必須) | |
headerAction | 実行するアクション | 'Append' 'Delete' 'Overwrite' (必須) |
headerName | 変更するヘッダーの名前 | string (必須) |
value | 指定したアクションの値 | string |
DeliveryRuleResponseHeaderAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'ModifyResponseHeader' (必須) |
parameters | アクションのパラメーターを定義します。 | HeaderActionParameters (必須) |
OriginGroupOverrideAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'OriginGroupOverride' (必須) |
parameters | アクションのパラメーターを定義します。 | OriginGroupOverrideActionParameters (必須) |
OriginGroupOverrideActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters' (必須) | |
originGroup | は、DefaultOriginGroup をオーバーライドする OriginGroup を定義します。 | ResourceReference (必須) |
ResourceReference
名前 | 説明 | 値 |
---|---|---|
id | リソースの ID | string |
UrlRedirectAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'UrlRedirect' (必須) |
parameters | アクションのパラメーターを定義します。 | UrlRedirectActionParameters (必須) |
UrlRedirectActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters' (必須) | |
customFragment | リダイレクト URL に追加するフラグメント。 フラグメントは、 # の後に来る URL の一部です。 #を含めないでください。 | string |
customHostname | リダイレクトするホスト。 受信ホストを宛先ホストとして使用するには、空のままにします。 | string |
customPath | リダイレクトする完全なパス。 パスを空にすることはできません。/で始まる必要があります。 受信パスを宛先パスとして使用するには、空のままにします。 | string |
customQueryString | リダイレクト URL に配置するクエリ文字列のセット。 この値を設定すると、既存のクエリ文字列が置き換えられます。受信クエリ文字列を保持するには、空のままにします。 クエリ文字列は {key}={value} 形式である必要があります。 ? & は自動的に追加されるため、含めないでください。 | string |
destinationProtocol | リダイレクトに使用するプロトコル。 既定値は MatchRequest です | 'Http' 'Https' 'MatchRequest' |
redirectType | トラフィックをリダイレクトするときにルールが使用するリダイレクトの種類。 | 'Found' 'Moved' 'PermanentRedirect' 'TemporaryRedirect' (必須) |
UrlRewriteAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'UrlRewrite' (必須) |
parameters | アクションのパラメーターを定義します。 | UrlRewriteActionParameters (必須) |
UrlRewriteActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters' (必須) | |
destination | 上記の要求の書き換え先となる相対 URL を定義します。 | string (必須) |
preserveUnmatchedPath | 不一致のパスを保持するかどうか。 既定値は true です。 | [bool] |
sourcePattern | は、書き換えられる可能性のある要求の種類を識別する要求 URI パターンを定義します。 value が空白の場合、すべての文字列が一致します。 | string (必須) |
UrlSigningAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'UrlSigning' (必須) |
parameters | アクションのパラメーターを定義します。 | UrlSigningActionParameters (必須) |
UrlSigningActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters' (必須) | |
アルゴリズム | URL 署名に使用するアルゴリズム | 'SHA256' |
parameterNameOverride | 有効期限、キー ID などについて考慮する URL 内のクエリ文字列パラメーターを定義します。 | UrlSigningParamIdentifier[] |
UrlSigningParamIdentifier
名前 | 説明 | 値 |
---|---|---|
paramIndicator | パラメーターの目的を示します | 'Expires' 'KeyId' 'Signature' (必須) |
paramName | パラメーター名 | string (必須) |
DeliveryRuleCondition
名前 | 説明 | 値 |
---|---|---|
name | オブジェクトの種類を設定する | Cookie HttpVersion IsDevice PostArgs QueryString RemoteAddress RequestBody RequestHeader RequestMethod RequestScheme RequestUri UrlFileExtension UrlFileName UrlPath (必須) |
DeliveryRuleCookiesCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'Cookies' (必須) |
parameters | 条件のパラメーターを定義します。 | CookiesMatchConditionParameters (必須) |
CookiesMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
セレクター | 照合する Cookie の名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleHttpVersionCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'HttpVersion' (必須) |
parameters | 条件のパラメーターを定義します。 | HttpVersionMatchConditionParameters (必須) |
HttpVersionMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
DeliveryRuleIsDeviceCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'IsDevice' (必須) |
parameters | 条件のパラメーターを定義します。 | IsDeviceMatchConditionParameters (必須) |
IsDeviceMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: 'Desktop' 'Mobile' |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRulePostArgsCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'PostArgs' (必須) |
parameters | 条件のパラメーターを定義します。 | PostArgsMatchConditionParameters (必須) |
PostArgsMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
セレクター | 照合する PostArg の名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleQueryStringCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'QueryString' (必須) |
parameters | 条件のパラメーターを定義します。 | QueryStringMatchConditionParameters (必須) |
QueryStringMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRemoteAddressCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RemoteAddress' (必須) |
parameters | 条件のパラメーターを定義します。 | RemoteAddressMatchConditionParameters (必須) |
RemoteAddressMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters' (必須) | |
matchValues | 一致する値を照合します。 演算子は、OR セマンティクスを使用して、ここでの各値に適用されます。 いずれかが指定された演算子で変数と一致する場合、この一致条件は一致と見なされます。 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'GeoMatch' 'IPMatch' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRequestBodyCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestBody' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestBodyMatchConditionParameters (必須) |
RequestBodyMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRequestHeaderCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestHeader' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestHeaderMatchConditionParameters (必須) |
RequestHeaderMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
セレクター | 一致するヘッダーの名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRequestMethodCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestMethod' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestMethodMatchConditionParameters (必須) |
RequestMethodMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: 'DELETE' 'GET' 'HEAD' 'OPTIONS' 'POST' 'PUT' 'TRACE' |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
DeliveryRuleRequestSchemeCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestScheme' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestSchemeMatchConditionParameters (必須) |
RequestSchemeMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: 'HTTP' 'HTTPS' |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
DeliveryRuleRequestUriCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestUri' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestUriMatchConditionParameters (必須) |
RequestUriMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleUrlFileExtensionCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'UrlFileExtension' (必須) |
parameters | 条件のパラメーターを定義します。 | UrlFileExtensionMatchConditionParameters (必須) |
UrlFileExtensionMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleUrlFileNameCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'UrlFileName' (必須) |
parameters | 条件のパラメーターを定義します。 | UrlFileNameMatchConditionParameters (必須) |
UrlFileNameMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleUrlPathCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'UrlPath' (必須) |
parameters | 条件のパラメーターを定義します。 | UrlPathMatchConditionParameters (必須) |
UrlPathMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' 'Wildcard' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
クイック スタート テンプレート
次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。
Template | 説明 |
---|---|
規則が設定された Front Door Standard/Premium |
このテンプレートでは、ルール セットを含む Front Door Standard/Premium が作成されます。 |
ARM テンプレート リソース定義
profiles/ruleSets/rules リソースの種類は、次を対象とする操作と共にデプロイできます。
- リソース グループ - リソース グループのデプロイ コマンドを参照してください
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
リソース形式
Microsoft.Cdn/profiles/ruleSets/rules リソースを作成するには、次の JSON をテンプレートに追加します。
{
"type": "Microsoft.Cdn/profiles/ruleSets/rules",
"apiVersion": "2020-09-01",
"name": "string",
"properties": {
"actions": [
{
"name": "string"
// For remaining properties, see DeliveryRuleActionAutoGenerated objects
}
],
"conditions": [
{
"name": "string"
// For remaining properties, see DeliveryRuleCondition objects
}
],
"matchProcessingBehavior": "string",
"order": "int"
}
}
DeliveryRuleActionAutoGenerated オブジェクト
name プロパティを設定して、オブジェクトの種類を指定します。
CacheExpiration の場合は、次の値を使用します。
"name": "CacheExpiration",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters",
"cacheBehavior": "string",
"cacheDuration": "string",
"cacheType": "All"
}
CacheKeyQueryString の場合は、次の値を使用します。
"name": "CacheKeyQueryString",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters",
"queryParameters": "string",
"queryStringBehavior": "string"
}
ModifyRequestHeader の場合は、次の値を使用します。
"name": "ModifyRequestHeader",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
"headerAction": "string",
"headerName": "string",
"value": "string"
}
ModifyResponseHeader の場合は、次の値を使用します。
"name": "ModifyResponseHeader",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters",
"headerAction": "string",
"headerName": "string",
"value": "string"
}
OriginGroupOverride の場合は、次の値を使用します。
"name": "OriginGroupOverride",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters",
"originGroup": {
"id": "string"
}
}
UrlRedirect の場合は、次の値を使用します。
"name": "UrlRedirect",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters",
"customFragment": "string",
"customHostname": "string",
"customPath": "string",
"customQueryString": "string",
"destinationProtocol": "string",
"redirectType": "string"
}
UrlRewrite の場合は、次の値を使用します。
"name": "UrlRewrite",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters",
"destination": "string",
"preserveUnmatchedPath": "bool",
"sourcePattern": "string"
}
UrlSigning の場合は、次の値を使用します。
"name": "UrlSigning",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters",
"algorithm": "SHA256",
"parameterNameOverride": [
{
"paramIndicator": "string",
"paramName": "string"
}
]
}
DeliveryRuleCondition オブジェクト
name プロパティを設定して、オブジェクトの種類を指定します。
Cookie の場合は、次の値を使用します。
"name": "Cookies",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"selector": "string",
"transforms": [ "string" ]
}
HttpVersion の場合は、次の値を使用します。
"name": "HttpVersion",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "Equal"
}
IsDevice の場合は、次の値を使用します。
"name": "IsDevice",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "Equal",
"transforms": [ "string" ]
}
PostArgs の場合は、次の値を使用します。
"name": "PostArgs",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"selector": "string",
"transforms": [ "string" ]
}
QueryString の場合は、次の値を使用します。
"name": "QueryString",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"transforms": [ "string" ]
}
RemoteAddress の場合は、次の値を使用します。
"name": "RemoteAddress",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"transforms": [ "string" ]
}
RequestBody の場合は、次の値を使用します。
"name": "RequestBody",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"transforms": [ "string" ]
}
RequestHeader の場合は、次の値を使用します。
"name": "RequestHeader",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"selector": "string",
"transforms": [ "string" ]
}
RequestMethod の場合は、次の値を使用します。
"name": "RequestMethod",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "Equal"
}
RequestScheme の場合は、次の値を使用します。
"name": "RequestScheme",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "Equal"
}
RequestUri の場合は、次の値を使用します。
"name": "RequestUri",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"transforms": [ "string" ]
}
UrlFileExtension の場合は、次の値を使用します。
"name": "UrlFileExtension",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"transforms": [ "string" ]
}
UrlFileName の場合は、次の値を使用します。
"name": "UrlFileName",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"transforms": [ "string" ]
}
UrlPath の場合は、次の値を使用します。
"name": "UrlPath",
"parameters": {
"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters",
"matchValues": [ "string" ],
"negateCondition": "bool",
"operator": "string",
"transforms": [ "string" ]
}
プロパティ値
profiles/ruleSets/rules
名前 | 説明 | 値 |
---|---|---|
type | リソースの種類 | 'Microsoft.Cdn/profiles/ruleSets/rules' |
apiVersion | リソース API のバージョン | '2020-09-01' |
name | リソース名 JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。 |
string (必須) |
properties | 作成する Rules のプロパティを含む JSON オブジェクト。 | RuleProperties |
RuleProperties
名前 | 説明 | 値 |
---|---|---|
actions | ルールのすべての条件が満たされたときに実行されるアクションの一覧。 | DeliveryRuleActionAutoGenerated[] |
設定 | アクションを実行するために一致する必要がある条件の一覧 | DeliveryRuleCondition[] |
matchProcessingBehavior | このルールが一致する場合、ルール エンジンは残りのルールの実行を続行するか、停止する必要があります。 存在しない場合、既定値は Continue です。 | 'Continue' 'Stop' |
順序 | エンドポイントにルールが適用される順序。 使用可能な値 {0,1,2,3,.........} 順序が小さいルールは、より大きな順序のルールの前に適用されます。 順序 0 のルールは特別なルールです。 条件を必要とせず、それに記載されているアクションは常に適用されます。 | INT |
DeliveryRuleActionAutoGenerated
名前 | 説明 | 値 |
---|---|---|
name | オブジェクトの種類を設定する | CacheExpiration CacheKeyQueryString ModifyRequestHeader ModifyResponseHeader OriginGroupOverride UrlRedirect UrlRewrite UrlSigning (必須) |
DeliveryRuleCacheExpirationAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'CacheExpiration' (必須) |
parameters | アクションのパラメーターを定義します。 | CacheExpirationActionParameters (必須) |
CacheExpirationActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters' (必須) | |
cacheBehavior | 要求のキャッシュ動作 | 'BypassCache' 'Override' 'SetIfMissing' (必須) |
cacheDuration | コンテンツをキャッシュする必要がある期間。 使用できる形式は [d.]hh:mm:ss です | string |
cacheType | コンテンツをキャッシュする必要があるレベル。 | 'All' (必須) |
DeliveryRuleCacheKeyQueryStringAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'CacheKeyQueryString' (必須) |
parameters | アクションのパラメーターを定義します。 | CacheKeyQueryStringActionParameters (必須) |
CacheKeyQueryStringActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters' (必須) | |
queryParameters | を含めるか除外するクエリ パラメーター (コンマ区切り)。 | string |
queryStringBehavior | 要求のキャッシュ動作 | 'Exclude' 'ExcludeAll' 'Include' 'IncludeAll' (必須) |
DeliveryRuleRequestHeaderAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'ModifyRequestHeader' (必須) |
parameters | アクションのパラメーターを定義します。 | HeaderActionParameters (必須) |
HeaderActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters' (必須) | |
headerAction | 実行するアクション | 'Append' 'Delete' 'Overwrite' (必須) |
headerName | 変更するヘッダーの名前 | string (必須) |
value | 指定したアクションの値 | string |
DeliveryRuleResponseHeaderAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'ModifyResponseHeader' (必須) |
parameters | アクションのパラメーターを定義します。 | HeaderActionParameters (必須) |
OriginGroupOverrideAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'OriginGroupOverride' (必須) |
parameters | アクションのパラメーターを定義します。 | OriginGroupOverrideActionParameters (必須) |
OriginGroupOverrideActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters' (必須) | |
originGroup | は、DefaultOriginGroup をオーバーライドする OriginGroup を定義します。 | ResourceReference (必須) |
ResourceReference
名前 | 説明 | 値 |
---|---|---|
id | リソースの ID | string |
UrlRedirectAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'UrlRedirect' (必須) |
parameters | アクションのパラメーターを定義します。 | UrlRedirectActionParameters (必須) |
UrlRedirectActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters' (必須) | |
customFragment | リダイレクト URL に追加するフラグメント。 フラグメントは、 # の後に来る URL の一部です。 #を含めないでください。 | string |
customHostname | リダイレクトするホスト。 受信ホストを宛先ホストとして使用するには、空のままにします。 | string |
customPath | リダイレクトする完全なパス。 パスを空にすることはできず、/で始まる必要があります。 受信パスを宛先パスとして使用するには、空のままにします。 | string |
customQueryString | リダイレクト URL に配置するクエリ文字列のセット。 この値を設定すると、既存のクエリ文字列が置き換えられます。受信クエリ文字列を保持するには、空のままにします。 クエリ文字列は {key}={value} 形式である必要があります。 ? & は自動的に追加されるため、それらを含めないでください。 | string |
destinationProtocol | リダイレクトに使用するプロトコル。 既定値は MatchRequest です | 'Http' 'Https' 'MatchRequest' |
redirectType | トラフィックのリダイレクト時にルールが使用するリダイレクトの種類。 | 'Found' 'Moved' 'PermanentRedirect' 'TemporaryRedirect' (必須) |
UrlRewriteAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'UrlRewrite' (必須) |
parameters | アクションのパラメーターを定義します。 | UrlRewriteActionParameters (必須) |
UrlRewriteActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters' (必須) | |
destination | 上記の要求の書き換え先となる相対 URL を定義します。 | string (必須) |
preserveUnmatchedPath | 一致しないパスを保持するかどうか。 既定値は true です。 | [bool] |
sourcePattern | は、書き換えられる可能性がある要求の種類を識別する要求 URI パターンを定義します。 value が空白の場合、すべての文字列が一致します。 | string (必須) |
UrlSigningAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | 'UrlSigning' (必須) |
parameters | アクションのパラメーターを定義します。 | UrlSigningActionParameters (必須) |
UrlSigningActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters' (必須) | |
アルゴリズム | URL 署名に使用するアルゴリズム | 'SHA256' |
parameterNameOverride | 有効期限、キー ID などについて考慮する URL 内のクエリ文字列パラメーターを定義します。 | UrlSigningParamIdentifier[] |
UrlSigningParamIdentifier
名前 | 説明 | 値 |
---|---|---|
paramIndicator | パラメーターの目的を示します | 'Expires' 'KeyId' 'Signature' (必須) |
paramName | パラメーター名 | string (必須) |
DeliveryRuleCondition
名前 | 説明 | 値 |
---|---|---|
name | オブジェクトの種類を設定する | Cookie HttpVersion IsDevice PostArgs QueryString RemoteAddress RequestBody RequestHeader RequestMethod RequestScheme RequestUri UrlFileExtension UrlFileName UrlPath (必須) |
DeliveryRuleCookiesCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'Cookies' (必須) |
parameters | 条件のパラメーターを定義します。 | CookiesMatchConditionParameters (必須) |
CookiesMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
セレクター | 照合する Cookie の名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleHttpVersionCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'HttpVersion' (必須) |
parameters | 条件のパラメーターを定義します。 | HttpVersionMatchConditionParameters (必須) |
HttpVersionMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
DeliveryRuleIsDeviceCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'IsDevice' (必須) |
parameters | 条件のパラメーターを定義します。 | IsDeviceMatchConditionParameters (必須) |
IsDeviceMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: 'Desktop' 'Mobile' |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRulePostArgsCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'PostArgs' (必須) |
parameters | 条件のパラメーターを定義します。 | PostArgsMatchConditionParameters (必須) |
PostArgsMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
セレクター | 照合する PostArg の名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleQueryStringCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'QueryString' (必須) |
parameters | 条件のパラメーターを定義します。 | QueryStringMatchConditionParameters (必須) |
QueryStringMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRemoteAddressCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RemoteAddress' (必須) |
parameters | 条件のパラメーターを定義します。 | RemoteAddressMatchConditionParameters (必須) |
RemoteAddressMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters' (必須) | |
matchValues | 照合する値を照合します。 演算子は、OR セマンティクスを使用して、ここでの各値に適用されます。 いずれかが指定された演算子を持つ変数と一致する場合、この一致条件は一致と見なされます。 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'GeoMatch' 'IPMatch' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRequestBodyCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestBody' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestBodyMatchConditionParameters (必須) |
RequestBodyMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRequestHeaderCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestHeader' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestHeaderMatchConditionParameters (必須) |
RequestHeaderMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
セレクター | 一致するヘッダーの名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleRequestMethodCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestMethod' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestMethodMatchConditionParameters (必須) |
RequestMethodMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: 'DELETE' 'GET' 'HEAD' 'OPTIONS' 'POST' 'PUT' 'TRACE' |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
DeliveryRuleRequestSchemeCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestScheme' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestSchemeMatchConditionParameters (必須) |
RequestSchemeMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: 'HTTP' 'HTTPS' |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Equal' (必須) |
DeliveryRuleRequestUriCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'RequestUri' (必須) |
parameters | 条件のパラメーターを定義します。 | RequestUriMatchConditionParameters (必須) |
RequestUriMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleUrlFileExtensionCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'UrlFileExtension' (必須) |
parameters | 条件のパラメーターを定義します。 | UrlFileExtensionMatchConditionParameters (必須) |
UrlFileExtensionMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleUrlFileNameCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'UrlFileName' (必須) |
parameters | 条件のパラメーターを定義します。 | UrlFileNameMatchConditionParameters (必須) |
UrlFileNameMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
DeliveryRuleUrlPathCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | 'UrlPath' (必須) |
parameters | 条件のパラメーターを定義します。 | UrlPathMatchConditionParameters (必須) |
UrlPathMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters' (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | 'Any' 'BeginsWith' 'Contains' 'EndsWith' 'Equal' 'GreaterThan' 'GreaterThanOrEqual' 'LessThan' 'LessThanOrEqual' 'RegEx' 'Wildcard' (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: '小文字' 'RemoveNulls' 'Trim' '大文字' 'UrlDecode' 'UrlEncode' |
クイック スタート テンプレート
次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。
Template | 説明 |
---|---|
規則が設定された Front Door Standard/Premium |
このテンプレートでは、ルール セットを含む Front Door Standard/Premium が作成されます。 |
Terraform (AzAPI プロバイダー) リソース定義
profiles/ruleSets/rules リソースの種類は、次を対象とする操作と共にデプロイできます。
- リソース グループ
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
リソース形式
Microsoft.Cdn/profiles/ruleSets/rules リソースを作成するには、次の Terraform をテンプレートに追加します。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Cdn/profiles/ruleSets/rules@2020-09-01"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
actions = [
{
name = "string"
// For remaining properties, see DeliveryRuleActionAutoGenerated objects
}
]
conditions = [
{
name = "string"
// For remaining properties, see DeliveryRuleCondition objects
}
]
matchProcessingBehavior = "string"
order = int
}
})
}
DeliveryRuleActionAutoGenerated オブジェクト
name プロパティを設定して、オブジェクトの種類を指定します。
CacheExpiration の場合は、次の値を使用します。
name = "CacheExpiration"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"
cacheBehavior = "string"
cacheDuration = "string"
cacheType = "All"
}
CacheKeyQueryString の場合は、次の値を使用します。
name = "CacheKeyQueryString"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"
queryParameters = "string"
queryStringBehavior = "string"
}
ModifyRequestHeader の場合は、次の値を使用します。
name = "ModifyRequestHeader"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"
headerAction = "string"
headerName = "string"
value = "string"
}
ModifyResponseHeader の場合は、次の値を使用します。
name = "ModifyResponseHeader"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters"
headerAction = "string"
headerName = "string"
value = "string"
}
OriginGroupOverride の場合は、次の値を使用します。
name = "OriginGroupOverride"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters"
originGroup = {
id = "string"
}
}
UrlRedirect の場合は、次の値を使用します。
name = "UrlRedirect"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters"
customFragment = "string"
customHostname = "string"
customPath = "string"
customQueryString = "string"
destinationProtocol = "string"
redirectType = "string"
}
UrlRewrite の場合は、次の値を使用します。
name = "UrlRewrite"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"
destination = "string"
preserveUnmatchedPath = bool
sourcePattern = "string"
}
UrlSigning の場合は、次の値を使用します。
name = "UrlSigning"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters"
algorithm = "SHA256"
parameterNameOverride = [
{
paramIndicator = "string"
paramName = "string"
}
]
}
DeliveryRuleCondition オブジェクト
name プロパティを設定して、オブジェクトの種類を指定します。
Cookie の場合は、次の値を使用します。
name = "Cookies"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
selector = "string"
transforms = [
"string"
]
}
HttpVersion の場合は、次の値を使用します。
name = "HttpVersion"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "Equal"
}
IsDevice の場合は、次の値を使用します。
name = "IsDevice"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "Equal"
transforms = [
"string"
]
}
PostArgs の場合は、次の値を使用します。
name = "PostArgs"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
selector = "string"
transforms = [
"string"
]
}
QueryString の場合は、次の値を使用します。
name = "QueryString"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
transforms = [
"string"
]
}
RemoteAddress の場合は、次の値を使用します。
name = "RemoteAddress"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
transforms = [
"string"
]
}
RequestBody の場合は、次の値を使用します。
name = "RequestBody"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
transforms = [
"string"
]
}
RequestHeader の場合は、次の値を使用します。
name = "RequestHeader"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
selector = "string"
transforms = [
"string"
]
}
RequestMethod の場合は、次の値を使用します。
name = "RequestMethod"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "Equal"
}
RequestScheme の場合は、次の値を使用します。
name = "RequestScheme"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "Equal"
}
RequestUri の場合は、次の値を使用します。
name = "RequestUri"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
transforms = [
"string"
]
}
UrlFileExtension の場合は、次の値を使用します。
name = "UrlFileExtension"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
transforms = [
"string"
]
}
UrlFileName の場合は、次の値を使用します。
name = "UrlFileName"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
transforms = [
"string"
]
}
UrlPath の場合は、次の値を使用します。
name = "UrlPath"
parameters = {
@odata.type = "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters"
matchValues = [
"string"
]
negateCondition = bool
operator = "string"
transforms = [
"string"
]
}
プロパティ値
profiles/ruleSets/rules
名前 | 説明 | 値 |
---|---|---|
type | リソースの種類 | "Microsoft.Cdn/profiles/ruleSets/rules@2020-09-01" |
name | リソース名 | string (必須) |
parent_id | このリソースの親であるリソースの ID。 | 種類のリソースの ID: ruleSets |
properties | 作成する Rules のプロパティを含む JSON オブジェクト。 | RuleProperties |
RuleProperties
名前 | 説明 | 値 |
---|---|---|
actions | ルールのすべての条件が満たされたときに実行されるアクションの一覧。 | DeliveryRuleActionAutoGenerated[] |
設定 | アクションを実行するために一致する必要がある条件の一覧 | DeliveryRuleCondition[] |
matchProcessingBehavior | このルールが一致する場合、ルール エンジンは残りのルールの実行を続行するか、停止する必要があります。 存在しない場合、既定値は Continue です。 | "Continue" "停止" |
順序 | エンドポイントにルールが適用される順序。 使用可能な値 {0,1,2,3,.........} 順序が小さいルールは、より大きな順序のルールの前に適用されます。 順序 0 のルールは特別なルールです。 条件を必要とせず、それに記載されているアクションは常に適用されます。 | INT |
DeliveryRuleActionAutoGenerated
名前 | 説明 | 値 |
---|---|---|
name | オブジェクトの種類を設定する | CacheExpiration CacheKeyQueryString ModifyRequestHeader ModifyResponseHeader OriginGroupOverride UrlRedirect UrlRewrite UrlSigning (必須) |
DeliveryRuleCacheExpirationAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "CacheExpiration" (必須) |
parameters | アクションのパラメーターを定義します。 | CacheExpirationActionParameters (必須) |
CacheExpirationActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters" (必須) | |
cacheBehavior | 要求のキャッシュ動作 | "BypassCache" "オーバーライド" "SetIfMissing" (必須) |
cacheDuration | コンテンツをキャッシュする必要がある期間。 使用できる形式は [d.]hh:mm:ss です | string |
cacheType | コンテンツをキャッシュする必要があるレベル。 | "すべて" (必須) |
DeliveryRuleCacheKeyQueryStringAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "CacheKeyQueryString" (必須) |
parameters | アクションのパラメーターを定義します。 | CacheKeyQueryStringActionParameters (必須) |
CacheKeyQueryStringActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters" (必須) | |
queryParameters | を含めるか除外するクエリ パラメーター (コンマ区切り)。 | string |
queryStringBehavior | 要求のキャッシュ動作 | "除外" "ExcludeAll" "Include" "IncludeAll" (必須) |
DeliveryRuleRequestHeaderAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "ModifyRequestHeader" (必須) |
parameters | アクションのパラメーターを定義します。 | HeaderActionParameters (必須) |
HeaderActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters" (必須) | |
headerAction | 実行するアクション | "Append" "削除" "上書き" (必須) |
headerName | 変更するヘッダーの名前 | string (必須) |
value | 指定したアクションの値 | string |
DeliveryRuleResponseHeaderAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "ModifyResponseHeader" (必須) |
parameters | アクションのパラメーターを定義します。 | HeaderActionParameters (必須) |
OriginGroupOverrideAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "OriginGroupOverride" (必須) |
parameters | アクションのパラメーターを定義します。 | OriginGroupOverrideActionParameters (必須) |
OriginGroupOverrideActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters" (必須) | |
originGroup | は、DefaultOriginGroup をオーバーライドする OriginGroup を定義します。 | ResourceReference (必須) |
ResourceReference
名前 | 説明 | 値 |
---|---|---|
id | リソースの ID | string |
UrlRedirectAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "UrlRedirect" (必須) |
parameters | アクションのパラメーターを定義します。 | UrlRedirectActionParameters (必須) |
UrlRedirectActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters" (必須) | |
customFragment | リダイレクト URL に追加するフラグメント。 フラグメントは、 # の後に来る URL の一部です。 #を含めないでください。 | string |
customHostname | リダイレクトするホスト。 受信ホストを宛先ホストとして使用するには、空のままにします。 | string |
customPath | リダイレクトする完全なパス。 パスを空にすることはできません。/で始まる必要があります。 受信パスを宛先パスとして使用するには、空のままにします。 | string |
customQueryString | リダイレクト URL に配置するクエリ文字列のセット。 この値を設定すると、既存のクエリ文字列が置き換えられます。受信クエリ文字列を保持するには、空のままにします。 クエリ文字列は {key}={value} 形式である必要があります。 ? & は自動的に追加されるため、含めないでください。 | string |
destinationProtocol | リダイレクトに使用するプロトコル。 既定値は MatchRequest です | "Http" "Https" "MatchRequest" |
redirectType | トラフィックをリダイレクトするときにルールが使用するリダイレクトの種類。 | "Found" "移動" "PermanentRedirect" "TemporaryRedirect" (必須) |
UrlRewriteAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "UrlRewrite" (必須) |
parameters | アクションのパラメーターを定義します。 | UrlRewriteActionParameters (必須) |
UrlRewriteActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters" (必須) | |
destination | 上記の要求の書き換え先となる相対 URL を定義します。 | string (必須) |
preserveUnmatchedPath | 不一致のパスを保持するかどうか。 既定値は true です。 | [bool] |
sourcePattern | は、書き換えられる可能性のある要求の種類を識別する要求 URI パターンを定義します。 value が空白の場合、すべての文字列が一致します。 | string (必須) |
UrlSigningAction
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールのアクションの名前。 | "UrlSigning" (必須) |
parameters | アクションのパラメーターを定義します。 | UrlSigningActionParameters (必須) |
UrlSigningActionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlSigningActionParameters" (必須) | |
アルゴリズム | URL 署名に使用するアルゴリズム | "SHA256" |
parameterNameOverride | 有効期限、キー ID などについて考慮する URL 内のクエリ文字列パラメーターを定義します。 | UrlSigningParamIdentifier[] |
UrlSigningParamIdentifier
名前 | 説明 | 値 |
---|---|---|
paramIndicator | パラメーターの目的を示します | "Expires" "KeyId" "Signature" (必須) |
paramName | パラメーター名 | string (必須) |
DeliveryRuleCondition
名前 | 説明 | 値 |
---|---|---|
name | オブジェクトの種類を設定する | Cookie HttpVersion IsDevice PostArgs QueryString RemoteAddress RequestBody RequestHeader RequestMethod RequestScheme RequestUri UrlFileExtension UrlFileName UrlPath (必須) |
DeliveryRuleCookiesCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "Cookie" (必須) |
parameters | 条件のパラメーターを定義します。 | CookiesMatchConditionParameters (必須) |
CookiesMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
セレクター | 照合する Cookie の名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleHttpVersionCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "HttpVersion" (必須) |
parameters | 条件のパラメーターを定義します。 | HttpVersionMatchConditionParameters (必須) |
HttpVersionMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "等しい" (必須) |
DeliveryRuleIsDeviceCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "IsDevice" (必須) |
parameters | 条件のパラメーターを定義します。 | IsDeviceMatchConditionParameters (必須) |
IsDeviceMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: "デスクトップ" "モバイル" |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "等しい" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRulePostArgsCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "PostArgs" (必須) |
parameters | 条件のパラメーターを定義します。 | PostArgsMatchConditionParameters (必須) |
PostArgsMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
セレクター | 照合する PostArg の名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleQueryStringCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "QueryString" (必須) |
parameters | 条件のパラメーターを定義します。 | QueryStringMatchConditionParameters (必須) |
QueryStringMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleRemoteAddressCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "RemoteAddress" (必須) |
parameters | 条件のパラメーターを定義します。 | RemoteAddressMatchConditionParameters (必須) |
RemoteAddressMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters" (必須) | |
matchValues | 一致する値を照合します。 演算子は、OR セマンティクスを使用して、ここでの各値に適用されます。 いずれかが指定された演算子で変数と一致する場合、この一致条件は一致と見なされます。 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | "Any" "GeoMatch" "IPMatch" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleRequestBodyCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "RequestBody" (必須) |
parameters | 条件のパラメーターを定義します。 | RequestBodyMatchConditionParameters (必須) |
RequestBodyMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleRequestHeaderCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "RequestHeader" (必須) |
parameters | 条件のパラメーターを定義します。 | RequestHeaderMatchConditionParameters (必須) |
RequestHeaderMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
セレクター | 一致するヘッダーの名前 | string |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleRequestMethodCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "RequestMethod" (必須) |
parameters | 条件のパラメーターを定義します。 | RequestMethodMatchConditionParameters (必須) |
RequestMethodMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: "DELETE" "GET" "HEAD" "OPTIONS" "POST" "PUT" "TRACE" |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "等しい" (必須) |
DeliveryRuleRequestSchemeCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "RequestScheme" (必須) |
parameters | 条件のパラメーターを定義します。 | RequestSchemeMatchConditionParameters (必須) |
RequestSchemeMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | 次のいずれかを含む文字列配列: "HTTP" "HTTPS" |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "等しい" (必須) |
DeliveryRuleRequestUriCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "RequestUri" (必須) |
parameters | 条件のパラメーターを定義します。 | RequestUriMatchConditionParameters (必須) |
RequestUriMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが否定条件であるかどうかを説明します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleUrlFileExtensionCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "UrlFileExtension" (必須) |
parameters | 条件のパラメーターを定義します。 | UrlFileExtensionMatchConditionParameters (必須) |
UrlFileExtensionMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleUrlFileNameCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "UrlFileName" (必須) |
parameters | 条件のパラメーターを定義します。 | UrlFileNameMatchConditionParameters (必須) |
UrlFileNameMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
DeliveryRuleUrlPathCondition
名前 | 説明 | 値 |
---|---|---|
name | 配信ルールの条件の名前。 | "UrlPath" (必須) |
parameters | 条件のパラメーターを定義します。 | UrlPathMatchConditionParameters (必須) |
UrlPathMatchConditionParameters
名前 | 説明 | 値 |
---|---|---|
@odata.type | "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters" (必須) | |
matchValues | 配信ルールの条件の一致値 | string[] |
negateCondition | これが条件を否定するかどうかを記述します | [bool] |
operator | 一致する演算子について説明します | "Any" "BeginsWith" "Contains" "EndsWith" "等しい" "GreaterThan" "GreaterThanOrEqual" "LessThan" "LessThanOrEqual" "RegEx" "ワイルドカード" (必須) |
変換 | 変換のリスト | 次のいずれかを含む文字列配列: "小文字" "RemoveNulls" "Trim" "大文字" "UrlDecode" "UrlEncode" |
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示