次の方法で共有


az cdn endpoint rule

このコマンド グループはプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

エンドポイントの配信ルールを管理します。

コマンド

名前 説明 状態
az cdn endpoint rule action

エンドポイントの配信ルール アクションを管理します。

Core Preview
az cdn endpoint rule action add

配信ルールにアクションを追加します。

Core Preview
az cdn endpoint rule action remove

配信ルールからアクションを削除します。

Core Preview
az cdn endpoint rule action show

配信ルールをエンドポイントと関連付けして表示します。

Core Preview
az cdn endpoint rule add

CDN エンドポイントに配信ルールを追加します。

Core Preview
az cdn endpoint rule condition

エンドポイントの配信ルールの条件を管理します。

Core Preview
az cdn endpoint rule condition add

配信ルールに条件を追加します。

Core Preview
az cdn endpoint rule condition remove

配信ルールから条件を削除します。

Core Preview
az cdn endpoint rule condition show

エンドポイントに関連付ける配信ルールを表示します。

Core Preview
az cdn endpoint rule remove

エンドポイントから配信ルールを削除します。

Core Preview
az cdn endpoint rule show

エンドポイントに関連付ける配信ルールを表示します。

Core Preview

az cdn endpoint rule add

プレビュー

コマンド グループ "cdn endpoint rule" はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

CDN エンドポイントに配信ルールを追加します。

az cdn endpoint rule add --action-name {CacheExpiration, CacheKeyQueryString, ModifyRequestHeader, ModifyResponseHeader, OriginGroupOverride, UrlRedirect, UrlRewrite}
                         --order
                         [--cache-behavior {BypassCache, Override, SetIfMissing}]
                         [--cache-duration]
                         [--custom-fragment]
                         [--custom-hostname]
                         [--custom-path]
                         [--custom-querystring]
                         [--destination]
                         [--header-action {Append, Delete, Overwrite}]
                         [--header-name]
                         [--header-value]
                         [--ids]
                         [--match-values]
                         [--match-variable {ClientPort, Cookies, HostName, HttpVersion, IsDevice, PostArgs, QueryString, RemoteAddress, RequestBody, RequestHeader, RequestMethod, RequestScheme, RequestUri, ServerPort, SocketAddr, SslProtocol, UrlFileExtension, UrlFileName, UrlPath}]
                         [--name]
                         [--negate-condition {false, true}]
                         [--operator]
                         [--origin-group]
                         [--preserve-unmatched-path {false, true}]
                         [--profile-name]
                         [--query-parameters]
                         [--query-string-behavior {Exclude, ExcludeAll, Include, IncludeAll}]
                         [--redirect-protocol {Http, Https, MatchRequest}]
                         [--redirect-type {Found, Moved, PermanentRedirect, TemporaryRedirect}]
                         [--resource-group]
                         [--rule-name]
                         [--selector]
                         [--source-pattern]
                         [--subscription]
                         [--transform {Lowercase, Uppercase}]

キャッシュを無効にするグローバルルールを作成します。

az cdn endpoint rule add -g group -n endpoint --profile-name profile --order 0 --rule-name global --action-name CacheExpiration --cache-behavior BypassCache

http から https へのリダイレクトの規則を作成します。

az cdn endpoint rule add -g group -n endpoint --profile-name profile --order 1 --rule-name "redirect" --match-variable RequestScheme --operator Equal --match-values HTTP --action-name "UrlRedirect" --redirect-protocol Https --redirect-type Moved

"origingroup1" という名前の配信元グループへの URL パスに "/test1" を含む要求を分散するルールを作成します。

az cdn endpoint rule add -g group -n endpoint --profile-name profile --order 1 --rule-name "origin-group-override" --match-variable UrlPath --operator Contains --match-values /test1 --action-name "OriginGroupOverride" --origin-group origingroup1

必須のパラメーター

--action-name

配信ルールのアクションの名前: https://learn.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-actions

プロパティ
Parameter group: Action Arguments
指定可能な値: CacheExpiration, CacheKeyQueryString, ModifyRequestHeader, ModifyResponseHeader, OriginGroupOverride, UrlRedirect, UrlRewrite
--order

エンドポイントにルールが適用される順序。 指定できる値は {0,1,2,3,.........} です。 順序が低いルールは、順序の高いルールの前に適用されます。 順序 0 のルールは特別なルールです。 条件は不要で、リストに記載されているアクションは常に適用されます。

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--cache-behavior

要求のキャッシュ動作。

プロパティ
Parameter group: Action Arguments
指定可能な値: BypassCache, Override, SetIfMissing
--cache-duration

コンテンツをキャッシュする必要がある期間。 使用できる形式は hh:mm:ss.xxxxxx です。

プロパティ
Parameter group: Action Arguments
--custom-fragment

リダイレクト URL に追加するフラグメント。

プロパティ
Parameter group: Action Arguments
--custom-hostname

リダイレクトするホスト。 受信ホストを宛先ホストとして使用するには、空のままにします。

プロパティ
Parameter group: Action Arguments
--custom-path

リダイレクトする完全なパス。 パスを空にすることはできず、/で始まる必要があります。 受信パスを宛先パスとして使用するには、空のままにします。

プロパティ
Parameter group: Action Arguments
--custom-querystring

リダイレクト URL に配置するクエリ文字列のセット。 受信クエリ文字列を保持するには、空のままにします。

プロパティ
Parameter group: Action Arguments
--destination

書き換えに使用する宛先パス。

プロパティ
Parameter group: Action Arguments
--header-action

要求のヘッダー アクション。

プロパティ
Parameter group: Action Arguments
指定可能な値: Append, Delete, Overwrite
--header-name

変更するヘッダーの名前。

プロパティ
Parameter group: Action Arguments
--header-value

ヘッダーの値。

プロパティ
Parameter group: Action Arguments
--ids

1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

プロパティ
Parameter group: Resource Id Arguments
--match-values

一致条件の値と一致します。 たとえば、スペース区切り値 "GET" "HTTP" などです。

プロパティ
Parameter group: Match Condition Arguments
--match-variable

一致条件の名前: https://learn.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-match-conditions

プロパティ
Parameter group: Match Condition Arguments
指定可能な値: ClientPort, Cookies, HostName, HttpVersion, IsDevice, PostArgs, QueryString, RemoteAddress, RequestBody, RequestHeader, RequestMethod, RequestScheme, RequestUri, ServerPort, SocketAddr, SslProtocol, UrlFileExtension, UrlFileName, UrlPath
--name -n

CDN エンドポイントの名前。

プロパティ
Parameter group: Resource Id Arguments
--negate-condition

true の場合、条件を否定します。

プロパティ
Parameter group: Match Condition Arguments
指定可能な値: false, true
--operator

一致条件の演算子。

プロパティ
Parameter group: Match Condition Arguments
--origin-group

既定の OriginGroup をオーバーライドする OriginGroup の名前または ID。

プロパティ
Parameter group: Action Arguments
--preserve-unmatched-path

True の場合、ソース パターンの後の残りのパスが新しい宛先パスに追加されます。

プロパティ
Parameter group: Action Arguments
指定可能な値: false, true
--profile-name

リソース グループ内で一意である CDN プロファイルの名前。

プロパティ
Parameter group: Resource Id Arguments
--query-parameters

含めるか除外するクエリ パラメーター (コンマ区切り)。

プロパティ
Parameter group: Action Arguments
--query-string-behavior

要求のクエリ文字列の動作。

プロパティ
Parameter group: Action Arguments
指定可能な値: Exclude, ExcludeAll, Include, IncludeAll
--redirect-protocol

リダイレクトに使用するプロトコル。

プロパティ
Parameter group: Action Arguments
指定可能な値: Http, Https, MatchRequest
--redirect-type

トラフィックをリダイレクトするときにルールが使用するリダイレクトの種類。

プロパティ
Parameter group: Action Arguments
指定可能な値: Found, Moved, PermanentRedirect, TemporaryRedirect
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name>を使用して既定のグループを構成できます。

プロパティ
Parameter group: Resource Id Arguments
--rule-name

規則の名前。Microsoft SKU にのみ必要です。

--selector

一致条件のセレクター。

プロパティ
Parameter group: Match Condition Arguments
--source-pattern

書き換えられる可能性がある要求の種類を識別する要求 URI パターン。

プロパティ
Parameter group: Action Arguments
--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。

プロパティ
Parameter group: Resource Id Arguments
--transform

一致する前に適用する変換。

プロパティ
Parameter group: Match Condition Arguments
指定可能な値: Lowercase, Uppercase
グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az cdn endpoint rule remove

プレビュー

コマンド グループ "cdn endpoint rule" はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

エンドポイントから配信ルールを削除します。

az cdn endpoint rule remove [--ids]
                            [--name]
                            [--order]
                            [--profile-name]
                            [--resource-group]
                            [--rule-name]
                            [--subscription]

グローバル ルールを削除します。

az cdn endpoint rule remove -g group -n endpoint --profile-name profile --rule-name Global

順序 4 のルールを削除します。

az cdn endpoint rule remove -g group -n endpoint --profile-name profile --order 4

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

プロパティ
Parameter group: Resource Id Arguments
--name -n

CDN エンドポイントの名前。

プロパティ
Parameter group: Resource Id Arguments
--order

エンドポイントにルールが適用される順序。 指定できる値は {0,1,2,3,.........} です。 順序が低いルールは、順序の高いルールの前に適用されます。 順序 0 のルールは特別なルールです。 条件は不要で、リストに記載されているアクションは常に適用されます。

--profile-name

リソース グループ内で一意である CDN プロファイルの名前。

プロパティ
Parameter group: Resource Id Arguments
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name>を使用して既定のグループを構成できます。

プロパティ
Parameter group: Resource Id Arguments
--rule-name

ルールの名前。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。

プロパティ
Parameter group: Resource Id Arguments
グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False

az cdn endpoint rule show

プレビュー

コマンド グループ "cdn endpoint rule" はプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

エンドポイントに関連付ける配信ルールを表示します。

az cdn endpoint rule show [--ids]
                          [--name]
                          [--profile-name]
                          [--resource-group]
                          [--subscription]

は、エンドポイントに関連付ける配信ルールを表示します。

az cdn endpoint rule show -g group -n endpoint --profile-name profile

省略可能のパラメーター

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

プロパティ
Parameter group: Resource Id Arguments
--name -n

CDN エンドポイントの名前。

プロパティ
Parameter group: Resource Id Arguments
--profile-name

リソース グループ内で一意である CDN プロファイルの名前。

プロパティ
Parameter group: Resource Id Arguments
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name>を使用して既定のグループを構成できます。

プロパティ
Parameter group: Resource Id Arguments
--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_IDを使用して既定のサブスクリプションを構成できます。

プロパティ
Parameter group: Resource Id Arguments
グローバル パラメーター
--debug

ログの詳細度を上げて、すべてのデバッグ ログを表示します。

プロパティ
規定値: False
--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告を抑制します。

プロパティ
規定値: False
--output -o

Output format.

プロパティ
規定値: json
指定可能な値: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。

--verbose

ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。

プロパティ
規定値: False