Κοινή χρήση μέσω


az cdn endpoint rule condition

Command group 'cdn endpoint rule' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage delivery rule conditions for an endpoint.

Commands

Name Description Type Status
az cdn endpoint rule condition add

Add a condition to a delivery rule.

Core Preview
az cdn endpoint rule condition remove

Remove a condition from a delivery rule.

Core Preview
az cdn endpoint rule condition show

Show delivery rules associate with the endpoint.

Core Preview

az cdn endpoint rule condition add

Preview

Command group 'cdn endpoint rule condition' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Add a condition to a delivery rule.

az cdn endpoint rule condition add --match-variable {ClientPort, Cookies, HostName, HttpVersion, IsDevice, PostArgs, QueryString, RemoteAddress, RequestBody, RequestHeader, RequestMethod, RequestScheme, RequestUri, ServerPort, SocketAddr, SslProtocol, UrlFileExtension, UrlFileName, UrlPath}
                                   --operator
                                   --rule-name
                                   [--ids]
                                   [--match-values]
                                   [--name]
                                   [--negate-condition {false, true}]
                                   [--profile-name]
                                   [--resource-group]
                                   [--selector]
                                   [--subscription]
                                   [--transform {Lowercase, Uppercase}]

Examples

Add a remote address condition.

az cdn endpoint rule condition add -g group -n endpoint --profile-name profile --rule-name name --match-variable RemoteAddress --operator GeoMatch --match-values "TH"

Required Parameters

--match-variable

Name of the match condition: https://learn.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-match-conditions.

Property Value
Parameter group: Match Condition Arguments
Accepted values: ClientPort, Cookies, HostName, HttpVersion, IsDevice, PostArgs, QueryString, RemoteAddress, RequestBody, RequestHeader, RequestMethod, RequestScheme, RequestUri, ServerPort, SocketAddr, SslProtocol, UrlFileExtension, UrlFileName, UrlPath
--operator

Operator of the match condition.

Property Value
Parameter group: Match Condition Arguments
--rule-name

Name of the rule.

Optional Parameters

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

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--match-values

Match values of the match condition. e.g, space separated values "GET" "HTTP".

Property Value
Parameter group: Match Condition Arguments
--name -n

Name of the CDN endpoint.

Property Value
Parameter group: Resource Id Arguments
--negate-condition

If true, negates the condition.

Property Value
Parameter group: Match Condition Arguments
Accepted values: false, true
--profile-name

Name of the CDN profile which is unique within the resource group.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--selector

Selector of the match condition.

Property Value
Parameter group: Match Condition Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
--transform

Transform to apply before matching.

Property Value
Parameter group: Match Condition Arguments
Accepted values: Lowercase, Uppercase
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az cdn endpoint rule condition remove

Preview

Command group 'cdn endpoint rule condition' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Remove a condition from a delivery rule.

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

Examples

Remove the first condition.

az cdn endpoint rule condition remove -g group -n endpoint --profile-name profile --rule-name name --index 0

Required Parameters

--index

The index of the condition/action.

--rule-name

Name of the rule.

Optional Parameters

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

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name -n

Name of the CDN endpoint.

Property Value
Parameter group: Resource Id Arguments
--profile-name

Name of the CDN profile which is unique within the resource group.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az cdn endpoint rule condition show

Preview

Command group 'cdn endpoint rule condition' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show delivery rules associate with the endpoint.

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

Examples

show delivery rules associate with the endpoint.

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

Optional Parameters

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

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name -n

Name of the CDN endpoint.

Property Value
Parameter group: Resource Id Arguments
--profile-name

Name of the CDN profile which is unique within the resource group.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False