diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_actions.py b/src/azure-cli/azure/cli/command_modules/cdn/_actions.py new file mode 100644 index 00000000000..ed216612ecd --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/_actions.py @@ -0,0 +1,127 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import argparse + +from knack.util import CLIError + + +# pylint:disable=protected-access +# pylint:disable=too-few-public-methods +class OriginType(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + deep_created_origin = self.get_origin(values, option_string) + super(OriginType, self).__call__(parser, namespace, deep_created_origin, option_string) + + def get_origin(self, values, option_string): + from azure.mgmt.cdn.models import DeepCreatedOrigin + + if not 1 <= len(values) <= 3: + msg = '%s takes 1, 2 or 3 values, %d given' + raise argparse.ArgumentError( + self, msg % (option_string, len(values))) + + deep_created_origin = DeepCreatedOrigin( + name='origin', host_name=values[0], http_port=80, https_port=443) + if len(values) > 1: + deep_created_origin.http_port = int(values[1]) + if len(values) > 2: + deep_created_origin.https_port = int(values[2]) + return deep_created_origin + + +# pylint: disable=protected-access +# pylint:disable=too-few-public-methods +class MatchConditionAction(argparse._AppendAction): + + def __call__(self, parser, namespace, values, option_string=None): + match_condition = get_match_condition(values, option_string) + super(MatchConditionAction, self).__call__(parser, namespace, match_condition, option_string) + + +def get_match_condition(values, option_string): + from azure.mgmt.cdn.models import MatchCondition + + match_values = [] + match_variable = None + negate_condition = None + operator = None + selector = None + transforms = [] + for item in values: + if '=' not in item: + raise CLIError('usage error: {} KEY=VALUE [KEY=VALUE ...]'.format(option_string)) + key, value = item.split('=', 1) + key = key.lower() + + if key == "match-value": + match_values.append(value) + elif key == "transform": + transforms.append(value) + elif key == "match-variable": + if match_variable is not None: + raise CLIError('usage error: match-variable may only be specified once per match condition.') + match_variable = value + elif key == "negate": + if negate_condition is not None: + raise CLIError('usage error: negate may only be specified once per match condition.') + negate_condition = value.lower() == "true" + elif key == "operator": + if operator is not None: + raise CLIError('usage error: operator may only be specified once per match condition.') + operator = value + elif key == "selector": + if selector is not None: + raise CLIError('usage error: selector may only be specified once per match condition.') + selector = value + else: + raise CLIError('usage error: unrecognized key {}'.format(key)) + return MatchCondition(match_variable=match_variable, + match_value=match_values, + negate_condition=negate_condition, + operator=operator, + selector=selector, + transforms=transforms) + + +# pylint: disable=protected-access +# pylint:disable=too-few-public-methods +class ManagedRuleOverrideAction(argparse._AppendAction): + + def __call__(self, parser, namespace, values, option_string=None): + rule_override = get_rule_override(values, option_string) + super(ManagedRuleOverrideAction, self).__call__(parser, namespace, rule_override, option_string) + + +def get_rule_override(values, option_string): + from azure.mgmt.cdn.models import ManagedRuleOverride + + rule_id = None + action = None + enabled = None + + for item in values: + if '=' not in item: + raise CLIError('usage error: {} KEY=VALUE [KEY=VALUE ...]'.format(option_string)) + key, value = item.split('=', 1) + key = key.lower() + + if key == "id": + if rule_id is not None: + raise CLIError('usage error: id may only be specified once per rule override.') + rule_id = value + elif key == "action": + if action is not None: + raise CLIError('usage error: action may only be specified once per rule override.') + action = value + elif key == "enabled": + if enabled is not None: + raise CLIError('usage error: enabled may only be specified once per rule override.') + enabled = value + else: + raise CLIError('usage error: unrecognized key {}'.format(key)) + return ManagedRuleOverride(rule_id=rule_id, + action=action, + enabled_state=enabled) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py b/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py index f089bd7af01..ba54525b229 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py @@ -32,3 +32,11 @@ def cf_resource_usage(cli_ctx, _): def cf_edge_nodes(cli_ctx, _): return cf_cdn(cli_ctx).edge_nodes + + +def cf_waf_policy(cli_ctx, _): + return cf_cdn(cli_ctx).policies + + +def cf_waf_rule_set(cli_ctx, _): + return cf_cdn(cli_ctx).managed_rule_sets diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_help.py b/src/azure-cli/azure/cli/command_modules/cdn/_help.py index 1e18343c235..515c8938fa0 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_help.py @@ -40,6 +40,10 @@ text: > az cdn custom-domain create -g group --endpoint-name endpoint --profile-name profile \\ -n domain-name --hostname www.example.com + - name: Enable custom https with a minimum + text: > + az cdn custom-domain create -g group --endpoint-name endpoint --profile-name profile \\ + -n domain-name --hostname www.example.com """ helps['cdn custom-domain delete'] = """ @@ -78,16 +82,16 @@ examples: - name: Create an endpoint to service content for hostname over HTTP or HTTPS. text: > - az cdn endpoint create -g group -n endpoint --profile-name profile \\ - --origin www.example.com + az cdn endpoint create -g group -n endpoint --profile-name profile + --origin www.example.com - name: Create an endpoint with a custom domain origin with HTTP and HTTPS ports. text: > - az cdn endpoint create -g group -n endpoint --profile-name profile \\ - --origin www.example.com 88 4444 + az cdn endpoint create -g group -n endpoint --profile-name profile + --origin www.example.com 88 4444 - name: Create an endpoint with a custom domain with compression and only HTTPS. text: > - az cdn endpoint create -g group -n endpoint --profile-name profile \\ - --origin www.example.com --no-http --enable-compression + az cdn endpoint create -g group -n endpoint --profile-name profile + --origin www.example.com --no-http --enable-compression """ helps['cdn endpoint delete'] = """ @@ -95,8 +99,7 @@ short-summary: Delete a CDN endpoint. examples: - name: Delete a CDN endpoint. - text: > - az cdn endpoint delete -g group -n endpoint --profile-name profile-name + text: az cdn endpoint delete -g group -n endpoint --profile-name profile-name """ helps['cdn endpoint list'] = """ @@ -114,8 +117,8 @@ examples: - name: Pre-load Javascript and CSS content for an endpoint. text: > - az cdn endpoint load -g group -n endpoint --profile-name profile-name --content-paths \\ - '/scripts/app.js' '/styles/main.css' + az cdn endpoint load -g group -n endpoint --profile-name profile-name --content-paths + '/scripts/app.js' '/styles/main.css' """ helps['cdn endpoint purge'] = """ @@ -124,8 +127,8 @@ examples: - name: Purge pre-loaded Javascript and CSS content. text: > - az cdn endpoint purge -g group -n endpoint --profile-name profile-name --content-paths \\ - '/scripts/app.js' '/styles/*' + az cdn endpoint purge -g group -n endpoint --profile-name profile-name --content-paths + '/scripts/app.js' '/styles/*' """ helps['cdn endpoint start'] = """ @@ -155,8 +158,8 @@ az cdn endpoint update -g group -n endpoint --profile-name profile --no-http - name: Enable content compression for an endpoint. text: > - az cdn endpoint update -g group -n endpoint --profile-name profile \\ - --enable-compression + az cdn endpoint update -g group -n endpoint --profile-name profile + --enable-compression """ helps['cdn endpoint rule'] = """ @@ -170,13 +173,13 @@ examples: - name: Create a global rule to disable caching. text: > - az cdn endpoint rule add -g group -n endpoint --profile-name profile --order 0\\ - --rule-name global --action-name CacheExpiration --cache-behavior BypassCache + az cdn endpoint rule add -g group -n endpoint --profile-name profile --order 0 + --rule-name global --action-name CacheExpiration --cache-behavior BypassCache - name: Create a rule for http to https redirect text: > - az cdn endpoint rule add -g group -n endpoint --profile-name profile --order 1\\ - --rule-name "redirect" --match-variable RequestScheme --operator Equal --match-values HTTPS\\ - --action-name "UrlRedirect" --redirect-protocol Https --redirect-type Moved + az cdn endpoint rule add -g group -n endpoint --profile-name profile --order 1 + --rule-name "redirect" --match-variable RequestScheme --operator Equal --match-values HTTPS + --action-name "UrlRedirect" --redirect-protocol Https --redirect-type Moved """ helps['cdn endpoint rule remove'] = """ @@ -185,7 +188,7 @@ examples: - name: Remove the global rule. text: > - az cdn endpoint rule remove -g group -n endpoint --profile-name profile --rule-name Global\\ + az cdn endpoint rule remove -g group -n endpoint --profile-name profile --rule-name Global """ helps['cdn endpoint rule show'] = """ @@ -194,7 +197,7 @@ examples: - name: show delivery rules asscociate with the endpoint. text: > - az cdn endpoint rule show -g group --profile-name profile-name + az cdn endpoint rule show -g group -n endpoint --profile-name profile """ helps['cdn endpoint rule condition'] = """ @@ -208,7 +211,7 @@ examples: - name: Add a remote address condition. text: > - az cdn endpoint rule condition add -g group -n endpoint --profile-name profile --rule-name name\\ + az cdn endpoint rule condition add -g group -n endpoint --profile-name profile --rule-name name \\ --match-variable RemoteAddress --operator GeoMatch --match-values "TH" """ @@ -218,7 +221,7 @@ examples: - name: Remove the first condition. text: > - az cdn endpoint rule condition remove -g group -n endpoint --profile-name profile --rule-name name\\ + az cdn endpoint rule condition remove -g group -n endpoint --profile-name profile --rule-name name \\ --index 0 """ @@ -228,7 +231,7 @@ examples: - name: show delivery rules asscociate with the endpoint. text: > - az cdn endpoint rule condition show -g group --profile-name profile-name + az cdn endpoint rule condition show -g group -n endpoint --profile-name profile-name """ helps['cdn endpoint rule action'] = """ @@ -242,11 +245,11 @@ examples: - name: Add a redirect action. text: > - az cdn endpoint rule action add -g group -n endpoint --profile-name profile --rule-name name\\ + az cdn endpoint rule action add -g group -n endpoint --profile-name profile --rule-name name \\ --action-name "UrlRedirect" --redirect-protocol HTTPS --redirect-type Moved - name: Add a cache expiration action text: > - az cdn endpoint rule action add -g group -n endpoint --profile-name profile --rule-name name\\ + az cdn endpoint rule action add -g group -n endpoint --profile-name profile --rule-name name \\ --action-name "CacheExpiration" --cache-behavior BypassCache """ @@ -256,7 +259,7 @@ examples: - name: Remove the first action. text: > - az cdn endpoint rule action remove -g group -n endpoint --profile-name profile --rule-name name\\ + az cdn endpoint rule action remove -g group -n endpoint --profile-name profile --rule-name name \\ --index 0 """ @@ -266,7 +269,65 @@ examples: - name: show delivery rules asscociate with the endpoint. text: > - az cdn endpoint rule action show -g group --profile-name profile-name + az cdn endpoint rule action show -g group --profile-name profile-name -n endpoint +""" + +helps['cdn endpoint waf'] = """ +type: group +short-summary: Manage WAF properties of a CDN endpoint. +""" + +helps['cdn endpoint waf policy'] = """ +type: group +short-summary: Apply a CDN WAF policy to a CDN endpoint. +""" + +helps['cdn endpoint waf policy set'] = """ +type: command +short-summary: Set the CDN WAF policy applied to a CDN endpoint +parameters: + - name: --waf-policy-id + type: string + short-summary: > + The Resource ID of the CDN WAF policy to apply to this endpoint. + - name: --waf-policy-subscription-id + type: string + short-summary: > + The Resource ID of the CDN WAF policy to apply to this endpoint. ignored + if --waf-policy-id is set. + - name: --waf-policy-resource-group-name + type: string + short-summary: > + The resource group of the CDN WAF policy to apply to this endpoint. + Ignored if --waf-policy-id is set. + - name: --waf-policy-name + type: string + short-summary: > + The name of the CDN WAF policy to apply to this endpoint. Ignored if + --waf-policy-id is set. +examples: + - name: Set the CDN WAF policy applied to a CDN endpoint by WAF Policy name. + text: > + az cdn endpoint waf policy set -g group --endpoint-name endpoint \\ + --profile-name profile --waf-policy-subscription-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \\ +""" + +helps['cdn endpoint waf policy remove'] = """ +type: command +short-summary: Remove a CDN WAF policy from a CDN endpoint. +examples: + - name: Remove a CDN WAF policy from a CDN endpoint. + text: > + az cdn endpoint waf policy remove -g group --endpoint-name endpoint --profile-name profile +""" + +helps['cdn endpoint waf policy show'] = """ +type: command +short-summary: Show which CDN WAF policy is applied to a CDN endpoint. +examples: + - name: Show which CDN WAF policy is applied to a CDN endpoint. + text: > + az cdn endpoint waf policy show -g group --endpoint-name endpoint --profile-name profile """ helps['cdn origin'] = """ @@ -323,3 +384,339 @@ text: az cdn profile update --name MyCDNProfileWhichIsUniqueWithinResourceGroup --resource-group MyResourceGroup crafted: true """ + +helps['cdn waf policy'] = """ +type: group +short-summary: Manage CDN WAF policies. +""" + +helps['cdn waf policy set'] = """ +type: command +short-summary: Create a new CDN WAF policy. +parameters: + - name: --sku + type: string + short-summary: > + The pricing tier (defines a CDN provider, feature list and rate) of the CDN WAF policy. + - name: --mode + type: string + short-summary: The operation mode of the policy. Valid options are 'Detection' and 'Prevention'. + - name: --block-response-body + type: string + short-summary: The response body to send when a request is blocked, provided as a Base64 encoded string. + - name: --block-response-status-code + type: int + short-summary: The response status code to send when a request is blocked. + - name: --redirect-url + type: string + short-summary: The URL to use when redirecting a request. + - name: --disabled + type: bool + short-summary: Disable the policy. +examples: + - name: Create a CDN WAF policy in detection mode. + text: | + az cdn waf policy set -g group -n policy + - name: Create a CDN WAF policy in with a custom block response status code. + text: | + az cdn waf policy set -g group -n policy --mode Prevention --block-response-status-code 200 +""" + +helps['cdn waf policy delete'] = """ +type: command +short-summary: Delete a CDN WAF policy. +examples: + - name: Delete a CDN policy. + text: > + az cdn waf policy delete -g group -n policy +""" + +helps['cdn waf policy list'] = """ +type: command +short-summary: List CDN WAF policies. +examples: + - name: List CDN WAF policies in a resource group. + text: > + az cdn waf policy list -g group +""" + +helps['cdn waf policy show'] = """ +type: command +short-summary: Show details of a CDN WAF policy. +examples: + - name: Get the details of a CDN WAF policy. + text: az cdn waf policy show -g group -n policy +""" + +helps['cdn waf policy managed-rule-set'] = """ +type: group +short-summary: Manage managed rule sets of a CDN WAF policy. +""" + +helps['cdn waf policy managed-rule-set add'] = """ +type: command +short-summary: Add a managed rule set to a CDN WAF policy. +examples: + - name: Add DefaultRuleSet_1.0 to a CDN WAF policy. + text: | + az cdn waf policy managed-rule-set add -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 +""" + +helps['cdn waf policy managed-rule-set remove'] = """ +type: command +short-summary: Remove a managed rule set from a CDN WAF policy. +examples: + - name: Remove DefaultRuleSet_1.0 from a CDN WAF policy. + text: | + az cdn waf policy managed-rule-set remove -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 +""" + +helps['cdn waf policy managed-rule-set list'] = """ +type: command +short-summary: List managed rule sets added to a CDN WAF policy. +examples: + - name: List managed rule sets added to a CDN WAF policy. + text: > + az cdn waf policy managed-rule-set list -g group --policy-name policy +""" + +helps['cdn waf policy managed-rule-set show'] = """ +type: command +short-summary: Show a managed rule of a CDN WAF policy. +examples: + - name: Get a managed rule set of a CDN WAF policy. + text: > + az cdn waf policy managed-rule-set show -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 +""" + +helps['cdn waf policy managed-rule-set list-available'] = """ +type: command +short-summary: List available CDN WAF managed rule sets. +examples: + - name: List all available CDN WAF managed rule sets. + text: az cdn waf policy managed-rule-set list-available +""" + +helps['cdn waf policy managed-rule-set rule-group-override'] = """ +type: group +short-summary: Manage rule group overrides of a managed rule on a CDN WAF policy. +""" + +helps['cdn waf policy managed-rule-set rule-group-override set'] = """ +type: command +short-summary: Add or update a rule group override to a managed rule set on a CDN WAF policy. +parameters: + - name: --rule-override -r + short-summary: Override a rule in the rule group. + long-summary: | + rule overrides are specified as key value pairs in the form "KEY=VALUE [KEY=VALUE ...]". + Available keys are 'id', 'action', and 'enabled'. 'id' is required. Valid values for + 'action' are 'Block', 'Redirect', 'Allow', and 'Log', defaulting to 'Block'. Valid values + for 'enabled' are 'Enabled' and 'Disabled', defaulting to 'Disabled'. +examples: + - name: Add a rule group override for SQL injections to DefaultRuleSet_1.0 on a CDN WAF policy. + text: | + az cdn waf policy managed-rule-set rule-group-override set -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 -n SQLI -r \\ + id=942440 action=Redirect enabled=Enabled + - name: Add multiple rule group overrides to DefaultRuleSet_1.0 on a CDN WAF policy. + text: | + az cdn waf policy managed-rule-set rule-group-override set -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 -n SQLI \\ + -r id=942440 action=Redirect enabled=Enabled \\ + -r id=942120 -r id=942100 +""" + +helps['cdn waf policy managed-rule-set rule-group-override delete'] = """ +type: command +short-summary: Remove a rule group override from a managed rule set on a CDN WAF policy. +examples: + - name: Remove the rule group override for SQLI from DefaultRuleSet_1.0 on a CDN WAF policy. + text: | + az cdn waf policy managed-rule-set rule-group-override delete -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 -n SQLI +""" + +helps['cdn waf policy managed-rule-set rule-group-override list'] = """ +type: command +short-summary: List rule group overrides of a managed rule on a CDN WAF policy. +examples: + - name: List rule group overrides of a managed rule on a CDN WAF policy. + text: > + az cdn waf policy managed-rule-set rule-group-override list -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 +""" + +helps['cdn waf policy managed-rule-set rule-group-override show'] = """ +type: command +short-summary: Show a rule group override of a managed rule on a CDN WAF policy. +examples: + - name: Get the rule group override for rule group SQLI of DefaultRuleSet_1.0 on a CDN WAF policy. + text: > + az cdn waf policy managed-rule-set rule-group-override show -g group --policy-name policy \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 -n SQLI +""" + +helps['cdn waf policy managed-rule-set rule-group-override list-available'] = """ +type: command +short-summary: List available CDN WAF managed rule groups of a managed rule set. +examples: + - name: List available rule groups for DefaultRuleSet_1.0. + text: | + az cdn waf policy managed-rule-set rule-group-override list-available \\ + --rule-set-type DefaultRuleSet --rule-set-version 1.0 +""" + +helps['cdn waf policy custom-rule'] = """ +type: group +short-summary: Manage custom rules of a CDN WAF policy. +""" + +helps['cdn waf policy custom-rule set'] = """ +type: command +short-summary: Add a custom rule to a CDN WAF policy. +parameters: + - name: --action + type: string + short-summary: > + The action to take when the rule is matched. + - name: --match-condition -m + type: string + short-summary: Conditions used to determine if the rule is matched for a request. + long-summary: | + Match conditions are specified as key value pairs in the form "KEY=VALUE [KEY=VALUE ...]". + Available keys are 'match-variable', 'operator', 'match-value', 'selector', 'negate', and + 'transform'. 'match-variable', 'operator', and 'match-value' are required. 'match-value' + and 'transform' may be specified multiple times per match condition. + + Valid values for 'match-variable' are 'RemoteAddr', 'SocketAddr', 'RequestMethod', + 'RequestHeader', 'RequestUri', 'QueryString', 'RequestBody', 'Cookies', and 'PostArgs'. + Valid values for 'operator' are 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', + 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', + 'EndsWith', and 'RegEx'. Valid values for 'transform' are 'Lowercase', 'Uppercase', + 'Trim', 'UrlDecode', 'UrlEncode', and 'RemoveNulls'. Valid values for 'negate' are 'True' + and 'False', and 'negate' defaults to 'False'. + - name: --priority + type: int + short-summary: The priority of the custom rule as a non-negative integer. + - name: --disabled + type: bool + short-summary: Disable the custom rule +examples: + - name: Create or update a rule that blocks requests unless method is GET or POST. + text: | + az cdn waf policy custom-rule set -g group --policy-name policy -n customrule \\ + --action Block --priority 100 --match-condition \\ + match-variable=RequestMethod operator=Equal negate=true match-value=GET match-value=HEAD + - name: Create or update a custom rule with multiple match conditions and whitespace in a match value. + text: | + az cdn waf policy custom-rule set -g group --policy-name policy -n customrule \\ + --action Redirect --priority 100 \\ + -m match-variable=RequestUri operator=Contains match-value=.. \\ + -m match-variable=QueryString operator=Contains "match-value= " +""" + +helps['cdn waf policy custom-rule delete'] = """ +type: command +short-summary: Remove a custom rule from a CDN WAF policy. +examples: + - name: Remove a custom rule from a CDN WAF policy. + text: > + az cdn waf policy custom-rule delete -g group --policy-name policy -n customrule +""" + +helps['cdn waf policy custom-rule list'] = """ +type: command +short-summary: List custom rules of a CDN WAF policy. +examples: + - name: List custom rules of a CDN WAF policy. + text: > + az cdn waf policy custom-rule list -g group --policy-name policy +""" + +helps['cdn waf policy custom-rule show'] = """ +type: command +short-summary: Show a custom rule of a CDN WAF policy. +examples: + - name: Get a custom rule of a CDN WAF policy. + text: > + az cdn waf policy custom-rule show -g group --policy-name policy -n customrule +""" + + +helps['cdn waf policy rate-limit-rule'] = """ +type: group +short-summary: Manage rate limit rules of a CDN WAF policy. +""" + +helps['cdn waf policy rate-limit-rule set'] = """ +type: command +short-summary: Add a rate limit rule to a CDN WAF policy. +parameters: + - name: --action + type: string + short-summary: > + The action to take when the rule is matched. + - name: --match-condition -m + type: string + short-summary: Conditions used to determine if the rule is matched for a request. + long-summary: > + Match conditions are specified as key value pairs in the form "KEY=VALUE [KEY=VALUE ...]". + Available keys are 'match-variable', 'operator', 'match-value', 'selector', 'negate', and + 'transform'. 'match-variable', 'operator', and 'match-value' are required. 'match-value' and + 'transform' may be specified multiple times per match condition. + - name: --priority + type: int + short-summary: The priority of the rate limit rule as a non-negative integer. + - name: --disabled + type: bool + short-summary: Disable the rate limit rule + - name: --duration + type: int + short-summary: The duration of the rate limit in minutes. Valid values are 1 and 5. + - name: --request-threshold + type: int + short-summary: The request threshold to trigger rate limiting. +examples: + - name: Create or update a rule that rate limits requests unless method is GET or POST. + text: | + az cdn waf policy rate-limit-rule set -g group --policy-name policy \\ + -n ratelimitrule --action Block --priority 100 --duration 1 --request-threshold 100 \\ + -m match-variable=RequestMethod operator=Equal negate=true match-value=GET match-value=HEAD + - name: Create or update a rate limit rule with multiple match conditions. + text: | + az cdn waf policy rate-limit-rule set -g group --policy-name policy \\ + -n ratelimitrule --action Redirect --priority 200 --duration 5 --request-threshold 100 \\ + -m match-variable=RequestMethod operator=Equal match-value=PUT \\ + -m match-variable=RequestUri operator=Contains match-value=/expensive/resource/ +""" + +helps['cdn waf policy rate-limit-rule delete'] = """ +type: command +short-summary: Remove a rate limit rule from a CDN WAF policy. +examples: + - name: Remove a rate limit rule from a CDN WAF policy. + text: > + az cdn waf policy rate-limit-rule delete -g group --policy-name policy -n ratelimitrule +""" + +helps['cdn waf policy rate-limit-rule list'] = """ +type: command +short-summary: List rate limit rules of a CDN WAF policy. +examples: + - name: List rate limit rules of a CDN WAF policy. + text: > + az cdn waf policy rate-limit-rule list -g group --policy-name policy +""" + +helps['cdn waf policy rate-limit-rule show'] = """ +type: command +short-summary: Show a rate limit rule of a CDN WAF policy. +examples: + - name: Get a rate limit rule of a CDN WAF policy. + text: > + az cdn waf policy rate-limit-rule show -g group --policy-name policy -n ratelimitrule +""" diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_params.py b/src/azure-cli/azure/cli/command_modules/cdn/_params.py index 5eb35842bb1..12a691ec6b5 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_params.py @@ -2,44 +2,22 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -import argparse - from knack.arguments import CLIArgumentType -from azure.mgmt.cdn.models import QueryStringCachingBehavior, SkuName +from azure.mgmt.cdn.models import QueryStringCachingBehavior, SkuName, ActionType from azure.cli.core.commands.parameters import get_three_state_flag, tags_type, get_enum_type from azure.cli.core.commands.validators import get_default_location_from_resource_group -from ._validators import validate_origin - - -# pylint:disable=protected-access -# pylint:disable=too-few-public-methods -class OriginType(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - deep_created_origin = self.get_origin(values, option_string) - super(OriginType, self).__call__(parser, namespace, deep_created_origin, option_string) - - def get_origin(self, values, option_string): - from azure.mgmt.cdn.models import DeepCreatedOrigin - - if not 1 <= len(values) <= 3: - msg = '%s takes 1, 2 or 3 values, %d given' - raise argparse.ArgumentError(self, msg % (option_string, len(values))) - - deep_created_origin = DeepCreatedOrigin(name='origin', host_name=values[0], http_port=80, https_port=443) - if len(values) > 1: - deep_created_origin.http_port = int(values[1]) - if len(values) > 2: - deep_created_origin.https_port = int(values[2]) - return deep_created_origin +from ._validators import (validate_origin, validate_priority) +from ._actions import (OriginType, MatchConditionAction, ManagedRuleOverrideAction) # pylint:disable=too-many-statements def load_arguments(self, _): name_arg_type = CLIArgumentType(options_list=('--name', '-n'), metavar='NAME') + endpoint_name_type = CLIArgumentType(options_list=('--endpoint-name'), metavar='ENDPOINT_NAME') profile_name_help = 'Name of the CDN profile which is unique within the resource group.' with self.argument_context('cdn') as c: @@ -76,12 +54,13 @@ def load_arguments(self, _): 'user requests for a compressed version. Content won\'t be compressed ' 'on CDN when requested content is smaller than 1 byte or larger than 1 ' 'MB.') + c.argument('profile_name', help=profile_name_help, id_part='name') + with self.argument_context('cdn endpoint update') as c: caching_behavior = [item.value for item in list(QueryStringCachingBehavior)] c.argument('query_string_caching_behavior', options_list='--query-string-caching', arg_type=get_enum_type(caching_behavior)) c.argument('content_types_to_compress', nargs='+') - c.argument('profile_name', help=profile_name_help, id_part='name') with self.argument_context('cdn endpoint rule') as c: c.argument('rule_name', help='Name of the rule.') @@ -139,10 +118,15 @@ def load_arguments(self, _): with self.argument_context('cdn endpoint create') as c: c.argument('name', name_arg_type, id_part='name', help='Name of the CDN endpoint.') + with self.argument_context('cdn endpoint set') as c: + c.argument('name', name_arg_type, id_part='name', help='Name of the CDN endpoint.') with self.argument_context('cdn endpoint list') as c: c.argument('profile_name', id_part=None) + with self.argument_context('cdn endpoint waf') as c: + c.argument('endpoint_name', endpoint_name_type, help='Name of the CDN endpoint.') + # Custom Domain # with self.argument_context('cdn custom-domain') as c: @@ -154,3 +138,60 @@ def load_arguments(self, _): # Origin # with self.argument_context('cdn origin') as c: c.argument('origin_name', name_arg_type, id_part='name') + + # WAF # + + with self.argument_context('cdn waf policy set') as c: + c.argument('disabled', arg_type=get_three_state_flag()) + c.argument('block_response_status_code', type=int) + c.argument('name', name_arg_type, id_part='name', help='The name of the CDN WAF policy.') + with self.argument_context('cdn waf policy show') as c: + c.argument('policy_name', name_arg_type, id_part='name', help='The name of the CDN WAF policy.') + with self.argument_context('cdn waf policy delete') as c: + c.argument('policy_name', name_arg_type, id_part='name', help='The name of the CDN WAF policy.') + + with self.argument_context('cdn waf policy managed-rule-set') as c: + c.argument('policy_name', id_part='name', help='Name of the CDN WAF policy.') + c.argument('rule_set_type', help='The type of the managed rule set.') + c.argument('rule_set_version', help='The version of the managed rule set.') + with self.argument_context('cdn waf policy managed-rule-set list') as c: + # List commands cannot use --ids flag + c.argument('policy_name', id_part=None) + with self.argument_context('cdn waf policy managed-rule-set add') as c: + c.argument('enabled', arg_type=get_three_state_flag()) + + with self.argument_context('cdn waf policy managed-rule-set rule-group-override') as c: + c.argument('name', name_arg_type, id_part=None, help='The name of the rule group.') + with self.argument_context('cdn waf policy managed-rule-set rule-group-override list') as c: + # List commands cannot use --ids flag + c.argument('policy_name', id_part=None) + with self.argument_context('cdn waf policy managed-rule-set rule-group-override set') as c: + c.argument('rule_overrides', + options_list=['-r', '--rule-override'], + action=ManagedRuleOverrideAction, + nargs='+') + + with self.argument_context('cdn waf policy custom-rule') as c: + c.argument('name', name_arg_type, id_part=None, help='The name of the custom rule.') + c.argument('policy_name', id_part='name', help='Name of the CDN WAF policy.') + with self.argument_context('cdn waf policy custom-rule list') as c: + # List commands cannot use --ids flag + c.argument('policy_name', id_part=None) + with self.argument_context('cdn waf policy rate-limit-rule') as c: + c.argument('name', name_arg_type, id_part=None, help='The name of the rate limit rule.') + c.argument('policy_name', id_part='name', help='Name of the CDN WAF policy.') + with self.argument_context('cdn waf policy rate-limit-rule list') as c: + # List commands cannot use --ids flag + c.argument('policy_name', id_part=None) + + with self.argument_context('cdn waf policy custom-rule set') as c: + c.argument('match_conditions', options_list=['-m', '--match-condition'], action=MatchConditionAction, nargs='+') + c.argument('priority', type=int, validator=validate_priority) + c.argument('action', arg_type=get_enum_type([item.value for item in list(ActionType)])) + + with self.argument_context('cdn waf policy rate-limit-rule set') as c: + c.argument('match_conditions', options_list=['-m', '--match-condition'], action=MatchConditionAction, nargs='+') + c.argument('priority', type=int, validator=validate_priority) + c.argument('action', arg_type=get_enum_type([item.value for item in list(ActionType)])) + c.argument('request_threshold', type=int) + c.argument('duration', type=int) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_validators.py b/src/azure-cli/azure/cli/command_modules/cdn/_validators.py index 9dfc2a7db72..9b13017e61b 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_validators.py @@ -17,3 +17,9 @@ def check_port_range(port, msg): check_port_range(origin.http_port, msg.format('HTTP', origin.name)) check_port_range(origin.https_port, msg.format('HTTPS', origin.name)) return True + + +def validate_priority(namespace): + if namespace.priority < 0 or namespace.priority > 1000: + raise CLIError('argument --priority must be in the range [0, 1000]') + return True diff --git a/src/azure-cli/azure/cli/command_modules/cdn/commands.py b/src/azure-cli/azure/cli/command_modules/cdn/commands.py index f8eb52f6fa8..33650c0f654 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/commands.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/commands.py @@ -3,33 +3,36 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +from knack.util import CLIError + +from azure.mgmt.cdn.models import ErrorResponseException from azure.cli.core.commands import CliCommandType from ._client_factory import (cf_cdn, cf_custom_domain, cf_endpoints, cf_profiles, cf_origins, cf_resource_usage, - cf_edge_nodes) + cf_edge_nodes, cf_waf_policy, cf_waf_rule_set) + + +def _not_found(message): + def _inner_not_found(ex): + if isinstance(ex, ErrorResponseException) \ + and ex.response is not None \ + and ex.response.status_code == 404: + raise CLIError(message) + raise ex + return _inner_not_found + + +_not_found_msg = "{}(s) not found. Please verify the resource(s), group or it's parent resources " \ + "exist." # pylint: disable=too-many-statements def load_command_table(self, _): - - def _not_found(message): - def _inner_not_found(ex): - from azure.mgmt.cdn.models import ErrorResponseException - from knack.util import CLIError - - if isinstance(ex, ErrorResponseException) \ - and ex.response is not None \ - and ex.response.status_code == 404: - raise CLIError(message) - raise ex - return _inner_not_found - - not_found_msg = "{}(s) not found. Please verify the resource(s), group or it's parent resources " \ - "exist." - profile_not_found_msg = not_found_msg.format('Profile') - endpoint_not_found_msg = not_found_msg.format('Endpoint') - cd_not_found_msg = not_found_msg.format('Custom Domain') - origin_not_found_msg = not_found_msg.format('Origin') + profile_not_found_msg = _not_found_msg.format('Profile') + endpoint_not_found_msg = _not_found_msg.format('Endpoint') + cd_not_found_msg = _not_found_msg.format('Custom Domain') + origin_not_found_msg = _not_found_msg.format('Origin') + waf_policy_not_found_msg = _not_found_msg.format('WAF Policy') cdn_sdk = CliCommandType( operations_tmpl='azure.mgmt.cdn#CdnManagementClient.{}', @@ -70,6 +73,12 @@ def _inner_not_found(ex): client_factory=cf_resource_usage ) + cdn_waf_policy_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#PoliciesOperations.{}', + client_factory=cf_waf_policy, + exception_handler=_not_found(waf_policy_not_found_msg) + ) + with self.command_group('cdn', cdn_sdk) as g: g.command('name-exists', 'check_name_availability') @@ -92,6 +101,11 @@ def _inner_not_found(ex): doc_string_source='azure.mgmt.cdn.models#EndpointUpdateParameters', supports_no_wait=True) + with self.command_group('cdn endpoint waf policy', cdn_endpoints_sdk, is_preview=True) as g: + g.custom_show_command('show', 'show_endpoint_waf_policy_link', client_factory=cf_endpoints) + g.custom_command('set', 'set_endpoint_waf_policy_link', client_factory=cf_endpoints) + g.custom_command('remove', 'remove_endpoint_waf_policy_link', client_factory=cf_endpoints, confirmation=True) + with self.command_group('cdn endpoint rule', cdn_endpoints_sdk, is_preview=True) as g: g.show_command('show', 'get') g.custom_command('add', 'add_rule', client_factory=cf_cdn, @@ -126,7 +140,8 @@ def _inner_not_found(ex): g.show_command('show', 'get') g.command('delete', 'delete') g.command('list', 'list_by_endpoint') - g.custom_command('create', 'create_custom_domain', client_factory=cf_cdn) + g.custom_command('create', 'create_custom_domain', + client_factory=cf_cdn) g.command('enable-https', 'enable_custom_https') g.command('disable-https', 'disable_custom_https') @@ -136,3 +151,43 @@ def _inner_not_found(ex): with self.command_group('cdn edge-node', cdn_edge_sdk) as g: g.command('list', 'list') + + with self.command_group('cdn waf policy', cdn_waf_policy_sdk, is_preview=True) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.custom_command('set', 'set_waf_policy', client_factory=cf_waf_policy) + g.command('delete', 'delete', confirmation=True) + + with self.command_group('cdn waf policy managed-rule-set', cdn_waf_policy_sdk, is_preview=True) as g: + g.custom_command('add', 'add_waf_policy_managed_rule_set', client_factory=cf_waf_policy) + g.custom_command('remove', + 'remove_waf_policy_managed_rule_set', + client_factory=cf_waf_policy, + confirmation=True) + g.custom_command('list', 'list_waf_policy_managed_rule_sets', client_factory=cf_waf_policy) + g.custom_show_command('show', 'show_waf_policy_managed_rule_set', client_factory=cf_waf_policy) + g.custom_command('list-available', 'list_waf_managed_rule_set', client_factory=cf_waf_rule_set) + + with self.command_group('cdn waf policy managed-rule-set rule-group-override', + cdn_waf_policy_sdk, + is_preview=True) as g: + g.custom_command('set', 'set_waf_managed_rule_group_override', client_factory=cf_waf_policy) + g.custom_command('delete', + 'delete_waf_managed_rule_group_override', + client_factory=cf_waf_policy, + confirmation=True) + g.custom_command('list', 'list_waf_policy_managed_rule_group_overrides', client_factory=cf_waf_policy) + g.custom_show_command('show', 'show_waf_managed_rule_group_override', client_factory=cf_waf_policy) + g.custom_command('list-available', 'list_waf_managed_rule_groups', client_factory=cf_waf_rule_set) + + with self.command_group('cdn waf policy custom-rule', cdn_waf_policy_sdk, is_preview=True) as g: + g.custom_command('set', 'set_waf_custom_rule', client_factory=cf_waf_policy) + g.custom_command('delete', 'delete_waf_custom_rule', client_factory=cf_waf_policy, confirmation=True) + g.custom_command('list', 'list_waf_custom_rules', client_factory=cf_waf_policy) + g.custom_show_command('show', 'show_waf_custom_rule', client_factory=cf_waf_policy) + + with self.command_group('cdn waf policy rate-limit-rule', cdn_waf_policy_sdk, is_preview=True) as g: + g.custom_command('set', 'set_waf_rate_limit_rule', client_factory=cf_waf_policy) + g.custom_command('delete', 'delete_waf_rate_limit_rule', client_factory=cf_waf_policy, confirmation=True) + g.custom_command('list', 'list_waf_rate_limit_rules', client_factory=cf_waf_policy) + g.custom_show_command('show', 'show_waf_rate_limit_rule', client_factory=cf_waf_policy) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/custom.py b/src/azure-cli/azure/cli/command_modules/cdn/custom.py index bad2bcdf234..7759e9a3327 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom.py @@ -24,11 +24,17 @@ DeliveryRuleResponseHeaderAction, DeliveryRuleCacheKeyQueryStringAction, CacheKeyQueryStringActionParameters, UrlRedirectAction, DeliveryRuleAction, UrlRedirectActionParameters, - UrlRewriteAction, UrlRewriteActionParameters) + UrlRewriteAction, UrlRewriteActionParameters, + PolicyMode, PolicyEnabledState, CdnWebApplicationFirewallPolicy, ManagedRuleSet, + ManagedRuleGroupOverride, CustomRule, RateLimitRule) -from azure.cli.core.util import sdk_no_wait -from knack.log import get_logger +from azure.mgmt.cdn.operations import (EndpointsOperations) + +from azure.cli.core.util import (sdk_no_wait, find_child_item) +from azure.cli.core.commands import upsert_to_collection +from knack.util import CLIError +from knack.log import get_logger logger = get_logger(__name__) @@ -94,6 +100,60 @@ def update_endpoint(instance, return params +def show_endpoint_waf_policy_link(client: EndpointsOperations, + resource_group_name: str, + profile_name: str, + endpoint_name: str): + + from azure.mgmt.cdn.models import (EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink) + + link = client.get(resource_group_name, profile_name, endpoint_name).web_application_firewall_policy_link + if link is not None: + return link + raise CLIError(f"endpoint {endpoint_name} does not have a CDN WAF policy link.", endpoint_name) + + +def set_endpoint_waf_policy_link(client: EndpointsOperations, + resource_group_name: str, + profile_name: str, + endpoint_name: str, + waf_policy_subscription_id: str = "", + waf_policy_resource_group_name: str = "", + waf_policy_name: str = "", + waf_policy_id: str = ""): + + from azure.mgmt.cdn.models import (EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink) + + endpoint = client.get(resource_group_name, profile_name, endpoint_name) + + if waf_policy_id == "": + if waf_policy_subscription_id is None or waf_policy_resource_group_name is None or waf_policy_name is None: + raise CLIError('Either --waf-policy-id or all of --waf-policy-subscription-id, ' + '--waf-policy-resource-group-name, and --waf-policy-name must be specified.') + waf_policy_id = f'/subscriptions/{waf_policy_subscription_id}' \ + f'/resourceGroups/{waf_policy_resource_group_name}' \ + f'/providers/Microsoft.Cdn' \ + f'/CdnWebApplicationFirewallPolicies/{waf_policy_name}' + print(waf_policy_id) + endpoint.web_application_firewall_policy_link = \ + EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink(id=waf_policy_id) + + result = client.create(resource_group_name, profile_name, endpoint_name, endpoint).result() + if result is not None: + return result.web_application_firewall_policy_link + return EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink(id=None) + + +def remove_endpoint_waf_policy_link(client: EndpointsOperations, + resource_group_name: str, + profile_name: str, + endpoint_name: str): + + endpoint = client.get(resource_group_name, profile_name, endpoint_name) + endpoint.web_application_firewall_policy_link = None + client.create(resource_group_name, profile_name, endpoint_name, endpoint).wait() + + # pylint: disable=too-many-return-statements def create_condition(match_variable=None, operator=None, match_values=None, selector=None, negate_condition=None, transform=None): @@ -402,6 +462,7 @@ def create_endpoint(client, resource_group_name, profile_name, name, origins, lo origin_host_header=None, origin_path=None, content_types_to_compress=None, is_compression_enabled=None, is_http_allowed=None, is_https_allowed=None, query_string_caching_behavior=None, tags=None, no_wait=None): + is_compression_enabled = False if is_compression_enabled is None else is_compression_enabled is_http_allowed = True if is_http_allowed is None else is_http_allowed is_https_allowed = True if is_https_allowed is None else is_https_allowed @@ -444,3 +505,293 @@ def create_profile(client, resource_group_name, name, profile = Profile(location=location, sku=Sku(name=sku), tags=tags) return client.profiles.create(resource_group_name, name, profile) # endregion + + +# region WAF Custom Commands +def list_waf_managed_rule_set(client): + return client.list() + + +def _show_waf_managed_rule_set(client, rule_set_type, rule_set_version): + rulesets = client.list() + for r in rulesets: + if r.rule_set_type == rule_set_type and r.rule_set_version == rule_set_version: + return r + raise CLIError("managed rule set type '{}' version '{}' not found".format(rule_set_type, rule_set_version)) + + +def list_waf_managed_rule_groups(client, rule_set_type, rule_set_version): + return _show_waf_managed_rule_set(client, rule_set_type, rule_set_version).rule_groups + + +def set_waf_policy(client, + resource_group_name, name, + sku=SkuName.standard_microsoft.value, + disabled=None, + mode=PolicyMode.detection.value, + redirect_url=None, + block_response_body=None, + block_response_status_code=None, + tags=None): + from azure.mgmt.cdn.models import (PolicySettings, ErrorResponseException, Sku) + policy = CdnWebApplicationFirewallPolicy( + tags=tags, + sku=Sku(name=sku), + location='Global', + policy_settings=PolicySettings( + enabled_state=PolicyEnabledState.disabled.value if disabled else PolicyEnabledState.enabled.value, + mode=mode, + default_redirect_url=redirect_url, + default_custom_block_response_status_code=block_response_status_code, + default_custom_block_response_body=block_response_body)) + + # Copy config set by sub-commands for updating an existing policy. + try: + existing = client.get(resource_group_name, name) + # Update, let's copy over config set by sub-commands + policy.custom_rules = existing.custom_rules + policy.rate_limit_rules = existing.rate_limit_rules + policy.managed_rules = existing.managed_rules + except ErrorResponseException as e: + # If the error isn't a 404, rethrow it. + props = getattr(e.inner_exception, 'additional_properties') + if not isinstance(props, dict) or not isinstance(props.get('error'), dict): + raise e + props = props['error'] + if props.get('code') != 'ResourceNotFound': + raise e + # 404 error means it's a new policy, nothing to copy. + + return client.create_or_update(resource_group_name, name, policy) + + +def _find_policy_managed_rule_set(policy, rule_set_type, rule_set_version): + for r in policy.managed_rules.managed_rule_sets: + if r.rule_set_type == rule_set_type and r.rule_set_version == rule_set_version: + return r + return None + + +def add_waf_policy_managed_rule_set(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version): + + # Get the existing WAF policy. + policy = client.get(resource_group_name, policy_name) + + # Verify the managed rule set is not already added to the policy. + existing = _find_policy_managed_rule_set(policy, rule_set_type, rule_set_version) + if existing is not None: + raise CLIError("managed rule set type '{}' version '{}' is already added to WAF policy '{}'" + .format(rule_set_type, rule_set_version, policy_name)) + + # Add the managed rule set to the policy. + policy.managed_rules.managed_rule_sets.append(ManagedRuleSet(rule_set_type=rule_set_type, + rule_set_version=rule_set_version)) + result = client.create_or_update(resource_group_name, policy_name, policy).result() + + # Return the new managed rule set from the updated policy. + updated = _find_policy_managed_rule_set(result, rule_set_type, rule_set_version) + if updated is None: + raise CLIError("failed to get added managed rule set in WAF policy '{}'".format(policy_name)) + + return updated + + +def remove_waf_policy_managed_rule_set(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version): + # Get the existing WAF policy. + policy = client.get(resource_group_name, policy_name) + + # Verify the managed rule set is added to the policy. + existing = _find_policy_managed_rule_set(policy, rule_set_type, rule_set_version) + if existing is None: + raise CLIError("managed rule set type '{}' version '{}' is not added to WAF policy '{}'" + .format(rule_set_type, rule_set_version, policy_name)) + + # Remove the managed rule set from the policy. + policy.managed_rules.managed_rule_sets.remove(existing) + client.create_or_update(resource_group_name, policy_name, policy).wait() + + +def list_waf_policy_managed_rule_sets(client, + resource_group_name, + policy_name): + policy = client.get(resource_group_name, policy_name) + return policy.managed_rules.managed_rule_sets + + +def show_waf_policy_managed_rule_set(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version): + policy = client.get(resource_group_name, policy_name) + existing = _find_policy_managed_rule_set(policy, rule_set_type, rule_set_version) + if existing is None: + raise CLIError("managed rule set type '{}' version '{}' is not added to WAF policy '{}'" + .format(rule_set_type, rule_set_version, policy_name)) + return existing + + +def set_waf_managed_rule_group_override(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version, + name, + rule_overrides): + policy = client.get(resource_group_name, policy_name) + ruleset = _find_policy_managed_rule_set(policy, rule_set_type, rule_set_version) + if ruleset is None: + raise CLIError("managed rule set type '{}' version '{}' is not added to WAF policy '{}'" + .format(rule_set_type, rule_set_version, policy_name)) + + rulegroup = ManagedRuleGroupOverride(rule_group_name=name, rules=rule_overrides) + upsert_to_collection(ruleset, 'rule_group_overrides', rulegroup, 'rule_group_name') + policy = client.create_or_update(resource_group_name, policy_name, policy).result() + ruleset = _find_policy_managed_rule_set(policy, rule_set_type, rule_set_version) + return find_child_item(ruleset, name, path='rule_group_overrides', key_path='rule_group_name') + + +def delete_waf_managed_rule_group_override(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version, + name): + policy = client.get(resource_group_name, policy_name) + ruleset = _find_policy_managed_rule_set(policy, rule_set_type, rule_set_version) + if ruleset is None: + raise CLIError("managed rule set type '{}' version '{}' is not added to WAF policy '{}'" + .format(rule_set_type, rule_set_version, policy_name)) + + override = find_child_item(ruleset, name, path='rule_group_overrides', key_path='rule_group_name') + ruleset.rule_group_overrides.remove(override) + client.create_or_update(resource_group_name, policy_name, policy).wait() + + +def list_waf_policy_managed_rule_group_overrides(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version): + ruleset = show_waf_policy_managed_rule_set(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version) + return ruleset.rule_group_overrides + + +def show_waf_managed_rule_group_override(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version, + name): + ruleset = show_waf_policy_managed_rule_set(client, + resource_group_name, + policy_name, + rule_set_type, + rule_set_version) + return find_child_item(ruleset, name, path='rule_group_overrides', key_path='rule_group_name') + + +def set_waf_custom_rule(client, + resource_group_name, + policy_name, + name, + priority, + action, + match_conditions, + disabled=None): + from azure.mgmt.cdn.models import (CustomRuleEnabledState) + + rule = CustomRule(name=name, + enabled_state=CustomRuleEnabledState.disabled if disabled else CustomRuleEnabledState.enabled, + action=action, + match_conditions=match_conditions, + priority=priority) + + policy = client.get(resource_group_name, policy_name) + upsert_to_collection(policy.custom_rules, 'rules', rule, 'name') + policy = client.create_or_update(resource_group_name, policy_name, policy).result() + return find_child_item(policy.custom_rules, name, path='rules', key_path='name') + + +def delete_waf_custom_rule(client, + resource_group_name, + policy_name, + name, + no_wait=None): + policy = client.get(resource_group_name, policy_name) + rule = find_child_item(policy.custom_rules, name, path='rules', key_path='name') + policy.custom_rules.rules.remove(rule) + return sdk_no_wait(no_wait, client.create_or_update, resource_group_name, policy_name, policy) + + +def show_waf_custom_rule(client, resource_group_name, policy_name, name): + policy = client.get(resource_group_name, policy_name) + return find_child_item(policy.custom_rules, name, path='rules', key_path='name') + + +def list_waf_custom_rules(client, + resource_group_name, + policy_name): + return client.get(resource_group_name, policy_name).custom_rules.rules + + +def set_waf_rate_limit_rule(client, + resource_group_name, + policy_name, + name, + priority, + action, + request_threshold, + duration, + match_conditions, + disabled=None): + from azure.mgmt.cdn.models import (CustomRuleEnabledState) + + rule = RateLimitRule(name=name, + enabled_state=CustomRuleEnabledState.disabled if disabled else CustomRuleEnabledState.enabled, + rate_limit_threshold=request_threshold, + rate_limit_duration_in_minutes=duration, + action=action, + match_conditions=match_conditions, + priority=priority) + + policy = client.get(resource_group_name, policy_name) + upsert_to_collection(policy.rate_limit_rules, 'rules', rule, 'name') + updated = client.create_or_update(resource_group_name, policy_name, policy).result() + return find_child_item(updated.rate_limit_rules, name, path='rules', key_path='name') + + +def delete_waf_rate_limit_rule(client, + resource_group_name, + policy_name, + name, + no_wait=None): + policy = client.get(resource_group_name, policy_name) + rule = find_child_item(policy.rate_limit_rules, name, path='rules', key_path='name') + policy.rate_limit_rules.rules.remove(rule) + return sdk_no_wait(no_wait, client.create_or_update, resource_group_name, policy_name, policy) + + +def show_waf_rate_limit_rule(client, resource_group_name, policy_name, name): + policy = client.get(resource_group_name, policy_name) + return find_child_item(policy.rate_limit_rules, name, path='rules', key_path='name') + + +def list_waf_rate_limit_rules(client, + resource_group_name, + policy_name): + return client.get(resource_group_name, policy_name).rate_limit_rules.rules + +# endregion diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain.yaml index eb0748ea23e..228045f7753 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AraES9FkhiBClc2SmYhADd4; expires=Thu, 26-Mar-2020 19:38:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8wL3U3nY4U6xY-7hpZkswfKuj6UEyUX4rWAh6Ge3NaCoBuxaKY44QGiFFB2r9yykA0x1XGbZs263SKc1fB_8LgcKQSWFGuml-rYmY647ziObjqUEu6mcciRrSmTgUNl-5-u9RWiarcGPzV3wY01G71NSVDlvHp15Nt8dlmru_jW4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,15 +72,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:25:29Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +89,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:25:29 GMT + - Tue, 25 Feb 2020 19:38:27 GMT expires: - '-1' pragma: @@ -44,6 +103,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuMTPfFy2idCgYpKW1lkdK0; expires=Thu, 26-Mar-2020 19:38:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8OWVjBy1XilgGM06j9Hpn7NHBtK5FDiixcoW3JRSYtEsn0yFzq4z0nJd2AHuAmviqFJYX4ROph00qStjOI25QkmcLOFNNwlpWzFAER3Lodgy6LR4pTu09619fX277WlD01rE9rg0JaevtPIQDswKmGIZwFd0nRMene84u5EyJNzQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Akamai"}}' headers: @@ -62,21 +180,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/154f1a02-f2e8-4409-9998-acd988f1d14c?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/0ce1ae18-db9d-4916-a05c-5a80410b3df6?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -84,7 +203,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:35 GMT + - Tue, 25 Feb 2020 19:38:34 GMT expires: - '-1' odata-version: @@ -100,12 +219,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ajd2VyKJ0JFMlOsMMm0R27E; expires=Thu, 26-Mar-2020 19:38:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8hvAcljE-ee2h__Lc8j5YAN9jhnfXFe-LKxuQwHhufMTs2h8Rerpz6-f-V-XdiXpslceJLam_lQnhwCBEQkEcjNYggFPx6OhNM6yy85HgjSVYYi0ELbM1k5jRsnAqdxhYk-nlqwRnrHITxVpKFF-DQBDI7Tu8kvrwOXRTjrAk9fMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -120,14 +298,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/154f1a02-f2e8-4409-9998-acd988f1d14c?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/0ce1ae18-db9d-4916-a05c-5a80410b3df6?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -136,7 +314,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:45 GMT + - Tue, 25 Feb 2020 19:38:45 GMT expires: - '-1' odata-version: @@ -160,6 +338,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Av9KBTpFkvFOi2wKpZ0fZUM; expires=Thu, 26-Mar-2020 19:38:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8jPWioSz5LeeSGG4Jjfuj6G45fAczC3Pq_iwFuEnVF7mm-3kNJe7FNJAQ12BaCjFBylF00zgxLS2Ob_MTwgRXHBhKpxwiw948bChUAzSl_HcOQoxu5TsN0SaM1T4mQS-DpwRkTB8rMESyrDgCrs56VpspXWNMUU7jTrkX08NxrV8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -174,16 +411,17 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -192,7 +430,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:46 GMT + - Tue, 25 Feb 2020 19:38:48 GMT expires: - '-1' odata-version: @@ -216,6 +454,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ag0rY2VtFZdBkbHI3-1Fmo8; expires=Thu, 26-Mar-2020 19:38:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH80JxHEAGjaQeN8EIKGB9kf1k7yoZcqRrBHPVTD2VsVclm_PwS6AP5BaoIpQistTHwfacIdmk6j73H0ea5Dpm9q0w3jqWLnWA9_UBX11ip0g8qI1MX2i_BterMShcjYAtDV8vcRs4UWHyZ8nP9uWZL0XcxUa77eGl4b_3i8XItyqkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -230,15 +527,15 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:25:29Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -247,7 +544,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:25:47 GMT + - Tue, 25 Feb 2020 19:38:49 GMT expires: - '-1' pragma: @@ -261,6 +558,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Anhu3ME-WR1AhuEjvPlPD58; expires=Thu, 26-Mar-2020 19:38:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ndZ0odirnPKoXyIbuOclquRPjYBeD9jAXcBRCZgafEL4-Wslsm6gAuu8neZxRXWepmZDxbkz-AnMOEUW9SGdpw5CI7Y05k6h1Et3pp1-8YjxU5KTvsBvJHBlrmusDPLpoMbbn3HqKQfbrRBoAt54XWTNqCuecSCu7nwEUDksGvogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -281,31 +637,37 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/29dfe5e2-d28e-4d87-864a-6cbb2fffd640?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/eb95c4d9-7d02-4033-b631-83a84460b70a?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '976' + - '1021' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:52 GMT + - Tue, 25 Feb 2020 19:38:55 GMT expires: - '-1' odata-version: @@ -321,12 +683,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ai_w1AWcpQtGuQbYdKuidus; expires=Thu, 26-Mar-2020 19:39:06 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8CdtBTofsRnHbzwkCYivfXcKCEYqAuXmWURGsC2QjXS0P6UZIy1zFhsV0N7mBEt4BIGqSADx62w5Yrb6EWw-OcQ9h7ZMkLIG_GmFQ3D6-L6JOjkrCogDXxWqnb2ivcDXMRwkt_y0OsSOFrUgvGgvmQrij9gM4O_Qs6WMz3D35h4cgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -341,14 +762,14 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/29dfe5e2-d28e-4d87-864a-6cbb2fffd640?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/eb95c4d9-7d02-4033-b631-83a84460b70a?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -357,7 +778,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:03 GMT + - Tue, 25 Feb 2020 19:39:07 GMT expires: - '-1' odata-version: @@ -381,6 +802,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:37 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Av-Mr41bIhtPmtwrUC7KwWU; expires=Thu, 26-Mar-2020 19:39:38 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8gzklj7kJy3PVWYSO7iwoCdBSLkggPoFx3yVw9MtcccM3ZFKI6wFrf1oOZYz3l2PrEMkhof3vzxayzu2NRiyveccwBcqteBxREjUnhmtYLAr9CT7XBW8z4-LlYg1R9Dgeba6pfzYblwZmQxO86ovjyRIGxyzRFG0B2cz9FhkRjH8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -395,14 +875,14 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/29dfe5e2-d28e-4d87-864a-6cbb2fffd640?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/eb95c4d9-7d02-4033-b631-83a84460b70a?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -411,7 +891,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:33 GMT + - Tue, 25 Feb 2020 19:39:38 GMT expires: - '-1' odata-version: @@ -435,6 +915,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:38 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Auwwpjvl4j1Bn9piIV70QqY; expires=Thu, 26-Mar-2020 19:39:38 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8CfalS_ijXhpgJBHYe6dvMUcKzulOT1B1f9QcpES1pojnOu4k0Gyq8b6ol_vMBpy4jLVw6uzA0T5yXwoQteC5QNa6RYVbsBJ4vDXpElXI5ylT03ND38PABcrPIrmESprqTXt3fBi1WD1EdiRe-8xpssOHZmt32jkcLr4dolOcYHkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -449,27 +988,33 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '976' + - '1021' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:34 GMT + - Tue, 25 Feb 2020 19:39:39 GMT expires: - '-1' odata-version: @@ -493,6 +1038,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:41 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvQLhal4i9pCiuuBQlZMPy4; expires=Thu, 26-Mar-2020 19:39:41 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Y7mUJUZD4bMtBliJJmX5Ju_gzQISX51Ux8kJG0ZwMDvTtG9uObOO2wDnjLzRokHF_vw2z1q3D8gAfDV5xh_lIUiAouwLdUjdf4sRVbnK8uVQ_FpuUBWTEVnZqve56PXwTEFr6-ZfmjQKf8Gut8PxSWrOQn1PpQdDcIf9ZsrQaO4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -507,12 +1111,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains?api-version=2019-06-15-preview response: body: string: "{\r\n \"value\":[\r\n \r\n ]\r\n}" @@ -524,7 +1128,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:35 GMT + - Tue, 25 Feb 2020 19:39:43 GMT expires: - '-1' odata-version: @@ -548,6 +1152,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:43 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtmF322gSrtFk4fuWrNZDAI; expires=Thu, 26-Mar-2020 19:39:43 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8-iFDnb__Wvy9Fms0qVyntInfmsYDJYB_IvhuXrrTy4BSSV7zTMrguzdhbVK5eb3Pc-Cutb3OhJMQYONhyE1F6in-4FWeoAycDT5i8Qny-pETI4NittN7XnIW7g8l4kKM8yc8E9fKSzgc52G5WsauFMAf70nQ20sdG0pyWuHauasgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -562,15 +1225,15 @@ interactions: ParameterSetName: - -g --endpoint-name --hostname --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:25:29Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -579,7 +1242,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:35 GMT + - Tue, 25 Feb 2020 19:39:43 GMT expires: - '-1' pragma: @@ -593,6 +1256,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:43 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmmvKXtOPaNFmC6CJhLfHnM; expires=Thu, 26-Mar-2020 19:39:44 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8sOreXpJJYlM1JIiMu2ywMj820ezaeW5AlkQ7P0TEYZ1496Ilk7RO9tt4sygMAw4vAUUn9u_dLa1nAs-rqDJdEOTj-VMjgmB73givDWXLB8wXz_tzEKTeVo9FMK_GmDoKWhEavzrInCoi_ykfAAfVDClg4pj82EFYpbL82HPgmYMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"properties": {"hostName": "www.example.com"}}' headers: @@ -611,18 +1333,18 @@ interactions: ParameterSetName: - -g --endpoint-name --hostname --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2019-06-15-preview response: body: - string: "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": - \"We couldn't find a DNS record for custom domain that points to endpoint. - To map a domain to this endpoint, create a CNAME record with your DNS provider - for custom domain that points to endpoint.\"\r\n }\r\n}" + string: "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\"\ + : \"We couldn't find a DNS record for custom domain that points to endpoint.\ + \ To map a domain to this endpoint, create a CNAME record with your DNS provider\ + \ for custom domain that points to endpoint.\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -633,7 +1355,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:37 GMT + - Tue, 25 Feb 2020 19:39:46 GMT expires: - '-1' pragma: @@ -647,12 +1369,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - ASP.NET status: code: 400 message: Bad Request +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:46 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqijeirRrIlMl-DYAVNp4zc; expires=Thu, 26-Mar-2020 19:39:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH87QIeXzNpub1OJ5LRE8McsvGEjGuoCR-Jwzlx3_dywvS8ww6Sgdc-xDbjv9FMmsbOeLJhHitZ-nrM2oCUU-ULzJAwheGIZp12i74Ylt5YbSysZRIdS_P2mDrLaRigvQyJI0x_V9YDUATdsyahJKub1Jpmp1sr954NXzmwDNnvOxYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -667,16 +1448,16 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2019-06-15-preview response: body: - string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": - \"The requested resource was not found.\"\r\n }\r\n}" + string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\"\ + : \"The requested resource was not found.\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -687,7 +1468,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:38 GMT + - Tue, 25 Feb 2020 19:39:47 GMT expires: - '-1' pragma: @@ -705,6 +1486,65 @@ interactions: status: code: 404 message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:47 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhIjV5HUE05MqCfRYEaH8v0; expires=Thu, 26-Mar-2020 19:39:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8QTOrxlH3iWlDqgkw18r9ynNDi-UqLVoCOAlfGd6l0ZmMfIrdN16Kck9waaHfQO_jeke-terFLrccq8fomBKVRho7qdTZwn2xmiP-bfAP2QF-g53I2KEI2ytbxVU1Xpp4O7bB1zyziZXgOeaGS-Ua4fOaWCkBjV90avBoCa6p4tcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -721,12 +1561,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2019-06-15-preview response: body: string: '' @@ -734,7 +1574,7 @@ interactions: cache-control: - no-cache date: - - Mon, 09 Dec 2019 19:26:39 GMT + - Tue, 25 Feb 2020 19:39:50 GMT expires: - '-1' pragma: @@ -748,12 +1588,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' x-powered-by: - ASP.NET status: code: 204 message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ai9h2dWz-thEv44QFP2YNAQ; expires=Thu, 26-Mar-2020 19:39:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NxfratLbhKHVwBRYeM8KCt2jyhpOJx-428Q7Ui1j5jMP6r1jyR9kco2y10FYDauM4kp--Tmz2kuy5Cd2t-4wctnpD2vpAaCi6z052MTQQXwlbPPyLKJBvx_RJHBJB82Ur10F9uKDA2nibzdlU3jJWTn1QKMxop904RBYmKWEURcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -772,16 +1671,16 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/enableCustomHttps?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/enableCustomHttps?api-version=2019-06-15-preview response: body: - string: "{\r\n \"error\": {\r\n \"code\": \"InvalidResource\",\r\n \"message\": - \"The resource format is invalid.\"\r\n }\r\n}" + string: "{\r\n \"error\": {\r\n \"code\": \"InvalidResource\",\r\n \"\ + message\": \"The resource format is invalid.\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -792,7 +1691,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:39 GMT + - Tue, 25 Feb 2020 19:39:52 GMT expires: - '-1' pragma: @@ -812,6 +1711,65 @@ interactions: status: code: 400 message: Bad Request +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AswU26EKSAZHplYvjp44lKk; expires=Thu, 26-Mar-2020 19:39:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8oxCNuaWf9ZiSpqmBGefligl9Q8z5D3cqJ-i4NufKU1l2iCkSQIF08mh-qNgkAge2lobMacM3lF2t3IXF-25ESODjrYRIRgcF4f3PwwLdNwvdGNv28nXKw9AMNNGY-u-JaViLo_JaBu7vTf9vwAUG3C-OIM0QasDuBzl5aW9k2bUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -828,16 +1786,16 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/disableCustomHttps?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/disableCustomHttps?api-version=2019-06-15-preview response: body: - string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": - \"The resource cannot be found.\"\r\n }\r\n}" + string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\"\ + : \"The resource cannot be found.\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -848,7 +1806,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:40 GMT + - Tue, 25 Feb 2020 19:39:53 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml index e1f704dc640..d35861dbbdb 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArAMVYD5BzBGtbPvxOpObfQ; expires=Thu, 26-Mar-2020 19:39:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH85i-5ZD3vVoeDkzwmWz592OB-rCB3vhED9OJq6iPliOPW0yJ6ALpTiYUf4tX5hVyjOVPOpLxyxf9glotokkpot-N7vn-muNy2Ge2oVvkTDjmeVy5FmVyN3K7SPhauAGnY90xw-g26eO1JyT_mDw803cdjrT_uwx-6JXR-8FehOMQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,15 +72,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:31:30Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:39:48Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +89,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:31:31 GMT + - Tue, 25 Feb 2020 19:39:50 GMT expires: - '-1' pragma: @@ -44,6 +103,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgYlJFTm0DhLtTvIkMGlnM4; expires=Thu, 26-Mar-2020 19:39:51 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8LIGQ15Vp6s0_KOf7m72iCOR6ys_ozYqdXhWpR3ScRsyvSX7NhLjATfQl_4sDVp0N3BPybdgd0vqKqCdQVrvdtGgAxaENrgRe3SMtPJWRcn8B5N5S3xbkya0BH5_WpCeUBMhEUnk2MNZ9x2x-3uCsqy0v35zY4RBtj8122DGc3JMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Microsoft"}}' headers: @@ -62,21 +180,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/156b01ae-2593-4493-9770-12520eebf404?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ad6380be-6b0e-414c-b7f3-edf147476b1f?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -84,7 +203,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:31:37 GMT + - Tue, 25 Feb 2020 19:39:56 GMT expires: - '-1' odata-version: @@ -100,7 +219,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '23' + - '0' x-powered-by: - ASP.NET status: @@ -110,53 +229,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn profile create Connection: - keep-alive - ParameterSetName: - - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/156b01ae-2593-4493-9770-12520eebf404?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:31:47 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:40:07 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ar53HOm8A6NLuuDTSJzEx5s; expires=Thu, 26-Mar-2020 19:40:07 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Xf6ea25a6CcPfayoPthrpa4F09wUmN6AjDvUw2gl1MEvEMortn9zFN8FIJcQHdjmHfgGgEQmAgcmpe2YokgTFN60hTVB-CfiJxrNc7KHY-2DPPzt2gW5LmPgSj6fHaYk3vXOdPmWXIyaWkFVQjO-dqLvPoaO-o-kYlR2NTWpH1UgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -174,14 +298,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/156b01ae-2593-4493-9770-12520eebf404?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ad6380be-6b0e-414c-b7f3-edf147476b1f?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -190,7 +314,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:32:17 GMT + - Tue, 25 Feb 2020 19:40:07 GMT expires: - '-1' odata-version: @@ -214,6 +338,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:07 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhAbkK88nmFJg8opZroDJnc; expires=Thu, 26-Mar-2020 19:40:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8VMUjSwLjb-hqChCo4xL2nd9_S69Ne0gvKtNulTkXsqa0noi1f7E2HnfBvI1BvhVk10Daryf2jGyq2XgyyhAavty1gbt0QdWL_9mctD-Qtf6HE1g5UNMqe30oMtBUOAWyom5TTkoXOQGf2PRTWtNW5Nae5jm8a5gwFE3yVZ4T-_IgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -228,16 +411,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"cdnprofile1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -246,7 +430,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:32:18 GMT + - Tue, 25 Feb 2020 19:40:09 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml index 0f8a869b839..671b63b657b 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:08 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlFU3sB-1BJHljcB0E8HiR0; expires=Thu, 26-Mar-2020 19:42:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8QpvfLYczx0Xh0qGNWDSLjU597uXq-UH799UyHNisVTcyCWPgNQ1Ff7c9_-6uon58K3uxXAYlcTOEn0UFvXYP85E4NS7L8sZaSBUw9nnnEvk2KxFH0J4t4d2ATtQJKpqjrQ9m33ggGibKStP4eU7KmVSGsR0N_P0HRzItDeNxbEQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,34 +72,103 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2019-06-15-preview response: body: - string: '{"value":[]}' + string: "{\r\n \"value\":[\r\n \r\n ]\r\n}" headers: cache-control: - no-cache content-length: - - '12' + - '28' content-type: - - application/json; charset=utf-8 + - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:51 GMT + - Tue, 25 Feb 2020 19:42:09 GMT expires: - '-1' + odata-version: + - '4.0' pragma: - no-cache + server: + - Microsoft-IIS/8.5 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:10 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aj8ehU2oMm1PvjgSfYnqCFs; expires=Thu, 26-Mar-2020 19:42:10 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8sMHL4-87tQd9FYgl_JpJXL4yRB_5kGhoMs6I1rxjK7bYgsLstrdlAXtctsc_yo_po4Clyc1QuuvgqoEoYIoQXJAttqE6BIF2WYUX2Tq_gC4jPz2L_brG5cCAgeWtNGAtI9DLJzDLytFcaZdwsUkYLA8U80bz6Tx2gamynlY8rX0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -58,15 +186,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:25:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:42:05Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -75,7 +203,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:25:51 GMT + - Tue, 25 Feb 2020 19:42:10 GMT expires: - '-1' pragma: @@ -89,6 +217,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:11 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqZC-ixOIkZMr5UKBnGzzlM; expires=Thu, 26-Mar-2020 19:42:11 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Kfb9GeDxBVuUaOxDXWvNWehRE1J9v6W7FiTEutjc68EGEzT41cT_rvKCsJ3sWJQkRWFhs_5mITJSA8gFxfvjA0ofmkx8FzIDIWGrMruMd-JezMk-0_NGQUMs9kSoMz6hGJns8GzwgiTfdQykWNOzDae7sctZ2yQNP6DoI0a3diQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Akamai"}}' headers: @@ -107,21 +294,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ae86ca4b-7fbf-4f1a-ac01-ba7d51038ac0?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3b27b3a-7556-4c7c-b99e-62aedfbf5b00?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -129,7 +317,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:56 GMT + - Tue, 25 Feb 2020 19:42:16 GMT expires: - '-1' odata-version: @@ -145,12 +333,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Auyjh5j19qpMgoZSrVaQj5Y; expires=Thu, 26-Mar-2020 19:42:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8zbqQA3_MJM1UlQaDGnG59zXSVjBimdR-pIhPYg-LiGzTT6TJCGOHtZvSttWOwggAkDjwBlejTFdnhFUO1DwcAMuo6OpbKjZKa4sRljKtg4yx7lZHBbx2CQcFThbZbgbceN3K-6DIV2N_7yTBaT8eqgA3Z_txjhbPOgbjIcOuGRggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -165,14 +412,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ae86ca4b-7fbf-4f1a-ac01-ba7d51038ac0?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3b27b3a-7556-4c7c-b99e-62aedfbf5b00?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -181,7 +428,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:06 GMT + - Tue, 25 Feb 2020 19:42:28 GMT expires: - '-1' odata-version: @@ -205,6 +452,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:29 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtXrtXBlKhtKlggBsvwPZKI; expires=Thu, 26-Mar-2020 19:42:29 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8y47yco-IyoFkg3rwMP8-HYFiKrR6h8DNNVYmgRsK55Dfzg6-JK4MWPGrYG-iJrkz5esVGetoWP-thEkJvkuT5mOUyj636ZUZhrwwVWfNryb4pFwMTW0mVeDiwSyJ2OHh-qezTLrHK5QX1gqIFNdjMQ-5y_vOnKbHiDZVtIDy6qUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -219,16 +525,17 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -237,7 +544,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:07 GMT + - Tue, 25 Feb 2020 19:42:29 GMT expires: - '-1' odata-version: @@ -261,6 +568,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=An7d7HBdNMNFmL8p7R0kYvk; expires=Thu, 26-Mar-2020 19:42:31 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8jonL2aytlNXAWRCq1NGLQ5rTiYYy507vB4dPcvNyxgWaZw5Dr5_5AcZvhWMZa3eEmu9cF4_lSlnOal3iLBX87wCcsvddvhzXzbF_5MN5TMg4Qhc-B9UWV5iUBog33JXhu0fGabpXOm8aFJf80EU5287CxI2lGhhbruwn-lhgqXogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -275,18 +641,20 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2019-06-15-preview response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n }\r\n ]\r\n}" + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"profile123\",\"id\"\ + :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n\ + \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"\ + resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}" headers: cache-control: - no-cache @@ -295,7 +663,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:08 GMT + - Tue, 25 Feb 2020 19:42:33 GMT expires: - '-1' odata-version: @@ -319,6 +687,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:33 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgmdHMNulwdGhXyH_NpqNLQ; expires=Thu, 26-Mar-2020 19:42:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8zt0BEmu-WtprkI1pQy-yjfN9Y0pBFLjqz-s5awkF9pvCugbTcB2cS5XCRqc37_LoFePNrEnilXJnn9dc0SHs2vbmiuYXPaG6WgmUK2Eu5O9tCUrKzFRVUSENpwfFH3jzwfYAm_vmnEfF0uU0BqeH0ICwNQSDkUBIoQPQaogI6DQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -333,18 +760,19 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -353,7 +781,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:10 GMT + - Tue, 25 Feb 2020 19:42:34 GMT expires: - '-1' odata-version: @@ -377,6 +805,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:34 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoEwAlU8EUVOuzDq4H5lD84; expires=Thu, 26-Mar-2020 19:42:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH81C2GlPu_Zm6jiEwveRMrG-68hxRMK8IjpNHUDGZ6mhBoOA-eKdaEedKWRqVSqVldhhYrFxrOS8oZBO1u0oEDAy4BbszmmmBMcDftPOciMDDHx5fKssTUtIKQoyRqPOIMgR6TY-qvLV6GruCWpazKYQ4_wIwln5y2Jqbjbz_y0wcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"tags": {"foo": "bar"}}' headers: @@ -395,21 +882,22 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \"foo\":\"bar\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"foo\":\"bar\"\r\n\ + \ },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\ + \r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Active\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/82767161-82af-4b3f-8211-8fd1be80764d?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/10b21b38-5831-4a81-8878-aef17a6dd6c9?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -417,11 +905,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:31 GMT + - Tue, 25 Feb 2020 19:42:37 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/82767161-82af-4b3f-8211-8fd1be80764d/profileresults/profile123?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/10b21b38-5831-4a81-8878-aef17a6dd6c9/profileresults/profile123?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -435,12 +923,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '-1' x-powered-by: - ASP.NET status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:47 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApKW6nJuW4BIhYAoj-g-ZOk; expires=Thu, 26-Mar-2020 19:42:47 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH87XuufWZ_V1aQMunlGDVWJ9P0y0JVgRFHWrlGXdut08Gys4MU6zMwikzs-wIZTdb1UiYGOPLoK6FR-3vYIuD7W-FWsycehQ5PtSI_tGg2XWrtYcrGvNsTGt6wYiIP-Nfs9DE4-pbG5JxOaFoP9Ne4JpwPpTklLsbtZkKUF2xlXvwgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -455,14 +1002,14 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/82767161-82af-4b3f-8211-8fd1be80764d?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/10b21b38-5831-4a81-8878-aef17a6dd6c9?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -471,7 +1018,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:42 GMT + - Tue, 25 Feb 2020 19:42:49 GMT expires: - '-1' odata-version: @@ -495,6 +1042,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnPucc94LJxMl6AZTOFZXaw; expires=Thu, 26-Mar-2020 19:42:49 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8f2ZDLHFRKy0WyPGPCvKBK-xB1iVkNnHN4lLohVeqIa8CI2OdE78rdUNVho2VwmZffJ8SfKY5K3xH_Y-11eashLfnjqHKKWOyQtmy-TFJwBMUYLieYAUD4kDaKweomuHsgWe5FBSoW1iwzJClctFMmxtdwugFmZLUxW0bjZZX0f8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -509,16 +1115,17 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \"foo\":\"bar\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"foo\":\"bar\"\r\n\ + \ },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\ + \r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Active\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -527,7 +1134,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:43 GMT + - Tue, 25 Feb 2020 19:42:50 GMT expires: - '-1' odata-version: @@ -551,6 +1158,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqvB0_qQgxJBvuEPj0eY3z4; expires=Thu, 26-Mar-2020 19:42:51 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8nLzFqON8LzutuM0mPpKAuYYKtb0Sv6seAHfJXjPkT4PryaW9HO3L-3C-A1hebWkSOhh2IHLtr3icNvIxFiqdQUowZZMUhy3qEQFW1L6r2Ja5hBHEm3D-UbnetHFC5KmjpLnfIBH78dASXwUb42AJI5Vfr3W49-7RgxXb7b8WCPQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -567,28 +1233,28 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14cf540d-a910-4423-95dd-b75b48cad464?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a767c787-bb14-421c-84e7-cca6fafb82e0?api-version=2019-06-15-preview cache-control: - no-cache content-length: - '0' date: - - Mon, 09 Dec 2019 19:26:44 GMT + - Tue, 25 Feb 2020 19:42:54 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14cf540d-a910-4423-95dd-b75b48cad464/profileresults/profile123?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a767c787-bb14-421c-84e7-cca6fafb82e0/profileresults/profile123?api-version=2019-06-15-preview pragma: - no-cache server: @@ -610,53 +1276,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn profile delete Connection: - keep-alive - ParameterSetName: - - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14cf540d-a910-4423-95dd-b75b48cad464?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:56 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:43:04 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=At-0eB2V9hBPqThSAfEUkBg; expires=Thu, 26-Mar-2020 19:43:05 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Njr2ahGCxSYvwNZ2DbcOOS_iwk829UCej2sFyD5XIiMN6iWGSL-aIFrOlz3OrCt-tKyWTs0wR295szhaV-LAI28UZVyTvNUgYEH4h2N2m4H8Ak6BDTv0Skb7G3hm6YGciNzihnfTQVpL1zAbomruURbf8n_ikl_zBqqVNDAEJgogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -674,14 +1345,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14cf540d-a910-4423-95dd-b75b48cad464?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a767c787-bb14-421c-84e7-cca6fafb82e0?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -690,7 +1361,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:27:25 GMT + - Tue, 25 Feb 2020 19:43:06 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml index 8768119590e..1f7c2e45d2e 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqQzCG41WudMjDFe6iLCjsQ; expires=Thu, 26-Mar-2020 19:38:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ru4CLRYjgW6gg134xm6lhjdNJf3UGdIWJZjH83WKoojFzXEYB62EYv8YpOGjF3zmvBu4RBKcPPrICa4_YD1bSKy-8noYLQgKRGDvRLRqxqYy1Q4EhGf_NFnw2Y2N1wnfnTNMJ7-NJIJDvUeubgc7TuxD_nTVL-ZyK-bv81neVtcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -15,12 +74,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/foo12345?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/foo12345?api-version=2019-06-15-preview response: body: string: '' @@ -28,7 +87,7 @@ interactions: cache-control: - no-cache date: - - Mon, 09 Dec 2019 19:28:49 GMT + - Tue, 25 Feb 2020 19:38:28 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_endpoint_link.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_endpoint_link.yaml new file mode 100644 index 00000000000..1596de113ce --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_endpoint_link.yaml @@ -0,0 +1,5027 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:19 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=As1XDxAm3yFCv3UStf6Nxyo; expires=Thu, 26-Mar-2020 19:40:20 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8phLFvjO5hqblX82QBeTzCJD9DfQtb9eSXJ9lpanLu2WuOC9YX5a1T_70Y9JWDbUX7sbUzMBad_05te1Hc8kyIdWeTYAZsGFSsceMaNhIK84frJOfkcEcC0t8YSeF6USp6aFjA6eFCW4AP1K8kE-rhqHlSADYqAeVJ_uVz8hAn0QgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --sku --location + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ps1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/4eaa08ef-4c35-4b06-8190-d035a6cc3628?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '408' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:25 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '1' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:35 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArtrXLkDGYdGhqLNdEICtIU; expires=Thu, 26-Mar-2020 19:40:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8QAAyo4on-mkMIHCSkyqFV7dWKxhT1YiY2PdDj0HlDbJOozzxhemNc5KH67qKRT8iF-YnyU2eYL0SIqkx7KUU4GRJp6bb0sISJvu4lqjerIXMAuEvExjAsBqbVCsYmmJNnjvlf6AqNTZ-L9rnPM108nY-YeIX0ZgoGR-JObKi_-ogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --location + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/4eaa08ef-4c35-4b06-8190-d035a6cc3628?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:36 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjmNwGi4RvlKlXHVvi8GJaU; expires=Thu, 26-Mar-2020 19:40:36 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8GcouIdtnu2x7fFDMXv2rfKlodei0v--akfjomt_8QH6y81C6Ol6ZjYV-aMb1LPWgfHJVEUrQmjcoWr55vJL3EkxMFMXpqBLc5z9oo9og2VKPhPVfzUiHcG3ycKxgYY0Ba0hv0-YMOLvnHNpU7xkzX8LpXGTlsWu-fWRf7205MLEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku --location + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ps1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:37 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:38 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AglbFLVIGipDhKeWOa8z3Tg; expires=Thu, 26-Mar-2020 19:40:39 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8s30FaxnF4TyM4F8jLyythIGXpHgliRHV4o44GV0qHIBZ20vIVBIrZfjxAezvhgVQ9VkdUne0-InY12l-zrWLmEB1htxhiwTQyUNDGDXKAjkWCPOvF9p2qTFCyNqArRB1LhcpU0Kq0YlYaL_Iffphb84-RNma9SJmAHn63M9Z3T0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2019-06-15-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1'' + under resource group ''cli_test_cdn_domain000001'' was not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '237' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:39 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=At6oT5OxbkJLuD81kYjlFK4; expires=Thu, 26-Mar-2020 19:40:39 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8T5pg0fZ3Bh6ybdOGAH4OIskF-b0BAMAriepaNFOeSOBjWV2LhllWBYOl9nkTHXC0kihFmTd_TxXAIZsWNsP0MhCCky_e0f9R9x864yVhMSyHjL2YLz2_OqYbdB_yJDV5IrMJC8NW7bPgXsy-ZXwLDi03mdaWileBBE_UYJihJy4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "properties": {"policySettings": {"enabledState": + "Enabled", "mode": "Detection"}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy set + Connection: + - keep-alive + Content-Length: + - '145' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"wafpolicy1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Enabled\"\ + ,\"mode\":\"Detection\",\"defaultRedirectUrl\":null,\"defaultCustomBlockResponseStatusCode\"\ + :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ + \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '881' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:43 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkYRbjkDIptDu1Zunq2M1KA; expires=Thu, 26-Mar-2020 19:40:44 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH86Czo3pV0QE_B3lxznqa5WgzFJQS5wCKacLsf3BnwkSKp4kxvCscPvCbbfDpTT_4vVdDSlTcdTHMrKlLyvYqo7_WRDVjMlnyWmRfdWWrBG8AsCdOtwzwLnKghDKCR0GMPpBLjEorU5Km_lfEsKKORlx5aX_Jr4O_GuEFnJg_JATUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:40:16Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApDMXEoA8P1Esco7CAUf5u8; expires=Thu, 26-Mar-2020 19:40:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH82i0ciU3CvaeG7SC7g-8VO6oDQ3WRn4IT05FaaLfrGgFIjB-ZKL5AfD1JickWnIw_vZ_d_-rOg283oj2yOl_SSqqgp6vPVj8Lrfx1zHCEXyEwm2iZfNb0u5QzAQu2DPxakfpO2jZCT59LEyIw1oTfUZ9cUkuPVc4wLfABQESRbwEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": + true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": + {"hostName": "www.test.com", "httpPort": 80, "httpsPort": 443}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/27c500fb-d1bf-48bf-9029-265178445e9f?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:52 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '1' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:01 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Avr-63dS525Hp7obpd1Xhbw; expires=Thu, 26-Mar-2020 19:41:02 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8c2xYQ1w4x9QUkwfN_nsWJ7GiK6U4iHoIcFLYyC7thqWv4qgcIkEQlmmFnttPSQeiQv6MV1_EPR-bS5BUZnFJqD3TezbnDAAnQ4LnkMsUhwGxrR40uZ_z1MemJ3MLZduRsCuiiaV-ExFHc0MTINKT0obt0fB7R7pKp-t3KlE_XIIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/27c500fb-d1bf-48bf-9029-265178445e9f?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:03 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgXi32o_3KdPtQDO8wI9vT0; expires=Thu, 26-Mar-2020 19:41:03 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ytfXueVpvMLGchkxRCFcFx7sIPph66fi3LvKedaefqILFEA4CQJtkFhViKgLW4vz7yZQKeIws7pmsc_OwMef7MSpj6hVbIvROtusAJTOdaftRq8XeOcMjru3G2U2r6AZzCGt_GTjoM_smPLuCLQ8ZvG-qPlaYOCTrzyE1lmIAmkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:04 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjSV7uuGHC5EtfR5FfRYKus; expires=Thu, 26-Mar-2020 19:41:05 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Z2xIQAo2TEwJu7nX1WRlCe2OKcbeLjiDbs3Qd7GHw2x_4NwBtInDkHNcVJmAhK2ybulp0y1afazo00CtiyezUIDu-e52HuVBa5MNcm_4kveLiR_az5H6PfUVGVdTzCNmrhjBsclF1ZyXVSC_2gkw1WXBsvC-7A0TpjsbFsPKqZggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:06 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:07 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Al6pzLTItUdEjmt7pR1O0ro; expires=Thu, 26-Mar-2020 19:41:07 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NJ_ONY0zC6tbJlilB9O9WF5l5JCWfEfnR7ljzRkLpe1DKiSSurxr8py2LW9HnE19fRuWUbLaCqe_zcK1VKEgaKqpRNGbqHjJog9NNUtB4iMhmvUHF1f8cb4ikZfVt4mVy2XXXdGjYaKxiZm75xjOEgA0wJUrm2TMTlB0QsgBF24gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name + --waf-policy-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:10 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:10 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmkjU93cc5lEtr0kGeJdDF4; expires=Thu, 26-Mar-2020 19:41:10 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8GkYZsLEA3niRPaX-ItIjaP9e5gh8tNLiisfGL8IBOPehFcMUt7o2H9Nnc1Hkff17KrMclJe4VX_N8IfZ43g1KZxy3dVNOtzVuu6pAMBFxVT-iP-6WHxfzQbDZIHpe0Yx03FOpNJq_uPWHzMAUmHV82piOdwCgrH5wn8d3oZvLOEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "WestUs", "tags": {}, "properties": {"contentTypesToCompress": + [], "isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": + true, "queryStringCachingBehavior": "IgnoreQueryString", "geoFilters": [], "webApplicationFirewallPolicyLink": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1"}, + "origins": [{"name": "origin-0", "properties": {"hostName": "www.test.com", + "httpPort": 80, "httpsPort": 443}}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + Content-Length: + - '599' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name + --waf-policy-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/9ebfc7e9-6c12-418b-a13d-a4ba92bbf8f1?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/9ebfc7e9-6c12-418b-a13d-a4ba92bbf8f1/profileresults/ps1/endpointresults/ep1000002?api-version=2019-06-15-preview + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '0' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:22 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkUnG7yGbuVKnRlzcnlVdAw; expires=Thu, 26-Mar-2020 19:41:23 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8HklqgnO3FXIz5F4SwKCiHWW1ewKhWfrOpL9y_V5_9ttWE1uZORlQC12QP0vZw7mI5LR1TRT9CLlkPzBsOjtR1UAvZLZGtMRq--Op-MMM5UloYjOBgCumpbhgC6GuER0rSUGj2iI3I5i-oJDpVQzpcjU7hGd7nfHZMfd2onDuorIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name + --waf-policy-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/9ebfc7e9-6c12-418b-a13d-a4ba92bbf8f1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:24 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:24 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApBSFpJDr4RDmuzTP5BsiHU; expires=Thu, 26-Mar-2020 19:41:24 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8dJKF8eIoYOxcrq4-V5FC836jdwM5DgRiCgmbGe7RsrwQEzcA0YdBrKf3a7gQNSZbUdK6kGjxVLTLHypwllCnEI1-kUpEoc6D20YFGrfA1B51qRQ9aLDdk2BA5vIfOG0WrWLgYJosj2MPELGshFJTnle_qCB7xaLXzafeiIBfgoYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name + --waf-policy-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:25 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkZSDyxvN0ZPtxhSrYEyps4; expires=Thu, 26-Mar-2020 19:41:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8MAdIIYAixTsmQBNWH_YVXnXDor_LkbRnrSp14qif5Mxb4xr6YmG5F7PWaw6WNxwOWpd9CWbTFg4rNZmEjGiIulvPdeCeHf__xzGMR5v9XPYaAyb4TwrSc62L8oM1bG4_3EUE7I2NLPnE5xGN5-9N_Q2PD-S6uYjGdobL7ghCrkMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:28 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnQWO5lkcJZGoNUlDxpX-OI; expires=Thu, 26-Mar-2020 19:41:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8kKIJtSgb4HPG0Jn51JShqXzlCkJ30QlKXkm7cDeUr__oHg73r-88cvK5x3jmePeSrjF9IBfgy79N8xI01zBSqNmeToEjR0mRvWFBt1JIkIY6f-LQZrJ4cAm4VVs-90xgioAXQJWeb3KAwALIBU3DmmRMNQcirX0PDVQfoKQ4UNMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:30 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:31 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aq1N4CC1MQ9CtFPqZfIhtvE; expires=Thu, 26-Mar-2020 19:41:31 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8bAv4hNmifzSQnVNZmBa57NvhkdXpkjmqQsrK9qPiWGKly-UJXoj1G5a2lzevBRkDoaNvCWCi9-aersmoZ47Ddpn42JKSUwxVzgyV5Ew3JKf4zjOAgwKjzpfuVBGFcWAEW3dfhRmdt7nrT2qEeswKnp58zwK0A4O2NldhFFePpWcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"wafpolicy1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Enabled\"\ + ,\"mode\":\"Detection\",\"defaultRedirectUrl\":null,\"defaultCustomBlockResponseStatusCode\"\ + :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ + \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + \r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1111' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:32 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:33 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoQo9zXkg6lFv47ihPOud4c; expires=Thu, 26-Mar-2020 19:41:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8TSyY2v1jDucl8H6Y_N0IBvxqhGJvxZo4Kwb9agXMq28khWFGHDQbSgtYEJ0ylnjLNLAkXusIXOjbtE3aP44kW3c9wa29aZ-SpJkd8Qym1KBLrCvZ66Qcijg7Q8Zm32N-W_Z4le8gaginH8lC3od_W0W30kkpflnMBWBlR8R4fN4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:40:16Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:34 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjwE_wQxQhVAsbLQQC0gCSk; expires=Thu, 26-Mar-2020 19:41:34 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8b0ZBYMTdsWvA4t7qKbPRMlwEM0Xy9JgGReuaMbdSAMHRVqxNQGsJP9-U8YXsau8WW3vmZqdydG9L4f1oo4BgD-Dx8Ijo7eGq74hLcc4_rqo0BYO-M2IBIywLDtC8zFagpMA78pAO1gYlKPtdhR-Nu4axrwlVG8TRDXppBKlyFFsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": + true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": + {"hostName": "www.test.com", "httpPort": 80, "httpsPort": 443}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c89f167d-5a1e-47f3-925d-7ddcd9cce3c0?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:39 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '-1' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ah_gE2Oda9VCvf3UY15PnoI; expires=Thu, 26-Mar-2020 19:41:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8SKYwCzuEFEA1-2J47nNDi87Ls5DMZx7G0KM-p0eaNPfjhX8uhDPQGVjoKeO1EidXCr7G9dQXKPUaDWE3jpj5chYoVCXdNzXo70pZvAqktmDj_I-6NaT8asuBM7jSr1CQKb2ALRU7WzAjj62650RJBnG84H3Z61tCdbQkX8WHsZUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c89f167d-5a1e-47f3-925d-7ddcd9cce3c0?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:51 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmAX6FjfZ_VAoBErMX1auzQ; expires=Thu, 26-Mar-2020 19:41:51 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8s5hLCqp92SiZvGaufLrYcH76vAD7EJ20VWrbYlUd0VvdVKL38ZAGZZ2XMVKm9GeF9LQy5PZ7eLLgO1kCqoAWbXV6h0YKCRvkOODg-l-ObdKNI5WD-ILm-0EoEEb7vIhtsIse27_jfHbOGwxP6MpoDs4NfKbClP8G53D2FlVJ2CAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:52 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:53 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aha3eJi2pGZFof0FjHvyhco; expires=Thu, 26-Mar-2020 19:41:53 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8g8EgWxYs0Rwp8GnNJk0xx5G_J6XtbdoONADZIn8YGGaQuL86r5UrLYXF_hwfx-0J-lUXBuJNe6r_BqiGHCj5_7NBbFkMADQNyCNIWGLTW9dGEAoCqElMgT7CVP31HzbIsvVZ2atDNtxsPSM5O79miUyHYo39-S_SmmkBrU9m7owgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-id + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:55 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:55 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AskEvbvg4MlKr8Y6Vuc7ty8; expires=Thu, 26-Mar-2020 19:41:56 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8X-N5JBsqlx_QakwnyQu4DgXTCOxZQ2hsZKqcSXk2ZLM1nr5mneqHcemZChmJmJOLm6PqOxgWEdjsM2lF2fkDjIcOWRHnvpZViSnmw-jwayDEBYdg5KcrYQHQWICsNCto8UlG59Ji8vwSn-0QRVa4jMke0T96qyIr9iBikzFUSbsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "WestUs", "tags": {}, "properties": {"contentTypesToCompress": + [], "isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": + true, "queryStringCachingBehavior": "IgnoreQueryString", "geoFilters": [], "webApplicationFirewallPolicyLink": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1"}, + "origins": [{"name": "origin-0", "properties": {"hostName": "www.test.com", + "httpPort": 80, "httpsPort": 443}}]}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + Content-Length: + - '599' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-id + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/1db3cafb-0193-4a19-90cd-e1f341fc2d3a?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:57 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/1db3cafb-0193-4a19-90cd-e1f341fc2d3a/profileresults/ps1/endpointresults/ep2000003?api-version=2019-06-15-preview + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '1' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:07 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnjAWg5M8LZElcYAgyecnZQ; expires=Thu, 26-Mar-2020 19:42:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8TOtYiKBMupb4ZUwFyUXLt4UcGfQUrtbKHG1zi3BILF6cNyVhDFBRi09HPkYYUvJmi0DlUQtoBw5ousjZaeP12g9iemaazxCWV3yUnc95QghdlnO7KdGBAkeHc1ic9_XzWo1elMUhG0RjNT567XWiTS4pgZtyTKQNie52mapmmAUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-id + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/1db3cafb-0193-4a19-90cd-e1f341fc2d3a?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:08 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:09 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AijeumkE20hAmOl1doXFr4k; expires=Thu, 26-Mar-2020 19:42:09 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8K3xv4cu865P7IWtx2gSZkWLybNZ8pHrFpNGnFhTcKJqdmB25terQNrxwYSPcnZdgHSlsltznu5mb8yVMwIbJ8WuKJOZ8D2pX4_3D2Kr-zX69G1TmSDfjL1sCxlr4yFOF7npU_t-6U1e2UKs82B5pgKewkD-1r5h5QMRDBT2QsL8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --waf-policy-id + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:09 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:10 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ah9jIWCqdwREnjFN-TFr_Sc; expires=Thu, 26-Mar-2020 19:42:10 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8SUW0yiVOV40oXsvxZWqd6dZFOmHSUFgU3uC7z8ImnZCmozNtnEGWMK7wMgIFiyBPATbn49510CbdYe033iPbfZn1NNux1npEG6DcLvfrqKg_4_oukpf1lslo97XBxQI08BIsD83ZSKR9Vc5-KWMFzbFf7gAbvRtbi0gCxwE9muwgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:12 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:12 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhFHI-pk1JZBoQyKN3SaRrk; expires=Thu, 26-Mar-2020 19:42:13 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8qTpRUOupno-PVyEEQy7wIVTejgzh0FstrwPBqW7zww0eZF1Ww-YyNdqpKFAOhA6LM0L3GVnUkvu64EEnCASF96vHgYhnSsV1D4Ve3sLZEludeONcu3VK27oXOZ9yguc8FuZEBXyuG4djH0Msx5sZP0iyouX-fOxS8jxg2c6S4UEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:14 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:14 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Al9ODzilwchOjvV967iawIw; expires=Thu, 26-Mar-2020 19:42:15 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ahLE-c_VjDkqW-t_uKMaiKKv9XhP88uBCHz88e68p8CkbA_rrHJfW8-XbKgso7Whrj0TF5jcTef4RdvdvDIYsvSsGMwSgVYWNy3Sm5ANCURSudbpUeEPLREuB9Z4W5b4qTRaAhFT4ye_VWfqe3qQPV3K4Fl1ZK1MW9DbmwDynfsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"wafpolicy1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Enabled\"\ + ,\"mode\":\"Detection\",\"defaultRedirectUrl\":null,\"defaultCustomBlockResponseStatusCode\"\ + :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ + \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + \r\n },{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + \r\n }\r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1342' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:15 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:16 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Auj9smLmRK1PuSbqVNxMKSA; expires=Thu, 26-Mar-2020 19:42:16 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Ls3DIous_ECzc-ozWL9rEBvHrRaciDiiQLi55P3b38dcvHxBwbulINSSCcVYFCqsMUCWTooZD7lH4qHdJw8pj_QUodCr73kdbS1QqlHzy4bzhX_fpBbfVTVtlpwc2s-ezuQEycZtgQooT5Usaz9VX9QGv_pz06QTiCv3-mTOV-YgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:17 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:18 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsGQjAnNsNxNs32ImGYMhgo; expires=Thu, 26-Mar-2020 19:42:18 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8OWvX44w7DVZHOY49zSIfu4yRGURAmoMGok_bIgjfsjCarzvERhyrjG90N_uoN06_X55-Jh99BlOTiUkAeXILMiLcCekZ0dDi5MoKg9KJdsv2JL99Oa4QqlR3a653QeF-NYgerItx4AXwkMhk5GBhpbl09TwLg0LL_rZODZ0zoQUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "WestUs", "tags": {}, "properties": {"contentTypesToCompress": + [], "isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": + true, "queryStringCachingBehavior": "IgnoreQueryString", "geoFilters": [], "origins": + [{"name": "origin-0", "properties": {"hostName": "www.test.com", "httpPort": + 80, "httpsPort": 443}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + Content-Length: + - '340' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/df88385c-4eac-46f1-a4bf-dc3559d96a02?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/df88385c-4eac-46f1-a4bf-dc3559d96a02/profileresults/ps1/endpointresults/ep1000002?api-version=2019-06-15-preview + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '-1' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkEZ6Mvq_V9Ot02vykk3z94; expires=Thu, 26-Mar-2020 19:42:30 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH882NoSoGusKlhFvXfLKYo2ngX8CEEt1bi5PVCux1Onz6PVwMcKnMqICwIAwnuz5eNwukI18POzGp5o-M_IFFScaz20J_lHhsKQDm91ntxU9t8Bp5GHCgNvUVwuzUs-B6MeP-bj6v7YBYa-V7GVbd10ZjLddRo3dB5tJLllSunNsAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/df88385c-4eac-46f1-a4bf-dc3559d96a02?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:31 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ai_CoH88tRVGqKRQnNTFEuc; expires=Thu, 26-Mar-2020 19:42:32 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH81xjWd7WCmBLkWsnflFsRd86c4ps4lRRDAbqVRMhlXFO2gK7FTb8k4QQw4PmHKE7FHyYWWnxNZI-nQjpvDbvIwo7e4GK2lDpYtQI4IQCoO7f16_1Pq6-MXw21YqWielSAFydXQfHwK9A3GjCqD-FnWBi2CQ1CGgEVMgP13Pdc2zwgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:33 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgvUJYpKbjBGpdjB0xI0doo; expires=Thu, 26-Mar-2020 19:42:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8DW4onGSMfJ1MaWb_2j5dvRxlmsPXLdAc3pFlUvRNZa43_Xp8oXq3a9cP0bmHB7OdjwlPx22tbPmiiveBUYOQpCXWNzRX3oNSYl_zO7-Z9sH-R1JpAq-obb-YWBr7FL2hBoVW-dXbYKB6nAND44q5MiAhsUQL5Z_Bc-9SWM2g_pkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:34 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:34 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ahqkxry5ljZHlHfMsMRIokg; expires=Thu, 26-Mar-2020 19:42:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8zgz0zE2AEEOtcIXEHN9cidyDs81wcSQtIXqJJPAX4TXFw10i35KeREAl_5qXkPXLWIDGP4giTu-IE3pc9usdI35so9gQCGZxvD5gv6MpynfcQhmfM1Tr0yEBVcOId6kGBBY4zG2KcsBT6HeAEl3o3DZpqoM_7WC-Eeb__sf9UoogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep1000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep1000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:37 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:37 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=At__kLY25iRLgHT2a3huPBg; expires=Thu, 26-Mar-2020 19:42:38 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8WP52y__PbAKWdPH9HPym4vnsDt-b5T4TWA06X9nYlpFF8TmVzYRhzOegTmaXRlmSSQaBKO6oTyfpayV_ibt-m8za1SeolPSb0FCTv_FdcYjKvyoTXWb72yBiaYr9AviFnES32G5a-dLd_y6N4UWtSC1nOh8nu4bLMrxsYmf5yWkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + \r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1210' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:40 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:39 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ar9XoDtX0l9LqlGCQmA8iqw; expires=Thu, 26-Mar-2020 19:42:40 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8jYVZoxx14Ub1UiQMCJnVc7fPc9C5clxOUOSdu0LDI-esP5GNQP6GAPwHecjhq64PvzVfFfTPWL6vEDnKtODkDwHkMpzmfc6kvpUKr1TK-FbcG87q4J0I0XuLI4BscTTrUKY5Z-6KgUGwx_a7FTWAtLYhVfWN-pDwpz3JuEsc4cYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "WestUs", "tags": {}, "properties": {"contentTypesToCompress": + [], "isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": + true, "queryStringCachingBehavior": "IgnoreQueryString", "geoFilters": [], "origins": + [{"name": "origin-0", "properties": {"hostName": "www.test.com", "httpPort": + 80, "httpsPort": 443}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + Content-Length: + - '340' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/ba5dc169-e886-4283-abfe-2354106289a1?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/ba5dc169-e886-4283-abfe-2354106289a1/profileresults/ps1/endpointresults/ep2000003?api-version=2019-06-15-preview + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '0' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgBkZSHfXo9NuMTZo9QxVbA; expires=Thu, 26-Mar-2020 19:42:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8o0f-4dUb0UPyLUDt3yVR9l-AM0KF3z5O8INXE7AJUAPz2NPchHmtinNMk0oDVM5irFVDTZXK_GEcHEsiD4VGtQzE0_OI59kVctcU9QkHaYA3NnXloFJHInAKhihcjduUK8Tsy3XEpzAbvK8gTRn6Ggk9T_Eiyzg2TgdpG0sTf3YgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/ba5dc169-e886-4283-abfe-2354106289a1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:53 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:52 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhAe4fg7LEBMjLodeUQPH4M; expires=Thu, 26-Mar-2020 19:42:53 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8708Yz7deTUuID_glIQPxpIy3cd2UUKOCPV06iGxwsg7Zu_GUunlnhKrsyLSwxWUpkIP3NFmnxQa5dVo2_Q1XZPGUIAb_Kz2Gsi56RFj-mX59M1o399iHn98K-aLLB4mTU5gB6Hvc88NwOaMh1fKhytO5t2K2dTPj85RYcg_Rd2cgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy remove + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:55 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:55 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjMJiZd3B09Ki_KQ7o3er9Q; expires=Thu, 26-Mar-2020 19:42:55 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8dFRjFMPqs5zRWqL2IXkYhT6sW8L-exU2qYCxujSdRYS41PTp7TtFQGC4dh0jZBZG3o4BSqKAIRJc6I7P03O0eOpSQvIq4BI5pMr_8Mj942ksHrCMrtNCmoI8wBpgsvCWmJ-o2x3MIlLm3XxMkxg6Y5u1paFKwH1G3ZNE-foQmLAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:57 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:58 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Amt6tR8WPL9Gv-foOGeX3xk; expires=Thu, 26-Mar-2020 19:42:58 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH82bIhccRPogN3ZnBkpOHSgJsz-PS9UsKDG2O4ZFgaMVpD5HRNKNiChsGNVAoYhtBlceEM_C4Z3bUYwpdQ7xcodh2kK6WMTTBI6-0UZ800HuulVbhrjlVEP9nibbit8uyjrKl_KWBc-G3fQyZTStQ0NRjUz8XTsUZTXOZ-_19lZ0YgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"ep2000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"ep2000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.test.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\ + \n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '980' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:59 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:43:00 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AktgrLnxPo1Broe4lQilKEw; expires=Thu, 26-Mar-2020 19:43:00 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8eNBGx8La61c0gkpMOQxGaV1oXCupExasVqhDWTOciId1PWvL3-CecPRjYxCGncp1SU2PDBMq2dduFektZ-t7pPwTOq6Qd_EToJQ2wGZl7zUlFpKvotwlVrWudRtgIXyf69VNSgIcJJD39Ybli5UXDpRhVPGXdXRkWXiP7fikfHkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"wafpolicy1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Enabled\"\ + ,\"mode\":\"Detection\",\"defaultRedirectUrl\":null,\"defaultCustomBlockResponseStatusCode\"\ + :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ + \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '881' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:43:00 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_managed_rule_set_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_managed_rule_set_crud.yaml new file mode 100644 index 00000000000..8453a899240 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_managed_rule_set_crud.yaml @@ -0,0 +1,1328 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:16 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuC2oLNCLZZPpqkZyToeOT8; expires=Thu, 26-Mar-2020 19:40:16 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8rUJFoink1eCZjt2vSTuq5vBzg12CKDD0xW2vAEend3srYS4icgH-ys_C5GQgwmC9FxCOLhzcl2BFoGTYop4k683PWT1Yme1LKPd8INeUxhHTCw1rZnpkhtGHZrYatYnEl1gbVBR7FqNZ0eAWpjDtvmSWaHmt6JVgPZYP1iQJ07ggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf managed-rule-set list + Connection: + - keep-alive + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"DefaultRuleSet_1.0\"\ + ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets\",\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroups\":[\r\n {\r\n \ + \ \"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"921110\",\"\ + description\":\"HTTP Request Smuggling Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting\ + \ Attack\"\r\n },{\r\n \"ruleId\":\"921130\",\"\ + description\":\"HTTP Response Splitting Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"921140\",\"description\":\"HTTP Header Injection\ + \ Attack via headers\"\r\n },{\r\n \"ruleId\"\ + :\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921160\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921151\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\"\ + \r\n }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[\r\n \ + \ {\r\n \"ruleId\":\"930100\",\"description\":\"Path Traversal\ + \ Attack (/../)\"\r\n },{\r\n \"ruleId\":\"930110\"\ + ,\"description\":\"Path Traversal Attack (/../)\"\r\n },{\r\n\ + \ \"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\"\ + \r\n },{\r\n \"ruleId\":\"930130\",\"description\"\ + :\"Restricted File Access Attempt\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"RFI\",\"description\":\"\ + Remote file inclusion\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: URL Parameter using IP Address\"\r\n },{\r\n \ + \ \"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion\ + \ (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\"\r\ + \n },{\r\n \"ruleId\":\"931120\",\"description\"\ + :\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing\ + \ Question Mark Character (?)\"\r\n },{\r\n \"\ + ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: Off-Domain Reference/Link\"\r\n }\r\n ]\r\ + \n },{\r\n \"ruleGroupName\":\"RCE\",\"description\":\"\ + Remote Command Execution attacks\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"932100\",\"description\":\"Remote Command Execution:\ + \ Unix Command Injection\"\r\n },{\r\n \"ruleId\"\ + :\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\"\ + \r\n },{\r\n \"ruleId\":\"932110\",\"description\"\ + :\"Remote Command Execution: Windows Command Injection\"\r\n \ + \ },{\r\n \"ruleId\":\"932115\",\"description\":\"Remote Command\ + \ Execution: Windows Command Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"932120\",\"description\":\"Remote Command Execution:\ + \ Windows PowerShell Command Found\"\r\n },{\r\n \ + \ \"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix\ + \ Shell Expression Found\"\r\n },{\r\n \"ruleId\"\ + :\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command\ + \ Found\"\r\n },{\r\n \"ruleId\":\"932150\",\"\ + description\":\"Remote Command Execution: Direct Unix Command Execution\"\r\ + \n },{\r\n \"ruleId\":\"932160\",\"description\"\ + :\"Remote Command Execution: Unix Shell Code Found\"\r\n },{\r\ + \n \"ruleId\":\"932170\",\"description\":\"Remote Command Execution:\ + \ Shellshock (CVE-2014-6271)\"\r\n },{\r\n \"\ + ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock\ + \ (CVE-2014-6271)\"\r\n },{\r\n \"ruleId\":\"\ + 932180\",\"description\":\"Restricted File Upload Attempt\"\r\n \ + \ }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"PHP\",\"description\":\"PHP attacks\",\"rules\":[\r\n {\r\n\ + \ \"ruleId\":\"933100\",\"description\":\"PHP Injection Attack:\ + \ PHP Open Tag Found\"\r\n },{\r\n \"ruleId\"\ + :\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload\ + \ Found\"\r\n },{\r\n \"ruleId\":\"933120\",\"\ + description\":\"PHP Injection Attack: Configuration Directive Found\"\r\n\ + \ },{\r\n \"ruleId\":\"933130\",\"description\"\ + :\"PHP Injection Attack: Variables Found\"\r\n },{\r\n \ + \ \"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O\ + \ Stream Found\"\r\n },{\r\n \"ruleId\":\"933150\"\ + ,\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\"\ + \r\n },{\r\n \"ruleId\":\"933151\",\"description\"\ + :\"PHP Injection Attack: Medium-Risk PHP Function Name Found\"\r\n \ + \ },{\r\n \"ruleId\":\"933160\",\"description\":\"PHP\ + \ Injection Attack: High-Risk PHP Function Call Found\"\r\n },{\r\ + \n \"ruleId\":\"933170\",\"description\":\"PHP Injection Attack:\ + \ Serialized Object Injection\"\r\n },{\r\n \"\ + ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function\ + \ Call Found\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"941100\",\"\ + description\":\"XSS Attack Detected via libinjection\"\r\n },{\r\ + \n \"ruleId\":\"941101\",\"description\":\"XSS Attack Detected\ + \ via libinjection\"\r\n },{\r\n \"ruleId\":\"\ + 941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\"\r\n\ + \ },{\r\n \"ruleId\":\"941120\",\"description\"\ + :\"XSS Filter - Category 2: Event Handler Vector\"\r\n },{\r\n\ + \ \"ruleId\":\"941130\",\"description\":\"XSS Filter - Category\ + \ 3: Attribute Vector\"\r\n },{\r\n \"ruleId\"\ + :\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\"\ + \r\n },{\r\n \"ruleId\":\"941150\",\"description\"\ + :\"XSS Filter - Category 5: Disallowed HTML Attributes\"\r\n \ + \ },{\r\n \"ruleId\":\"941160\",\"description\":\"NoScript\ + \ XSS InjectionChecker: HTML Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker:\ + \ Attribute Injection\"\r\n },{\r\n \"ruleId\"\ + :\"941180\",\"description\":\"Node-Validator Blacklist Keywords\"\r\n \ + \ },{\r\n \"ruleId\":\"941190\",\"description\":\"\ + IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941210\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941230\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941250\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941270\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941290\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941310\",\"description\"\ + :\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\"\r\n \ + \ },{\r\n \"ruleId\":\"941320\",\"description\":\"Possible\ + \ XSS Attack Detected - HTML Tag Handler\"\r\n },{\r\n \ + \ \"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack\ + \ Detected.\"\r\n },{\r\n \"ruleId\":\"941340\"\ + ,\"description\":\"IE XSS Filters - Attack Detected.\"\r\n },{\r\ + \n \"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE\ + \ XSS - Attack Detected.\"\r\n }\r\n ]\r\n \ + \ },{\r\n \"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"942100\",\"\ + description\":\"SQL Injection Attack Detected via libinjection\"\r\n \ + \ },{\r\n \"ruleId\":\"942110\",\"description\":\"\ + SQL Injection Attack: Common Injection Testing Detected\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"description\":\"SQL Injection\ + \ Attack: SQL Operator Detected\"\r\n },{\r\n \ + \ \"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB\ + \ Names Detected\"\r\n },{\r\n \"ruleId\":\"942150\"\ + ,\"description\":\"SQL Injection Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests\ + \ using sleep() or benchmark().\"\r\n },{\r\n \ + \ \"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep\ + \ injection attempts including conditional queries\"\r\n },{\r\ + \n \"ruleId\":\"942180\",\"description\":\"Detects basic SQL\ + \ authentication bypass attempts 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution\ + \ and information gathering attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated\ + \ injections and backtick termination\"\r\n },{\r\n \ + \ \"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection\ + \ attempts 1/2\"\r\n },{\r\n \"ruleId\":\"942220\"\ + ,\"description\":\"Looking for integer overflow attacks, these are taken from\ + \ skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\"\ + \r\n },{\r\n \"ruleId\":\"942230\",\"description\"\ + :\"Detects conditional SQL injection attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942240\",\"description\":\"Detects MySQL charset\ + \ switch and MSSQL DoS attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and\ + \ EXECUTE IMMEDIATE injections\"\r\n },{\r\n \"\ + ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass\ + \ attempts 2/3\"\r\n },{\r\n \"ruleId\":\"942270\"\ + ,\"description\":\"Looking for basic sql injection. Common attack string for\ + \ mysql, oracle and others.\"\r\n },{\r\n \"ruleId\"\ + :\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor\ + \ delay attacks and database shutdown attempts\"\r\n },{\r\n\ + \ \"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB\ + \ SQL injection attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r\ + \ injections\"\r\n },{\r\n \"ruleId\":\"942310\"\ + ,\"description\":\"Detects chained SQL injection attempts 2/2\"\r\n \ + \ },{\r\n \"ruleId\":\"942320\",\"description\":\"Detects\ + \ MySQL and PostgreSQL stored procedure/function injections\"\r\n \ + \ },{\r\n \"ruleId\":\"942330\",\"description\":\"Detects\ + \ classic SQL injection probings 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication\ + \ bypass attempts 3/3\"\r\n },{\r\n \"ruleId\"\ + :\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure\ + \ manipulation attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942360\",\"description\":\"Detects concatenated basic SQL injection and\ + \ SQLLFI attempts\"\r\n },{\r\n \"ruleId\":\"\ + 942361\",\"description\":\"Detects basic SQL injection based on keyword alter\ + \ or union\"\r\n },{\r\n \"ruleId\":\"942370\"\ + ,\"description\":\"Detects classic SQL injection probings 2/3\"\r\n \ + \ },{\r\n \"ruleId\":\"942380\",\"description\":\"SQL\ + \ Injection Attack\"\r\n },{\r\n \"ruleId\":\"\ + 942390\",\"description\":\"SQL Injection Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\"\ + \r\n },{\r\n \"ruleId\":\"942410\",\"description\"\ + :\"SQL Injection Attack\"\r\n },{\r\n \"ruleId\"\ + :\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args):\ + \ # of special characters exceeded (12)\"\r\n },{\r\n \ + \ \"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\"\ + \r\n },{\r\n \"ruleId\":\"942450\",\"description\"\ + :\"SQL Hex Encoding Identified\"\r\n },{\r\n \"\ + ruleId\":\"942470\",\"description\":\"SQL Injection Attack\"\r\n \ + \ },{\r\n \"ruleId\":\"942480\",\"description\":\"SQL Injection\ + \ Attack\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"943100\",\"\ + description\":\"Possible Session Fixation Attack: Setting Cookie Values in\ + \ HTML\"\r\n },{\r\n \"ruleId\":\"943110\",\"\ + description\":\"Possible Session Fixation Attack: SessionID Parameter Name\ + \ with Off-Domain Referer\"\r\n },{\r\n \"ruleId\"\ + :\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID\ + \ Parameter Name with No Referer\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"JAVA\",\"description\":\"\ + Java attacks\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class\ + \ detected\"\r\n },{\r\n \"ruleId\":\"944110\"\ + ,\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\"\ + \r\n },{\r\n \"ruleId\":\"944120\",\"description\"\ + :\"Remote Command Execution: Java serialization (CVE-2015-5842)\"\r\n \ + \ },{\r\n \"ruleId\":\"944130\",\"description\":\"\ + Suspicious Java class detected\"\r\n },{\r\n \"\ + ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java\ + \ serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable\ + \ java serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944240\",\"description\":\"Remote Command Execution: Java serialization\ + \ (CVE-2015-5842)\"\r\n },{\r\n \"ruleId\":\"\ + 944250\",\"description\":\"Remote Command Execution: Suspicious Java method\ + \ detected\"\r\n }\r\n ]\r\n }\r\n \ + \ ]\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '14963' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:17 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:17 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApcRTLCrU19Iny83apPp5Dw; expires=Thu, 26-Mar-2020 19:40:17 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8rb-6GistOLDsjYG7nWk2krKM6IgeJz6vDNuJ34BE-vHTFF-ogcipwqqaOe-KoW9J07Y3x-SjgzSn0ENw94i-Wg2OOcrNGQWdwQiNcKvl-C7v8tpoXU5fJJ0BEclyk-O7huJ833eJ2vvT5C7f9gWGbydS_aAIF3HzUqi9NXJIZM0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf managed-rule-set show + Connection: + - keep-alive + ParameterSetName: + - --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"DefaultRuleSet_1.0\"\ + ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets\",\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroups\":[\r\n {\r\n \ + \ \"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"921110\",\"\ + description\":\"HTTP Request Smuggling Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting\ + \ Attack\"\r\n },{\r\n \"ruleId\":\"921130\",\"\ + description\":\"HTTP Response Splitting Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"921140\",\"description\":\"HTTP Header Injection\ + \ Attack via headers\"\r\n },{\r\n \"ruleId\"\ + :\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921160\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921151\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\"\ + \r\n }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[\r\n \ + \ {\r\n \"ruleId\":\"930100\",\"description\":\"Path Traversal\ + \ Attack (/../)\"\r\n },{\r\n \"ruleId\":\"930110\"\ + ,\"description\":\"Path Traversal Attack (/../)\"\r\n },{\r\n\ + \ \"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\"\ + \r\n },{\r\n \"ruleId\":\"930130\",\"description\"\ + :\"Restricted File Access Attempt\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"RFI\",\"description\":\"\ + Remote file inclusion\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: URL Parameter using IP Address\"\r\n },{\r\n \ + \ \"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion\ + \ (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\"\r\ + \n },{\r\n \"ruleId\":\"931120\",\"description\"\ + :\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing\ + \ Question Mark Character (?)\"\r\n },{\r\n \"\ + ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: Off-Domain Reference/Link\"\r\n }\r\n ]\r\ + \n },{\r\n \"ruleGroupName\":\"RCE\",\"description\":\"\ + Remote Command Execution attacks\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"932100\",\"description\":\"Remote Command Execution:\ + \ Unix Command Injection\"\r\n },{\r\n \"ruleId\"\ + :\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\"\ + \r\n },{\r\n \"ruleId\":\"932110\",\"description\"\ + :\"Remote Command Execution: Windows Command Injection\"\r\n \ + \ },{\r\n \"ruleId\":\"932115\",\"description\":\"Remote Command\ + \ Execution: Windows Command Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"932120\",\"description\":\"Remote Command Execution:\ + \ Windows PowerShell Command Found\"\r\n },{\r\n \ + \ \"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix\ + \ Shell Expression Found\"\r\n },{\r\n \"ruleId\"\ + :\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command\ + \ Found\"\r\n },{\r\n \"ruleId\":\"932150\",\"\ + description\":\"Remote Command Execution: Direct Unix Command Execution\"\r\ + \n },{\r\n \"ruleId\":\"932160\",\"description\"\ + :\"Remote Command Execution: Unix Shell Code Found\"\r\n },{\r\ + \n \"ruleId\":\"932170\",\"description\":\"Remote Command Execution:\ + \ Shellshock (CVE-2014-6271)\"\r\n },{\r\n \"\ + ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock\ + \ (CVE-2014-6271)\"\r\n },{\r\n \"ruleId\":\"\ + 932180\",\"description\":\"Restricted File Upload Attempt\"\r\n \ + \ }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"PHP\",\"description\":\"PHP attacks\",\"rules\":[\r\n {\r\n\ + \ \"ruleId\":\"933100\",\"description\":\"PHP Injection Attack:\ + \ PHP Open Tag Found\"\r\n },{\r\n \"ruleId\"\ + :\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload\ + \ Found\"\r\n },{\r\n \"ruleId\":\"933120\",\"\ + description\":\"PHP Injection Attack: Configuration Directive Found\"\r\n\ + \ },{\r\n \"ruleId\":\"933130\",\"description\"\ + :\"PHP Injection Attack: Variables Found\"\r\n },{\r\n \ + \ \"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O\ + \ Stream Found\"\r\n },{\r\n \"ruleId\":\"933150\"\ + ,\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\"\ + \r\n },{\r\n \"ruleId\":\"933151\",\"description\"\ + :\"PHP Injection Attack: Medium-Risk PHP Function Name Found\"\r\n \ + \ },{\r\n \"ruleId\":\"933160\",\"description\":\"PHP\ + \ Injection Attack: High-Risk PHP Function Call Found\"\r\n },{\r\ + \n \"ruleId\":\"933170\",\"description\":\"PHP Injection Attack:\ + \ Serialized Object Injection\"\r\n },{\r\n \"\ + ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function\ + \ Call Found\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"941100\",\"\ + description\":\"XSS Attack Detected via libinjection\"\r\n },{\r\ + \n \"ruleId\":\"941101\",\"description\":\"XSS Attack Detected\ + \ via libinjection\"\r\n },{\r\n \"ruleId\":\"\ + 941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\"\r\n\ + \ },{\r\n \"ruleId\":\"941120\",\"description\"\ + :\"XSS Filter - Category 2: Event Handler Vector\"\r\n },{\r\n\ + \ \"ruleId\":\"941130\",\"description\":\"XSS Filter - Category\ + \ 3: Attribute Vector\"\r\n },{\r\n \"ruleId\"\ + :\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\"\ + \r\n },{\r\n \"ruleId\":\"941150\",\"description\"\ + :\"XSS Filter - Category 5: Disallowed HTML Attributes\"\r\n \ + \ },{\r\n \"ruleId\":\"941160\",\"description\":\"NoScript\ + \ XSS InjectionChecker: HTML Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker:\ + \ Attribute Injection\"\r\n },{\r\n \"ruleId\"\ + :\"941180\",\"description\":\"Node-Validator Blacklist Keywords\"\r\n \ + \ },{\r\n \"ruleId\":\"941190\",\"description\":\"\ + IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941210\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941230\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941250\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941270\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941290\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941310\",\"description\"\ + :\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\"\r\n \ + \ },{\r\n \"ruleId\":\"941320\",\"description\":\"Possible\ + \ XSS Attack Detected - HTML Tag Handler\"\r\n },{\r\n \ + \ \"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack\ + \ Detected.\"\r\n },{\r\n \"ruleId\":\"941340\"\ + ,\"description\":\"IE XSS Filters - Attack Detected.\"\r\n },{\r\ + \n \"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE\ + \ XSS - Attack Detected.\"\r\n }\r\n ]\r\n \ + \ },{\r\n \"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"942100\",\"\ + description\":\"SQL Injection Attack Detected via libinjection\"\r\n \ + \ },{\r\n \"ruleId\":\"942110\",\"description\":\"\ + SQL Injection Attack: Common Injection Testing Detected\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"description\":\"SQL Injection\ + \ Attack: SQL Operator Detected\"\r\n },{\r\n \ + \ \"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB\ + \ Names Detected\"\r\n },{\r\n \"ruleId\":\"942150\"\ + ,\"description\":\"SQL Injection Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests\ + \ using sleep() or benchmark().\"\r\n },{\r\n \ + \ \"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep\ + \ injection attempts including conditional queries\"\r\n },{\r\ + \n \"ruleId\":\"942180\",\"description\":\"Detects basic SQL\ + \ authentication bypass attempts 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution\ + \ and information gathering attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated\ + \ injections and backtick termination\"\r\n },{\r\n \ + \ \"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection\ + \ attempts 1/2\"\r\n },{\r\n \"ruleId\":\"942220\"\ + ,\"description\":\"Looking for integer overflow attacks, these are taken from\ + \ skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\"\ + \r\n },{\r\n \"ruleId\":\"942230\",\"description\"\ + :\"Detects conditional SQL injection attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942240\",\"description\":\"Detects MySQL charset\ + \ switch and MSSQL DoS attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and\ + \ EXECUTE IMMEDIATE injections\"\r\n },{\r\n \"\ + ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass\ + \ attempts 2/3\"\r\n },{\r\n \"ruleId\":\"942270\"\ + ,\"description\":\"Looking for basic sql injection. Common attack string for\ + \ mysql, oracle and others.\"\r\n },{\r\n \"ruleId\"\ + :\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor\ + \ delay attacks and database shutdown attempts\"\r\n },{\r\n\ + \ \"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB\ + \ SQL injection attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r\ + \ injections\"\r\n },{\r\n \"ruleId\":\"942310\"\ + ,\"description\":\"Detects chained SQL injection attempts 2/2\"\r\n \ + \ },{\r\n \"ruleId\":\"942320\",\"description\":\"Detects\ + \ MySQL and PostgreSQL stored procedure/function injections\"\r\n \ + \ },{\r\n \"ruleId\":\"942330\",\"description\":\"Detects\ + \ classic SQL injection probings 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication\ + \ bypass attempts 3/3\"\r\n },{\r\n \"ruleId\"\ + :\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure\ + \ manipulation attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942360\",\"description\":\"Detects concatenated basic SQL injection and\ + \ SQLLFI attempts\"\r\n },{\r\n \"ruleId\":\"\ + 942361\",\"description\":\"Detects basic SQL injection based on keyword alter\ + \ or union\"\r\n },{\r\n \"ruleId\":\"942370\"\ + ,\"description\":\"Detects classic SQL injection probings 2/3\"\r\n \ + \ },{\r\n \"ruleId\":\"942380\",\"description\":\"SQL\ + \ Injection Attack\"\r\n },{\r\n \"ruleId\":\"\ + 942390\",\"description\":\"SQL Injection Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\"\ + \r\n },{\r\n \"ruleId\":\"942410\",\"description\"\ + :\"SQL Injection Attack\"\r\n },{\r\n \"ruleId\"\ + :\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args):\ + \ # of special characters exceeded (12)\"\r\n },{\r\n \ + \ \"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\"\ + \r\n },{\r\n \"ruleId\":\"942450\",\"description\"\ + :\"SQL Hex Encoding Identified\"\r\n },{\r\n \"\ + ruleId\":\"942470\",\"description\":\"SQL Injection Attack\"\r\n \ + \ },{\r\n \"ruleId\":\"942480\",\"description\":\"SQL Injection\ + \ Attack\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"943100\",\"\ + description\":\"Possible Session Fixation Attack: Setting Cookie Values in\ + \ HTML\"\r\n },{\r\n \"ruleId\":\"943110\",\"\ + description\":\"Possible Session Fixation Attack: SessionID Parameter Name\ + \ with Off-Domain Referer\"\r\n },{\r\n \"ruleId\"\ + :\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID\ + \ Parameter Name with No Referer\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"JAVA\",\"description\":\"\ + Java attacks\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class\ + \ detected\"\r\n },{\r\n \"ruleId\":\"944110\"\ + ,\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\"\ + \r\n },{\r\n \"ruleId\":\"944120\",\"description\"\ + :\"Remote Command Execution: Java serialization (CVE-2015-5842)\"\r\n \ + \ },{\r\n \"ruleId\":\"944130\",\"description\":\"\ + Suspicious Java class detected\"\r\n },{\r\n \"\ + ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java\ + \ serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable\ + \ java serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944240\",\"description\":\"Remote Command Execution: Java serialization\ + \ (CVE-2015-5842)\"\r\n },{\r\n \"ruleId\":\"\ + 944250\",\"description\":\"Remote Command Execution: Suspicious Java method\ + \ detected\"\r\n }\r\n ]\r\n }\r\n \ + \ ]\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '14963' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:19 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:19 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjEdzGZKgetNopKidSXubAE; expires=Thu, 26-Mar-2020 19:40:19 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8grIARM8EUMuUUR8B-ApAOQxbFuRw81sQqu4uWWg9Ccbz1s4A52Yx4eWnV11FDoHGB77tu8Xy98C5QAMn4FTKzdxsCeJpAaBkD9Z6t57t33BzfBATyrz9WnS0sa-sktgPmyRGFwJsYCBsNX7zb-dWYmV-2smo5lEDm4xTlG7jMzYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf managed-rule-set rule-group list + Connection: + - keep-alive + ParameterSetName: + - --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"DefaultRuleSet_1.0\"\ + ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets\",\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroups\":[\r\n {\r\n \ + \ \"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"921110\",\"\ + description\":\"HTTP Request Smuggling Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting\ + \ Attack\"\r\n },{\r\n \"ruleId\":\"921130\",\"\ + description\":\"HTTP Response Splitting Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"921140\",\"description\":\"HTTP Header Injection\ + \ Attack via headers\"\r\n },{\r\n \"ruleId\"\ + :\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921160\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921151\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\"\ + \r\n }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[\r\n \ + \ {\r\n \"ruleId\":\"930100\",\"description\":\"Path Traversal\ + \ Attack (/../)\"\r\n },{\r\n \"ruleId\":\"930110\"\ + ,\"description\":\"Path Traversal Attack (/../)\"\r\n },{\r\n\ + \ \"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\"\ + \r\n },{\r\n \"ruleId\":\"930130\",\"description\"\ + :\"Restricted File Access Attempt\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"RFI\",\"description\":\"\ + Remote file inclusion\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: URL Parameter using IP Address\"\r\n },{\r\n \ + \ \"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion\ + \ (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\"\r\ + \n },{\r\n \"ruleId\":\"931120\",\"description\"\ + :\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing\ + \ Question Mark Character (?)\"\r\n },{\r\n \"\ + ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: Off-Domain Reference/Link\"\r\n }\r\n ]\r\ + \n },{\r\n \"ruleGroupName\":\"RCE\",\"description\":\"\ + Remote Command Execution attacks\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"932100\",\"description\":\"Remote Command Execution:\ + \ Unix Command Injection\"\r\n },{\r\n \"ruleId\"\ + :\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\"\ + \r\n },{\r\n \"ruleId\":\"932110\",\"description\"\ + :\"Remote Command Execution: Windows Command Injection\"\r\n \ + \ },{\r\n \"ruleId\":\"932115\",\"description\":\"Remote Command\ + \ Execution: Windows Command Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"932120\",\"description\":\"Remote Command Execution:\ + \ Windows PowerShell Command Found\"\r\n },{\r\n \ + \ \"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix\ + \ Shell Expression Found\"\r\n },{\r\n \"ruleId\"\ + :\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command\ + \ Found\"\r\n },{\r\n \"ruleId\":\"932150\",\"\ + description\":\"Remote Command Execution: Direct Unix Command Execution\"\r\ + \n },{\r\n \"ruleId\":\"932160\",\"description\"\ + :\"Remote Command Execution: Unix Shell Code Found\"\r\n },{\r\ + \n \"ruleId\":\"932170\",\"description\":\"Remote Command Execution:\ + \ Shellshock (CVE-2014-6271)\"\r\n },{\r\n \"\ + ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock\ + \ (CVE-2014-6271)\"\r\n },{\r\n \"ruleId\":\"\ + 932180\",\"description\":\"Restricted File Upload Attempt\"\r\n \ + \ }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"PHP\",\"description\":\"PHP attacks\",\"rules\":[\r\n {\r\n\ + \ \"ruleId\":\"933100\",\"description\":\"PHP Injection Attack:\ + \ PHP Open Tag Found\"\r\n },{\r\n \"ruleId\"\ + :\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload\ + \ Found\"\r\n },{\r\n \"ruleId\":\"933120\",\"\ + description\":\"PHP Injection Attack: Configuration Directive Found\"\r\n\ + \ },{\r\n \"ruleId\":\"933130\",\"description\"\ + :\"PHP Injection Attack: Variables Found\"\r\n },{\r\n \ + \ \"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O\ + \ Stream Found\"\r\n },{\r\n \"ruleId\":\"933150\"\ + ,\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\"\ + \r\n },{\r\n \"ruleId\":\"933151\",\"description\"\ + :\"PHP Injection Attack: Medium-Risk PHP Function Name Found\"\r\n \ + \ },{\r\n \"ruleId\":\"933160\",\"description\":\"PHP\ + \ Injection Attack: High-Risk PHP Function Call Found\"\r\n },{\r\ + \n \"ruleId\":\"933170\",\"description\":\"PHP Injection Attack:\ + \ Serialized Object Injection\"\r\n },{\r\n \"\ + ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function\ + \ Call Found\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"941100\",\"\ + description\":\"XSS Attack Detected via libinjection\"\r\n },{\r\ + \n \"ruleId\":\"941101\",\"description\":\"XSS Attack Detected\ + \ via libinjection\"\r\n },{\r\n \"ruleId\":\"\ + 941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\"\r\n\ + \ },{\r\n \"ruleId\":\"941120\",\"description\"\ + :\"XSS Filter - Category 2: Event Handler Vector\"\r\n },{\r\n\ + \ \"ruleId\":\"941130\",\"description\":\"XSS Filter - Category\ + \ 3: Attribute Vector\"\r\n },{\r\n \"ruleId\"\ + :\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\"\ + \r\n },{\r\n \"ruleId\":\"941150\",\"description\"\ + :\"XSS Filter - Category 5: Disallowed HTML Attributes\"\r\n \ + \ },{\r\n \"ruleId\":\"941160\",\"description\":\"NoScript\ + \ XSS InjectionChecker: HTML Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker:\ + \ Attribute Injection\"\r\n },{\r\n \"ruleId\"\ + :\"941180\",\"description\":\"Node-Validator Blacklist Keywords\"\r\n \ + \ },{\r\n \"ruleId\":\"941190\",\"description\":\"\ + IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941210\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941230\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941250\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941270\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941290\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941310\",\"description\"\ + :\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\"\r\n \ + \ },{\r\n \"ruleId\":\"941320\",\"description\":\"Possible\ + \ XSS Attack Detected - HTML Tag Handler\"\r\n },{\r\n \ + \ \"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack\ + \ Detected.\"\r\n },{\r\n \"ruleId\":\"941340\"\ + ,\"description\":\"IE XSS Filters - Attack Detected.\"\r\n },{\r\ + \n \"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE\ + \ XSS - Attack Detected.\"\r\n }\r\n ]\r\n \ + \ },{\r\n \"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"942100\",\"\ + description\":\"SQL Injection Attack Detected via libinjection\"\r\n \ + \ },{\r\n \"ruleId\":\"942110\",\"description\":\"\ + SQL Injection Attack: Common Injection Testing Detected\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"description\":\"SQL Injection\ + \ Attack: SQL Operator Detected\"\r\n },{\r\n \ + \ \"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB\ + \ Names Detected\"\r\n },{\r\n \"ruleId\":\"942150\"\ + ,\"description\":\"SQL Injection Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests\ + \ using sleep() or benchmark().\"\r\n },{\r\n \ + \ \"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep\ + \ injection attempts including conditional queries\"\r\n },{\r\ + \n \"ruleId\":\"942180\",\"description\":\"Detects basic SQL\ + \ authentication bypass attempts 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution\ + \ and information gathering attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated\ + \ injections and backtick termination\"\r\n },{\r\n \ + \ \"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection\ + \ attempts 1/2\"\r\n },{\r\n \"ruleId\":\"942220\"\ + ,\"description\":\"Looking for integer overflow attacks, these are taken from\ + \ skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\"\ + \r\n },{\r\n \"ruleId\":\"942230\",\"description\"\ + :\"Detects conditional SQL injection attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942240\",\"description\":\"Detects MySQL charset\ + \ switch and MSSQL DoS attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and\ + \ EXECUTE IMMEDIATE injections\"\r\n },{\r\n \"\ + ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass\ + \ attempts 2/3\"\r\n },{\r\n \"ruleId\":\"942270\"\ + ,\"description\":\"Looking for basic sql injection. Common attack string for\ + \ mysql, oracle and others.\"\r\n },{\r\n \"ruleId\"\ + :\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor\ + \ delay attacks and database shutdown attempts\"\r\n },{\r\n\ + \ \"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB\ + \ SQL injection attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r\ + \ injections\"\r\n },{\r\n \"ruleId\":\"942310\"\ + ,\"description\":\"Detects chained SQL injection attempts 2/2\"\r\n \ + \ },{\r\n \"ruleId\":\"942320\",\"description\":\"Detects\ + \ MySQL and PostgreSQL stored procedure/function injections\"\r\n \ + \ },{\r\n \"ruleId\":\"942330\",\"description\":\"Detects\ + \ classic SQL injection probings 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication\ + \ bypass attempts 3/3\"\r\n },{\r\n \"ruleId\"\ + :\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure\ + \ manipulation attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942360\",\"description\":\"Detects concatenated basic SQL injection and\ + \ SQLLFI attempts\"\r\n },{\r\n \"ruleId\":\"\ + 942361\",\"description\":\"Detects basic SQL injection based on keyword alter\ + \ or union\"\r\n },{\r\n \"ruleId\":\"942370\"\ + ,\"description\":\"Detects classic SQL injection probings 2/3\"\r\n \ + \ },{\r\n \"ruleId\":\"942380\",\"description\":\"SQL\ + \ Injection Attack\"\r\n },{\r\n \"ruleId\":\"\ + 942390\",\"description\":\"SQL Injection Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\"\ + \r\n },{\r\n \"ruleId\":\"942410\",\"description\"\ + :\"SQL Injection Attack\"\r\n },{\r\n \"ruleId\"\ + :\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args):\ + \ # of special characters exceeded (12)\"\r\n },{\r\n \ + \ \"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\"\ + \r\n },{\r\n \"ruleId\":\"942450\",\"description\"\ + :\"SQL Hex Encoding Identified\"\r\n },{\r\n \"\ + ruleId\":\"942470\",\"description\":\"SQL Injection Attack\"\r\n \ + \ },{\r\n \"ruleId\":\"942480\",\"description\":\"SQL Injection\ + \ Attack\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"943100\",\"\ + description\":\"Possible Session Fixation Attack: Setting Cookie Values in\ + \ HTML\"\r\n },{\r\n \"ruleId\":\"943110\",\"\ + description\":\"Possible Session Fixation Attack: SessionID Parameter Name\ + \ with Off-Domain Referer\"\r\n },{\r\n \"ruleId\"\ + :\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID\ + \ Parameter Name with No Referer\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"JAVA\",\"description\":\"\ + Java attacks\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class\ + \ detected\"\r\n },{\r\n \"ruleId\":\"944110\"\ + ,\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\"\ + \r\n },{\r\n \"ruleId\":\"944120\",\"description\"\ + :\"Remote Command Execution: Java serialization (CVE-2015-5842)\"\r\n \ + \ },{\r\n \"ruleId\":\"944130\",\"description\":\"\ + Suspicious Java class detected\"\r\n },{\r\n \"\ + ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java\ + \ serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable\ + \ java serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944240\",\"description\":\"Remote Command Execution: Java serialization\ + \ (CVE-2015-5842)\"\r\n },{\r\n \"ruleId\":\"\ + 944250\",\"description\":\"Remote Command Execution: Suspicious Java method\ + \ detected\"\r\n }\r\n ]\r\n }\r\n \ + \ ]\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '14963' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:20 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:20 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=An5jLj38lR1Ag-o8-auQHiM; expires=Thu, 26-Mar-2020 19:40:21 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8OPakwTU2TlMCkncKiHws177rvuUL6GeQPK_j4CHhfgdiJlYnsh0BKk3XzYPCBPl_T4wPEVOr7I6KpaCT7b0JBpOCihMyPcPc-bubf7NhFUMEy-yVNKQHljj6P0_UBCYrmHw47INR9uFVZQj-0xg35g0Zd3EJc9Ufg0hwTbpm_Y4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf managed-rule-set rule-group show + Connection: + - keep-alive + ParameterSetName: + - --rule-set-type --rule-set-version -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"DefaultRuleSet_1.0\"\ + ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets\",\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroups\":[\r\n {\r\n \ + \ \"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"921110\",\"\ + description\":\"HTTP Request Smuggling Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting\ + \ Attack\"\r\n },{\r\n \"ruleId\":\"921130\",\"\ + description\":\"HTTP Response Splitting Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"921140\",\"description\":\"HTTP Header Injection\ + \ Attack via headers\"\r\n },{\r\n \"ruleId\"\ + :\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921160\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name\ + \ detected)\"\r\n },{\r\n \"ruleId\":\"921151\"\ + ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\"\ + \r\n }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[\r\n \ + \ {\r\n \"ruleId\":\"930100\",\"description\":\"Path Traversal\ + \ Attack (/../)\"\r\n },{\r\n \"ruleId\":\"930110\"\ + ,\"description\":\"Path Traversal Attack (/../)\"\r\n },{\r\n\ + \ \"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\"\ + \r\n },{\r\n \"ruleId\":\"930130\",\"description\"\ + :\"Restricted File Access Attempt\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"RFI\",\"description\":\"\ + Remote file inclusion\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: URL Parameter using IP Address\"\r\n },{\r\n \ + \ \"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion\ + \ (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\"\r\ + \n },{\r\n \"ruleId\":\"931120\",\"description\"\ + :\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing\ + \ Question Mark Character (?)\"\r\n },{\r\n \"\ + ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI)\ + \ Attack: Off-Domain Reference/Link\"\r\n }\r\n ]\r\ + \n },{\r\n \"ruleGroupName\":\"RCE\",\"description\":\"\ + Remote Command Execution attacks\",\"rules\":[\r\n {\r\n \ + \ \"ruleId\":\"932100\",\"description\":\"Remote Command Execution:\ + \ Unix Command Injection\"\r\n },{\r\n \"ruleId\"\ + :\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\"\ + \r\n },{\r\n \"ruleId\":\"932110\",\"description\"\ + :\"Remote Command Execution: Windows Command Injection\"\r\n \ + \ },{\r\n \"ruleId\":\"932115\",\"description\":\"Remote Command\ + \ Execution: Windows Command Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"932120\",\"description\":\"Remote Command Execution:\ + \ Windows PowerShell Command Found\"\r\n },{\r\n \ + \ \"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix\ + \ Shell Expression Found\"\r\n },{\r\n \"ruleId\"\ + :\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command\ + \ Found\"\r\n },{\r\n \"ruleId\":\"932150\",\"\ + description\":\"Remote Command Execution: Direct Unix Command Execution\"\r\ + \n },{\r\n \"ruleId\":\"932160\",\"description\"\ + :\"Remote Command Execution: Unix Shell Code Found\"\r\n },{\r\ + \n \"ruleId\":\"932170\",\"description\":\"Remote Command Execution:\ + \ Shellshock (CVE-2014-6271)\"\r\n },{\r\n \"\ + ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock\ + \ (CVE-2014-6271)\"\r\n },{\r\n \"ruleId\":\"\ + 932180\",\"description\":\"Restricted File Upload Attempt\"\r\n \ + \ }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ + :\"PHP\",\"description\":\"PHP attacks\",\"rules\":[\r\n {\r\n\ + \ \"ruleId\":\"933100\",\"description\":\"PHP Injection Attack:\ + \ PHP Open Tag Found\"\r\n },{\r\n \"ruleId\"\ + :\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload\ + \ Found\"\r\n },{\r\n \"ruleId\":\"933120\",\"\ + description\":\"PHP Injection Attack: Configuration Directive Found\"\r\n\ + \ },{\r\n \"ruleId\":\"933130\",\"description\"\ + :\"PHP Injection Attack: Variables Found\"\r\n },{\r\n \ + \ \"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O\ + \ Stream Found\"\r\n },{\r\n \"ruleId\":\"933150\"\ + ,\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\"\ + \r\n },{\r\n \"ruleId\":\"933151\",\"description\"\ + :\"PHP Injection Attack: Medium-Risk PHP Function Name Found\"\r\n \ + \ },{\r\n \"ruleId\":\"933160\",\"description\":\"PHP\ + \ Injection Attack: High-Risk PHP Function Call Found\"\r\n },{\r\ + \n \"ruleId\":\"933170\",\"description\":\"PHP Injection Attack:\ + \ Serialized Object Injection\"\r\n },{\r\n \"\ + ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function\ + \ Call Found\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"941100\",\"\ + description\":\"XSS Attack Detected via libinjection\"\r\n },{\r\ + \n \"ruleId\":\"941101\",\"description\":\"XSS Attack Detected\ + \ via libinjection\"\r\n },{\r\n \"ruleId\":\"\ + 941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\"\r\n\ + \ },{\r\n \"ruleId\":\"941120\",\"description\"\ + :\"XSS Filter - Category 2: Event Handler Vector\"\r\n },{\r\n\ + \ \"ruleId\":\"941130\",\"description\":\"XSS Filter - Category\ + \ 3: Attribute Vector\"\r\n },{\r\n \"ruleId\"\ + :\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\"\ + \r\n },{\r\n \"ruleId\":\"941150\",\"description\"\ + :\"XSS Filter - Category 5: Disallowed HTML Attributes\"\r\n \ + \ },{\r\n \"ruleId\":\"941160\",\"description\":\"NoScript\ + \ XSS InjectionChecker: HTML Injection\"\r\n },{\r\n \ + \ \"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker:\ + \ Attribute Injection\"\r\n },{\r\n \"ruleId\"\ + :\"941180\",\"description\":\"Node-Validator Blacklist Keywords\"\r\n \ + \ },{\r\n \"ruleId\":\"941190\",\"description\":\"\ + IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941210\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941230\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941250\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941270\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941290\",\"description\"\ + :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ + \ \"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\"\ + \r\n },{\r\n \"ruleId\":\"941310\",\"description\"\ + :\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\"\r\n \ + \ },{\r\n \"ruleId\":\"941320\",\"description\":\"Possible\ + \ XSS Attack Detected - HTML Tag Handler\"\r\n },{\r\n \ + \ \"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack\ + \ Detected.\"\r\n },{\r\n \"ruleId\":\"941340\"\ + ,\"description\":\"IE XSS Filters - Attack Detected.\"\r\n },{\r\ + \n \"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE\ + \ XSS - Attack Detected.\"\r\n }\r\n ]\r\n \ + \ },{\r\n \"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"942100\",\"\ + description\":\"SQL Injection Attack Detected via libinjection\"\r\n \ + \ },{\r\n \"ruleId\":\"942110\",\"description\":\"\ + SQL Injection Attack: Common Injection Testing Detected\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"description\":\"SQL Injection\ + \ Attack: SQL Operator Detected\"\r\n },{\r\n \ + \ \"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB\ + \ Names Detected\"\r\n },{\r\n \"ruleId\":\"942150\"\ + ,\"description\":\"SQL Injection Attack\"\r\n },{\r\n \ + \ \"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests\ + \ using sleep() or benchmark().\"\r\n },{\r\n \ + \ \"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep\ + \ injection attempts including conditional queries\"\r\n },{\r\ + \n \"ruleId\":\"942180\",\"description\":\"Detects basic SQL\ + \ authentication bypass attempts 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution\ + \ and information gathering attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated\ + \ injections and backtick termination\"\r\n },{\r\n \ + \ \"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection\ + \ attempts 1/2\"\r\n },{\r\n \"ruleId\":\"942220\"\ + ,\"description\":\"Looking for integer overflow attacks, these are taken from\ + \ skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\"\ + \r\n },{\r\n \"ruleId\":\"942230\",\"description\"\ + :\"Detects conditional SQL injection attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942240\",\"description\":\"Detects MySQL charset\ + \ switch and MSSQL DoS attempts\"\r\n },{\r\n \ + \ \"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and\ + \ EXECUTE IMMEDIATE injections\"\r\n },{\r\n \"\ + ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass\ + \ attempts 2/3\"\r\n },{\r\n \"ruleId\":\"942270\"\ + ,\"description\":\"Looking for basic sql injection. Common attack string for\ + \ mysql, oracle and others.\"\r\n },{\r\n \"ruleId\"\ + :\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor\ + \ delay attacks and database shutdown attempts\"\r\n },{\r\n\ + \ \"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB\ + \ SQL injection attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r\ + \ injections\"\r\n },{\r\n \"ruleId\":\"942310\"\ + ,\"description\":\"Detects chained SQL injection attempts 2/2\"\r\n \ + \ },{\r\n \"ruleId\":\"942320\",\"description\":\"Detects\ + \ MySQL and PostgreSQL stored procedure/function injections\"\r\n \ + \ },{\r\n \"ruleId\":\"942330\",\"description\":\"Detects\ + \ classic SQL injection probings 1/3\"\r\n },{\r\n \ + \ \"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication\ + \ bypass attempts 3/3\"\r\n },{\r\n \"ruleId\"\ + :\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure\ + \ manipulation attempts\"\r\n },{\r\n \"ruleId\"\ + :\"942360\",\"description\":\"Detects concatenated basic SQL injection and\ + \ SQLLFI attempts\"\r\n },{\r\n \"ruleId\":\"\ + 942361\",\"description\":\"Detects basic SQL injection based on keyword alter\ + \ or union\"\r\n },{\r\n \"ruleId\":\"942370\"\ + ,\"description\":\"Detects classic SQL injection probings 2/3\"\r\n \ + \ },{\r\n \"ruleId\":\"942380\",\"description\":\"SQL\ + \ Injection Attack\"\r\n },{\r\n \"ruleId\":\"\ + 942390\",\"description\":\"SQL Injection Attack\"\r\n },{\r\n\ + \ \"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\"\ + \r\n },{\r\n \"ruleId\":\"942410\",\"description\"\ + :\"SQL Injection Attack\"\r\n },{\r\n \"ruleId\"\ + :\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args):\ + \ # of special characters exceeded (12)\"\r\n },{\r\n \ + \ \"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\"\ + \r\n },{\r\n \"ruleId\":\"942450\",\"description\"\ + :\"SQL Hex Encoding Identified\"\r\n },{\r\n \"\ + ruleId\":\"942470\",\"description\":\"SQL Injection Attack\"\r\n \ + \ },{\r\n \"ruleId\":\"942480\",\"description\":\"SQL Injection\ + \ Attack\"\r\n }\r\n ]\r\n },{\r\n \ + \ \"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\"\ + ,\"rules\":[\r\n {\r\n \"ruleId\":\"943100\",\"\ + description\":\"Possible Session Fixation Attack: Setting Cookie Values in\ + \ HTML\"\r\n },{\r\n \"ruleId\":\"943110\",\"\ + description\":\"Possible Session Fixation Attack: SessionID Parameter Name\ + \ with Off-Domain Referer\"\r\n },{\r\n \"ruleId\"\ + :\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID\ + \ Parameter Name with No Referer\"\r\n }\r\n ]\r\n\ + \ },{\r\n \"ruleGroupName\":\"JAVA\",\"description\":\"\ + Java attacks\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class\ + \ detected\"\r\n },{\r\n \"ruleId\":\"944110\"\ + ,\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\"\ + \r\n },{\r\n \"ruleId\":\"944120\",\"description\"\ + :\"Remote Command Execution: Java serialization (CVE-2015-5842)\"\r\n \ + \ },{\r\n \"ruleId\":\"944130\",\"description\":\"\ + Suspicious Java class detected\"\r\n },{\r\n \"\ + ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java\ + \ serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable\ + \ java serialization in use\"\r\n },{\r\n \"ruleId\"\ + :\"944240\",\"description\":\"Remote Command Execution: Java serialization\ + \ (CVE-2015-5842)\"\r\n },{\r\n \"ruleId\":\"\ + 944250\",\"description\":\"Remote Command Execution: Suspicious Java method\ + \ detected\"\r\n }\r\n ]\r\n }\r\n \ + \ ]\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '14963' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:21 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_policy_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_policy_crud.yaml new file mode 100644 index 00000000000..97d0f933fd1 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_policy_crud.yaml @@ -0,0 +1,6829 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:35 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Amhb3yiUxi9MnVyf4AXlrRg; expires=Thu, 26-Mar-2020 19:38:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH89dbF9AJQJ6APyPRYP2TUDLb3M4ZgzN3Xit5D0wm4ZcvJKn1Nj3uu-EiC90llDN5ilUNoUJ-D6UUwN2PUMRQp2PfFPpyH50TX6DD2SvImSdXLB54-VNBHWWY806pDPkxhzdfK0A6lhODTA571IlWjQfAxNyJO3RmQJfjnOQ75cbcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123'' + under resource group ''clitest.rg000001'' was not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '236' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Atgk26x16G1DuaHeZDv05JA; expires=Thu, 26-Mar-2020 19:38:36 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8-aEojrFP8MsCNx29iAbSWE51HySQPyHnaE25JUdxPBp0YkvtJX52Px4pa0rZVlcbf29Z7nGNaCss_AZ9pATnaB0xB3b0X67cmt-HcOQIgGDwHksPe2ZFPa3vtIzF4r3XGzsH6U5wRLySUpmM3uy5gIiX7z8XMK-6Ucgj23Ll4dcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --name --redirect-url --tags + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123'' + under resource group ''clitest.rg000001'' was not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '236' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:37 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgTcdsUNGPtDicdD6y7lmPs; expires=Thu, 26-Mar-2020 19:38:37 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH87pO7-zwylnUTn13XqcdAHxUd7DxPFoAhYin8Rq7Ux8EdKVaVGnP_twnCvHyvmNkMJ5n-9ePKPP0k-aCEkG7gdS1ohY0T7dy125oJF1MVX0bGgPANB2Jcdvdq4ow3VyVDOlnIM5PU1h4JHGDIMs5r4X0xe4RGSm1vIf9_bXKafbggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {"foo": "bar"}, "properties": {"policySettings": + {"enabledState": "Enabled", "mode": "Detection", "defaultRedirectUrl": "https://example.com"}}, + "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy set + Connection: + - keep-alive + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --name --redirect-url --tags + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '907' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:40 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:41 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArBkkiGgMVBJnlIdr8VL-7Q; expires=Thu, 26-Mar-2020 19:38:41 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lG7m1SatLZnBwAgijk_9UyFiMVCLNlzXvY53_Pkh2CCTf15yQPj7VRe6Ngx78oGo5ng2Le9qUguC0deqenPVYmEcgYMV4HTp8rdRd5wTRw-nsIosWZGR6Ku8M35pLvDSb8tnyteNvVvIrBvyFaG8kFctdfki24J70aRxMifLA-AgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '907' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:42 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:42 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aj_3Lcn6HQ1GozozF89ZiNs; expires=Thu, 26-Mar-2020 19:38:43 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8-z9xxD17GL_BauNhk8eEUW3vyqcj6CqM8yjBFihsw5YED13xIxL15x9y3M5SZQCbj7ah0_OjSZlcYgxq3RPuN1TUgTzc7eC8Va5la4dWJqeUGY4bmIeYJhnJCsfp3eXGljJdmNrNi9BMnj4ItT7hZbVq2FnaI4fbA20bwzgg2LcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"policy123\",\"id\"\ + :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n\ + \ \"name\":\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \ + \ \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ + ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"\ + Detection\",\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ + :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"\ + customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n\ + \ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \ + \ \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n\ + \ ]\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1031' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:44 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Al6g_qgNRP5LmKQUrR94pxo; expires=Thu, 26-Mar-2020 19:38:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8IPt0Bk1viqH4d64aJS7DW6-07HemmMf9eO_DOlqFl2JKMEl3OUjix8q6r1jP3yN95_JIC6XrzShMGVNH_vXxxaO3dAtQEvr4_t5mbzWKlObLeltq8HpfFHq1DKY7aBy19m5-7SYtuXzA7ogYM5Sxvyh9uUKRckfmM0Pt1qaEyhYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '907' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:47 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqiCNX6UushOmanLjzpDjBM; expires=Thu, 26-Mar-2020 19:38:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8brKnOjUXxUyD2hP11ISLo4l8b_0iottmzuY4COtZic_RsEbsa1hPLoP52IVu1dDx_pY1OJl1Wz-WQc6SYBZX2IEGX6qmS0EXg-ZToPiTvLsztxI35BffoJ68Bv1Ey00OX3cZxssscHDHgV_0OQ4bxWnQgiy0wmr1nRaMWlDDDC0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set add + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '907' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:50 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtB8QBDmdJxHrvPv73O4FyM; expires=Thu, 26-Mar-2020 19:38:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8AEhjY7api5w4P9zyEgMTjM33-622y1cTiW3RKXaMpbx-_bNVm_dmg8-gNUg5jc3rA22FQ2J-qq8Ti8dptOOJ9zVus21Ug5_sR80EEb7q984mzeC3hnNOCV25mesIbxgAtJG3Apw8J8SKj-lO0i0JwKpQuTd_C3WgeiCgbBP7OBggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {"foo": "bar"}, "properties": {"policySettings": + {"enabledState": "Enabled", "mode": "Detection", "defaultRedirectUrl": "https://example.com"}, + "rateLimitRules": {"rules": []}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0"}]}}, + "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set add + Connection: + - keep-alive + Content-Length: + - '376' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \r\n \ + \ ],\"anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1051' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:52 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:52 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhP3MgDs1x5HueZzyJjm5U8; expires=Thu, 26-Mar-2020 19:38:53 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Jhx9wTy-jf2QhHiYIz1lsOC1pTIpbiq2ZsFRM5ZhkT44r79s3WoH35ugG4eyqgOFIUSU8YhOtdiOeq6-9P2uRU6VnoE2tQhUxk15Dp5j1XaRpIc0r9hohClKAI83IPMKJEMWlm2tdP0dcxMpz6urkbztxtpLs8gKD6V-XNXeqLIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \r\n \ + \ ],\"anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1051' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:54 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:54 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjKcmOvgDPVFimXPH0xJc5I; expires=Thu, 26-Mar-2020 19:38:55 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8OsV2LnO2Qwlx7i_x47At98aH3BWq_EEcEXmFFOCIR__HNVOZXOuDCPCRjmcAGCP31BeAqtnZNmJG0wmajvVNO8msxu4aToCrBeUA6X9pyyg_UEL6Mb5nHRdVeWOHT1ph_VVguswpL0md4vzIQHHBf7pSkdSSRc9Hhb49MiWHTPogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \r\n \ + \ ],\"anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1051' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:57 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:57 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvETRTtCODZGiHkiGkVPHN4; expires=Thu, 26-Mar-2020 19:38:57 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH80xtYCei-9GIXCVoI_9wLfR1Qu7ZzLV2chk_qyMZbX0nnehhW26tUYSbD-BnjBgM0AJKSjCjxBnTrLiUTf4kfPnqK0ibma9SQiC7KzCizjoNmyHDY8YcVplheheL1uO_BStQnlt0Rlv4r_60ujF9QWlZINjsM6upTyDvsbYNrz1sgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override set + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version -n -r -r -r + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \r\n \ + \ ],\"anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1051' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:38:58 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:59 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgyKs7YqJbtCk4XZ1zdtLvg; expires=Thu, 26-Mar-2020 19:38:59 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8w_M9ISH5PATQEJ_eguU1ee2F3cFoeCh6uzYl242arQ6wg8R0tRcaheZ-aWqvHHqrUCY1rSXGOxjE3aRtoiR_AQOLninUSLNYA6LrhY2MVZfyle1ZHYa7mG7_hIXHbhEznm4xM7MhzglvLYi3lF8WZXku0o94WBLgeqruxy9JkBMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {"foo": "bar"}, "properties": {"policySettings": + {"enabledState": "Enabled", "mode": "Detection", "defaultRedirectUrl": "https://example.com"}, + "rateLimitRules": {"rules": []}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "anomalyScore": 0, "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "rules": + [{"ruleId": "942440", "enabledState": "Enabled", "action": "Redirect"}, {"ruleId": + "942120"}, {"ruleId": "942100"}]}]}]}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override set + Connection: + - keep-alive + Content-Length: + - '572' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version -n -r -r -r + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ + \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ + \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ + action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ + :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ + \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ + \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ + \n },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1454' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:01 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:01 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aj6Sj9lVlsBHomh9O0Mp7Fo; expires=Thu, 26-Mar-2020 19:39:01 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH87cAJuLXDQpJkdIv5GLszZc6FBsP4MY-q6CKlLktRRK6lIrrv0plEL2H8Zu-e0Cb0vK2J2JKjhuILvnQtO8Bkk7WE9pSyAQaj7rqbwZxGdnVrjV0zvUoddq06v1Os9QnjY197Y-TAGymLLmamDkku8VMIHSZhDQFxK99VQ5lzbIIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ + \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ + \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ + action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ + :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ + \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ + \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ + \n },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1454' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:03 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsXNCsEmf_VOleBtFqZHnBA; expires=Thu, 26-Mar-2020 19:39:03 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH80QbwIBK4smR391iOhqLGnSdH0fdbe0wwTGAdWHOtbaupF5m9WMu1zyvnB6MunxktaK7nxDi2bJr9RB2D-SSdMlIJ0qSHxYQZFbkGgm5gZpGcJV8dHpxAuUfTLzIkT5u4huXar-n0dWwQ0zaWyvhzrUKAVWsjjNige_djIFCcZiAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override list + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ + \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ + \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ + action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ + :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ + \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ + \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ + \n },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1454' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:04 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Al0zIWkGFTRDho5yrscqk18; expires=Thu, 26-Mar-2020 19:39:05 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8uppMTJCblIk7njgmCpCYhwkHocScQeLORpNoA0ruTWdSBZ7yqZXRQdgCU5DLmkNQREJKOH7n1rstN3UlDJPM0oaNmGjc2SKzTiIOCxQlyiMtWU91gn8wcijAT7Sa9OVKf9uAqOXLReUIFSC_G2D8iaDIlwi-wH4vkt5vEUZ-gb0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ + \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ + \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ + action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ + :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ + \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ + \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ + \n },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1454' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:07 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:07 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnsXYil9RIpHgTtz4wylUE0; expires=Thu, 26-Mar-2020 19:39:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Ox5Weu3gaZ-CWPb4cKcIdmTmyiw7OithctVmPo7Rfpx5FQVl-dEXY3APy3QF1HMjPFjeEB6FydqcNC4Xtv76aH_QIDXchf4LF2iWCT-xVJ8ck-kGJHIETlNSCtfgRqUIjGrO4f1Vy01rytMSIhJFDeYtqv0Ik_ToXOI7-eYHgv8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule set + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n --action --priority --match-condition + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n \ + \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ + ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ + \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ + \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ + action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ + :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ + \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ + \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ + \n },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1454' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:08 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:08 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Asonzt6OVMhDlhhOZO9bYZU; expires=Thu, 26-Mar-2020 19:39:09 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8SqJwqqVNfgQZ7iAQe0RCVsg5b3hrYGvnQa8T0WkylUpqAhlI6K9pSKyDgDq1e4Bf-VorOVyn8eDECHm4ZSUqPeuVWdrtKg-3jWkYjlL2I8U8O0wsBKISuGJ5Msb1M7oK6x1IPqeMZIq4lmqLvRoA_mpKakFybT_E_piLCPtqSV0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {"foo": "bar"}, "properties": {"policySettings": + {"enabledState": "Enabled", "mode": "Detection", "defaultRedirectUrl": "https://example.com"}, + "rateLimitRules": {"rules": []}, "customRules": {"rules": [{"name": "customrule1", + "enabledState": "Enabled", "priority": 100, "matchConditions": [{"matchVariable": + "RequestMethod", "operator": "Equal", "negateCondition": true, "matchValue": + ["GET", "HEAD"], "transforms": []}], "action": "Block"}]}, "managedRules": {"managedRuleSets": + [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", "anomalyScore": + 0, "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "rules": [{"ruleId": "942440", + "enabledState": "Enabled", "action": "Redirect"}, {"ruleId": "942120", "enabledState": + "Disabled", "action": "Block"}, {"ruleId": "942100", "enabledState": "Disabled", + "action": "Block"}]}]}]}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule set + Connection: + - keep-alive + Content-Length: + - '904' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name -n --action --priority --match-condition + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1835' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:10 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:10 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvonXFglV_lEqSzdyWZ-1F0; expires=Thu, 26-Mar-2020 19:39:11 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8H3G0fqoKZAxlLTB-_2qDLV--Uz9C5A7YJXg4_Fv2Uh294J-KifmgKGPnG6G0TSW3jnWWU4uFnf5hItGfVysGlPPYjflFJ6NOhgYhgJcKdzfO_nglQZX4QCoGQNfRXoPA37gha6TpLD4aLH9U1VZrWrB2ZBFNAtmnbTDDX55_mgEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1835' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:12 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:12 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuWUHJYazl1FoZZweEno-Vw; expires=Thu, 26-Mar-2020 19:39:12 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8nhmmMG8kE6TzmtN2Ti5cyTeGR_uuB_WnTEE_fGDWOn2qS1QGm_Asupjp4Mm-6WyrZjMdxizicefahiKhX6yzvhXJOPiqohrGEhYzvau8wb1DZfG2CEImyQrwe9uuWLQ5L8P6K233d4i_AQ5TJpWj853dAa_ufcQGvSJNM9eXi9IgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule set + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n --action --priority -m -m + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1835' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:13 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:13 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtXCtjH6i5NIg2wYEHaCpNg; expires=Thu, 26-Mar-2020 19:39:14 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8uBPQ062h70i8hPViZ8eKaAF-y95AFTBR7O_U2-MnuWGofQTJQ0-GSmRgAtQjPHTuLktKkGP-9T-IBdROrrxwoUCxTFka86tEjG00wT0RtUOApObkLbBqAENUWM_CtFMCaq19HaBaFoqnZ5zobbQvDwwgXoUsjudwJmwz-OGb6PkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {"foo": "bar"}, "properties": {"policySettings": + {"enabledState": "Enabled", "mode": "Detection", "defaultRedirectUrl": "https://example.com"}, + "rateLimitRules": {"rules": []}, "customRules": {"rules": [{"name": "customrule1", + "enabledState": "Enabled", "priority": 100, "matchConditions": [{"matchVariable": + "RequestMethod", "operator": "Equal", "negateCondition": true, "matchValue": + ["GET", "HEAD"], "transforms": []}], "action": "Block"}, {"name": "customrule2", + "enabledState": "Enabled", "priority": 200, "matchConditions": [{"matchVariable": + "RequestUri", "operator": "Contains", "matchValue": [".."], "transforms": []}, + {"matchVariable": "QueryString", "operator": "Contains", "matchValue": [" "], + "transforms": []}], "action": "Redirect"}]}, "managedRules": {"managedRuleSets": + [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", "anomalyScore": + 0, "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "rules": [{"ruleId": "942440", + "enabledState": "Enabled", "action": "Redirect"}, {"ruleId": "942120", "enabledState": + "Disabled", "action": "Block"}, {"ruleId": "942100", "enabledState": "Disabled", + "action": "Block"}]}]}]}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule set + Connection: + - keep-alive + Content-Length: + - '1210' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name -n --action --priority -m -m + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"customrule2\",\"enabledState\":\"Enabled\"\ + ,\"priority\":200,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"..\"\r\n\ + \ ],\"transforms\":[\r\n \r\n ]\r\ + \n },{\r\n \"matchVariable\":\"QueryString\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \" \"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n ],\"action\":\"Redirect\"\ + \r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2440' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:15 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:15 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjNEUz-3xEhIq4jeNFS8f_Y; expires=Thu, 26-Mar-2020 19:39:16 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH864kTFV9yLJF9ino6cDwfX_x-oHumHUtV4cJdFrRqoh_vFt1yc7g5ybYSGvDFokTvAfNwLPzWSKPH_DdyPMD57yArLftZoHIYrO-lRdVG1CvkKxQWHChMAkUC_vF9KzqLrGi4Y0jkR4xmmL0iaJsGxYKZngH5ISHgLHvUkUK_EIsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"customrule2\",\"enabledState\":\"Enabled\"\ + ,\"priority\":200,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"..\"\r\n\ + \ ],\"transforms\":[\r\n \r\n ]\r\ + \n },{\r\n \"matchVariable\":\"QueryString\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \" \"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n ],\"action\":\"Redirect\"\ + \r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2440' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:16 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:17 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Alk8ILja-FZGr710AA_nvxw; expires=Thu, 26-Mar-2020 19:39:18 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8pazqQjzd97AEn-59rMLwDPnhvQi_0DKNVDH-0EWaULb8f2lkDKKlaMymsac0aIVRUDyVHwTIZ6gQKSWCmigqxdQZmm36_Roaklh5IVeGWUr2Y5mHinl78DJ2T3ITrQEcY0dW_4eQzeZqnAFGu9LezBxz8ep8Q4bB5OEBaCY3ijcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule list + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"customrule2\",\"enabledState\":\"Enabled\"\ + ,\"priority\":200,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"..\"\r\n\ + \ ],\"transforms\":[\r\n \r\n ]\r\ + \n },{\r\n \"matchVariable\":\"QueryString\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \" \"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n ],\"action\":\"Redirect\"\ + \r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2440' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:18 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:19 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsdDpX5B8bFDi2fdJHz3rrc; expires=Thu, 26-Mar-2020 19:39:19 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8-hu71rjgFuLIKPfq9UHskKzD2UMPUFrpcsW5BkkUuMvxXaqTiHdblI0YXiwJX4sqZSJBaR2g8BxwWAHCzcNFPWT3BCt3l1Eb30lUGOSaJ4EdQe6jrUMu8Rv2_su9BWf8b6ymtak_30UO0iv0xtWcoQJ7bcSqKerRP6Dkdt_16n4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"customrule2\",\"enabledState\":\"Enabled\"\ + ,\"priority\":200,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"..\"\r\n\ + \ ],\"transforms\":[\r\n \r\n ]\r\ + \n },{\r\n \"matchVariable\":\"QueryString\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \" \"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n ],\"action\":\"Redirect\"\ + \r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2440' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:21 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:21 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlBDz8e4vahEr143EJ34Jcs; expires=Thu, 26-Mar-2020 19:39:22 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH82Oj0li7XdjcR9xarKUic4VG1yb21ypr9sSHosmsZdwAz6VKT9Mecue24fB-opmUNjk8R30CRj-CwOkA0dGZnjIlJ8jZ2JixxThZGGvWEc_leOahB5oTyI9L8Y650hPDLSoSjwf6nbcLNljaSyQNmfkAvrGgk8MCclgqabXdR9ccgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule set + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n --action --priority --duration --request-threshold --match-condition + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"enabledState\"\ + :\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"customrule2\",\"enabledState\":\"Enabled\"\ + ,\"priority\":200,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"..\"\r\n\ + \ ],\"transforms\":[\r\n \r\n ]\r\ + \n },{\r\n \"matchVariable\":\"QueryString\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \" \"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n ],\"action\":\"Redirect\"\ + \r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\"\ + :[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2440' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:22 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:23 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnqSS60ZWaZBm5w3ObpmrCw; expires=Thu, 26-Mar-2020 19:39:23 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8gqCKCy9eE-El_MCNx6diVozFB19vMUP0aVP6I9ouLdicx0LjPUiqI0S9tsp9tddXrPAPS3lt06AA5Dpk5okYt76slJPLucpp7LkPwlI23ESUBsCNN9FtQHlHbcpGcih-qC_yViGk2UBfxHhSgNkUTqafFl_sl3SO6nIpz54YqVogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {"foo": "bar"}, "properties": {"policySettings": + {"enabledState": "Enabled", "mode": "Detection", "defaultRedirectUrl": "https://example.com"}, + "rateLimitRules": {"rules": [{"name": "ratelimitrule1", "enabledState": "Enabled", + "priority": 100, "matchConditions": [{"matchVariable": "RequestMethod", "operator": + "Equal", "negateCondition": true, "matchValue": ["GET", "HEAD"], "transforms": + []}], "action": "Block", "rateLimitThreshold": 100, "rateLimitDurationInMinutes": + 1}]}, "customRules": {"rules": [{"name": "customrule1", "enabledState": "Enabled", + "priority": 100, "matchConditions": [{"matchVariable": "RequestMethod", "operator": + "Equal", "negateCondition": true, "matchValue": ["GET", "HEAD"], "transforms": + []}], "action": "Block"}, {"name": "customrule2", "enabledState": "Enabled", + "priority": 200, "matchConditions": [{"matchVariable": "RequestUri", "operator": + "Contains", "negateCondition": false, "matchValue": [".."], "transforms": []}, + {"matchVariable": "QueryString", "operator": "Contains", "negateCondition": + false, "matchValue": [" "], "transforms": []}], "action": "Redirect"}]}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "anomalyScore": 0, "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "rules": + [{"ruleId": "942440", "enabledState": "Enabled", "action": "Redirect"}, {"ruleId": + "942120", "enabledState": "Disabled", "action": "Block"}, {"ruleId": "942100", + "enabledState": "Disabled", "action": "Block"}]}]}]}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule set + Connection: + - keep-alive + Content-Length: + - '1563' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name -n --action --priority --duration --request-threshold --match-condition + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\",\"\ + enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ }\r\n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n\ + \ {\r\n \"name\":\"customrule1\",\"enabledState\":\"Enabled\"\ + ,\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\"\ + ,\"negateCondition\":true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n },{\r\n\ + \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ + :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ + Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + \ \"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ + \n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2880' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:24 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:24 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkngN7b6z_ZIjqS903HxblA; expires=Thu, 26-Mar-2020 19:39:25 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8f3ZrBXVmT9BVDCoP6zms0AbxHDYN-VgzaFwG0amaJh1GoPfg9-8MB8yWZQDgEIRzY-Q6P4u8SsiJMkZzt04ON53plcjacNnMK6dPOMJ07Axw2tbf_sdCj4Z34zpWB08rjEKu_pEzOzv9Qf_UGIKfk9g8I9fCaqRX_z3GUEFgubsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\",\"\ + enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ }\r\n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n\ + \ {\r\n \"name\":\"customrule1\",\"enabledState\":\"Enabled\"\ + ,\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\"\ + ,\"negateCondition\":true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n },{\r\n\ + \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ + :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ + Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + \ \"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ + \n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2880' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:26 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtrRYFN1u6dFvVYytsnB8aY; expires=Thu, 26-Mar-2020 19:39:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8rVt06_TDHknArnoOCR45jwlElE3lpv-wNbpjd0Ml_r9oa4r7VVE1kciiL5oH8LLnvsWSpKGIbfpGl6ppC-Vw7StT8EylXLgZ8ZtozENbJyDiFiIsk63R-dL91_RJ3pmLOT39tYVxWaS7EJo8OJmpeE-YomlHgZTzQeOrNcr10PkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule set + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n --action --priority --duration --request-threshold -m + -m + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\",\"\ + enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ }\r\n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n\ + \ {\r\n \"name\":\"customrule1\",\"enabledState\":\"Enabled\"\ + ,\"priority\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\"\ + ,\"negateCondition\":true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n },{\r\n\ + \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ + :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ + Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + \ \"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ + \n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ + :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ + :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ + :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ + \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ + :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ + \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ + \r\n }\r\n ]\r\n }\r\n ],\"\ + anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ + \ \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2880' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:27 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgxWC-4W2UhMsjhcVo1fbtc; expires=Thu, 26-Mar-2020 19:39:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8g1LOcW1SN3z3hoX8N5rdpIItlncf79k5gMvzO1sdvHZiAe7d3pfKoypShShuKGqi16G7OE8XfHGyB8xYn2Hua6QZ6O3eJsCRAQHkF1WxB7Zyz6EfpPLQxnUocY6coSmVTmPnukbMJT-7VdQL4G2Gtv6_vl0yZsZ_UFOS55u8Wq0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {"foo": "bar"}, "properties": {"policySettings": + {"enabledState": "Enabled", "mode": "Detection", "defaultRedirectUrl": "https://example.com"}, + "rateLimitRules": {"rules": [{"name": "ratelimitrule1", "enabledState": "Enabled", + "priority": 100, "matchConditions": [{"matchVariable": "RequestMethod", "operator": + "Equal", "negateCondition": true, "matchValue": ["GET", "HEAD"], "transforms": + []}], "action": "Block", "rateLimitThreshold": 100, "rateLimitDurationInMinutes": + 1}, {"name": "ratelimitrule2", "enabledState": "Enabled", "priority": 200, "matchConditions": + [{"matchVariable": "RequestMethod", "operator": "Equal", "matchValue": ["PUT"], + "transforms": []}, {"matchVariable": "RequestUri", "operator": "Contains", "matchValue": + ["/expensive/resource/"], "transforms": []}], "action": "Redirect", "rateLimitThreshold": + 100, "rateLimitDurationInMinutes": 5}]}, "customRules": {"rules": [{"name": + "customrule1", "enabledState": "Enabled", "priority": 100, "matchConditions": + [{"matchVariable": "RequestMethod", "operator": "Equal", "negateCondition": + true, "matchValue": ["GET", "HEAD"], "transforms": []}], "action": "Block"}, + {"name": "customrule2", "enabledState": "Enabled", "priority": 200, "matchConditions": + [{"matchVariable": "RequestUri", "operator": "Contains", "negateCondition": + false, "matchValue": [".."], "transforms": []}, {"matchVariable": "QueryString", + "operator": "Contains", "negateCondition": false, "matchValue": [" "], "transforms": + []}], "action": "Redirect"}]}, "managedRules": {"managedRuleSets": [{"ruleSetType": + "DefaultRuleSet", "ruleSetVersion": "1.0", "anomalyScore": 0, "ruleGroupOverrides": + [{"ruleGroupName": "SQLI", "rules": [{"ruleId": "942440", "enabledState": "Enabled", + "action": "Redirect"}, {"ruleId": "942120", "enabledState": "Disabled", "action": + "Block"}, {"ruleId": "942100", "enabledState": "Disabled", "action": "Block"}]}]}]}}, + "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule set + Connection: + - keep-alive + Content-Length: + - '1951' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name -n --action --priority --duration --request-threshold -m + -m + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\",\"\ + enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ + \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ + :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ + \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ + Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ + ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ + \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ + \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3563' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:30 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsS1reTuScpOjSXhhXR7QcA; expires=Thu, 26-Mar-2020 19:39:31 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8x_MEBZOW7W4BT9SGpQ8wpEtfe_SOz-A_fRZGgxBpjftIv4hzlJeCsTUPpGku_VpAI-pt16KuKPIza8hrD8rYawM6NrcVzQa_B9PEui9DEKTOy3Jb3zESKZmDhVx41tBE0Y4lXS3HIcwysgh4vnwTDCUL0M6CtMIbiPSpHbihWLcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\",\"\ + enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ + \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ + :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ + \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ + Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ + ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ + \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ + \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3563' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:32 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvOo9FM6xUFJgrkgcn97oYc; expires=Thu, 26-Mar-2020 19:39:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8pSSfswYXlUUk1A6oRdYkCKfGiNaMvrpCsNvx2wD4RMl9nDR42F_Dg-MwNr3D-RN56sc9Xg25KUN0urq5Lb82ybm20DIHqazhujOh5BRLT_9lo8EhGiHvxHVzwL6Ul2SEpQWhOkAv8jX3BX92xL2bLwSHZ5EhUt5p8LARVgTIDc8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule list + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\",\"\ + enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ + \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ + :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ + \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ + Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ + ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ + \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ + \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3563' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:34 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:34 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvaPdPUDa7ZOiXu7DWsSfrg; expires=Thu, 26-Mar-2020 19:39:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZfJoPypJVNCerW61tEqN5yi6fDMpG-rpYtZ-XJpYOiIXFEOfQanGKPwnCryTgFKCrWtYhrc5QeTg1lBkw29YmlfTIqFqy7KEzDwEKmbKit-yVDbX8rm2hsIUoHtjcp8QU1_ieMCuQo68u-Erm4-qwbKITMkVgAYfRoqn2nLKILogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy set + Connection: + - keep-alive + ParameterSetName: + - -g --name --sku --mode --block-response-body --block-response-status-code + --redirect-url --tags --disabled + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\"\ + :\"Standard_Microsoft\"\r\n },\"properties\":{\r\n \"resourceState\":\"\ + Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n \ + \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\"\ + :\"https://example.com\",\"defaultCustomBlockResponseStatusCode\":null,\"\ + defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\":{\r\n \ + \ \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\",\"\ + enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ + \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ + :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ + \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ + Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ + ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ + \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ + \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3563' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:35 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoL7Fs_UDVFJrxt4YNwbAk0; expires=Thu, 26-Mar-2020 19:39:36 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8mzHBLEf-996OZIZVCfgMf8PDy43i492B8Ni0xvLWjcLNu0aRXDMhfF_ND91oyrvDy2gg3HrBVi-NLiIfnly2xIu9oytSABOr0EAwJvYX2jIrL-SylgSX8ePRnZ4FzjtQ7evRnhz1CVWinauqcR2HRMBFoAAOjQYIS69Sbu1ypyYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": + "Disabled", "mode": "Prevention", "defaultRedirectUrl": "https://example.com", + "defaultCustomBlockResponseStatusCode": 429, "defaultCustomBlockResponseBody": + "PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="}, "rateLimitRules": {"rules": + [{"name": "ratelimitrule1", "enabledState": "Enabled", "priority": 100, "matchConditions": + [{"matchVariable": "RequestMethod", "operator": "Equal", "negateCondition": + true, "matchValue": ["GET", "HEAD"], "transforms": []}], "action": "Block", + "rateLimitThreshold": 100, "rateLimitDurationInMinutes": 1}, {"name": "ratelimitrule2", + "enabledState": "Enabled", "priority": 200, "matchConditions": [{"matchVariable": + "RequestMethod", "operator": "Equal", "negateCondition": false, "matchValue": + ["PUT"], "transforms": []}, {"matchVariable": "RequestUri", "operator": "Contains", + "negateCondition": false, "matchValue": ["/expensive/resource/"], "transforms": + []}], "action": "Redirect", "rateLimitThreshold": 100, "rateLimitDurationInMinutes": + 5}]}, "customRules": {"rules": [{"name": "customrule1", "enabledState": "Enabled", + "priority": 100, "matchConditions": [{"matchVariable": "RequestMethod", "operator": + "Equal", "negateCondition": true, "matchValue": ["GET", "HEAD"], "transforms": + []}], "action": "Block"}, {"name": "customrule2", "enabledState": "Enabled", + "priority": 200, "matchConditions": [{"matchVariable": "RequestUri", "operator": + "Contains", "negateCondition": false, "matchValue": [".."], "transforms": []}, + {"matchVariable": "QueryString", "operator": "Contains", "negateCondition": + false, "matchValue": [" "], "transforms": []}], "action": "Redirect"}]}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "anomalyScore": 0, "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "rules": + [{"ruleId": "942440", "enabledState": "Enabled", "action": "Redirect"}, {"ruleId": + "942120", "enabledState": "Disabled", "action": "Block"}, {"ruleId": "942100", + "enabledState": "Disabled", "action": "Block"}]}]}]}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy set + Connection: + - keep-alive + Content-Length: + - '2128' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --name --sku --mode --block-response-body --block-response-status-code + --redirect-url --tags --disabled + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ + \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ + :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ + \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ + Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ + ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ + \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ + \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:40 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:40 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ak5f0q6MQYZMlzGOMGcy6Fg; expires=Thu, 26-Mar-2020 19:39:40 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZNZzN-5-KTRftlwxfqv6YuAode4YbDYUqFaNSjHA5e1Pbz3wzXiymWDFifm2gu8fOsMj8eveeqA-7pjXyKISQYLmQnT0Vu7aPQFFZA-Adq__zpnzJ_kOtBSq21WGa5P_yCul-V-uX9hy_JxlyOUp7L5eeFpwXKZkkoiK2wiJGu0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ + \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ + :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ + \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ + Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ + ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ + \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ + \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:42 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:43 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=An7fC8WLJudGo5wTVYHXuL0; expires=Thu, 26-Mar-2020 19:39:43 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH85Nf4mYZSO00vH550ly0gRIdyRY9GdJZfnAX2bSTkAGwozAM4aB7HWgOSEApVxTcyfk_DkYYi3TrGHC-zqwgIuXgKvfRm99zhTMomuprIlN6C3UjgFavjyGPc9wHGDKaOp1mFMTRVNl7Rsq4018SgemhBce0o_WlhUR3qex_E9HogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override delete + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ + \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ + :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ + \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ + Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ + ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ + \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ + \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:44 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnfVtmX_aW1Do6FCLMNuVRI; expires=Thu, 26-Mar-2020 19:39:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH80vrlGCm9SpsmerpMbhuU9qdY0-v90DrPBSg1HccAi39M31teATIeFj1NpU0jfdPGsrgwKGizBPXvc3CTWXL3vsABCFu5K7jumq9cSSsr2Hq02Q4NmIMWCLm0OMhYROSB6-cRIt9gN0-I6tmdd5XCChuS63kY600C7K9jHrbeajkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": + "Disabled", "mode": "Prevention", "defaultRedirectUrl": "https://example.com", + "defaultCustomBlockResponseStatusCode": 429, "defaultCustomBlockResponseBody": + "PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="}, "rateLimitRules": {"rules": + [{"name": "ratelimitrule1", "enabledState": "Enabled", "priority": 100, "matchConditions": + [{"matchVariable": "RequestMethod", "operator": "Equal", "negateCondition": + true, "matchValue": ["GET", "HEAD"], "transforms": []}], "action": "Block", + "rateLimitThreshold": 100, "rateLimitDurationInMinutes": 1}, {"name": "ratelimitrule2", + "enabledState": "Enabled", "priority": 200, "matchConditions": [{"matchVariable": + "RequestMethod", "operator": "Equal", "negateCondition": false, "matchValue": + ["PUT"], "transforms": []}, {"matchVariable": "RequestUri", "operator": "Contains", + "negateCondition": false, "matchValue": ["/expensive/resource/"], "transforms": + []}], "action": "Redirect", "rateLimitThreshold": 100, "rateLimitDurationInMinutes": + 5}]}, "customRules": {"rules": [{"name": "customrule1", "enabledState": "Enabled", + "priority": 100, "matchConditions": [{"matchVariable": "RequestMethod", "operator": + "Equal", "negateCondition": true, "matchValue": ["GET", "HEAD"], "transforms": + []}], "action": "Block"}, {"name": "customrule2", "enabledState": "Enabled", + "priority": 200, "matchConditions": [{"matchVariable": "RequestUri", "operator": + "Contains", "negateCondition": false, "matchValue": [".."], "transforms": []}, + {"matchVariable": "QueryString", "operator": "Contains", "negateCondition": + false, "matchValue": [" "], "transforms": []}], "action": "Redirect"}]}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "anomalyScore": 0, "ruleGroupOverrides": []}]}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override delete + Connection: + - keep-alive + Content-Length: + - '1883' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ + \ },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3200' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:47 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:47 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgEEMEP_bQtIkGorLhPcjj0; expires=Thu, 26-Mar-2020 19:39:47 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8_fskgTWpecAvNa7e0QC-9NiyU2y69IPLbZcxo7hbWjQPwJ3ApF2xPfUOo27jPLiaChjlTGCvMUeNhd28HBpR4zslAS8a9-M344Xj9XMdG26OXRDTi3OIMYsOdKRrcXTl65qEHaIpQtrsSJoZPXIe7xBI_NkFxH_tBvqUp43zyjYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set rule-group-override show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ + \ },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3200' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:49 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArqVLbWmILBMujsChgz1kM8; expires=Thu, 26-Mar-2020 19:39:49 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8aZsGDxeKKkdL1EyG_NbzkI-w2NfZUzXO8rxg3zGg1JDUPQfEVqzHuN5g2GIS0mgNF-TlFtO1w3092kDhNFxG8iTQf3lTBcGx7VhIi5m6BocoN-R9JOC1NWIkfFeGb_-qzvzd4F5Kao5Ts4A-1pUqaGmmXG2QfF2HhTL-wSi1G7MgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set remove + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ + DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ + \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ + \ },\"endpointLinks\":[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3200' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:51 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuYZbsRIYDBPnGbB6B5pP1E; expires=Thu, 26-Mar-2020 19:39:51 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8SfQLggQKxHXMqePUh2Fhbrch8igvoAI7dYcM9RbNr_uhWvTRqvhG3CnBfpfD4WufIxfnGkm3P7NdR8ILYUXkxjBcgOQTajZ_kGYndQArBzre4DzIyEYtX4V_pVBF02hLdXZcvTEjCLz4ceOVbseH954DJ4BbSMbfKWAqiIEXE-YgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": + "Disabled", "mode": "Prevention", "defaultRedirectUrl": "https://example.com", + "defaultCustomBlockResponseStatusCode": 429, "defaultCustomBlockResponseBody": + "PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="}, "rateLimitRules": {"rules": + [{"name": "ratelimitrule1", "enabledState": "Enabled", "priority": 100, "matchConditions": + [{"matchVariable": "RequestMethod", "operator": "Equal", "negateCondition": + true, "matchValue": ["GET", "HEAD"], "transforms": []}], "action": "Block", + "rateLimitThreshold": 100, "rateLimitDurationInMinutes": 1}, {"name": "ratelimitrule2", + "enabledState": "Enabled", "priority": 200, "matchConditions": [{"matchVariable": + "RequestMethod", "operator": "Equal", "negateCondition": false, "matchValue": + ["PUT"], "transforms": []}, {"matchVariable": "RequestUri", "operator": "Contains", + "negateCondition": false, "matchValue": ["/expensive/resource/"], "transforms": + []}], "action": "Redirect", "rateLimitThreshold": 100, "rateLimitDurationInMinutes": + 5}]}, "customRules": {"rules": [{"name": "customrule1", "enabledState": "Enabled", + "priority": 100, "matchConditions": [{"matchVariable": "RequestMethod", "operator": + "Equal", "negateCondition": true, "matchValue": ["GET", "HEAD"], "transforms": + []}], "action": "Block"}, {"name": "customrule2", "enabledState": "Enabled", + "priority": 200, "matchConditions": [{"matchVariable": "RequestUri", "operator": + "Contains", "negateCondition": false, "matchValue": [".."], "transforms": []}, + {"matchVariable": "QueryString", "operator": "Contains", "negateCondition": + false, "matchValue": [" "], "transforms": []}], "action": "Redirect"}]}, "managedRules": + {"managedRuleSets": []}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set remove + Connection: + - keep-alive + Content-Length: + - '1780' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3056' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:52 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:53 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ag5vIoKUd9RGuEoVU_z6nVA; expires=Thu, 26-Mar-2020 19:39:53 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH89gJkUZwbAFXH6OIwrsw4Uk-B6HbEVucUhIkS3oAnFIlTIdhBwLyfXzcc0xYyqIlzfTBpF5Sf2w02qiWWx4ThXXEDeUH3uKw8uWA35aW3X4g_yxSp1MPD70dVdajN1cJZmoYoxwNoqKLIsb88KC6Lgy1PndBBxUUDROwpCbPb11ggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy managed-rule-set show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --rule-set-type --rule-set-version + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3056' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:53 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:54 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqqzLJedQ8lHvS_JCXniBGA; expires=Thu, 26-Mar-2020 19:39:54 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH81AY4NwJBii74elZo8koMaO8JGELG5sTpJCoR8Y3yzxBXyj62S4PxagWfuAq3UGqNJT3yLBQthgWnLUpq5rxIDUGNMAabi0dmzsGqNjQ6rYJu_dZYe0UWoSNsREBvyohSHsePLa0-HwrCUPZDBnaDko4rTjAK424pOaH140Akbh0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule delete + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3056' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:55 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:56 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkyskvDmnnVKj9OaHwR8424; expires=Thu, 26-Mar-2020 19:39:56 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8LgM2s1cdYnJIIbkAh0kMS0gNz8B8BBBR-oJCV2x7q2MSMvK1LeH032V1HR843OnegMPZERHZMC30r2SGgFL1UZZB7cxL2fWBeojIVdtnVA6MX1uSUhjoREvYaBt5_1L78MxlzfjRJrkDwRDMGOH6BjkU7M1cr17NzuRFfMP0zbUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": + "Disabled", "mode": "Prevention", "defaultRedirectUrl": "https://example.com", + "defaultCustomBlockResponseStatusCode": 429, "defaultCustomBlockResponseBody": + "PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="}, "rateLimitRules": {"rules": + [{"name": "ratelimitrule1", "enabledState": "Enabled", "priority": 100, "matchConditions": + [{"matchVariable": "RequestMethod", "operator": "Equal", "negateCondition": + true, "matchValue": ["GET", "HEAD"], "transforms": []}], "action": "Block", + "rateLimitThreshold": 100, "rateLimitDurationInMinutes": 1}, {"name": "ratelimitrule2", + "enabledState": "Enabled", "priority": 200, "matchConditions": [{"matchVariable": + "RequestMethod", "operator": "Equal", "negateCondition": false, "matchValue": + ["PUT"], "transforms": []}, {"matchVariable": "RequestUri", "operator": "Contains", + "negateCondition": false, "matchValue": ["/expensive/resource/"], "transforms": + []}], "action": "Redirect", "rateLimitThreshold": 100, "rateLimitDurationInMinutes": + 5}]}, "customRules": {"rules": [{"name": "customrule2", "enabledState": "Enabled", + "priority": 200, "matchConditions": [{"matchVariable": "RequestUri", "operator": + "Contains", "negateCondition": false, "matchValue": [".."], "transforms": []}, + {"matchVariable": "QueryString", "operator": "Contains", "negateCondition": + false, "matchValue": [" "], "transforms": []}], "action": "Redirect"}]}, "managedRules": + {"managedRuleSets": []}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule delete + Connection: + - keep-alive + Content-Length: + - '1540' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ + :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ + Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + \ \"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ + \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2674' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:57 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:57 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqFCNFnv6-lBq37e2kdkpsU; expires=Thu, 26-Mar-2020 19:39:58 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8UsmewFyDVmhFkuOv9Hq5HFbxeBYZSoNn7CemquodiBeIjghuNVr9w2Sm1nVJROW59SWs4ix1cVj2L8xwcIsyfp_wCZUqzpOGDi7a7mFaTpl_RjYYktovC9VkR0i9QKMgdCaCsu6H33494kLzi3hzcmPFXAWhjND7GqR8-hwMAIEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy custom-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ + :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ + Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + \ \"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ + \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2674' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:59 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:00 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnHN3WDIsiFKhpqO1OrwiBQ; expires=Thu, 26-Mar-2020 19:40:01 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH88-EkjeX7waYfbTtIUabrQEb_zaG8352Hj3c0Ze4L6QPxZV2sSkVidxbkUMzEbONdnBrL8R9PSGWmwlwo46DGvM_q9rcClP1pMUwnCGbK6OpuBAGQB_LnJXRx7P4jy2zxdScA-plrrUcVwWXnMlMcip0ViPnK0TdYfrEuF7ofTuYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule delete + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ + ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ + :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ + GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ + \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ + \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ + Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ + :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ + ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ + \r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ + \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ + \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ + :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ + :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n },{\r\n \ + \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ + Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + \ \"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ + \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ + \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2674' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:02 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=As12ydD-gAVMkcwCs5WbzTI; expires=Thu, 26-Mar-2020 19:40:02 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8DZVR7VMEpztvU7qR-h9WdHIGWTqv_6VfK7WSa4DyEE4v05Toc2g5j3SPVJDttaT5spi__AZVJsXF9KRuE-o6xCcqRIEthEMabfGUoS6ovzVhRaPR7jGnkH_7JV0DEvZADKk20vGSDW1Wv4BqoQM0OVFk-TjD6Lh_XeuVLGbTsCEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": + "Disabled", "mode": "Prevention", "defaultRedirectUrl": "https://example.com", + "defaultCustomBlockResponseStatusCode": 429, "defaultCustomBlockResponseBody": + "PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="}, "rateLimitRules": {"rules": + [{"name": "ratelimitrule2", "enabledState": "Enabled", "priority": 200, "matchConditions": + [{"matchVariable": "RequestMethod", "operator": "Equal", "negateCondition": + false, "matchValue": ["PUT"], "transforms": []}, {"matchVariable": "RequestUri", + "operator": "Contains", "negateCondition": false, "matchValue": ["/expensive/resource/"], + "transforms": []}], "action": "Redirect", "rateLimitThreshold": 100, "rateLimitDurationInMinutes": + 5}]}, "customRules": {"rules": [{"name": "customrule2", "enabledState": "Enabled", + "priority": 200, "matchConditions": [{"matchVariable": "RequestUri", "operator": + "Contains", "negateCondition": false, "matchValue": [".."], "transforms": []}, + {"matchVariable": "QueryString", "operator": "Contains", "negateCondition": + false, "matchValue": [" "], "transforms": []}], "action": "Redirect"}]}, "managedRules": + {"managedRuleSets": []}}, "sku": {"name": "Standard_Microsoft"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule delete + Connection: + - keep-alive + Content-Length: + - '1237' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule2\"\ + ,\"enabledState\":\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\"\ + :5,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + PUT\"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n },{\r\n \"matchVariable\":\"RequestUri\"\ + ,\"selector\":null,\"operator\":\"Contains\",\"negateCondition\":false,\"\ + matchValue\":[\r\n \"/expensive/resource/\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Redirect\"\r\n }\r\n ]\r\n\ + \ },\"customRules\":{\r\n \"rules\":[\r\n {\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2233' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:03 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:03 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlrsXg4Kgv1OhpAV_9obu48; expires=Thu, 26-Mar-2020 19:40:04 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8bYp4aM2p71bYM9tkFwItwHIJGI7FbGnGb-XIJSETJLSu2GT2hUhKJaIK7SNPz19mOUBaiimLn_N-XBid5UwrZ7BVTHMmWFSYdaUeQd_TU0n7vRTeK0VQWpt0GEInNPFtYiB_wr0lysuF6QdufBscAagWwYrGKcXCN9s1UdZeZAEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy rate-limit-rule show + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ + ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"tags\":{\r\ + \n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ + \r\n },\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\"\ + :\"Succeeded\",\"policySettings\":{\r\n \"enabledState\":\"Disabled\"\ + ,\"mode\":\"Prevention\",\"defaultRedirectUrl\":\"https://example.com\",\"\ + defaultCustomBlockResponseStatusCode\":429,\"defaultCustomBlockResponseBody\"\ + :\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\r\n },\"rateLimitRules\"\ + :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule2\"\ + ,\"enabledState\":\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\"\ + :5,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ + \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ + :\"Equal\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ + PUT\"\r\n ],\"transforms\":[\r\n \r\n \ + \ ]\r\n },{\r\n \"matchVariable\":\"RequestUri\"\ + ,\"selector\":null,\"operator\":\"Contains\",\"negateCondition\":false,\"\ + matchValue\":[\r\n \"/expensive/resource/\"\r\n \ + \ ],\"transforms\":[\r\n \r\n ]\r\n \ + \ }\r\n ],\"action\":\"Redirect\"\r\n }\r\n ]\r\n\ + \ },\"customRules\":{\r\n \"rules\":[\r\n {\r\n \"\ + name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ + :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ + :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ + \n \"..\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n },{\r\n \"matchVariable\"\ + :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ + :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ + :[\r\n \r\n ]\r\n }\r\n ],\"\ + action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ + \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ + :[\r\n \r\n ]\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2233' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:06 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AiHNmmBAjhZDgx2f-IrsdvA; expires=Thu, 26-Mar-2020 19:40:06 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8dIQaZZGNJNNd1UeUpaoc9jkmLAUMCUlPC4AqtsJUyxkaLGZWunMeIgYy6Irw5cKwTG6KiRuTFA37giIocQKnW9Szl2fAERoKf4GQA3LKT3JY_2qRiItlVbu7K2C0-9G91_h6pDeat9ov6UwdKy58hfARI-E3MPLC2c9B5Izvne4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn waf policy delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2019-06-15-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Tue, 25 Feb 2020 19:40:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml index 14d5bed3860..e95b1b4e358 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:23 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Als_ciev54RCj7sy4lfeiss; expires=Thu, 26-Mar-2020 19:38:24 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8fT0XYT2fhSYnA2ViFTiu4_qvx-Aipe0X1FhyVFWsXPIX3J8A6fqK-41hcAk6sjOJJ42tgDEMvtCI1u8F5H_hVZFiOU0UOxyBZETzUaiF9ynMKA-B0Zvcun9fT0OtUuPRIWsUNRNAloh4EAo09MkClOkLXjHc0XbVGVpt47QOC3wgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -11,189 +70,235 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/providers/Microsoft.Cdn/edgenodes?api-version=2019-04-15 + uri: https://management.azure.com/providers/Microsoft.Cdn/edgenodes?api-version=2019-06-15-preview response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"Standard_Verizon\",\"id\":\"/providers/Microsoft.Cdn/edgenodes/Standard_Verizon\",\"type\":\"Microsoft.Cdn/edgenodes\",\"properties\":{\r\n - \ \"ipAddressGroups\":[\r\n {\r\n \"deliveryRegion\":\"All\",\"ipv4Addresses\":[\r\n - \ {\r\n \"baseIpAddress\":\"5.104.64.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"46.22.64.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"61.221.181.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"68.232.32.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"72.21.80.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"88.194.45.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"93.184.208.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"101.226.203.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"108.161.240.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"110.232.176.0\",\"prefixLength\":22\r\n - \ },{\r\n \"baseIpAddress\":\"117.18.232.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"117.103.183.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"120.132.137.0\",\"prefixLength\":25\r\n - \ },{\r\n \"baseIpAddress\":\"121.156.59.224\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"121.189.46.0\",\"prefixLength\":23\r\n - \ },{\r\n \"baseIpAddress\":\"152.195.0.0\",\"prefixLength\":16\r\n - \ },{\r\n \"baseIpAddress\":\"180.240.184.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"192.16.0.0\",\"prefixLength\":18\r\n - \ },{\r\n \"baseIpAddress\":\"192.30.0.0\",\"prefixLength\":19\r\n - \ },{\r\n \"baseIpAddress\":\"192.229.128.0\",\"prefixLength\":17\r\n - \ },{\r\n \"baseIpAddress\":\"194.255.210.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"198.7.16.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"203.74.4.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.64.234.0\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.65.58.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"68.140.206.0\",\"prefixLength\":23\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.0.0\",\"prefixLength\":17\r\n - \ },{\r\n \"baseIpAddress\":\"152.190.247.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"65.222.137.0\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.222.145.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.198.79.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.199.146.192\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.151.160\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.157.192\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.128.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.136.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.46.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.175.80.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"152.199.0.0\",\"prefixLength\":16\r\n - \ },{\r\n \"baseIpAddress\":\"36.67.255.152\",\"prefixLength\":29\r\n - \ },{\r\n \"baseIpAddress\":\"194.255.242.160\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"195.67.219.64\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"88.194.47.224\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"203.66.205.0\",\"prefixLength\":24\r\n - \ }\r\n ],\"ipv6Addresses\":[\r\n {\r\n - \ \"baseIpAddress\":\"2001:2011:c002::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:2040:c006::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:2060:bffb::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:b032:c101::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2405:8f00:edca::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2405:8f00:edcb::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2606:2800::\",\"prefixLength\":32\r\n - \ },{\r\n \"baseIpAddress\":\"2600:40ff:fffb::\",\"prefixLength\":56\r\n - \ },{\r\n \"baseIpAddress\":\"2a02:16d8:103::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2600:40fc::\",\"prefixLength\":32\r\n - \ }\r\n ]\r\n }\r\n ]\r\n }\r\n - \ },{\r\n \"name\":\"Premium_Verizon\",\"id\":\"/providers/Microsoft.Cdn/edgenodes/Premium_Verizon\",\"type\":\"Microsoft.Cdn/edgenodes\",\"properties\":{\r\n - \ \"ipAddressGroups\":[\r\n {\r\n \"deliveryRegion\":\"All\",\"ipv4Addresses\":[\r\n - \ {\r\n \"baseIpAddress\":\"5.104.64.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"46.22.64.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"61.221.181.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"68.232.32.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"72.21.80.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"88.194.45.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"93.184.208.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"101.226.203.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"108.161.240.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"110.232.176.0\",\"prefixLength\":22\r\n - \ },{\r\n \"baseIpAddress\":\"117.18.232.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"117.103.183.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"120.132.137.0\",\"prefixLength\":25\r\n - \ },{\r\n \"baseIpAddress\":\"121.156.59.224\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"121.189.46.0\",\"prefixLength\":23\r\n - \ },{\r\n \"baseIpAddress\":\"152.195.0.0\",\"prefixLength\":16\r\n - \ },{\r\n \"baseIpAddress\":\"180.240.184.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"192.16.0.0\",\"prefixLength\":18\r\n - \ },{\r\n \"baseIpAddress\":\"192.30.0.0\",\"prefixLength\":19\r\n - \ },{\r\n \"baseIpAddress\":\"192.229.128.0\",\"prefixLength\":17\r\n - \ },{\r\n \"baseIpAddress\":\"194.255.210.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"198.7.16.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"203.74.4.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.64.234.0\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.65.58.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"68.140.206.0\",\"prefixLength\":23\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.0.0\",\"prefixLength\":17\r\n - \ },{\r\n \"baseIpAddress\":\"152.190.247.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"65.222.137.0\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.222.145.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.198.79.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.199.146.192\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.151.160\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.157.192\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.128.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.136.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.46.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.175.80.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"152.199.0.0\",\"prefixLength\":16\r\n - \ },{\r\n \"baseIpAddress\":\"36.67.255.152\",\"prefixLength\":29\r\n - \ },{\r\n \"baseIpAddress\":\"194.255.242.160\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"195.67.219.64\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"88.194.47.224\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"203.66.205.0\",\"prefixLength\":24\r\n - \ }\r\n ],\"ipv6Addresses\":[\r\n {\r\n - \ \"baseIpAddress\":\"2001:2011:c002::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:2040:c006::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:2060:bffb::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:b032:c101::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2405:8f00:edca::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2405:8f00:edcb::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2606:2800::\",\"prefixLength\":32\r\n - \ },{\r\n \"baseIpAddress\":\"2600:40ff:fffb::\",\"prefixLength\":56\r\n - \ },{\r\n \"baseIpAddress\":\"2a02:16d8:103::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2600:40fc::\",\"prefixLength\":32\r\n - \ }\r\n ]\r\n }\r\n ]\r\n }\r\n - \ },{\r\n \"name\":\"Custom_Verizon\",\"id\":\"/providers/Microsoft.Cdn/edgenodes/Custom_Verizon\",\"type\":\"Microsoft.Cdn/edgenodes\",\"properties\":{\r\n - \ \"ipAddressGroups\":[\r\n {\r\n \"deliveryRegion\":\"All\",\"ipv4Addresses\":[\r\n - \ {\r\n \"baseIpAddress\":\"5.104.64.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"46.22.64.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"61.221.181.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"68.232.32.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"72.21.80.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"88.194.45.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"93.184.208.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"101.226.203.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"108.161.240.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"110.232.176.0\",\"prefixLength\":22\r\n - \ },{\r\n \"baseIpAddress\":\"117.18.232.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"117.103.183.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"120.132.137.0\",\"prefixLength\":25\r\n - \ },{\r\n \"baseIpAddress\":\"121.156.59.224\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"121.189.46.0\",\"prefixLength\":23\r\n - \ },{\r\n \"baseIpAddress\":\"152.195.0.0\",\"prefixLength\":16\r\n - \ },{\r\n \"baseIpAddress\":\"180.240.184.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"192.16.0.0\",\"prefixLength\":18\r\n - \ },{\r\n \"baseIpAddress\":\"192.30.0.0\",\"prefixLength\":19\r\n - \ },{\r\n \"baseIpAddress\":\"192.229.128.0\",\"prefixLength\":17\r\n - \ },{\r\n \"baseIpAddress\":\"194.255.210.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"198.7.16.0\",\"prefixLength\":20\r\n - \ },{\r\n \"baseIpAddress\":\"203.74.4.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.64.234.0\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.65.58.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"68.140.206.0\",\"prefixLength\":23\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.0.0\",\"prefixLength\":17\r\n - \ },{\r\n \"baseIpAddress\":\"152.190.247.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"65.222.137.0\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.222.145.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.198.79.64\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.199.146.192\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.151.160\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.157.192\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.128.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"68.130.136.0\",\"prefixLength\":21\r\n - \ },{\r\n \"baseIpAddress\":\"65.200.46.128\",\"prefixLength\":26\r\n - \ },{\r\n \"baseIpAddress\":\"213.175.80.0\",\"prefixLength\":24\r\n - \ },{\r\n \"baseIpAddress\":\"152.199.0.0\",\"prefixLength\":16\r\n - \ },{\r\n \"baseIpAddress\":\"36.67.255.152\",\"prefixLength\":29\r\n - \ },{\r\n \"baseIpAddress\":\"194.255.242.160\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"195.67.219.64\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"88.194.47.224\",\"prefixLength\":27\r\n - \ },{\r\n \"baseIpAddress\":\"203.66.205.0\",\"prefixLength\":24\r\n - \ }\r\n ],\"ipv6Addresses\":[\r\n {\r\n - \ \"baseIpAddress\":\"2001:2011:c002::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:2040:c006::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:2060:bffb::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2001:b032:c101::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2405:8f00:edca::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2405:8f00:edcb::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2606:2800::\",\"prefixLength\":32\r\n - \ },{\r\n \"baseIpAddress\":\"2600:40ff:fffb::\",\"prefixLength\":56\r\n - \ },{\r\n \"baseIpAddress\":\"2a02:16d8:103::\",\"prefixLength\":48\r\n - \ },{\r\n \"baseIpAddress\":\"2600:40fc::\",\"prefixLength\":32\r\n - \ }\r\n ]\r\n }\r\n ]\r\n }\r\n - \ }\r\n ]\r\n}" + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"Standard_Verizon\"\ + ,\"id\":\"/providers/Microsoft.Cdn/edgenodes/Standard_Verizon\",\"type\":\"\ + Microsoft.Cdn/edgenodes\",\"properties\":{\r\n \"ipAddressGroups\"\ + :[\r\n {\r\n \"deliveryRegion\":\"All\",\"ipv4Addresses\"\ + :[\r\n {\r\n \"baseIpAddress\":\"5.104.64.0\"\ + ,\"prefixLength\":21\r\n },{\r\n \"baseIpAddress\"\ + :\"46.22.64.0\",\"prefixLength\":20\r\n },{\r\n \ + \ \"baseIpAddress\":\"61.221.181.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"68.232.32.0\",\"prefixLength\"\ + :20\r\n },{\r\n \"baseIpAddress\":\"72.21.80.0\"\ + ,\"prefixLength\":20\r\n },{\r\n \"baseIpAddress\"\ + :\"88.194.45.128\",\"prefixLength\":26\r\n },{\r\n \ + \ \"baseIpAddress\":\"93.184.208.0\",\"prefixLength\":20\r\n \ + \ },{\r\n \"baseIpAddress\":\"101.226.203.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"108.161.240.0\"\ + ,\"prefixLength\":20\r\n },{\r\n \"baseIpAddress\"\ + :\"110.232.176.0\",\"prefixLength\":22\r\n },{\r\n \ + \ \"baseIpAddress\":\"117.18.232.0\",\"prefixLength\":21\r\n \ + \ },{\r\n \"baseIpAddress\":\"117.103.183.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"120.132.137.0\"\ + ,\"prefixLength\":25\r\n },{\r\n \"baseIpAddress\"\ + :\"121.156.59.224\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"121.189.46.0\",\"prefixLength\":23\r\n \ + \ },{\r\n \"baseIpAddress\":\"152.195.0.0\",\"prefixLength\"\ + :16\r\n },{\r\n \"baseIpAddress\":\"180.240.184.0\"\ + ,\"prefixLength\":24\r\n },{\r\n \"baseIpAddress\"\ + :\"192.16.0.0\",\"prefixLength\":18\r\n },{\r\n \ + \ \"baseIpAddress\":\"192.30.0.0\",\"prefixLength\":19\r\n \ + \ },{\r\n \"baseIpAddress\":\"192.229.128.0\",\"prefixLength\"\ + :17\r\n },{\r\n \"baseIpAddress\":\"194.255.210.64\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"198.7.16.0\",\"prefixLength\":20\r\n },{\r\n \ + \ \"baseIpAddress\":\"203.74.4.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"213.64.234.0\",\"prefixLength\"\ + :26\r\n },{\r\n \"baseIpAddress\":\"213.65.58.0\"\ + ,\"prefixLength\":24\r\n },{\r\n \"baseIpAddress\"\ + :\"68.140.206.0\",\"prefixLength\":23\r\n },{\r\n \ + \ \"baseIpAddress\":\"68.130.0.0\",\"prefixLength\":17\r\n \ + \ },{\r\n \"baseIpAddress\":\"152.190.247.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"65.222.137.0\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"65.222.145.128\",\"prefixLength\":26\r\n },{\r\n \ + \ \"baseIpAddress\":\"65.198.79.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"65.199.146.192\",\"prefixLength\"\ + :26\r\n },{\r\n \"baseIpAddress\":\"65.200.151.160\"\ + ,\"prefixLength\":27\r\n },{\r\n \"baseIpAddress\"\ + :\"65.200.157.192\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"68.130.128.0\",\"prefixLength\":24\r\n \ + \ },{\r\n \"baseIpAddress\":\"68.130.136.0\",\"prefixLength\"\ + :21\r\n },{\r\n \"baseIpAddress\":\"65.200.46.128\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"213.175.80.0\",\"prefixLength\":24\r\n },{\r\n \ + \ \"baseIpAddress\":\"152.199.0.0\",\"prefixLength\":16\r\n \ + \ },{\r\n \"baseIpAddress\":\"36.67.255.152\",\"prefixLength\"\ + :29\r\n },{\r\n \"baseIpAddress\":\"194.255.242.160\"\ + ,\"prefixLength\":27\r\n },{\r\n \"baseIpAddress\"\ + :\"195.67.219.64\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"88.194.47.224\",\"prefixLength\":27\r\n \ + \ },{\r\n \"baseIpAddress\":\"203.66.205.0\",\"prefixLength\"\ + :24\r\n }\r\n ],\"ipv6Addresses\":[\r\n \ + \ {\r\n \"baseIpAddress\":\"2001:2011:c002::\",\"prefixLength\"\ + :48\r\n },{\r\n \"baseIpAddress\":\"2001:2040:c006::\"\ + ,\"prefixLength\":48\r\n },{\r\n \"baseIpAddress\"\ + :\"2001:2060:bffb::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2001:b032:c101::\",\"prefixLength\":48\r\n \ + \ },{\r\n \"baseIpAddress\":\"2405:8f00:edca::\"\ + ,\"prefixLength\":48\r\n },{\r\n \"baseIpAddress\"\ + :\"2405:8f00:edcb::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2606:2800::\",\"prefixLength\":32\r\n \ + \ },{\r\n \"baseIpAddress\":\"2600:40ff:fffb::\",\"\ + prefixLength\":56\r\n },{\r\n \"baseIpAddress\"\ + :\"2a02:16d8:103::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2600:40fc::\",\"prefixLength\":32\r\n \ + \ }\r\n ]\r\n }\r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"Premium_Verizon\",\"id\":\"/providers/Microsoft.Cdn/edgenodes/Premium_Verizon\"\ + ,\"type\":\"Microsoft.Cdn/edgenodes\",\"properties\":{\r\n \"ipAddressGroups\"\ + :[\r\n {\r\n \"deliveryRegion\":\"All\",\"ipv4Addresses\"\ + :[\r\n {\r\n \"baseIpAddress\":\"5.104.64.0\"\ + ,\"prefixLength\":21\r\n },{\r\n \"baseIpAddress\"\ + :\"46.22.64.0\",\"prefixLength\":20\r\n },{\r\n \ + \ \"baseIpAddress\":\"61.221.181.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"68.232.32.0\",\"prefixLength\"\ + :20\r\n },{\r\n \"baseIpAddress\":\"72.21.80.0\"\ + ,\"prefixLength\":20\r\n },{\r\n \"baseIpAddress\"\ + :\"88.194.45.128\",\"prefixLength\":26\r\n },{\r\n \ + \ \"baseIpAddress\":\"93.184.208.0\",\"prefixLength\":20\r\n \ + \ },{\r\n \"baseIpAddress\":\"101.226.203.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"108.161.240.0\"\ + ,\"prefixLength\":20\r\n },{\r\n \"baseIpAddress\"\ + :\"110.232.176.0\",\"prefixLength\":22\r\n },{\r\n \ + \ \"baseIpAddress\":\"117.18.232.0\",\"prefixLength\":21\r\n \ + \ },{\r\n \"baseIpAddress\":\"117.103.183.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"120.132.137.0\"\ + ,\"prefixLength\":25\r\n },{\r\n \"baseIpAddress\"\ + :\"121.156.59.224\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"121.189.46.0\",\"prefixLength\":23\r\n \ + \ },{\r\n \"baseIpAddress\":\"152.195.0.0\",\"prefixLength\"\ + :16\r\n },{\r\n \"baseIpAddress\":\"180.240.184.0\"\ + ,\"prefixLength\":24\r\n },{\r\n \"baseIpAddress\"\ + :\"192.16.0.0\",\"prefixLength\":18\r\n },{\r\n \ + \ \"baseIpAddress\":\"192.30.0.0\",\"prefixLength\":19\r\n \ + \ },{\r\n \"baseIpAddress\":\"192.229.128.0\",\"prefixLength\"\ + :17\r\n },{\r\n \"baseIpAddress\":\"194.255.210.64\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"198.7.16.0\",\"prefixLength\":20\r\n },{\r\n \ + \ \"baseIpAddress\":\"203.74.4.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"213.64.234.0\",\"prefixLength\"\ + :26\r\n },{\r\n \"baseIpAddress\":\"213.65.58.0\"\ + ,\"prefixLength\":24\r\n },{\r\n \"baseIpAddress\"\ + :\"68.140.206.0\",\"prefixLength\":23\r\n },{\r\n \ + \ \"baseIpAddress\":\"68.130.0.0\",\"prefixLength\":17\r\n \ + \ },{\r\n \"baseIpAddress\":\"152.190.247.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"65.222.137.0\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"65.222.145.128\",\"prefixLength\":26\r\n },{\r\n \ + \ \"baseIpAddress\":\"65.198.79.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"65.199.146.192\",\"prefixLength\"\ + :26\r\n },{\r\n \"baseIpAddress\":\"65.200.151.160\"\ + ,\"prefixLength\":27\r\n },{\r\n \"baseIpAddress\"\ + :\"65.200.157.192\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"68.130.128.0\",\"prefixLength\":24\r\n \ + \ },{\r\n \"baseIpAddress\":\"68.130.136.0\",\"prefixLength\"\ + :21\r\n },{\r\n \"baseIpAddress\":\"65.200.46.128\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"213.175.80.0\",\"prefixLength\":24\r\n },{\r\n \ + \ \"baseIpAddress\":\"152.199.0.0\",\"prefixLength\":16\r\n \ + \ },{\r\n \"baseIpAddress\":\"36.67.255.152\",\"prefixLength\"\ + :29\r\n },{\r\n \"baseIpAddress\":\"194.255.242.160\"\ + ,\"prefixLength\":27\r\n },{\r\n \"baseIpAddress\"\ + :\"195.67.219.64\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"88.194.47.224\",\"prefixLength\":27\r\n \ + \ },{\r\n \"baseIpAddress\":\"203.66.205.0\",\"prefixLength\"\ + :24\r\n }\r\n ],\"ipv6Addresses\":[\r\n \ + \ {\r\n \"baseIpAddress\":\"2001:2011:c002::\",\"prefixLength\"\ + :48\r\n },{\r\n \"baseIpAddress\":\"2001:2040:c006::\"\ + ,\"prefixLength\":48\r\n },{\r\n \"baseIpAddress\"\ + :\"2001:2060:bffb::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2001:b032:c101::\",\"prefixLength\":48\r\n \ + \ },{\r\n \"baseIpAddress\":\"2405:8f00:edca::\"\ + ,\"prefixLength\":48\r\n },{\r\n \"baseIpAddress\"\ + :\"2405:8f00:edcb::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2606:2800::\",\"prefixLength\":32\r\n \ + \ },{\r\n \"baseIpAddress\":\"2600:40ff:fffb::\",\"\ + prefixLength\":56\r\n },{\r\n \"baseIpAddress\"\ + :\"2a02:16d8:103::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2600:40fc::\",\"prefixLength\":32\r\n \ + \ }\r\n ]\r\n }\r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"Custom_Verizon\",\"id\":\"/providers/Microsoft.Cdn/edgenodes/Custom_Verizon\"\ + ,\"type\":\"Microsoft.Cdn/edgenodes\",\"properties\":{\r\n \"ipAddressGroups\"\ + :[\r\n {\r\n \"deliveryRegion\":\"All\",\"ipv4Addresses\"\ + :[\r\n {\r\n \"baseIpAddress\":\"5.104.64.0\"\ + ,\"prefixLength\":21\r\n },{\r\n \"baseIpAddress\"\ + :\"46.22.64.0\",\"prefixLength\":20\r\n },{\r\n \ + \ \"baseIpAddress\":\"61.221.181.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"68.232.32.0\",\"prefixLength\"\ + :20\r\n },{\r\n \"baseIpAddress\":\"72.21.80.0\"\ + ,\"prefixLength\":20\r\n },{\r\n \"baseIpAddress\"\ + :\"88.194.45.128\",\"prefixLength\":26\r\n },{\r\n \ + \ \"baseIpAddress\":\"93.184.208.0\",\"prefixLength\":20\r\n \ + \ },{\r\n \"baseIpAddress\":\"101.226.203.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"108.161.240.0\"\ + ,\"prefixLength\":20\r\n },{\r\n \"baseIpAddress\"\ + :\"110.232.176.0\",\"prefixLength\":22\r\n },{\r\n \ + \ \"baseIpAddress\":\"117.18.232.0\",\"prefixLength\":21\r\n \ + \ },{\r\n \"baseIpAddress\":\"117.103.183.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"120.132.137.0\"\ + ,\"prefixLength\":25\r\n },{\r\n \"baseIpAddress\"\ + :\"121.156.59.224\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"121.189.46.0\",\"prefixLength\":23\r\n \ + \ },{\r\n \"baseIpAddress\":\"152.195.0.0\",\"prefixLength\"\ + :16\r\n },{\r\n \"baseIpAddress\":\"180.240.184.0\"\ + ,\"prefixLength\":24\r\n },{\r\n \"baseIpAddress\"\ + :\"192.16.0.0\",\"prefixLength\":18\r\n },{\r\n \ + \ \"baseIpAddress\":\"192.30.0.0\",\"prefixLength\":19\r\n \ + \ },{\r\n \"baseIpAddress\":\"192.229.128.0\",\"prefixLength\"\ + :17\r\n },{\r\n \"baseIpAddress\":\"194.255.210.64\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"198.7.16.0\",\"prefixLength\":20\r\n },{\r\n \ + \ \"baseIpAddress\":\"203.74.4.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"213.64.234.0\",\"prefixLength\"\ + :26\r\n },{\r\n \"baseIpAddress\":\"213.65.58.0\"\ + ,\"prefixLength\":24\r\n },{\r\n \"baseIpAddress\"\ + :\"68.140.206.0\",\"prefixLength\":23\r\n },{\r\n \ + \ \"baseIpAddress\":\"68.130.0.0\",\"prefixLength\":17\r\n \ + \ },{\r\n \"baseIpAddress\":\"152.190.247.0\",\"prefixLength\"\ + :24\r\n },{\r\n \"baseIpAddress\":\"65.222.137.0\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"65.222.145.128\",\"prefixLength\":26\r\n },{\r\n \ + \ \"baseIpAddress\":\"65.198.79.64\",\"prefixLength\":26\r\n \ + \ },{\r\n \"baseIpAddress\":\"65.199.146.192\",\"prefixLength\"\ + :26\r\n },{\r\n \"baseIpAddress\":\"65.200.151.160\"\ + ,\"prefixLength\":27\r\n },{\r\n \"baseIpAddress\"\ + :\"65.200.157.192\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"68.130.128.0\",\"prefixLength\":24\r\n \ + \ },{\r\n \"baseIpAddress\":\"68.130.136.0\",\"prefixLength\"\ + :21\r\n },{\r\n \"baseIpAddress\":\"65.200.46.128\"\ + ,\"prefixLength\":26\r\n },{\r\n \"baseIpAddress\"\ + :\"213.175.80.0\",\"prefixLength\":24\r\n },{\r\n \ + \ \"baseIpAddress\":\"152.199.0.0\",\"prefixLength\":16\r\n \ + \ },{\r\n \"baseIpAddress\":\"36.67.255.152\",\"prefixLength\"\ + :29\r\n },{\r\n \"baseIpAddress\":\"194.255.242.160\"\ + ,\"prefixLength\":27\r\n },{\r\n \"baseIpAddress\"\ + :\"195.67.219.64\",\"prefixLength\":27\r\n },{\r\n \ + \ \"baseIpAddress\":\"88.194.47.224\",\"prefixLength\":27\r\n \ + \ },{\r\n \"baseIpAddress\":\"203.66.205.0\",\"prefixLength\"\ + :24\r\n }\r\n ],\"ipv6Addresses\":[\r\n \ + \ {\r\n \"baseIpAddress\":\"2001:2011:c002::\",\"prefixLength\"\ + :48\r\n },{\r\n \"baseIpAddress\":\"2001:2040:c006::\"\ + ,\"prefixLength\":48\r\n },{\r\n \"baseIpAddress\"\ + :\"2001:2060:bffb::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2001:b032:c101::\",\"prefixLength\":48\r\n \ + \ },{\r\n \"baseIpAddress\":\"2405:8f00:edca::\"\ + ,\"prefixLength\":48\r\n },{\r\n \"baseIpAddress\"\ + :\"2405:8f00:edcb::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2606:2800::\",\"prefixLength\":32\r\n \ + \ },{\r\n \"baseIpAddress\":\"2600:40ff:fffb::\",\"\ + prefixLength\":56\r\n },{\r\n \"baseIpAddress\"\ + :\"2a02:16d8:103::\",\"prefixLength\":48\r\n },{\r\n \ + \ \"baseIpAddress\":\"2600:40fc::\",\"prefixLength\":32\r\n \ + \ }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\ + \n ]\r\n}" headers: cache-control: - no-cache @@ -202,7 +307,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:24 GMT + - Tue, 25 Feb 2020 19:38:25 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml index ff746f5ba75..afe810541dc 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aj0INO0ZevJDpfGGbPl9YIM; expires=Thu, 26-Mar-2020 19:38:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8klLoZNsodr1XOL-jFjaBY088Rjok1bHJHmS8sUBqKh90YxGoItZVZbvRyjzXzug2JjPuG_GIBAszI35xL_nmtMKBOP92s-8TBDrCoHQr5AYxHJgT4KP1FHgcimnY1O1SE9BDzy9p0iiTpvg20WWfR-Y-MYjzA6T4uwTQEHRtYd8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,12 +72,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-06-15-preview response: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +91,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:24 GMT + - Tue, 25 Feb 2020 19:38:28 GMT expires: - '-1' pragma: @@ -46,6 +105,65 @@ interactions: status: code: 404 message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:29 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=At0vB5bAzp9Jq05P7gzFqfA; expires=Thu, 26-Mar-2020 19:38:29 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8dIagS6527gBdnWdAd1aZMS3rhCD5XzOK3i5ZVUTZMHqbpva8F8tnpu9U3NTQDL1ammhKAhix6dbLQ0vhBgsd5HYx74HcbVoZWukxGQOO0loeuqdhAwauePyxr6ozBgdr2G3cD2EK6zsdgN5Q6Us9c-1_oTd6eHbPo0-j4RNggewgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -60,15 +178,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:24 GMT + - Tue, 25 Feb 2020 19:38:29 GMT expires: - '-1' pragma: @@ -91,6 +209,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtF0iq8f2x9BhKy74hfVFys; expires=Thu, 26-Mar-2020 19:38:30 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8xTkNQBKvOAS_lZ_KWDhOS5x4FwUiFTSLEgbZOAvOgqtdz3CSuIk84VdSvu10kdqykimqsHTvZV2ownCg9ngzftDieXExPP0sZyG87UBaH9zDye0wUuUl5l3VxmyWiY4GXO1nU0IgvR-Y0vJ6PllKunqtGUbGO-6yfyREn15yR34gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Akamai"}}' headers: @@ -109,21 +286,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dacd8f58-7bdf-4119-8478-016b56df3f1a?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4a1efd0f-1771-4249-9d65-e00814a0b064?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -131,7 +309,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:31 GMT + - Tue, 25 Feb 2020 19:38:35 GMT expires: - '-1' odata-version: @@ -147,12 +325,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Amx6myt-AZJIoIGw8t-SII8; expires=Thu, 26-Mar-2020 19:38:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8hDdCbGpBLaMVgbqrVkEcnK-IPV0QpPpB8RSHQt-lIckIjstsZ_q2rEOhilq4bfhLyJ9BYWisxZfbUE_5Hvm2_mGmXoAMc4AhZ5T3d5sYXUQyylmIovCMWrKSQioK4bbSQYD3gL_dwB1yz32c_-B3r0-3NjmfTx8w5ADWFo_dd3sgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -167,14 +404,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dacd8f58-7bdf-4119-8478-016b56df3f1a?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4a1efd0f-1771-4249-9d65-e00814a0b064?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -183,7 +420,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:41 GMT + - Tue, 25 Feb 2020 19:38:47 GMT expires: - '-1' odata-version: @@ -207,6 +444,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnEwZs9r3FZPk646nkYL37Q; expires=Thu, 26-Mar-2020 19:38:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8B0h4KTrUQL9WtRwEIphav6TCiTcZf9ZK7W-hcifeY91KhcdQX9LASFpOAzpYXRd78crB41DUxM_txy6rfCiFKiPd_7gxIkVKw4zO8S7JAUOqZDk-oywZqoi-9oF-I3JO2SoKsLremmAIPOqWhV-X8Y2nHl2Xa-38OrBrO1Fe6TYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -221,16 +517,17 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -239,7 +536,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:43 GMT + - Tue, 25 Feb 2020 19:38:48 GMT expires: - '-1' odata-version: @@ -263,6 +560,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ah5dQsM2bUBOjyH9E1C9F3I; expires=Thu, 26-Mar-2020 19:38:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH80LKKVpOfUUIzi8qy5WF7a4_tdFhBkcaWpkLS6v1-N0j-RmRMWdwQBUq19ke4O6Wnz6oKScXhssoxD_CsRotKe9HADFeidPvYIQhk_1g9aIuaLmFcTOvz9T8bf0s-GjfSXV9W4QQjCR-PbRqSiiMJrMoxYnsdFeoBc5vN1LOBrqIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -277,12 +633,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-06-15-preview response: body: string: "{\r\n \"value\":[\r\n \r\n ]\r\n}" @@ -294,7 +650,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:45 GMT + - Tue, 25 Feb 2020 19:38:51 GMT expires: - '-1' odata-version: @@ -318,6 +674,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtndCNzzPfdPiMnm8eqEk3I; expires=Thu, 26-Mar-2020 19:38:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH80J7thaqGKWIp3rB7a3bmPXV1p-kryB7CgbJQ0uuswAQCnN_bWojdUqAqdXArsCAk2pgquUyU69eGMooDrxdK7MCwDTD0Db6r--CZdqdmmjC6MreNJJvfFAofb9T6ZzRfGMOib1VeNWhWFWQrybhnWAsVGw3YgQOZyHyoGzFKc-AgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -332,15 +747,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -349,7 +764,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:46 GMT + - Tue, 25 Feb 2020 19:38:53 GMT expires: - '-1' pragma: @@ -363,6 +778,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:53 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkrLxlQWKL5Ei9DqH1xBoAk; expires=Thu, 26-Mar-2020 19:38:53 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8gCS2sTZRtqbeCDGcHJ6ND2YEi9aOEM_t3UAYzkbro7jMjNZp9UqtWhZTNw0dINPHdmHe6w2KTjpwUXs625R2Akzq-3xXS74YiYaIhx8mYZ2X1j3rduhU_B1PLsom4qSATRh34xT8MNxGVNSg8jziH8BHQ9TW9-iPGbG3kbNWLNQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -383,31 +857,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d686f2f6-9103-4d4e-8daf-a98ced266602?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2d83515d-88a8-4132-a93c-49c117eba50c?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:49 GMT + - Tue, 25 Feb 2020 19:38:59 GMT expires: - '-1' odata-version: @@ -423,12 +903,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:09 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuAl1Hplf6dGul8823T3Km0; expires=Thu, 26-Mar-2020 19:39:09 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lvZm3ZwVeohr_6gAojkXr1HCSie801qWB0pyyI-tQB8i14yO6d1pI0eGJZY_M7lCXuoAw_uNVUrnxiaHvrPDhe4HNlHlEfONmGcnWOSTUFetzOpjbWqq8WWfKwPfCDTWZxUrVtpiedf4ro68QZ0HOqlCcA6R9VnxIN0j5vO-kgkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -443,14 +982,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d686f2f6-9103-4d4e-8daf-a98ced266602?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2d83515d-88a8-4132-a93c-49c117eba50c?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -459,7 +998,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:00 GMT + - Tue, 25 Feb 2020 19:39:09 GMT expires: - '-1' odata-version: @@ -483,6 +1022,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:40 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkjOPocFmLZIoe9ONq7YmbM; expires=Thu, 26-Mar-2020 19:39:40 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8nRydtecLC3SUghFGpKzCnLfxxpxKtmXDVvDjU1txUsXU7grU0V98WYOfGtn5pEtPYj8iM3MzRjynobzvCl5s4dHvq08yG_iBCNo3dBI4u2jwNVw1WlK12c3_LD0qOQ9XcUSxx-HyDtYwbxzxRao9Dy38fKI_IsQ6N5fD92yWMpwgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -497,14 +1095,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d686f2f6-9103-4d4e-8daf-a98ced266602?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2d83515d-88a8-4132-a93c-49c117eba50c?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -513,7 +1111,257 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:30 GMT + - Tue, 25 Feb 2020 19:39:42 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:42 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsM6oPAaogxCnrikbD6Aj3Y; expires=Thu, 26-Mar-2020 19:39:42 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH846HPShtfOlXjfCj5xnw_rLEPJFEY31DC4vJxp2YWSOUSlfVP9gInrko1JSl7Zip06e5I0yls_sOoTaKRe35oUUdBckztXf6EqGp8FYELid5uWccyT-C1u2VLNRcHrzuR0z2MESqsTZzPTwPtt_U_Sbx9pq7pzpc3MTpD3ylJ8PEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1023' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:44 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ah9CxBPVpn1Gjh8YOWiHeDs; expires=Thu, 26-Mar-2020 19:39:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH81LibrmdN3s3sj8M3WAHnhRJ_amltCCkBnQAcip7Rd4hGI3CxgtzIur_SfVlMcvBb97YRY_W8hzVWp8SehrHIHsxKaPYQxUHO6RQf-_vzfEpQTSJZpkEAltZnK01qthxXy32PrGYaARbwr27Vhe-8qHO8t3YdCYcTkET-2cHAd0EgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"endpoint000002\",\"\ + id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n\ + \ },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\"\ + :\"endpoint000002.azureedge-test.net\",\"originHostHeader\":null,\"provisioningState\"\ + :\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\"\ + :true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\"\ + :null,\"origins\":[\r\n {\r\n \"name\":\"origin-0\",\"\ + properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\"\ + :80,\"httpsPort\":443\r\n }\r\n }\r\n ],\"customDomains\"\ + :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\ + \n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\"\ + :null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\":null,\"\ + webApplicationFirewallPolicyLink\":null\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1123' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:39:46 GMT expires: - '-1' odata-version: @@ -541,57 +1389,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint create Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '978' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:24:31 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:46 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArF66TNsXKtEqapOrY528MQ; expires=Thu, 26-Mar-2020 19:39:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8InU0RL5jV4zgU_oG1YIQhNYwWkH115ZfLyn1qywVXTa-NT1PzcqAAQw7uSQvSxEv7B-7zWvbpSh2JeqJrq5aNZ-4UsOSxP-FSeLNj636AU6_yhb4wvDddVwLoCaBQrYSQYMk_WHFC2n-AhC-8i1VuZpvQ5jovlMyMIISjNl3LWcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -603,35 +1452,41 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint list + - cdn endpoint update Connection: - keep-alive ParameterSetName: - - -g --profile-name + - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n - \ ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n }\r\n ]\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1078' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:33 GMT + - Tue, 25 Feb 2020 19:39:48 GMT expires: - '-1' odata-version: @@ -659,59 +1514,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint update Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 - accept-language: - - en-US + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '978' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:24:34 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqFX2WkIY2NHiYyt_w8PJBI; expires=Thu, 26-Mar-2020 19:39:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8BRlt_ghKzdFsWvtHsfqt-JAXQUHChItIuhiNY0pLUVMxveBvM8o4TpZai_pXaLgSlZB_CUEcSla9n6Ejp3Q0el6wMq3K2NAq2-Fa70V2IYUhyOe6v3-YpL0qW1r4_06JFjB-6g7dth71TT5z9MzrEayQjWR-issOKAWeMRvBTv4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -736,36 +1590,43 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":false,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\",\"application/x-javascript\",\"application/javascript\",\"application/json\",\"application/xml\"\r\n - \ ],\"isCompressionEnabled\":true,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":false,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\"\ + ,\"application/x-javascript\",\"application/javascript\",\"application/json\"\ + ,\"application/xml\"\r\n ],\"isCompressionEnabled\":true,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/384b7beb-4866-4b50-8857-890c9b2d5cf5?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ad084c68-d587-432e-8671-6f1d663e3945?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '1120' + - '1165' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:38 GMT + - Tue, 25 Feb 2020 19:39:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/384b7beb-4866-4b50-8857-890c9b2d5cf5/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ad084c68-d587-432e-8671-6f1d663e3945/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -779,12 +1640,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '0' x-powered-by: - ASP.NET status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:00 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmNdDbdhkJVGtIcLkejhUXw; expires=Thu, 26-Mar-2020 19:40:01 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8MLutKEejvRfIgDwec8I0t1VsJp_Z2VNvtuvXuQAx6mERTV8D80sxrPgvfLbiJKHJ6KHluN_tK0LjWQepumeJaH7k89c13Hi2-krTYfailnZv28CawaG_Ro4wBGIptrz8EwHn_T2hAr1byeDDhXkrqMft95KBsLXq4VbwiAWxzw4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -799,14 +1719,14 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/384b7beb-4866-4b50-8857-890c9b2d5cf5?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ad084c68-d587-432e-8671-6f1d663e3945?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -815,7 +1735,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:48 GMT + - Tue, 25 Feb 2020 19:40:02 GMT expires: - '-1' odata-version: @@ -839,6 +1759,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:02 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjwtYzGfRsdGl9k5VMANCec; expires=Thu, 26-Mar-2020 19:40:03 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8cxrlwYUZdj44SMFj4nmA--lMNCvwEbKaj3utHAQ6xHc2V9Icp4jdmq2fTnejForb7VWR_DoDU9MoAdvUFRYlTdyVczDMoOeV3g_vERJOQmOhr0tHLH1aGOR4xy98ixyEpKr8JGvfcbGvt3Rp1rzTNggpt4sYQpPPa0jafjKfGjMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -853,28 +1832,35 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":false,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\",\"application/x-javascript\",\"application/javascript\",\"application/json\",\"application/xml\"\r\n - \ ],\"isCompressionEnabled\":true,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":false,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\"\ + ,\"application/x-javascript\",\"application/javascript\",\"application/json\"\ + ,\"application/xml\"\r\n ],\"isCompressionEnabled\":true,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1120' + - '1165' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:49 GMT + - Tue, 25 Feb 2020 19:40:03 GMT expires: - '-1' odata-version: @@ -898,6 +1884,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:03 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AodYHR2Ik8JJuqy--tzJVd8; expires=Thu, 26-Mar-2020 19:40:04 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Wr2wHbkPYwC6zNyqtwY1I1S8v5VOtix8F1NFfmhUsZqCeI032eIQSsYMJIJQLQb8PXSoR1dYaFSKP14mibtvTy2QzXxyT4VipdshXNRRHajtYeEsyjN4ktrXquCb0tm6DABAxV7ZUK_Snwamz0y26HkdsreQXFWcdhFFp3BvGZEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -912,30 +1957,37 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":false,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\",\"application/x-javascript\",\"application/javascript\",\"application/json\",\"application/xml\"\r\n - \ ],\"isCompressionEnabled\":true,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":false,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\"\ + ,\"application/x-javascript\",\"application/javascript\",\"application/json\"\ + ,\"application/xml\"\r\n ],\"isCompressionEnabled\":true,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1120' + - '1165' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:50 GMT + - Tue, 25 Feb 2020 19:40:05 GMT expires: - '-1' odata-version: @@ -959,6 +2011,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aq8iPkEuWG9DpKrEY33CK4w; expires=Thu, 26-Mar-2020 19:40:06 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8QWXKkXalXjh_yvKFCmNgT50U3_cSyq6bskrku7pK12Pw0PyRk5QpuwiFCCzgFGQyPrvEmKci332O0bDp_1R_9MRKA4Oul87ymPs4R1pDTjV8IzLi6TQqyvwhO_xZ-MXQZMM2rMO_-ACTGyDeG_IU0OtTK-FLObEw3DsC-rzR4_ggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"tags": {}, "properties": {"contentTypesToCompress": ["text/plain", "text/html", "text/css", "text/javascript", "application/x-javascript", "application/javascript", @@ -980,36 +2091,43 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":false,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\",\"application/x-javascript\",\"application/javascript\",\"application/json\",\"application/xml\"\r\n - \ ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":false,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\"\ + ,\"application/x-javascript\",\"application/javascript\",\"application/json\"\ + ,\"application/xml\"\r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0907a23-5ce8-4de7-9c0d-85e38a1df315?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d0f049d7-73f7-471e-8ca4-80a25ed19b71?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '1121' + - '1166' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:54 GMT + - Tue, 25 Feb 2020 19:40:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0907a23-5ce8-4de7-9c0d-85e38a1df315/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d0f049d7-73f7-471e-8ca4-80a25ed19b71/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -1023,12 +2141,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '0' x-powered-by: - ASP.NET status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:19 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjEXnElHMvpEr9DiSNDZn7M; expires=Thu, 26-Mar-2020 19:40:19 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8j-FSwtNMjxwzz5EsYSiHjV5VLXBLsvir8lz2o_Q3bHrijTQWMUCcpvcIBs_4BdCftrx-7jvsmldsDuk9lVb9Xts6isfOBgCWHmbUkw9jk6wu384wfkDLu5t6wBNNTV6N-yi1Ma0fA1euQS8TG94JNTmwY6TtPBXxR1gXAIbnymEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1043,14 +2220,14 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0907a23-5ce8-4de7-9c0d-85e38a1df315?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d0f049d7-73f7-471e-8ca4-80a25ed19b71?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1059,7 +2236,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:05 GMT + - Tue, 25 Feb 2020 19:40:21 GMT expires: - '-1' odata-version: @@ -1083,6 +2260,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:20 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AogAOkM3PHBEi9hBW22YbGw; expires=Thu, 26-Mar-2020 19:40:21 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8rkC-_OVjmb_9jA9duTOUXQFrZ0diqTxBT1l09OGDWx5zgVH_lERQQ4LRVD8OSrVcLTtV17NOb-IojbKiIZBe1fjGGq6HXJwqjaKb2UxkWAVCw1t752rWVWkk7MHEUuGrkJ6hKvzgHEpTIh9UlL07rQ1QWJ2QYCoFKCn7C5yxrc8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1097,28 +2333,35 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":false,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\",\"application/x-javascript\",\"application/javascript\",\"application/json\",\"application/xml\"\r\n - \ ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":false,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \"text/plain\",\"text/html\",\"text/css\",\"text/javascript\"\ + ,\"application/x-javascript\",\"application/javascript\",\"application/json\"\ + ,\"application/xml\"\r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1121' + - '1166' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:06 GMT + - Tue, 25 Feb 2020 19:40:22 GMT expires: - '-1' odata-version: @@ -1142,6 +2385,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:22 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvOu_dnNDTZIpuL9siAxKYc; expires=Thu, 26-Mar-2020 19:40:22 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH83bAX_tCg1OVL9h5ek0ACpESvSJQlKW0ahsI4aOAbcfbBJjMzChQ9P4wvUyt7A_TSPI8qKSRC2I35DtFcCoKZVa4c0geSb_Tv3C5QZ5psrKfc1oqliWqBXWX5V2OiRpjjxKpkWXzGmbnYSme5vFtN9OqCf--Qe36qsjzM5yRQytYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1158,28 +2460,28 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f3641807-fc1f-4c1a-931b-e66fb5e260bb?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6f678828-3772-426c-a78b-30048c085519?api-version=2019-06-15-preview cache-control: - no-cache content-length: - '0' date: - - Mon, 09 Dec 2019 19:25:08 GMT + - Tue, 25 Feb 2020 19:40:24 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f3641807-fc1f-4c1a-931b-e66fb5e260bb/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6f678828-3772-426c-a78b-30048c085519/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview pragma: - no-cache server: @@ -1201,53 +2503,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint delete Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f3641807-fc1f-4c1a-931b-e66fb5e260bb?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:25:19 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:40:34 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtZjSQ7Y-A1FiM-ABaPLRY0; expires=Thu, 26-Mar-2020 19:40:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Yz_iscrivsnL6HDClmQC6IMc29OjyoXP7r9IKVYYHJbWiAwxNtJUfWGPTg6bX5_Zvkn1QTi6YhstXQQWH31t1vLZwvZ3PGeNDgwKcfz0-p6GRux6m1y5ewwbHgpybLOKV8ANJJpPeyNpEMROH2NYvQbM-2DChUW6L__hbjrh6xAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -1265,14 +2572,14 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f3641807-fc1f-4c1a-931b-e66fb5e260bb?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6f678828-3772-426c-a78b-30048c085519?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1281,7 +2588,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:50 GMT + - Tue, 25 Feb 2020 19:40:36 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml index 6b61068b952..f203ad73f9f 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ala2kLvQcUpCvMN1E5AbT-k; expires=Thu, 26-Mar-2020 19:38:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8WXQyAtgzdUFpj2WuebdWVMM32aEyecgvATTL25-WKSOheGuprazLInPTrgxxNzRrFrfoC8BGGgrjDCcFH-RBWE8KmYPhMDQs2G5mLQ5hKylOi6X470-VS7KKeuG1HMfCCWQn63FjhiuZxYVkNfpGn1r7nysVF8xYf-x4oUoz_asgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,15 +72,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +89,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:24 GMT + - Tue, 25 Feb 2020 19:38:27 GMT expires: - '-1' pragma: @@ -44,6 +103,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmmQ-CJWCnxIk100F1ANRGs; expires=Thu, 26-Mar-2020 19:38:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8U1rYXQtcB3w-enAMpU0x-CIZgIf5ckFnUv-25Zd8WNqR0MWOJp8DqHGV32VoO_9zfAqtpBnzJPoV4JVWKR77afJr_0V_6VBkQOoySdwVKfdS1C4MXDMGX3saEH07d6sv0W1PvoiqvQz4dVYLc01am8nTOMSP4tDMp_zPgWajwSggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Akamai"}}' headers: @@ -62,21 +180,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"Standard-Akamai-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"Standard-Akamai-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e515b9d7-a158-47fa-b131-7c1bdaa66210?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52e97a03-eee7-4ea6-aec8-ee9b765e8276?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -84,7 +203,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:31 GMT + - Tue, 25 Feb 2020 19:38:35 GMT expires: - '-1' odata-version: @@ -100,7 +219,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '0' x-powered-by: - ASP.NET status: @@ -110,53 +229,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn profile create Connection: - keep-alive - ParameterSetName: - - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e515b9d7-a158-47fa-b131-7c1bdaa66210?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:41 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:38:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkI7r9W8i5dGug2fjENuJP0; expires=Thu, 26-Mar-2020 19:38:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8GCPptNZUFECa3Pn1m9YL6VRdu98K1McuKLB9PtLJImL_CX84ZCiuJrLg63mxDS5fC9s6EK_CbUiflYwRT36HN-igccNGf5H9iU-1qcshmLA1jP2d87-m1ykQGV9YEFphto8BTQKlq0ZlvFsK-LPT3QS0NUVDgT3JzabbdoHUSjggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -174,14 +298,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e515b9d7-a158-47fa-b131-7c1bdaa66210?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52e97a03-eee7-4ea6-aec8-ee9b765e8276?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -190,7 +314,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:12 GMT + - Tue, 25 Feb 2020 19:38:47 GMT expires: - '-1' odata-version: @@ -214,6 +338,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:47 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AiQ_juKxxadJqvAP6wpFslE; expires=Thu, 26-Mar-2020 19:38:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Fh-j39k_qW3hHiq9T-61tp2AFDWv3aKe91MkjdrZrk-48Y1hUnnTBxN4NPFZLrgrLqpFOh3V3WvWr_g-vpl_c-DDoW2tK0KAPwF4Qi-Ev1QteYy7MtumpM8URHNzxchJ8vdnmoFwCZqgjx6JnuMfsktVoG9nsojk7VTu2BtCNG8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -228,16 +411,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"Standard-Akamai-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"Standard-Akamai-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -246,7 +430,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:13 GMT + - Tue, 25 Feb 2020 19:38:48 GMT expires: - '-1' odata-version: @@ -270,6 +454,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlFZh6Rz_YNGiPEP0U1Q2Zc; expires=Thu, 26-Mar-2020 19:38:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8CB48qpGoVw56Km0JvIuZPw1avdiEQzbB2kFCJaSAMexcAK_CmFmhyjXAcbQtqC5FzjU-4QA2hwXFyI-65wzO_hBd8g7qrjwIdiiZhUj1CIyK5KqoFjK4QfFhROhu-0uzFbGdDiQuGHxkICPM_UA93uFNaEdD2Go62dhXwKcTGQggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -284,15 +527,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -301,7 +544,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:24:13 GMT + - Tue, 25 Feb 2020 19:38:50 GMT expires: - '-1' pragma: @@ -315,6 +558,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhGLmmtOIB1Ei34A8Mnjkow; expires=Thu, 26-Mar-2020 19:38:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ADu-GBu7gqC6gWh551l9oI3Et7FcfQC_tr21psHiyhl0pJ_7gVU6BV8eSU0SIIv5HgFPdCKt1CAjJPF5AWFTcj0F_d3Hw_ppIATZEBtTFPCIRUr8-rUfru-qP_9hDJfjYYWJ4VvL9dNN0qU0QvExLXaR91WQPmJ1_sLprCLGZyEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -335,31 +637,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53c05c10-bca2-4bb4-9861-e1b87e786e34?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1bb6933d-2668-4066-9845-7747bc280401?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '991' + - '1036' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:18 GMT + - Tue, 25 Feb 2020 19:38:56 GMT expires: - '-1' odata-version: @@ -375,12 +683,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '0' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:06 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ao6NmXrxdjNMjJvRpf5wTr8; expires=Thu, 26-Mar-2020 19:39:06 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8xrfvN4AFDLUbEnl20VujHqOqrVH_Jjx_DeN_umY4HNdnPcndCKyVZ6zL0CvX7XFvSIoLF5cCO1HPwbq5dSOaGq50-zbufgzX_HiYo-U4SivkXSyRTCM25Vn5-dmrN9Vcoe0J3iJQEHXxeRSQ-zm2mQu-MjoEM1JQlb3uFXufhk0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -395,14 +762,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53c05c10-bca2-4bb4-9861-e1b87e786e34?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1bb6933d-2668-4066-9845-7747bc280401?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -411,7 +778,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:29 GMT + - Tue, 25 Feb 2020 19:39:07 GMT expires: - '-1' odata-version: @@ -435,6 +802,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:37 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ar-scd6PHhlFqxV0QSFxOIc; expires=Thu, 26-Mar-2020 19:39:38 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8c0JhfHtF7XBc_4etvjcc0I9Yc37nSiUQg8PxUjvaSA0Y31jvw3NxvLfVYuYa-0MpXz6gBFBYj35SeTAGPBZAhc-wyjQDOCLOaizOsirBSI5e_Pmxaen2vXmiwazAl9_x4opDBuRiS_FqxueuQ93OZoLZwlyh4gpaPrCscP2_9GEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -449,14 +875,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53c05c10-bca2-4bb4-9861-e1b87e786e34?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1bb6933d-2668-4066-9845-7747bc280401?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -465,7 +891,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:59 GMT + - Tue, 25 Feb 2020 19:39:39 GMT expires: - '-1' odata-version: @@ -489,6 +915,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:38 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=As3MApb6VKpGojC-tD8s82U; expires=Thu, 26-Mar-2020 19:39:39 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8H_xNe5jcCxtos6onYdvPYEtJ3kc9pV1anIyq6vBZofHYVAY7bljnmV1c82zFgefpAFipd22LPyxQ5QTQXRuxoGN1tMVXeUKCSv_-a_ILxxymGDeJdttnuf1WS0X04KKXDtfLCi7vzqlKp10Hl2mCYr4FH2DL2ee0iIMipFyLtmQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -503,27 +988,33 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '991' + - '1036' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:00 GMT + - Tue, 25 Feb 2020 19:39:40 GMT expires: - '-1' odata-version: @@ -547,6 +1038,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:40 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvKpGvjK9lRNlcLZQFu_aJk; expires=Thu, 26-Mar-2020 19:39:41 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lzocbMBuf-DiNKlSqGWlLG3AUHrIHysYQVthUjSxO18-YAtayjiajjhWzYRm2ya8LsdhSSDRXMt1bs6UWzX2FjJpJwS-6_sPVYjQlgG6MUp0C66XW5G0qZ1VJ0Y3q1XAIPf2ghaItMOcW8gs4_qzPGIy0shnB8dAPalxDcR9HbUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -561,15 +1111,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -578,7 +1128,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:25:00 GMT + - Tue, 25 Feb 2020 19:39:41 GMT expires: - '-1' pragma: @@ -592,6 +1142,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:41 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApHNcXqyDQxMjC4GZ45WUxA; expires=Thu, 26-Mar-2020 19:39:41 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ELTK_FUiEf2AZN6EyAP4HuruNdeXEiYP6keZc3xeTbAyoJ_MyhD_U_9qfs1poDQ5Bft248nQW4CsB3NmosfmbpP4EKPwVfZNdYf8oT89-EwfRLonZSZbig4Ut7nnqXQ-kZbKG5pBTW1Lsd8FArLTtgVPbfbpArrhBkkRCQjWX5UgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Verizon"}}' headers: @@ -610,21 +1219,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"Standard-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"Standard-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2cb00389-5ecf-4300-b8d2-83c230d26707?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76d3643e-a2ea-4157-b250-25b890769a55?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -632,7 +1242,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:23 GMT + - Tue, 25 Feb 2020 19:39:46 GMT expires: - '-1' odata-version: @@ -648,12 +1258,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:56 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=An-vDqffsMlPlgQH1nslDaY; expires=Thu, 26-Mar-2020 19:39:56 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH87U0Ra98JAEga4VmZu54dsY1gcsdU9BXMX8FgWYDat0Fbuq3sPP6mueVjp96GTvXhq5OlIGEJsRbjupLeTkrlmdHsxqwEXaebyJrTLlNbrXWpMal1PuiIihURmcTuDpzxHcfM27Ioo1S7S_RfgThoU8upicD6SrTbJgJgSCsFZlsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -668,14 +1337,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2cb00389-5ecf-4300-b8d2-83c230d26707?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76d3643e-a2ea-4157-b250-25b890769a55?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -684,7 +1353,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:34 GMT + - Tue, 25 Feb 2020 19:39:57 GMT expires: - '-1' odata-version: @@ -708,6 +1377,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtVApggcdM1Cnd9cOqNqAac; expires=Thu, 26-Mar-2020 19:40:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8s3jBRv85b5xTURNiFNTkiIcOKr8hJvirpmUJR9yvajt6OWNtelL0SW0QX4kYJmi_wrJ1716Y-gwy7TkRoQYRYPRVgIDCMtTRVMhpeyzDLO4xcVpSCi1XC1R0BpAOP2wDOXlsNW15JB4F4HrOqyfB96jNNz2gw8L2cRu8oEWGZ84gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -722,14 +1450,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2cb00389-5ecf-4300-b8d2-83c230d26707?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76d3643e-a2ea-4157-b250-25b890769a55?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -738,7 +1466,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:05 GMT + - Tue, 25 Feb 2020 19:40:28 GMT expires: - '-1' odata-version: @@ -762,6 +1490,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ahwrt27KdbJAhqoP7oihQ5Q; expires=Thu, 26-Mar-2020 19:40:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8KWRuq5wFy1xEQ0EJHqHB2GZPwl0fpmleO3hg5abVzTk4x1ijpcgRAV7o2BNp4h8ibL1Oy1nFf4_KcqPi2_UWEb3thg51xMV2DZHstNIMsSlf3wfVmfB2EFiyf7TI4SR0fVvp9VgvT-uqLLbwP66SsYKmM3o9ivEOIjnnmFYgJaAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -776,16 +1563,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"Standard-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"Standard-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -794,7 +1582,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:06 GMT + - Tue, 25 Feb 2020 19:40:29 GMT expires: - '-1' odata-version: @@ -818,6 +1606,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:29 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ajf8WahBRNNDtySBDh9IOuA; expires=Thu, 26-Mar-2020 19:40:30 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8fNgLaayqmhctz5V9NuZPgP6Xi4qN2EAtFgxqiOWvDf4BXtN3RGV9HYeAT__cIWFwTLxcFUS6UpYs9uxt0wWE9zMptytYq7_5ZQvhdjXy_L9_pKHdqaWJ2VwFgNyUxGfxtgrd2OrFKFNOLYxr9fQvm-i7OyCckP0beKJfmGRttB4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -832,15 +1679,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -849,7 +1696,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:05 GMT + - Tue, 25 Feb 2020 19:40:29 GMT expires: - '-1' pragma: @@ -863,6 +1710,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArB5FDCSozZCmBMY4IZN8Z8; expires=Thu, 26-Mar-2020 19:40:30 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8aPfelma83DL9gF4Y-RnFlgnoUB0ow7w2jl23XwjYyK_SfmubicJbQCfW4Rw89N3gTnHlrSb5jfOG1tl04QRJsafSlXwGHNKJAXsrmpSWeb6g2f7HACUGbnVmhnAmrsOc531N5uU-uDsF80etNP7r6bf3RUI6pL5vKsv3zef-HuEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -883,31 +1789,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000003.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1ab7dccd-1e85-4009-ab6d-c5c028d7034d?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a85a3b2e-2d1b-4814-afdb-87e0584f478e?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '992' + - '1037' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:12 GMT + - Tue, 25 Feb 2020 19:40:35 GMT expires: - '-1' odata-version: @@ -923,12 +1835,184 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '1' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Al6dLq9kM7hLufIykT1YKc4; expires=Thu, 26-Mar-2020 19:40:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8xBrTMqOfD6LYB2UfiPVaKRngPoKAvvk0V4rGncpozQ0IzsJX0D-9FTe2zuJM9sYb06EKfxlbEfSWR4evyMXh0BsF_Dkx6gTqrRdavyPs8EkeSH8PJxsQUOglHoHL0CUn3-bs47wSPpWVTZ2qVP6DuYlouUK_MwTXriIYfi081pIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a85a3b2e-2d1b-4814-afdb-87e0584f478e?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '78' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:47 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff x-powered-by: - ASP.NET status: - code: 201 - message: Created + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:17 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApmiPHnp_C5FgHcJ8EEyIjU; expires=Thu, 26-Mar-2020 19:41:17 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ReqAXq7lKpeqLP9_dREisq5fAmMWGxxgWw49yd1O_t0WHZe8FqsXPAPdpnFfgeFcuwuF1f3XFsdDNqZCBWy0sS_0az-coSAcGr06U2P_DfK5O0nZ89e5xPjN1k6LlYyAdimHxY-s9snsz-FkIUFn9jWnAf0s35wMcNQaTXaGR7YgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -943,23 +2027,23 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1ab7dccd-1e85-4009-ab6d-c5c028d7034d?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a85a3b2e-2d1b-4814-afdb-87e0584f478e?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '78' + - '77' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:22 GMT + - Tue, 25 Feb 2020 19:41:18 GMT expires: - '-1' odata-version: @@ -987,53 +2071,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint create Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1ab7dccd-1e85-4009-ab6d-c5c028d7034d?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '77' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:53 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:41:18 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aqv4dqm93O5EioYPxKX4Q2M; expires=Thu, 26-Mar-2020 19:41:18 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8X_ExH9SDkM9ovx1IRCSuz_iipahSR1yxXA0zNT__IlNIP2mGSoyX6dm_SBCvd7a0c4VTzTTa7nl2KPGxQ2xZQcNn3nda25zUPCzgKUieEptyzWZTTg7TJqSbdSoCI_BCbSiaPJdToLVnyyeHVOd6CCgSI1Oo2JJx_7_YYt8lxlAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -1051,27 +2140,33 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000003.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000003.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '992' + - '1037' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:26:54 GMT + - Tue, 25 Feb 2020 19:41:19 GMT expires: - '-1' odata-version: @@ -1095,6 +2190,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:20 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmADhotWNYlInsapW7kN4uo; expires=Thu, 26-Mar-2020 19:41:21 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8VC9qA6Gw4313cA_PDo-SHMq9_DYQUYL9DRn46xWKfqcFURu9l4GtBKqYh6zYncSscaJHTcUYZsim34hEp8ACt3_I0vva_0QapxA7OsaOsEfVzrmvGnIge_UhlaYho8q7EvnqJjofI-VeZnQJ1Ky0bVTa55f2WPFXecjr_8YMA6IgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1109,15 +2263,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1126,7 +2280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:26:54 GMT + - Tue, 25 Feb 2020 19:41:21 GMT expires: - '-1' pragma: @@ -1140,6 +2294,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:21 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AleRjNR16pBHuO902tfzGyM; expires=Thu, 26-Mar-2020 19:41:22 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Nmktlq6Rx54Oh5rVVjBu0SmVh2peF3yCAz1HDYWu_RYP6l_G4cTkUL8Sr1XtKhDgYaH5Pmh0VRSrhyhP0r857Nt1JWWiP1QhhGW2zpZW1kkFKU7O-ZYCFkwMt2-VXNEN51Fqyhrj9ROuO0fKa0fiqCco_J2t614_KA_I8P589JAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Premium_Verizon"}}' headers: @@ -1158,21 +2371,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"Premium-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"Premium-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b4a140a9-f232-454a-bc3b-546abf3466cc?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b033916c-65b1-4ffe-91a7-a35e57c4d066?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -1180,7 +2394,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:27:00 GMT + - Tue, 25 Feb 2020 19:41:28 GMT expires: - '-1' odata-version: @@ -1196,12 +2410,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:39 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ai-E2cGlZsJOkL6i7G1PMSg; expires=Thu, 26-Mar-2020 19:41:39 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8XWdt8zj1w8xvY9usMaINnM5a6qpJ67RMIM8EuUvqfccLFxa6q4gEXPokoet5b-Qo5gzLDGoWfpzxdbRbSt75PqWkBBrxFKimFcK0AMtnEiVaYuxTsUjC2khcgPO6c-WT3UVpBn8MAGvbGsIkDN8c1fwWs9NLxRlcQR3oXc1aUjAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1216,14 +2489,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b4a140a9-f232-454a-bc3b-546abf3466cc?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b033916c-65b1-4ffe-91a7-a35e57c4d066?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1232,7 +2505,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:27:10 GMT + - Tue, 25 Feb 2020 19:41:40 GMT expires: - '-1' odata-version: @@ -1256,6 +2529,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:11 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Am-juhYQRJ5InFbG-7bKzyk; expires=Thu, 26-Mar-2020 19:42:11 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ItIkoxYpbCjmueyRVtsZxRntHx1z_ltezoFgb-oj2m8L09NsKk8PIZoEJ4C-AUqAUU0KCcQzUDN0Wug0NeohdUN9FIxLhfkK5gvl_z1O25Dj7yv2JhO2ToE_qQ9ZZX6UArqMG6fzXqSFRvm2JSY4s-e7aMPYGmajYiqN2-FiQiEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1270,14 +2602,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b4a140a9-f232-454a-bc3b-546abf3466cc?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b033916c-65b1-4ffe-91a7-a35e57c4d066?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1286,7 +2618,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:27:41 GMT + - Tue, 25 Feb 2020 19:42:11 GMT expires: - '-1' odata-version: @@ -1310,6 +2642,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:11 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=An6sIjKmSkBIrLzfBl0g7SM; expires=Thu, 26-Mar-2020 19:42:12 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8AQfzZHT6eo0RhUoA4xJmRfIJTDjoq_KewkWoiS2Qxi17U_nL14CJZX3tTZak7Q9dvLmIjN5STzw32BteM_Sg7inGwOrXd9mLof4tlkMAQOfNtMbrzDnXhpnaBMXOh7HczidQQeJhcWWMgj4R78GzM95EQfh3eaWkT7DKlp83Rv4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1324,16 +2715,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"Premium-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"Premium-Verizon-profile\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -1342,7 +2734,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:27:42 GMT + - Tue, 25 Feb 2020 19:42:13 GMT expires: - '-1' odata-version: @@ -1366,6 +2758,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:14 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhtAXYC1sxRJk85TlMc5nbk; expires=Thu, 26-Mar-2020 19:42:14 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8GZpRAK1yu0_k7wtXX4_OuE4_-6vq9JTM2MwNuQjc2-S-R346am2vwPAaEofBT7xyUDIxJB4hrHGOA7jVax3hCPZBqCkb-Nz8WB1rjXAjQ86Cg5r6osnva3wHm84rlsZ9EQ3FfepvHWg3-ep1EmWX3bUzPzNmgc_LbY9Z2AUoilMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1380,15 +2831,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1397,7 +2848,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:27:42 GMT + - Tue, 25 Feb 2020 19:42:14 GMT expires: - '-1' pragma: @@ -1411,6 +2862,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:14 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvdsMauJsU1JuUTkbrXuWPg; expires=Thu, 26-Mar-2020 19:42:14 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8nbPCHj71aloIfCzTeSxh6daRgM-9KZtppFuTlH19Kjz6P0qjW3mwetha28HGSKCNcQUmvWZV2PnCrQ3sVgaOrCfHr5ZKTnUcu1JzTid5cWT2iwxiO7vCSj3KHu7TeM97r9WIpj4yaFu_TIFL6erLINRII_L-prhBsHqeZRMLBL8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -1431,31 +2941,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000004.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"NotSet\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000004.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"NotSet\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\"\ + :\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\"\ + ,\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\n ],\"customDomains\"\ + :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ + :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ + \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\"\ + :null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9b251b15-8342-4f69-a08d-644642cc08a6?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f28949b7-4aad-429f-9d70-7d46eb95b6e6?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '980' + - '1025' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:28:05 GMT + - Tue, 25 Feb 2020 19:42:21 GMT expires: - '-1' odata-version: @@ -1471,7 +2987,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '1' x-powered-by: - ASP.NET status: @@ -1481,53 +2997,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint create Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9b251b15-8342-4f69-a08d-644642cc08a6?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:28:16 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:42:31 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtlVdLXwCKVPqV1BFoCIxD0; expires=Thu, 26-Mar-2020 19:42:31 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8gJKBIN0IuGoLwNZr9UIVmk1E3gr3V0IHx_DJXUW70jySWE_a0j5w_vXInK0dDkBLaVahUJEnOdAchNiJd2WXolZdY9w-Jl-Fh9SIY8iKeE41liIxLhcOX5CF4eQr2GyLhLx-ZhIj4DbP_TeiRdxoldY_dZzNP5AxQpsMcNUMlocgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -1545,14 +3066,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9b251b15-8342-4f69-a08d-644642cc08a6?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f28949b7-4aad-429f-9d70-7d46eb95b6e6?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1561,7 +3082,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:28:46 GMT + - Tue, 25 Feb 2020 19:42:33 GMT expires: - '-1' odata-version: @@ -1585,6 +3106,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlduJHvC83dDugWP4jFMh_M; expires=Thu, 26-Mar-2020 19:42:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH81eAWDa86-_YSJwzBVK3NY06ImFUTaIi4s41zYBycV1gGqVkbenKgEsed6UgvCT-FWevzcpOWhcBwejQo54SbOCyBwT0C9tMaZlayMr7Idn_emk0UJACv3bK7zLi2gQQHsPhGLkCXxqWGHfeJqhO2Ta8CGc2QFEywkBP1Vn2HbA4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1599,27 +3179,33 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000004.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"NotSet\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000004.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"NotSet\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\"\ + :\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\"\ + ,\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\n ],\"customDomains\"\ + :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ + :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ + \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\"\ + :null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '980' + - '1025' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:28:47 GMT + - Tue, 25 Feb 2020 19:42:34 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml index 6fb6c626aef..74ddd677d9b 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsmuxNKhLy5Khi8vamUhvqk; expires=Thu, 26-Mar-2020 19:38:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8UY2rrd0mkhlgiIcJALrRobNAmgMm4FfelqcoRg1Sqeb8RRazgqU_7jqIsP7bn0gwJz4-eUkkl1COr62xzU2ALG6opM0xszVA42w_hWPntFE7PXJcr3gvO54mbWIUlAFVl_o_Q8WGWCHG-q0kEyjKQkSrnNI-AUeVMjTMoT8HWBAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,15 +72,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +89,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:52:34 GMT + - Tue, 25 Feb 2020 19:38:28 GMT expires: - '-1' pragma: @@ -44,6 +103,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:29 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgBIppheN5BMqz9jv-_Ymcw; expires=Thu, 26-Mar-2020 19:38:29 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8qXycTKgcQ6sQI8wwLBU1Calp5hzoA9_JRQnNS2aQFohtcUrtgFoOMAjIlQtYyHmMfm9Ds2SS_vZF_RfB2XGyx-DLOHlKMeiYANaySpMD5p8yuymBDAHRuYDOyZiAXIQ3OF0iLgoGJ2AFzxlTJLNT6lOf_6eh3cQugeydf-cCwTAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Verizon"}}' headers: @@ -62,21 +180,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d3960b17-2ea7-4d53-9ebc-5bae952de3d3?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b9a231d1-0ea6-40e1-87f0-cc9c711d7c1e?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -84,7 +203,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:52:40 GMT + - Tue, 25 Feb 2020 19:38:37 GMT expires: - '-1' odata-version: @@ -100,12 +219,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqA-pr0lKGZKiTikavdq-4M; expires=Thu, 26-Mar-2020 19:38:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH87Q4OksEykjZ0SxVT_5mgRp82cjZwsqbGeQgq1GX_yQMUQX1zN4pkTCnkGf_HrU-sTxOvH5Gnyccm5bisIUHPG9qMYj_6zom2cjmTeV7sRvfRJcLhdATWxZ3kVTNnZ9Zx_I9BFhfbYrWztlQZxisjk_hWUit_htjgqsSYfpiSUv0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -120,14 +298,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d3960b17-2ea7-4d53-9ebc-5bae952de3d3?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b9a231d1-0ea6-40e1-87f0-cc9c711d7c1e?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -136,7 +314,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:52:50 GMT + - Tue, 25 Feb 2020 19:38:49 GMT expires: - '-1' odata-version: @@ -160,6 +338,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:19 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArXMyC_Xx8xOhjQrRhxtw0o; expires=Thu, 26-Mar-2020 19:39:20 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NjTu1Nm2ZqHaKdnyhBS1nf6XO82zECF5DO6tSfKOt9j1wv5Z3rBBubQcKOudy-HdAdunlM5ni-_w6LNhMalYfkKPa02AqrVAe_cQ7d69VDU6_z7FgeoXnFnBRplsIIdzFHUuh5QiU4xbhg6wTI6L7zcUrcZaqei_Sq8F9YdYyF0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -174,14 +411,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d3960b17-2ea7-4d53-9ebc-5bae952de3d3?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b9a231d1-0ea6-40e1-87f0-cc9c711d7c1e?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -190,7 +427,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:53:21 GMT + - Tue, 25 Feb 2020 19:39:20 GMT expires: - '-1' odata-version: @@ -214,6 +451,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:20 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aq73_dc8al1DpXTDtNjDtKA; expires=Thu, 26-Mar-2020 19:39:21 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Xb64OLRGWvm45gkvc2bwF0P_9B9yXqUUQ1VlC2qc6M7pwD6o4TT9D5O48bd8sm8Tvn7Omm4ZNDTlbft_1iqjQ1cmGuesuuGp-7idsP1Ec4skx5Vf4TsaA7osknuQNmFMqNlkMv-oKrRWpfTx5eVd5xI5kjt87oM8OUZeTXS9ouQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -228,16 +524,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -246,7 +543,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:53:22 GMT + - Tue, 25 Feb 2020 19:39:21 GMT expires: - '-1' odata-version: @@ -270,6 +567,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:21 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkByn9NocwtNsAiOlHfk5To; expires=Thu, 26-Mar-2020 19:39:22 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8PgIraOta-fEkvQ-aSw2mqEQu9AIlNYGIk8gqCuAzAOYZCdX-bHU9y5355BXvQ3RZu50ARdoR6CxUdBnsAGQ8ZHZywn2y5JkwWXjO6bSzi8R9uYv3SBtTGCfou2nI0jYZuuXMLKIzNjDrseizDJSM_2AvG2nmBEoPOa6XJJwv5CggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -284,15 +640,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -301,7 +657,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:53:22 GMT + - Tue, 25 Feb 2020 19:39:23 GMT expires: - '-1' pragma: @@ -315,6 +671,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:23 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuG9zJ6jH-tDtnC2YmPnNiA; expires=Thu, 26-Mar-2020 19:39:23 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8PP8ZzdjB5plQBj5Ad_qHUe0iPqlceXVbdHTXttS8mHlRznUu9RegiCpy1wAqaI2J1SpEO_3FtTGDI6HY9jyYzBq6g3bQoHRXRzLQsYEUWGU8lBSWKTZHm7gCJkTdaidyObfUxGpN481uMhDMdeHE7gFXTQ2VHyamKjfSJxpNmVogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -335,31 +750,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f8955d5d-3536-4f99-acfb-97c62596b5c6?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c55b0577-ce6c-405f-bc94-683d066e86c5?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:53:29 GMT + - Tue, 25 Feb 2020 19:39:30 GMT expires: - '-1' odata-version: @@ -375,12 +796,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:39 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Anivn2HfOflLvqUZAzfwsM0; expires=Thu, 26-Mar-2020 19:39:40 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8vhnsF0pWZgrs5Lu6-lhn05hE-eJVfWDDbXgPL3vJZ0oqGDudulwC6Us0zSN-DMR04wRDLVh2FFAXaLOvaXCFcXvp4A19zzbJcHbGLkONnce3AxP9vz9IEGu7FJ7fsDIU9iMcYaQLXab8xxuCeRIyKoEte8aqKsi2LhgRcC-8kMAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -395,14 +875,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f8955d5d-3536-4f99-acfb-97c62596b5c6?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c55b0577-ce6c-405f-bc94-683d066e86c5?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -411,7 +891,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:53:40 GMT + - Tue, 25 Feb 2020 19:39:42 GMT expires: - '-1' odata-version: @@ -435,6 +915,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:11 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtKqOrfMzDZJu9ukl_F4zOU; expires=Thu, 26-Mar-2020 19:40:12 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Ce1WGwtMGGNfBoMvEDVWHZ9BOU1RIVIVisz3B96n8HxRdUJB_jukifVYV1EDN37x9QJ4MyhXVS2njP5Rnnz7iwhtmO1GDIWl8ViLgRDPqGP_YdWje_KUihd3BoytA2g4Etw1xBKmCrd7V5cYe2HvXoMRKUPu_qjY2Fs81z7hSNYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -449,14 +988,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f8955d5d-3536-4f99-acfb-97c62596b5c6?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c55b0577-ce6c-405f-bc94-683d066e86c5?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -465,7 +1004,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:54:10 GMT + - Tue, 25 Feb 2020 19:40:11 GMT expires: - '-1' odata-version: @@ -489,6 +1028,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:12 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsogEKOcvcJOr-B4qK-W5Lc; expires=Thu, 26-Mar-2020 19:40:12 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8LA-nHv3BtUaQC3kqyK_Cu9kZ13VMs0Bykmht3zP7dnmSudDBEfuQeCCHmU53PgPbU7E1vL1fnw3haDBTp61sBjkdt3DglQc6OY31tTW2SCSuavwfmZZPADbgLt2DrsUjgu5Je6fVZVfqqP1Me-dbbZA7BCMHaPyuqaHblGEG010gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -503,27 +1101,33 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:54:11 GMT + - Tue, 25 Feb 2020 19:40:13 GMT expires: - '-1' odata-version: @@ -548,45 +1152,104 @@ interactions: code: 200 message: OK - request: - body: '{"contentPaths": ["/index.html", "/javascript/app.js"]}' + body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint load Connection: - keep-alive - Content-Length: + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:14 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApIrf1zdbB5GinPUWsFAB0c; expires=Thu, 26-Mar-2020 19:40:15 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8UDW0sNK5FRz_CgQG392IY9KxrDfVX8u0hCj0v57ICaa98F7zqYKJM4SnXBTNOKeoiOjvmSTtwjHqMxbWmoRMunbyfF24VTswzIrVtKRamHjeEivysriXB5PWHSYKRTo_oqzoBIzQZFcs8yxWFlJQX9BE56DgEipsIfD8JSrNP1wgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"contentPaths": ["/index.html", "/javascript/app.js"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint load + Connection: + - keep-alive + Content-Length: - '55' Content-Type: - application/json; charset=utf-8 ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/load?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/load?api-version=2019-06-15-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview cache-control: - no-cache content-length: - '0' date: - - Mon, 09 Dec 2019 19:54:15 GMT + - Tue, 25 Feb 2020 19:40:17 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview pragma: - no-cache server: @@ -598,12 +1261,749 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '499' + - '1' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Al3EYQENyetMsnHecOEvPLI; expires=Thu, 26-Mar-2020 19:40:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8VRJoOlscgDgvE408RZcbk78XoBPUnZkwh77L2185m6ZKYyfLr25hNfHA9pJJhzOItjZ1rq5pOdEHnxFSgqryMSH6kDj5obSYljLxfZ6N12HTsSJlwoxVwQC6MKHwH-x942Xm03Q_Z_JSpSEN0nxG8UYIHvMXy7UXvRZeccYnGkAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint load + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '78' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:29 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:59 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnBTj7amSTVPjO3e-jJwsdM; expires=Thu, 26-Mar-2020 19:41:00 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8N0KsDFPKL_qQCQlGTZYYV-Qx75nKNoxVfq4LUQYnYO5SrU0mjuW_JI4SGb5qgbfJ-hKXQh63bq9n1JoRclN1cyFsYc-2SL3RaBlEdtU70aAJcuAKGgwjaCO1zNoIfEJtWbhyCMZl6GAeUs2qfuE-A6vbMR3qByTzJ21AaQLBVoAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint load + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '78' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:00 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aq1V7p_6umNPpXdXKBuLZEo; expires=Thu, 26-Mar-2020 19:41:31 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8cnpERpc8-t_DX6aX-zjtUhZ198u_X5jjb1coRxqXeBWf9XuORIjyzWlvMx-hrgNl8u86Hoq91I6MIZicJBBOsnm2rOs79b6ddiYzBH2dhQUAdi4B76C9hBNSSGiyMY8xaZWPZ4--XA1uCJ1Zhpa8lirRbq2nqB0Z1biPkU6jSaMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint load + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '78' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:32 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff x-powered-by: - ASP.NET status: - code: 202 - message: Accepted + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:02 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ahf1pBOwqLNHv6eq06pastI; expires=Thu, 26-Mar-2020 19:42:02 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8nRbYzgXUUlf4ReL2rv7OAH6Zva8tXWsQf2cIQrhx804NZJ7jzGlk7sBTiru-juNiQFUbyngPoiK2Pw3dKo3ch7nkEeVdSE53dCkl27AWkf8OAhD6vG9eP3J4eM86EsYyYzwpUqO0HqSsYqnN9Lbnpp1GV1wITwt2B97iYkEM3owgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint load + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '78' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:42:33 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ag_uT57UtOdEpZSL3-M89o4; expires=Thu, 26-Mar-2020 19:42:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8KsnjUrqL2zifZJDigTZ-wU8nb0e7rgW9hQ-WMx8A2v-7kq3vuz4EVukZrm1LxsJizc_C7OmpCb7bVeT9-x0osAURutueC5Cbwr-a9FgoVV2iToNT7bxLa6Cgq-YSiU7LfimdkoiD4N0KXSHedB6p3pcf03GfG05ObEIBs5PJ3UQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint load + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '78' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:42:34 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:43:03 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Av_sGX4kx4xBvSI1WkDOGpc; expires=Thu, 26-Mar-2020 19:43:04 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NEaydgDTKwaHK8vgOauMXxICCS00kyHljzmOKOtlkYBhzb9t1T73quI3wLNpCxy0DbxLFFkaXryoYJmfvFAwXZq7u7y2NZy_Ai6xNKXeTTvBbuIKnOSPqXlwUMPletEwW40GuF18Olg4pi20pHvzsZz11rQ9jLuqQtxsIzbuNTcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint load + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '78' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:43:04 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:43:35 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AurII5LQNplPtqHwYKDS1ik; expires=Thu, 26-Mar-2020 19:43:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8magwTjoi9P0-zFz-sP1BLTEIwYe9_0yqp63eyyEetJjXrSsaVahpIcxPsmoP_9pXHScG4NPyi2LDJhzqzgyiwv0nHS6wkC-dTuFqLr7WTVAXrG_UZxacKph_hpjkyrCnXPHAvx7PiF2ryNtjJAMQml8GgZFRpsYXYFQl3Dk_cRAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -618,14 +2018,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -634,7 +2034,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:54:25 GMT + - Tue, 25 Feb 2020 19:43:35 GMT expires: - '-1' odata-version: @@ -662,53 +2062,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint load Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:54:56 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:44:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnesHeloRJpBk45ZH5WXi0g; expires=Thu, 26-Mar-2020 19:44:05 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8mByMV--f32m9E8d_pgaHq5BOkCcskWzeRuq_z452kkEttAnU2nUHZ3ZIrl04hstQSDPUcZq6Zv74WUrV2IbFdvo3Qma-pBaBSO6BTLH_wgBqzi7mAgSbdPZ2eSKssULOwAY-8Jj5iSqNggouQ_YA7vfqhJXM6pgvxfl_T55_ktIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -726,14 +2131,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -742,7 +2147,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:55:26 GMT + - Tue, 25 Feb 2020 19:44:06 GMT expires: - '-1' odata-version: @@ -770,53 +2175,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint load Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:55:56 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:44:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhGDJG7OobhAilSQm9wqlyo; expires=Thu, 26-Mar-2020 19:44:37 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH89DaB3kr-eZ6yReIoIsrBPgWbeWDTwIWtn3f8T9LQbm6Ae-kKFR7u6DE63IBaGg3NMomvfiMvYtu688LHDpASgztaPOgFyzd4bJrNAXwytPTFR733Mq2xTovkJ2E7DS_HfMUKwrhRyA3sKs9zIkJ8PQCz7OJDTRaukHjX71NmKzggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -834,14 +2244,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -850,7 +2260,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:56:26 GMT + - Tue, 25 Feb 2020 19:44:37 GMT expires: - '-1' odata-version: @@ -874,6 +2284,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:45:08 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArH8pgYWMChPiRtJkitRGt4; expires=Thu, 26-Mar-2020 19:45:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8aQVgOWXSW2GmEtU0ZniySOp1ZL24UHA2g62-dXV8yFwl2L9rsd44i_kBOTHvFvqXAGv9nztiRntRD9Ow7hl5SU0bXakDXkCKtvTee2gx7RTcYyqm4KgHgL5tnpXodXCsDpFLE7C6mm2pY5AZIwNOBcvqt8oITJ33VHFyo6iXXg0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -888,14 +2357,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -904,7 +2373,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:56:57 GMT + - Tue, 25 Feb 2020 19:45:08 GMT expires: - '-1' odata-version: @@ -928,6 +2397,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:45:38 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Agwjaj7m1DhHv87AGSzArGw; expires=Thu, 26-Mar-2020 19:45:39 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8FCbrt1Ij-XMMCB_NHpOHxSiXR2ORQTnhdr7DV4N4YSczWpNGOJHBeOL82PTRIvkerw3yu3tWG9GS-9d1fGTMV0VV-uYxZVypoA1ACC6-KS1dmthlZWY_SdqLnWiklU3cNPci6EYi-QKGb8kRHPdoS2n4ZNwnkK7Vna6SwD2HgHkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -942,14 +2470,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6888dda4-64d1-4512-af9a-5f9c14f6ff2e?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fee47963-0e61-47d4-899f-78691ce743d4?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -958,7 +2486,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:57:27 GMT + - Tue, 25 Feb 2020 19:45:39 GMT expires: - '-1' odata-version: @@ -982,6 +2510,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:45:40 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApJWuaLOiEZAswdatpnX8ec; expires=Thu, 26-Mar-2020 19:45:40 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8kcxlrJq04tvMMsyQLnLuPZLLAljG9J_FiKXjNNXHPYAqUswMbuYHLMgZWABtufsnOg9oqo2GXhoEPOPPz9pBZoO4fZCX1nx7-tqeskhdYtTUDcP29JVghsFf4avbDqrUNwjP6gvTVsrvAtyRgiqwOl89e61RSzB0_-z8t2_jITYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"contentPaths": ["/index.html", "/javascript/*"]}' headers: @@ -1000,28 +2587,28 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/purge?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/purge?api-version=2019-06-15-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45175482-fd1e-4830-a9d1-7a095a1edcee?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8cdecb9-ea89-4cec-99e7-6f7ceba2ffed?api-version=2019-06-15-preview cache-control: - no-cache content-length: - '0' date: - - Mon, 09 Dec 2019 19:57:31 GMT + - Tue, 25 Feb 2020 19:45:45 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45175482-fd1e-4830-a9d1-7a095a1edcee/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8cdecb9-ea89-4cec-99e7-6f7ceba2ffed/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview pragma: - no-cache server: @@ -1033,12 +2620,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '499' + - '1' x-powered-by: - ASP.NET status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:45:54 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjT004QlfdRHr6VB8D5v4eM; expires=Thu, 26-Mar-2020 19:45:55 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8milAb03OClzyISLtFhKtY1_6PUsCrfVwJ0JTEOMcd6T0Vx-fg0HDkeOYisdcuH_GDzp3nMmX2cYKS3M1ZKdMqfKMb614otdkyHeEkfeS-UXn8KgDBGZc931NdRbrKCCQcln8o0PkRmsQr-cKNS5KugQI8-JTNWQsRq6tBaSuSuQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1053,14 +2699,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45175482-fd1e-4830-a9d1-7a095a1edcee?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8cdecb9-ea89-4cec-99e7-6f7ceba2ffed?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1069,7 +2715,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:57:42 GMT + - Tue, 25 Feb 2020 19:45:56 GMT expires: - '-1' odata-version: @@ -1093,6 +2739,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:46:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmMvt5cgzuxIn8ieINdL65I; expires=Thu, 26-Mar-2020 19:46:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8U0xerX8zOsmeN8EUkGHKNBDGmjextParqqpPiXMFPma1LIWx1tpYWC-dH7RBsQ_hXtKnXZcjjDZBLDgGGGZ4cUtEPy3qgSWE8WqJz308yJmb8mmtdkZuRcN5ZU4MzEScwFLe9RoUv2Bvkqo9SyvlKY9xzOwCpOl0jZ-GYVnj-WUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1107,14 +2812,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45175482-fd1e-4830-a9d1-7a095a1edcee?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8cdecb9-ea89-4cec-99e7-6f7ceba2ffed?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1123,7 +2828,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:58:12 GMT + - Tue, 25 Feb 2020 19:46:27 GMT expires: - '-1' odata-version: @@ -1147,6 +2852,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:46:57 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ag4KliOlGyZBoOPaiI-9Nkc; expires=Thu, 26-Mar-2020 19:46:58 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8al1Zghekn0fqsk6QZvKP70K6gcPTuGEZfp0ypFkLVbF8I1VW2fWKJCt9_WXvQl9fj063r9UG0F_xXKwxGdylws9T1xtgFA_PQQlSLIPAO4S1yE2qjiDfFo4C-4ukEZjGFc1Ashp0PUTMCWBkiGXFTmRppGG9Nhlh148Fs6wtGIIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1161,14 +2925,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45175482-fd1e-4830-a9d1-7a095a1edcee?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8cdecb9-ea89-4cec-99e7-6f7ceba2ffed?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1177,7 +2941,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:58:41 GMT + - Tue, 25 Feb 2020 19:46:58 GMT expires: - '-1' odata-version: @@ -1201,6 +2965,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:47:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgURjTFkybZGm6_LAN3x8Cc; expires=Thu, 26-Mar-2020 19:47:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8MwB_iHOH1YK02A5UYVQrMunI0Qzxw-GsOOwHc-VSbBc7xsus8if3eOdvJL8jjusD3HeT7CYsPEgr7y6-sVrLQxf5uYDZi6JzeFOs3eQF1iaGLCiNcoPYS5xBOGv7P3BJUInZJkOORa-FUVxvEBsVd6OPKhTgTZF53HfUxy4k0bYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1215,14 +3038,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45175482-fd1e-4830-a9d1-7a095a1edcee?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8cdecb9-ea89-4cec-99e7-6f7ceba2ffed?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1231,7 +3054,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:59:12 GMT + - Tue, 25 Feb 2020 19:47:29 GMT expires: - '-1' odata-version: @@ -1255,6 +3078,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:47:59 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AiHncdVK-y5BllWM9JDiNIE; expires=Thu, 26-Mar-2020 19:47:59 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8j8FLBV6DyZq6kxapnmzbO9pF7ZO01LgIeQhn5norN3rOqE-5W1gWyooFvBbiPyYJG8wKGlG_6jzyMBnwj4VTe_OwL6qdeoNosQaoyJTqaVoQ-Pu1fvUemk6D6geMBQ03iTXzj2elIF8Pcqi7qmehRV0iQsTaOHpOK2Dcvl2ddgwgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1269,14 +3151,14 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45175482-fd1e-4830-a9d1-7a095a1edcee?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8cdecb9-ea89-4cec-99e7-6f7ceba2ffed?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1285,7 +3167,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:59:42 GMT + - Tue, 25 Feb 2020 19:48:00 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml index f471e65e354..590dd93f60d 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvFZWF9XH_9KhH7LzA6K-Aw; expires=Thu, 26-Mar-2020 19:38:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZTNDGtusRyx3_FEEI7MofLivD7yjOGJbDl8PAnDkgofJqLS--brFA7DIA_6hxlLwMFCR8FIiN2-O__Ecs2oNL6ETgnA3ai8QTbqDgb15uzthj2rs7eDC4tjLIHtOd9oKOKW1_SHEBtbx-d-Rtv-Yfyjih46WedlUH45-h-1WlTUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,15 +72,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +89,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:24 GMT + - Tue, 25 Feb 2020 19:38:26 GMT expires: - '-1' pragma: @@ -44,6 +103,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkntS1iEI5hHlLaqWvq4qGY; expires=Thu, 26-Mar-2020 19:38:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8wBx2Fuyh_ra6u9VcrJMMu46Pqyla_5AcsAUmu42VcvJaH3O5r2HvtLHC9Zll4lvqIRNn7ZrEyFlREmwDuRsTm1KF1FyKYYZFSC1iU8MwIaMidX2tbFNtUghSkFm7_2EYXj4Te3Eav2uFWxTs2qR16Zv_IHXX6YiIG4vj12VpD84gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Akamai"}}' headers: @@ -62,21 +180,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/345dfeb1-f7ea-4d61-9aa7-c06bbe475f2d?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/141ca814-3bcd-4867-96d1-64e5138f30fe?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -84,7 +203,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:30 GMT + - Tue, 25 Feb 2020 19:38:35 GMT expires: - '-1' odata-version: @@ -100,12 +219,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvZKRa5ARW5Ep3hnU6oRenc; expires=Thu, 26-Mar-2020 19:38:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH82s_b0czVxGpFWp0oBZbIFAxXFc8tcnIEbU4d4EYq_NsS0ZiSpmm6NOrexAoLpPIhtcEnPis5q6Bxh0SzzbbFNXXFuUTYEhohdbdZ3Wpxn-MiEvrY9wFSAW2ZaA_K0qjjIBHYpgAF9KoCxYfpflfnEnv0CCaSel3hpBetE3uaBKwgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -120,14 +298,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/345dfeb1-f7ea-4d61-9aa7-c06bbe475f2d?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/141ca814-3bcd-4867-96d1-64e5138f30fe?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -136,7 +314,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:40 GMT + - Tue, 25 Feb 2020 19:38:46 GMT expires: - '-1' odata-version: @@ -160,6 +338,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ar1VYsN4_d1Jgtc4HZgTlz8; expires=Thu, 26-Mar-2020 19:38:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lJrh7-_mmVa2P37dH4el4M05gSQbflPx0WHxOyWTV96vMAREXe3VTZyKRU6R612VTN26JsndWu5yWycyHZR0HLZGQes64UNFmg5cvWKtfpbkahsxjudQtc5NWBCrkqw43Kq_C-bF7JN4qVQJxVqG1vCdTD2WPaXmfWMIkSVqz8sgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -174,16 +411,17 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -192,7 +430,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:41 GMT + - Tue, 25 Feb 2020 19:38:47 GMT expires: - '-1' odata-version: @@ -216,6 +454,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsRdW108UY5Dta7zWFHDMWs; expires=Thu, 26-Mar-2020 19:38:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZWu1jG9ARMQDHlpGOluQtwZV6GatMSmKtA-NKkOnzPslHOMILRBTMOHh_Ss8_XiURGLh2HbA_v2e26LwoLhSzRNbP6ObS74r7vglWSIC9Dx5eY9aQ5IqXKW5jc2ozX0uF_OrMxPPIpuLsa-t5yEWpwianQBCNb0f7NamMcJN8n8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -230,15 +527,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -247,7 +544,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:42 GMT + - Tue, 25 Feb 2020 19:38:49 GMT expires: - '-1' pragma: @@ -261,6 +558,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoPpB6Tg6jlCkKV6T4ekbrg; expires=Thu, 26-Mar-2020 19:38:49 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH84Jef_iqvYvjQoWxNIo6Zu5pOu0rSqNg9cfpVEhyurcFMMpSz2gYtqkjxU3JTIvwabU4VWM-cSoONE7CHVjWT_i7XkZr7ESeEyW9Yswo-btR7r-5-Wy2LPDePb2uVn5aG8lljWuWNgKVTb60bOsznIJJx3KNp5sgHifm9alewGeggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -281,31 +637,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fb934077-aace-4824-9f10-258fb5d9806c?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0060dfb0-25fc-4434-9d49-e8d9e7c84498?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:47 GMT + - Tue, 25 Feb 2020 19:38:55 GMT expires: - '-1' odata-version: @@ -321,12 +683,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Agc_WdIcqclNoHEozwFHcL0; expires=Thu, 26-Mar-2020 19:39:05 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8lx0GZFR5S1vibCoRlByCusufCyyjBUKK17t2WeUhVYeqql6-ktqN7iUeBEDI8oqzEQEVron5_w8AYsWk6MH-VVXCrqg8XjhCkhsbs2n66sZyVLd5ooxlNpEmbcUP5kJ32yU-4RBK9PbDRGICWZ08I68Qm0vxhox634ZWNOYlUnUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -341,14 +762,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fb934077-aace-4824-9f10-258fb5d9806c?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0060dfb0-25fc-4434-9d49-e8d9e7c84498?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -357,7 +778,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:57 GMT + - Tue, 25 Feb 2020 19:39:06 GMT expires: - '-1' odata-version: @@ -381,6 +802,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ApbcKSIzqJpMgoVPl1RMJZw; expires=Thu, 26-Mar-2020 19:39:36 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH83QLoZj5KIFW0DgsSWk6Qj8Dy5sGGXcNq3-5AUbr6WRurYnAuoKkh8SqxcXNK5_9YM8cgNHozIoqs2FHFlIukhADJKqAzPHz0ULsgUx6ElU4sgArH7gjEEyimS3D29WfPY5dOoS4iJGnYOo4l9Dla59SQJWhGlsA5v9Zp9pqqmxYgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -395,14 +875,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fb934077-aace-4824-9f10-258fb5d9806c?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0060dfb0-25fc-4434-9d49-e8d9e7c84498?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -411,7 +891,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:27 GMT + - Tue, 25 Feb 2020 19:39:37 GMT expires: - '-1' odata-version: @@ -435,6 +915,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjfjFqRAXy9PijTLlEXMKIM; expires=Thu, 26-Mar-2020 19:39:37 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZWAV2fGDwOrRuHbToabbHp9VRmUExzPI1KGHscOWgEFScGJgQpY_rMS-CO81E7Bql8dKDx4MHHid0BaBE0BwYlOvq-GPF1rLphZSX9hzodvwefQRPs-QqrDl2BCsqu9AmYIHl9_eVlI67OI0N4C35k2mhLBPW71P8kBWTO_8t1IgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -449,27 +988,33 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:28 GMT + - Tue, 25 Feb 2020 19:39:38 GMT expires: - '-1' odata-version: @@ -493,6 +1038,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:38 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ag5CY0XZFRFKtpG4zmssi-g; expires=Thu, 26-Mar-2020 19:39:38 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8goDnwPnFjPMNguHmBzD0_nPPWtYMUBtNH4kGub72Y2xujfTivLWdtPKX4JAeLdcqMNfJDJv8NCMqq_DT73cHKjJcX_HWvBcMPaXj9XDW7YjFREpA87I7YygKFtQ8e1ZiFqvSeGX16aZHNb4-3ZHWfouhkcW3b43v6svanz1131ogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -509,34 +1113,39 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/stop?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/stop?api-version=2019-06-15-preview response: body: - string: "{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n}" + string: "{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\",\"originHostHeader\"\ + :null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"\ + isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\"\ + ,\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\n ],\"customDomains\"\ + :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ + :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ + \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\":null\r\ + \n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ede88923-0272-4649-95fc-3f7f3b57719f?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fdefad46-74e5-4d05-a306-724f430c9c34?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '585' + - '630' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:31 GMT + - Tue, 25 Feb 2020 19:39:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ede88923-0272-4649-95fc-3f7f3b57719f/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fdefad46-74e5-4d05-a306-724f430c9c34/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -549,8 +1158,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' x-powered-by: - ASP.NET status: @@ -560,53 +1169,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint stop Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ede88923-0272-4649-95fc-3f7f3b57719f?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:24:41 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:52 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ai9WbSJuxKFFtRwlvzOBwW0; expires=Thu, 26-Mar-2020 19:39:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH83qK71q9G2qzvN4N35LuvzpXGXiPuYP8CAhaTnM8Y91z8s5vvHDb9N2M-iyhBgM6n4vSZ5_Pbhoe8vrKJEiyLjhuk11mxIwFeAontRUY4LspgQoyxJYUrHUcWoOQFtFX2vZookq-GrovDo5BCmCQl0_L7XdA1_L35KboIDZmdBvQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -624,14 +1238,14 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ede88923-0272-4649-95fc-3f7f3b57719f?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fdefad46-74e5-4d05-a306-724f430c9c34?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -640,7 +1254,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:12 GMT + - Tue, 25 Feb 2020 19:39:52 GMT expires: - '-1' odata-version: @@ -664,6 +1278,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:54 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Av4i6_nALIhApyZzzwKMFos; expires=Thu, 26-Mar-2020 19:39:55 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8SMtJJ3pV79GvWdlgIvoq1msYc2JmWLKYV_lW7WepFCGN9m8XYDBDvBEhoKM8_sctIsnm9hHEDAFs9l8pN6CyYKlh1T9tStPH8j43gMImAMdjlAxlvIhh8gQ3XjHBK73hdNhnTYz0LxCPN78ea4jZGiyfPGhNHfN75ovjH-dxsucgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -678,29 +1351,35 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopped\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Stopped\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:14 GMT + - Tue, 25 Feb 2020 19:39:56 GMT expires: - '-1' odata-version: @@ -724,6 +1403,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:56 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ar_WgfH0ta1GqqJ76Wsx8Pc; expires=Thu, 26-Mar-2020 19:39:56 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8n0Vi5w5I-s3KyCpX-Nmmhjpq7Fk5FWc_w3_wG4Oz2gS_syZumYumjnpUFVyYw2AwQo-5WTeWa3Z0vBSDBa5bs6fa_cAXoN9NLxY8vTvrHEi2v10w0GXPX2cM9NclOc8Fvz7sAk0Ce8v0-JDiCLl6vqyfDPH-iZpW51oAhLoQT-ggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -740,34 +1478,39 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/start?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/start?api-version=2019-06-15-preview response: body: - string: "{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n}" + string: "{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\",\"originHostHeader\"\ + :null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"\ + isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\"\ + ,\"httpPort\":80,\"httpsPort\":443\r\n }\r\n }\r\n ],\"customDomains\"\ + :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ + :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ + \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\":null\r\ + \n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/25ec405b-0879-426d-99ea-ca9cfe25172d?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3fc8e196-2890-4be1-a5ac-f0953675076c?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '585' + - '630' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:16 GMT + - Tue, 25 Feb 2020 19:39:58 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/25ec405b-0879-426d-99ea-ca9cfe25172d/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3fc8e196-2890-4be1-a5ac-f0953675076c/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -780,13 +1523,72 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' x-powered-by: - ASP.NET status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:09 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnIKJ-7pwL5Fi53J03aCSaA; expires=Thu, 26-Mar-2020 19:40:09 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8F9KyfwDcFk1ZgPoAck-vq6tztkI5r8HncHZ1XTJWBgkE--SKyLjTldSORnVP1HJGCXlorSK2AqPbcO4IYEMZugcxG6kcRar66VFt22XuX0aoGnz3yHaKmYrIN0WIpxxlFOnfUJjFWIhtG2CYzQBFWJKzzPV5h4duaeuAspy0pzMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -801,14 +1603,14 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/25ec405b-0879-426d-99ea-ca9cfe25172d?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3fc8e196-2890-4be1-a5ac-f0953675076c?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -817,7 +1619,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:26 GMT + - Tue, 25 Feb 2020 19:40:10 GMT expires: - '-1' odata-version: @@ -841,6 +1643,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:12 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqJpjDFL2AdLgEWzNWVKJSw; expires=Thu, 26-Mar-2020 19:40:12 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8TcNJOcwnfr7GkO7AXPxEUWAL7aejg5qsuIKq_7CJPb9UT7mIpyOreu_a7EVkQil7cygnx_2HMdsmKQs43dQE408yNgebi0hI6ak8zT3hnM4LX7z05dbGu_xpJLpSmTT1tswl_Pf_zBgpHuY8FXL9utCum7fC3gWY4pbESsibQEEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -855,29 +1716,35 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:25:28 GMT + - Tue, 25 Feb 2020 19:40:12 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_origin_list_and_show.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_origin_list_and_show.yaml index 7d01b7529e3..0c270ac7766 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_origin_list_and_show.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_origin_list_and_show.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:26 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvlCliMsfi5NsWrDNDCTEDE; expires=Thu, 26-Mar-2020 19:38:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8nv49uTV32TG75n6evUcUA3cLaHOGkyRuZrT2FnR0yE_cOOhbqN6Si4gUgPMTOaJazgeu4hb2K0rWWb60AG44XJT6S1Roz9tGgx8vKnRi84IDtCs2EguqxAVilH3TTu_2JyLcLmZ_T0xqCXJccsdGXSb07eyV-nitXugsxR5pXs8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,15 +72,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +89,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:24 GMT + - Tue, 25 Feb 2020 19:38:26 GMT expires: - '-1' pragma: @@ -44,6 +103,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoSJKWzm2ihLjkIzkPNXTSk; expires=Thu, 26-Mar-2020 19:38:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8LJd2PXvApbJhuHs3rcrEq-Ned676iD3bnSaNvO9O0m_iXr6_LFcgXMgkc6QtVdG3UjR2azl9gnZ1oBmmHcBKIrFlh3HL07x8mHlBAhx5DuB54tJS-APTo1EN0SirrFPVx1LPPRh6r4Zp1A-hk_Y3n_Eig5yoHpDM-lG73kP9XrggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Akamai"}}' headers: @@ -62,21 +180,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/facc60fe-f7cd-4820-aee7-8ce20b172289?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f2b86975-cb0f-4404-a574-029f1c4645a2?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -84,7 +203,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:31 GMT + - Tue, 25 Feb 2020 19:38:35 GMT expires: - '-1' odata-version: @@ -100,12 +219,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '0' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmctvSw20dFJnj4ehjnm6cI; expires=Thu, 26-Mar-2020 19:38:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Tww1HmClxI8h_r9cRp7VH_FqGI8V-ttA9F6qmuYmJEKZUmawwjYGx-lGA67m8OgdmwpYyQE4l3mrls9Q8vOIt0hJqkeK_8J8O717KzGGDAYeSPmL9fW3UYLlBtHm4s8KpoXF8fp0xq6KyBJi05seRmX0PaBvDcT2izHJ6pACbBcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -120,14 +298,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/facc60fe-f7cd-4820-aee7-8ce20b172289?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f2b86975-cb0f-4404-a574-029f1c4645a2?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -136,7 +314,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:41 GMT + - Tue, 25 Feb 2020 19:38:45 GMT expires: - '-1' odata-version: @@ -160,6 +338,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvP2yF31he5CgQhoONbWQDE; expires=Thu, 26-Mar-2020 19:38:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8_rcIkpo6_Fg7CNtKqJ9bR5UkMWZkyscwiERBHhCGmW_fVAhxq1KPTG7kDPZVMK3ochQuVyrrayPHMSY81gORsAQLJj0Sk-om9pHyIRwn5NtVkGj_UvIdNuHuPGHcFu35yGP74w9YjoFSFbxBj0V2qAtMw630uptrfwh2zzWRUnogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -174,16 +411,17 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -192,7 +430,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:42 GMT + - Tue, 25 Feb 2020 19:38:47 GMT expires: - '-1' odata-version: @@ -216,6 +454,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=ArCWOzBAE-VHrvGStbGIeCI; expires=Thu, 26-Mar-2020 19:38:49 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8rPJvLJs7btQSzWO68cUhdOYBvJK1CDIUhqLIc1wQWHdsoIaNtVeK2-_Wa7_jQdKnWKezwcmBVoszOIuI__k031KB7F180QPCcVP2lOCPw4bKkLziHow8hd80qnkFmGtMVTTfWFxSb_IsJ89HLHi6p1wchSHGgPJABFtAQjXbGeogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -230,15 +527,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -247,7 +544,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 19:23:43 GMT + - Tue, 25 Feb 2020 19:38:50 GMT expires: - '-1' pragma: @@ -261,6 +558,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqRL1nUwpx9DuppDh8So5ic; expires=Thu, 26-Mar-2020 19:38:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8vjbq4A2A2d5t0k3wlsdySSVLnDAwvaHybwA2_IY5l1sknkqNNfHvO72u8QhIrSlQV06-DjQuwQ7hqVW_ieWBjTpI0AIf6s7o6vdp_FNOA2TYG3M-3U4vizLx0a5TqwiKeMJRkjRrrVJGgVc87p_GSfr24h8jEWzue97cvW4VkdcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -281,31 +637,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c2c613d1-2976-40f7-9be2-37a5d0763066?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/08429eaa-0abb-4471-9834-fbd180e30c3a?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:47 GMT + - Tue, 25 Feb 2020 19:38:56 GMT expires: - '-1' odata-version: @@ -321,12 +683,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '98' + - '1' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:05 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtewL81mUVBBr3DCSdgf6y0; expires=Thu, 26-Mar-2020 19:39:06 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8VQR78RHZUsTpRuT0CVvmvtwrXHYUubYevpBwAm04M70HZIcJThYs522O6mnTJevcSKWeeV38Y_ORYcztWGQVlvneM9SVUgmdvI0VOv2K0SXy1PMsoIFZPadu8LXugTCycklVjVoe-BgMPoA_pg_hRjgf4IvjboMX8vSBD8-M94AgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -341,14 +762,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c2c613d1-2976-40f7-9be2-37a5d0763066?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/08429eaa-0abb-4471-9834-fbd180e30c3a?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -357,7 +778,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:23:57 GMT + - Tue, 25 Feb 2020 19:39:07 GMT expires: - '-1' odata-version: @@ -381,6 +802,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlOdqmkdh5xGunBeVcopxTs; expires=Thu, 26-Mar-2020 19:39:37 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8igv_xiq5uLNS0l4s5-kQNG4g4B5zOZDhc9D4ytqtb1L82Wz73lTe_UsMQhcwZ2qLX_ZCERgiOnT8ZzQwcfn6BeE_1ZeWjpr8H2BjpngfdomYSjvgW9OttqlvA3H2dpCnQeDycv-BIm4K2UksPmCUIQePXV6bQOgXPEU-fNEfYbQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -395,14 +875,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c2c613d1-2976-40f7-9be2-37a5d0763066?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/08429eaa-0abb-4471-9834-fbd180e30c3a?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -411,7 +891,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:28 GMT + - Tue, 25 Feb 2020 19:39:37 GMT expires: - '-1' odata-version: @@ -435,6 +915,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:38 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlgJxIpPAQVKqtl-IqxWr9A; expires=Thu, 26-Mar-2020 19:39:38 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8GufphMjo4Y4rA0AXT5dIRAQSAhjjYuNshc2PwNwpMTxdhH5SR13y0hRY3UdQnxM7DPqF12G7IVul6RKCyhm8HdYP1fbkDoDPWc11UM8OOZcCMPvBh8wZlEqgSPnVQClRrQnpaVSJe7RiuJxNmm8b1aigeo6tVg2BWgus0P13nWIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -449,27 +988,33 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:29 GMT + - Tue, 25 Feb 2020 19:39:39 GMT expires: - '-1' odata-version: @@ -493,6 +1038,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:39 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AhlMPr0xFwpEvWTvFk1Yzrc; expires=Thu, 26-Mar-2020 19:39:40 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8hUsxphshT7d8o8VAB6VmD_MLBfkjQthSFAb83a3H-LQ0hMahLbYCK3hQLEhzUfHFxlvXjdMFdl92J55SSYtcdhduMcCqCJN6K11nqoh7-e-20oMAyn7vVO9cH-r5BohyU2h8RKyXf7xqMfeKkrrWBEQvQx4gc3As7IZxj1-4SDsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -507,17 +1111,20 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2019-06-15-preview response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"origin-0\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\",\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ]\r\n}" + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"origin-0\",\"id\":\"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ + \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + ,\"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n \ + \ }\r\n }\r\n ]\r\n}" headers: cache-control: - no-cache @@ -526,7 +1133,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:30 GMT + - Tue, 25 Feb 2020 19:39:41 GMT expires: - '-1' odata-version: @@ -550,6 +1157,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:41 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ah2YwbegDbtHjqiTzT0gnKk; expires=Thu, 26-Mar-2020 19:39:42 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8HOhkddgMrfjEOPvTkWsU6QjYpRf053SycAwK06UZwgYZzIiLY8OMXlC85F0VyctcRWiBu_ozKfuHp97fZcTPVIPmmENwJr9tbqoMe9h8f3CuJb1Tc1T4pdemXWU36K_UjmpxCRv-newj4WOL3GLo2uP3c43tBfj7OVWTh_REd6EgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -564,17 +1230,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"origin-0\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\",\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"origin-0\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ + \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\"\ + :\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n}" headers: cache-control: - no-cache @@ -583,7 +1250,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 19:24:31 GMT + - Tue, 25 Feb 2020 19:39:43 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml index 8b15157a544..6c9665cfc75 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml @@ -1,4 +1,63 @@ interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ao1eLXKV4VpMkGbyCzrXj5M; expires=Thu, 26-Mar-2020 19:38:27 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8AIWvjikJMrtJ8dBTY0XcCc6NKvHDHdG23agqlAJUIisXg6YsDyg9roFDqN20nYz6ZPUPYe23zYXlkQwrww_T9pGGuM-hxiwLQboIB-f-S5lX1Pu2KmWjYGo-YC0o9LxSHn_K47czUzLFKF1vvpD-MNnJ6jYIR6XwmDGqwg0xL-MgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -13,12 +72,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-06-15-preview response: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +91,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:22:54 GMT + - Tue, 25 Feb 2020 19:38:27 GMT expires: - '-1' pragma: @@ -46,6 +105,65 @@ interactions: status: code: 404 message: Not Found +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvsFVZnxfIZAmJqSGSTAyGU; expires=Thu, 26-Mar-2020 19:38:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8tkn1os2y8Sd36lqeDhtkgSqzuzGOgmhM50mJTZ3E_HmCQLkZMi4lyCpZ5gUgkzy6zHQfpKVu4o7lrD_z8Lr9BHpJC60Y4sY6F1VhnjiAP2KiIV_-sX_6aTk7cfiq9TsQXwMALUb75q5QLyuUk2EqjUUwVvQCYOzzIo_MobaVjYkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -60,15 +178,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-21T22:22:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +195,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:22:54 GMT + - Tue, 25 Feb 2020 19:38:28 GMT expires: - '-1' pragma: @@ -91,6 +209,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:28 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AmG933RMnuxAly31-rdMdhM; expires=Thu, 26-Mar-2020 19:38:29 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NFenBR4-GTKPRdYpTy0ECHM-jGLBlR0TahFqqLVroQaD8zRcYlqK76Qfkxly6eB-Zcqmvw1VHqQzgbG_8RXPnuOoatrRzldfCJ1ZCfpeprnjEUvlOwWpS6s9Gi_0mlnyk4_MF771nqoHuOOXwe4MiVxQ2bsESwKuqTAPN1TCpdggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "sku": {"name": "Standard_Microsoft"}}' headers: @@ -109,21 +286,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ + \r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d299eadd-3cc8-4bc8-b32a-ec56561bdca9?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/407bb371-a3de-4efe-8c1a-37ac950811e0?api-version=2019-06-15-preview cache-control: - no-cache content-length: @@ -131,7 +309,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:23:01 GMT + - Tue, 25 Feb 2020 19:38:36 GMT expires: - '-1' odata-version: @@ -147,7 +325,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '1' x-powered-by: - ASP.NET status: @@ -157,53 +335,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn profile create Connection: - keep-alive - ParameterSetName: - - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d299eadd-3cc8-4bc8-b32a-ec56561bdca9?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:23:11 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:38:46 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aj7cB0SFh0dHiOiBcsmp9fA; expires=Thu, 26-Mar-2020 19:38:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8dRX0ci3dyIxUikWsJ5wSuD66v_TOtxs0WmYM8ZOSdpw4tGnvNzJpPnwJdn34haOxhtdE_9JLdLcsBXwVKhcjOMMABbeqxiysIug1TKICalFaVHsSziEaTT6g0Kn-nMkMKQjWNNTLwbEM8tjsQQFaAsJ6QZo8-A5X5Eqm_SOhJLwgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -221,14 +404,14 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d299eadd-3cc8-4bc8-b32a-ec56561bdca9?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/407bb371-a3de-4efe-8c1a-37ac950811e0?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -237,7 +420,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:23:42 GMT + - Tue, 25 Feb 2020 19:38:47 GMT expires: - '-1' odata-version: @@ -261,6 +444,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:47 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnW6QZ4FTsxGjZk_gmLdW_Q; expires=Thu, 26-Mar-2020 19:38:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8qoC2q8fcziJM-ov-Wb2yliC6A5uFGN5CmPsdgXqQiw4lRxXwaSdcZOV_UPnjma4JZUgYyoUGDBQOUXRV5TwC2poYNfMdvOncQLx0HH_1z6JBT0hkQuUaGoEDr3DLMzwTZvljdB4y6LsZVEFX-XXrPYdd9AA1qyDaRjq6bQxur_YgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -275,16 +517,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n - \ },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ + ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ + :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ + :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ + \r\n }\r\n}" headers: cache-control: - no-cache @@ -293,7 +536,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:23:42 GMT + - Tue, 25 Feb 2020 19:38:48 GMT expires: - '-1' odata-version: @@ -317,6 +560,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AiLohm42PGNGvKq_8HfPQeA; expires=Thu, 26-Mar-2020 19:38:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8QhFyFsRi8p4AExpYt0pap-R3ZOCFMEaJ5TsDy8NY95SN1iMgQmLSurm1PqDPGaeMHxL8ZAx75bYsyuWrCg1VGzL0VrpF96QSXWXgYwdUOBIftsU-5PEdMcIjP16OuVUbvOJV8s-Ml66JSfhRjE6lxAROo0NhPvMH-zbRn9pDLC4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -331,12 +633,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-06-15-preview response: body: string: "{\r\n \"value\":[\r\n \r\n ]\r\n}" @@ -348,7 +650,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:23:44 GMT + - Tue, 25 Feb 2020 19:38:51 GMT expires: - '-1' odata-version: @@ -372,6 +674,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ape0MXeqVq9HsWmjEULg_jk; expires=Thu, 26-Mar-2020 19:38:51 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8aGEcM7gByA7mxXvVRLcIJ_At4bTkJplQbwA9sTbPRueadn7biRBul6uV9y2Y5mYCosD8_rr9WGYQ8CwqbPDtty2w7SF3R8WYabeC9CL_Y-ZV0ZX13Rz6KuHj3bJIo1ejNZmOkE-raQr36t5Y-tsIqEiy3obxQVrKkEXimLTiKRkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -386,15 +747,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-21T22:22:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-25T19:38:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -403,7 +764,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:23:44 GMT + - Tue, 25 Feb 2020 19:38:52 GMT expires: - '-1' pragma: @@ -417,6 +778,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:38:52 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AjIRmds3X6pKmLmoLIpbz5Y; expires=Thu, 26-Mar-2020 19:38:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8JxisK8qR8aF_ZCWjAsNDjqQ3aM-_jS5E60KgiMOdpAzLCoXHGSAd7w2B9QKerjI1v6wqGVYv7dGia8va3mCd6sWrXUsGQDGpvdX488elNbfVd2X8joddmco9ojtxK0P1_HFiuWLr601VzUAatOF7CBBNWmi2UlI_f_Bh8WDfrDAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": @@ -437,31 +857,37 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ + :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0a5f295-3482-42a8-8c31-94d160275b98?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/902f011d-c4a4-497e-8d95-734277d4d998?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:23:50 GMT + - Tue, 25 Feb 2020 19:38:59 GMT expires: - '-1' odata-version: @@ -477,12 +903,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '0' x-powered-by: - ASP.NET status: code: 201 message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:39:10 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AkTzc8lxx6dPhnP7yu2Rg_g; expires=Thu, 26-Mar-2020 19:39:10 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8gr2Y1b1uGo_P0XEtM9hukcg9ks_nf-pr4SqUvPiFfAOeH6fTf9X51Qx0GZGnSQ_zq9DRSURB2X9tNMRhjm9FUvJDDFAQ0aXUqMiFibsQn6sW-UiNlRvMHMxKpoD0mrL-Nzf9-IXRentadYVbvciy_nZZ_CafAlKAr6Jv-IxVAe4gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -497,14 +982,14 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0a5f295-3482-42a8-8c31-94d160275b98?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/902f011d-c4a4-497e-8d95-734277d4d998?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -513,7 +998,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:24:00 GMT + - Tue, 25 Feb 2020 19:39:10 GMT expires: - '-1' odata-version: @@ -541,53 +1026,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint create Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0a5f295-3482-42a8-8c31-94d160275b98?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '77' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:24:30 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:40 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuIJFmsRNf5GtgychJmP7ew; expires=Thu, 26-Mar-2020 19:39:41 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8UvLsK_K2A0lkWfYpTbI3U6CgezLmceT4zT6B2az7TFDJW1VzS4toEPyDcdehjPuVE_1v76Tu1cp41zN0sig1cctQBpGTs9Q9prXZzqYr7W9LSYDEglLf8D8EyV4zwQNjs3M2G9eWDUPupCcgeeqrAcAvEiOH9TvbbOt0Jclk608gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -605,27 +1095,23 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/902f011d-c4a4-497e-8d95-734277d4d998?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '978' + - '77' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:24:31 GMT + - Tue, 25 Feb 2020 19:39:42 GMT expires: - '-1' odata-version: @@ -653,59 +1139,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint list Connection: - keep-alive - ParameterSetName: - - -g --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n - \ ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n }\r\n ]\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '1078' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:24:33 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:41 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AiwAkjbFFe9BsoOlqAQfXcg; expires=Thu, 26-Mar-2020 19:39:42 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8pzz_fpscFXKBbOYA_6AuTjhkGtxZFdFmQjYG7fX6Mp5lUKoVkFtoS3CQzj2BXCMBu8n5CszOnbByjvILYO9PSyhHTSSPxl3VFyy15on520iyhBr-HpGuHi8ZF9gsg40k2iTFT1Lgi-uV1c0WvmOPoyUr6jH8GET19Qxv9WDd4KcgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -717,36 +1202,39 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule add + - cdn endpoint create Connection: - keep-alive ParameterSetName: - - -g -n --profile-name --order --rule-name --match-variable --operator --match-values - --action-name --cache-behavior + - -g -n --profile-name --origin User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":null\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '978' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:24:35 GMT + - Tue, 25 Feb 2020 19:39:44 GMT expires: - '-1' odata-version: @@ -771,85 +1259,64 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": - [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": - {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", - "operator": "GeoMatch", "matchValues": ["TH"]}}], "actions": [{"name": "CacheExpiration", - "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", - "cacheBehavior": "BypassCache", "cacheType": "All"}}]}]}}}' + body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule add Connection: - keep-alive - Content-Length: - - '506' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --profile-name --order --rule-name --match-variable --operator --match-values - --action-name --cache-behavior User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 - response: - body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/940b230a-c514-4570-bbd4-ca374306b2e0?api-version=2019-04-15 + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '1789' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:24:38 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/940b230a-c514-4570-bbd4-ca374306b2e0/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AreXk1jl7AtFssUyOJPnsNM; expires=Thu, 26-Mar-2020 19:39:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8CFAHoXc1DcbvMFx9_FK_dsENdp7gUz66A9d6QNxbKoHkEdLsoImrAFAlVohXy426rTddnVQQEwqsYtcT7_CrBsnJBtjTcD7Q5QdjEApuYmz8AbJRY17zqxkkVzNq3NCEyDDk4QEd-QAY9zPcQBXQYLETjtDp7Crzmgcd9GEj4dsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -858,30 +1325,43 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule add + - cdn endpoint list Connection: - keep-alive ParameterSetName: - - -g -n --profile-name --order --rule-name --match-variable --operator --match-values - --action-name --cache-behavior + - -g --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/940b230a-c514-4570-bbd4-ca374306b2e0?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"endpoint000002\",\"\ + id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n\ + \ },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\"\ + :\"endpoint000002.azureedge-test.net\",\"originHostHeader\":null,\"provisioningState\"\ + :\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\"\ + :true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\"\ + :null,\"origins\":[\r\n {\r\n \"name\":\"origin-0\",\"\ + properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\"\ + :80,\"httpsPort\":443\r\n }\r\n }\r\n ],\"customDomains\"\ + :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\ + \n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\"\ + :null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\":null,\"\ + webApplicationFirewallPolicyLink\":null\r\n }\r\n }\r\n ]\r\n}" headers: cache-control: - no-cache content-length: - - '78' + - '1123' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:24:48 GMT + - Tue, 25 Feb 2020 19:39:47 GMT expires: - '-1' odata-version: @@ -909,54 +1389,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule add Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --order --rule-name --match-variable --operator --match-values - --action-name --cache-behavior User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/940b230a-c514-4570-bbd4-ca374306b2e0?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '77' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:25:19 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:46 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtcBl29-HlZMqM6euG77at4; expires=Thu, 26-Mar-2020 19:39:47 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8WOAOGgBo53appbkHJijMdlIZ4NE4e9nXAExVOoaw9PH3aARf5-FPMO9hhzdixsDfWa1AMDKdZnzkTOsCDVdGXdPJ3QoPqnJOMFkuK_aE4M3GlqO3auoVez9psF8VBYZeciQ7iJd0YDMx2z9o5D-M064odgE0CjQN8qAB5QiSbasgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -975,35 +1459,35 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :null,\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1789' + - '1023' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:25:20 GMT + - Tue, 25 Feb 2020 19:39:48 GMT expires: - '-1' odata-version: @@ -1031,67 +1515,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule condition add Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '1789' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:25:23 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:39:49 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AnUzUSvHuBNKnnpLfHkpqoA; expires=Thu, 26-Mar-2020 19:39:49 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ZbxY3UYHpUmWYA21fUPxXnJhq4Q59HWF_6NGO2h69dyLAKKthRcWgazYgD1HlefkBFsuDBYb4_pzlpUBPYfCX30bVLs5P24pLS4HeUKp7-2j1i0nwjIgVP6dO2qyTi_EHAefznZnYUtnMLlYm0T3oWwhRiwqM8ql3xK-J1ccH8wgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -1099,10 +1574,8 @@ interactions: body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", - "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": - []}}, {"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", - "operator": "GeoMatch", "matchValues": ["TH", "US"]}}], "actions": [{"name": - "CacheExpiration", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "operator": "GeoMatch", "matchValues": ["TH"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": "BypassCache", "cacheType": "All"}}]}]}}}' headers: Accept: @@ -1110,56 +1583,63 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule condition add + - cdn endpoint rule add Connection: - keep-alive Content-Length: - - '737' + - '506' Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -g -n --profile-name --rule-name --match-variable --operator --match-values + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 - response: - body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n },{\r\n \"name\":\"RemoteAddress\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n }\r\n\ + \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fd4bae0c-0aae-4d85-a7cd-90e1930e261b?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/10f1d396-35d7-4612-89f4-abaf45ddfd93?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '2146' + - '1834' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:25:26 GMT + - Tue, 25 Feb 2020 19:40:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fd4bae0c-0aae-4d85-a7cd-90e1930e261b/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/10f1d396-35d7-4612-89f4-abaf45ddfd93/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -1173,7 +1653,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '0' x-powered-by: - ASP.NET status: @@ -1183,53 +1663,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule condition add Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fd4bae0c-0aae-4d85-a7cd-90e1930e261b?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '77' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:25:36 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:40:14 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqReHSfunctDsOIlUbg61X8; expires=Thu, 26-Mar-2020 19:40:14 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8NHqGAdosEOGdJ2PF7M43u_58WH5iSoyUa7xUf2vRcojZu_XvduGDMVY_LHizpiQbWKqjlqOe-VXlju3yMzhZGTpf1333F3_6s-uCDaqvspRIybRN_XadsBHFzGpd9ZreqYDXEMNoC29xggWc18C4vAw9Md1IEgtc4fSOn-Y9EHAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -1241,44 +1726,30 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule condition add + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: - - -g -n --profile-name --rule-name --match-variable --operator --match-values + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/10f1d396-35d7-4612-89f4-abaf45ddfd93?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n },{\r\n \"name\":\"RemoteAddress\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2146' + - '77' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:25:37 GMT + - Tue, 25 Feb 2020 19:40:15 GMT expires: - '-1' odata-version: @@ -1306,143 +1777,116 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule action add Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n },{\r\n \"name\":\"RemoteAddress\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '2146' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:25:39 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:40:14 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AqGatgnY29hJrzdU_0G1RBI; expires=Thu, 26-Mar-2020 19:40:15 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8h-DTwrG3IeWhPnqFPdGoJ_splJ3alvHKIVV5qPrSjDn2Mnr4--PtpUQ8jm_1f6B3CTWR9BrkcX1iN6x_T-AYBaBZOVY6vGnd9yuU1y4B9pCOi7ogIK_P9PnzyYXW9rLCua5NlOVdz9wc-7nRrKocQi9TPNMzeY2innARV1KW_VEgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK - request: - body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": - [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": - {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", - "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": - []}}, {"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", - "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH", "US"], - "transforms": []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": - "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": - "BypassCache", "cacheType": "All"}}, {"name": "UrlRewrite", "parameters": {"@odata.type": - "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", "sourcePattern": - "/abc", "destination": "/def"}}]}]}}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule action add + - cdn endpoint rule add Connection: - keep-alive - Content-Length: - - '954' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - - -g -n --profile-name --rule-name --action-name --source-pattern --destination + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 - accept-language: - - en-US - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 - response: - body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n },{\r\n \"name\":\"RemoteAddress\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n },{\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n }\r\n\ + \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/00c9c505-9c7f-4a80-b2e0-2f978bf80554?api-version=2019-04-15 cache-control: - no-cache content-length: - - '2403' + - '1834' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:25:42 GMT + - Tue, 25 Feb 2020 19:40:16 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/00c9c505-9c7f-4a80-b2e0-2f978bf80554/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 odata-version: - '4.0' pragma: @@ -1451,50 +1895,847 @@ interactions: - Microsoft-IIS/8.5 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-aspnet-version: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' x-powered-by: - ASP.NET status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule action add Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/00c9c505-9c7f-4a80-b2e0-2f978bf80554?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:25:53 GMT + - Tue, 25 Feb 2020 19:40:17 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=At_4Lz26gn5OmCBa2Tk9yHE; expires=Thu, 26-Mar-2020 19:40:18 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8QWzhoHimk6dPJE6uHY7wIOyRUXEr0bRuR1CxWBmQK1bFDArysfg5IDMGNwSJojHCwaI4ztcBUuGIMfQXgbgVkknyEgj4VpWVJlTRnBf92LQ6xwOYRDxNKr4mQaKM07HrvO6CywekEMs4_26t5gs6u2hLM_myfxMHxPxNg4YORcggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule condition add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name --match-variable --operator --match-values + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n }\r\n\ + \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1834' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:18 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:19 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ar696DF1NyhPkyUtbrdOulo; expires=Thu, 26-Mar-2020 19:40:19 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8R8WpuGocqC3yXJZx8jtnaFv14yVPDc3n50OccSRIyYOXJ3dPC2lcqoYAXuqxpxJk58Xb8gR4vTknQ04CImYLlo440bd3xhXu4rWdPV5JKpt3L4-mxu0LO7f8KaPg_cF7rMogXq-fuGl1-i6AoaNfGvEGz8PobSNqRNLy8GvrXVUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}, {"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "matchValues": ["TH", "US"]}}], "actions": [{"name": + "CacheExpiration", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "BypassCache", "cacheType": "All"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule condition add + Connection: + - keep-alive + Content-Length: + - '737' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --profile-name --rule-name --match-variable --operator --match-values + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d0beaf64-638d-4edf-8cf4-0cb26bc3e3e9?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '2191' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d0beaf64-638d-4edf-8cf4-0cb26bc3e3e9/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '1' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AlQ6DnsS4NFHgh4tqU79uVA; expires=Thu, 26-Mar-2020 19:40:32 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8ek6tCdjLyNMkBRQYSCW98j3tlOrMSBVaAVi0eWMlVyPudfzLuxJvbh1Fa4IRcuJTmxDvw84K144l3boQUEr5vI8_K-CP3fZ2LQW6LS0OfVFqoeHfp9N30xhJ3dSH7H7LgmAmwd8rUuUyw0KLX5QB5iK02fhOSig1-CuprZT01aQgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule condition add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name --match-variable --operator --match-values + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d0beaf64-638d-4edf-8cf4-0cb26bc3e3e9?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:32 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:33 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aijj6SMZC7tJshcYrOh6QwY; expires=Thu, 26-Mar-2020 19:40:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8dVIzx9RCEp1CIYujiYINyOCbSfdCHM58-56SJoGWQOaBgT8k0JyUUUQtrXR93N5Yd0205vg8dUCSDmORkg7nralWg0esggKnhY4WhytYp26ODeEtzB9NZzOhr68lAN9tuU3qMEHGd7ZWIlpha5voc02nC_DQpO74Ib7IZGtl2uAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule condition add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name --match-variable --operator --match-values + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2191' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:33 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:35 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ajf-U682-wNFpiPOY1LiBLo; expires=Thu, 26-Mar-2020 19:40:35 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Qh7zsH8slvuBrVPP7JgquBHZDgtOnhW4Uz1digkiL2cL_5wdUqJp8Xv9IK6xU22yVlWYmueVfd27zi_lN8lMoT-lMfoIPtRADpv7-qoW-p_FY5-5aTrv0D6zPZ5Qh8VjBXWzDIynIl3pnqBusaZbN751XmNa0k18geT1lhj4_-AgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule action add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name --action-name --source-pattern --destination + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2191' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:36 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:36 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AgE8GUAlyJpPrq6FlqlE2kY; expires=Thu, 26-Mar-2020 19:40:37 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8kD_YKFbMXShBdlRdDvc4gVECtX0muYe3zExt75POom_nxR-Q16dRldHi0htF3mlrVEdGcpg5ZluK4Yr5LzI3FQJCaYxC9zKYEp7rmS0JqnE0O3FGzpcFoFie2htGnGgUps6YjXbkc1uHJubiaJ5qyvBACP-3FxKdwBWUFLvu0ZogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}, {"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH", "US"], + "transforms": []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": + "BypassCache", "cacheType": "All"}}, {"name": "UrlRewrite", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", "sourcePattern": + "/abc", "destination": "/def"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule action add + Connection: + - keep-alive + Content-Length: + - '954' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --profile-name --rule-name --action-name --source-pattern --destination + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n },{\r\n \"name\":\"UrlRewrite\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7d2ba9e1-9182-403d-b6f6-cb0cf787d77b?api-version=2019-06-15-preview + cache-control: + - no-cache + content-length: + - '2448' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:40:40 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7d2ba9e1-9182-403d-b6f6-cb0cf787d77b/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -1503,16 +2744,73 @@ interactions: - Microsoft-IIS/8.5 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-aspnet-version: - 4.0.30319 x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '0' x-powered-by: - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:50 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AliH8EpZUQlDqlczosuTpG8; expires=Thu, 26-Mar-2020 19:40:50 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8jFAvhcU5FF4bKe93BT-BC0Ea7OCNBLG5vXRgYNSj69KnIx7uh_JxjPiuP1ZmR8maiu2Rjbe2pu3H4C50T_pO6n-PKqdRp0CrTgDfbAA2z62BDA41kPS9GjwSygtBjty3-mxjg7KGTAkC-gLWTkNynNpSTLJeD7Hy3qgvBRu_EiogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -1530,14 +2828,14 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/00c9c505-9c7f-4a80-b2e0-2f978bf80554?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7d2ba9e1-9182-403d-b6f6-cb0cf787d77b?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -1546,7 +2844,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:23 GMT + - Tue, 25 Feb 2020 19:40:50 GMT expires: - '-1' odata-version: @@ -1570,6 +2868,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:51 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AktqSfWZ5-dNvjZkSbsfHKU; expires=Thu, 26-Mar-2020 19:40:52 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH83p5e_sXm38AQyDNZCKbfn_i6vaskrAdLEGN7Z19802r1D1qvHohrNgb-v-6XaIhi1oo3WChl3l5IVefhyYowg3Vd7jB1EyTVT_clTkwLqD3Mny3gAvMTEZ0OnyVUHRh9mW5FuyRM4UKYTCi4r2q9rw8p3-frRG77KDBzCtPW1QMgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1584,40 +2941,53 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n },{\r\n \"name\":\"RemoteAddress\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n },{\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n },{\r\n \"name\":\"UrlRewrite\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2403' + - '2448' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:24 GMT + - Tue, 25 Feb 2020 19:40:53 GMT expires: - '-1' odata-version: @@ -1641,6 +3011,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:53 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ai1RUkYT2NBDjTqmdARtA5g; expires=Thu, 26-Mar-2020 19:40:53 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8vNWaqHu84L9qTg73qisL8PxmeRdHo5BgngAQvo64pZf_8h1FhHUioACd8oivhw8V-3Nd9_9CHh9xApg59hTg1KLz9lsIIdWqcd-1jEC2NnBngRhdSTyT_LI6MEx-aBYS26Ux64Bk7T8Sq73BfEei7Y4dA0HtYUt5GDzzqXI_moAgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1655,42 +3084,55 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n },{\r\n \"name\":\"RemoteAddress\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n },{\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\"\r\n ],\"transforms\":[\r\n \ + \ \r\n ]\r\n }\r\n },{\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n },{\r\n \"name\":\"UrlRewrite\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2403' + - '2448' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:26 GMT + - Tue, 25 Feb 2020 19:40:55 GMT expires: - '-1' odata-version: @@ -1714,6 +3156,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:40:55 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Asx2vU3n14RJluzECHInZfo; expires=Thu, 26-Mar-2020 19:40:55 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8Iw_DlH_7L3NLTZXgYKsJ6PfJPmUySlnj7bNmhh4A4RZTtMm5JGD2mr7weEpyl0JCo5DukytwricXEoMSJ7WDnjtQDDh_1IAuqhXyTpE7JheGYF3qu-n3dCUt0IyK1ta5mNresbmaDLJF-jZo5sxYinA_MYcvn3JWws5eLtbOzv8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": @@ -1740,45 +3241,56 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 - response: - body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n },{\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n },{\r\n \"name\":\"UrlRewrite\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/551db036-744d-428a-85a7-a372069a0bb6?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a19e2866-5d31-4a4d-9e12-eacf4dc6723d?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '2051' + - '2096' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:31 GMT + - Tue, 25 Feb 2020 19:40:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/551db036-744d-428a-85a7-a372069a0bb6/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a19e2866-5d31-4a4d-9e12-eacf4dc6723d/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -1792,12 +3304,184 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '0' x-powered-by: - ASP.NET status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:08 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtT7WL9ENddHmRlFWBGAabE; expires=Thu, 26-Mar-2020 19:41:08 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH83Bo9FalXg2kFvCRaKu0MX6_0Ryq5hDSeuAqtysPano78Pn4mgBRHb6FQBacPzTlAQ2_CdDgCkOJKY59eyQW22cKWQSnVR6TpAzMnmJ2ZJ9kFZbSqHKEbRjrYwpC3udXIObf8DkcBciiqJnu9Y5QB2A71Usa5cHGzggfLp5RJAb0gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule condition remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name --index + User-Agent: + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a19e2866-5d31-4a4d-9e12-eacf4dc6723d?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '77' + content-type: + - application/json; odata.metadata=minimal + date: + - Tue, 25 Feb 2020 19:41:09 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/8.5 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:09 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AoAOf1yEjHpLnakDtpPaD-o; expires=Thu, 26-Mar-2020 19:41:09 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8TYmPz7kkLL0swFiSmgANLdYaWnQX96TV2F_9IIr6t2fwzNJ5psXDQTGsgk-AxPs6E7EI_oOUe1HwQCBVmA8ldk8tVv5b2nMDvwPfBD4OVoRJQKAVmyDxy-YCduQs588AwvUwGC11ey-BB0vrwtj4Lx0u69yGu2zIAB5BoJgK5NggAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -1812,23 +3496,48 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/551db036-744d-428a-85a7-a372069a0bb6?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n },{\r\n \"name\":\"UrlRewrite\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '77' + - '2096' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:42 GMT + - Tue, 25 Feb 2020 19:41:10 GMT expires: - '-1' odata-version: @@ -1856,67 +3565,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule condition remove Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n },{\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '2051' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:26:43 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:41:11 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AvMJYN9WxX5OtS7ai58wel8; expires=Thu, 26-Mar-2020 19:41:11 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH810JCVEmDyJyLqy717cqec9Hsy3gUThbyS_CHjhteFM8PyVUQEiJBOqcivkCzU7rSwtbdPHg3c8r3PXUAFp-vLQfo15WfK22l8iYfox-SVmdxfX98Lp4uN0ehfA0KyRfdy2P6sVQO0OrLNO5-pQ65c7NIneza15BfdhpFxki7PakgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices status: code: 200 message: OK @@ -1934,39 +3634,50 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\",\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"All\"\r\n - \ }\r\n },{\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"CacheExpiration\",\"parameters\":{\r\n \"@odata.type\":\"\ + #Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters\"\ + ,\"cacheBehavior\":\"BypassCache\",\"cacheDuration\":null,\"cacheType\":\"\ + All\"\r\n }\r\n },{\r\n \"name\":\"UrlRewrite\"\ + ,\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2051' + - '2096' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:44 GMT + - Tue, 25 Feb 2020 19:41:12 GMT expires: - '-1' odata-version: @@ -1990,6 +3701,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:13 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsAxDrnBAgJGmeJNsqNdKJA; expires=Thu, 26-Mar-2020 19:41:13 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8cmj7NkjE8mbxbY_c8pzCi68nmY1hV2q5UNn0_-GxQD-5WV-gPzvEmOJUq5BL82YqMCF9ZExrInieMkWOmbGKa5lv7UjAGzDxuxqCFyJQw3NfPWQM0CXKzMBNcy_99CnVGE3dBsWv5Vq4j3Uxh_OfI2AfOhKuOjzGq-t8sXfBYqkgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": @@ -2014,43 +3784,52 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 - response: - body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview + response: + body: + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"UrlRewrite\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54f53969-a534-4225-96ae-496b5cb13baa?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/155850b4-7116-4b9d-8895-fcb63eee7a08?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '1788' + - '1833' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:48 GMT + - Tue, 25 Feb 2020 19:41:15 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54f53969-a534-4225-96ae-496b5cb13baa/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/155850b4-7116-4b9d-8895-fcb63eee7a08/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -2064,12 +3843,71 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '0' x-powered-by: - ASP.NET status: code: 202 message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:25 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Aq1sDAehfDdDqOAWeu-ld4w; expires=Thu, 26-Mar-2020 19:41:26 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH82_v3qf_LGfCeIkw85CWRRyiyLxPiGNZmZ0J6QNtq9jlbgOQtLAbz2mlLYAIzUBCqji-MMcMtAva1uLz8kxL5WOt16cN9ksOhuWOckHdYTOyDLWV8CBzw03Ej3EhgrjpvZACkNzQJ9kbqolXX9iMgtCNaPGw0A7loroXawLx2M7cgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -2084,14 +3922,14 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54f53969-a534-4225-96ae-496b5cb13baa?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/155850b4-7116-4b9d-8895-fcb63eee7a08?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -2100,7 +3938,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:58 GMT + - Tue, 25 Feb 2020 19:41:27 GMT expires: - '-1' odata-version: @@ -2124,6 +3962,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:27 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AuKI2yLJWglOv7OEDkfWbk0; expires=Thu, 26-Mar-2020 19:41:28 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8LxCZxWOWmNHtRbXoxBZP9pCiVJK9wVc0GHTLIRhPqP3LeJgYIXKWllL71bmXRcJZiQ5xoMVP3YCzLFPiJ6ReLXCMJCzT5Ad_99KmqS_eXuQLp0aIcaV8SJdykN8cvkwW6irJDkCX9Y0AfbVAZr7iqgDR1ug90iOd9Treq2SXfx8gAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -2138,35 +4035,44 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"UrlRewrite\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1788' + - '1833' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:26:59 GMT + - Tue, 25 Feb 2020 19:41:29 GMT expires: - '-1' odata-version: @@ -2190,6 +4096,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:30 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AtnTbhaZBvFOi3JHwSxXLOs; expires=Thu, 26-Mar-2020 19:41:30 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8GaBkXHHYjarhNONPbTnx5ECbnEhOdsukgG_yHLCAcNeiElG2MfkBWAyfStMiif4PvMVKndBSuyYjE7hXdvCFl7sUmTivxv9seQHIwPIBqTvL-opx1EBI20uUK3VIDehI5LHH7XeXtnHxHe2sJeWz5yjTlOztv84wSqqrBm26ZlsgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -2204,37 +4169,46 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ {\r\n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\n - \ \"name\":\"RemoteAddress\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\",\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n - \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n - \ ],\"actions\":[\r\n {\r\n \"name\":\"UrlRewrite\",\"parameters\":{\r\n - \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\",\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\":null\r\n - \ }\r\n }\r\n ]\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n {\r\ + \n \"name\":\"r1\",\"order\":1,\"conditions\":[\r\n {\r\ + \n \"name\":\"RemoteAddress\",\"parameters\":{\r\n \ + \ \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters\"\ + ,\"operator\":\"GeoMatch\",\"negateCondition\":false,\"matchValues\":[\r\n\ + \ \"TH\",\"US\"\r\n ],\"transforms\":[\r\n\ + \ \r\n ]\r\n }\r\n \ + \ }\r\n ],\"actions\":[\r\n {\r\n \"name\"\ + :\"UrlRewrite\",\"parameters\":{\r\n \"@odata.type\":\"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters\"\ + ,\"sourcePattern\":\"/abc\",\"destination\":\"/def\",\"preserveUnmatchedPath\"\ + :null\r\n }\r\n }\r\n ]\r\n }\r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1788' + - '1833' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:27:01 GMT + - Tue, 25 Feb 2020 19:41:32 GMT expires: - '-1' odata-version: @@ -2258,6 +4232,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:32 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsCdY_GI8WNKkgMyziEBCxQ; expires=Thu, 26-Mar-2020 19:41:33 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8TduTOTRTIAJJsh7xxOIqGQmgg3anigVXe83Twme0g8HD2lRX0vZ3REkrIQhuPGCUisWhtVZUz_15XSHPFnby40GweGFqtcBS5kSg5D-PeDktcXfmfOR3MtB-D18VaWBXy0OE7TKE7ULYl_vGGYAxhzuDngbpOWkhuweGQRtd98YgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": []}}}' @@ -2277,36 +4310,42 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n \r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/be9a965b-be83-404d-9fac-5e1f8ed159b9?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/40a0d402-61aa-4f7d-abc3-24478ed02a42?api-version=2019-06-15-preview cache-control: - no-cache content-length: - - '1050' + - '1095' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:27:04 GMT + - Tue, 25 Feb 2020 19:41:35 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/be9a965b-be83-404d-9fac-5e1f8ed159b9/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/40a0d402-61aa-4f7d-abc3-24478ed02a42/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview odata-version: - '4.0' pragma: @@ -2320,7 +4359,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '-1' x-powered-by: - ASP.NET status: @@ -2330,53 +4369,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint rule remove Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name --rule-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/be9a965b-be83-404d-9fac-5e1f8ed159b9?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:27:15 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:41:44 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ag3BbokrKMBMoz2_ZUYMN8Y; expires=Thu, 26-Mar-2020 19:41:45 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8a6HNMWeioetlLagySXLMFMYE_M5GRhLQWdnR3xLu4dW_yjqtI9Ur74kgR-bOmRDQTLsWSS74XcaBU-oMhe3113ZgzGRnMFE2iDU-fmEe7VrO451Oqn0mGibJ9niKKWJc0PgWsrVffpYEijw5q7jwYOZExxPdx1dj1joa9fY96QIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -2394,14 +4438,14 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/be9a965b-be83-404d-9fac-5e1f8ed159b9?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/40a0d402-61aa-4f7d-abc3-24478ed02a42?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -2410,7 +4454,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:27:45 GMT + - Tue, 25 Feb 2020 19:41:46 GMT expires: - '-1' odata-version: @@ -2434,6 +4478,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:45 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=Ap6rt4uBId9AgfcEKaOiYns; expires=Thu, 26-Mar-2020 19:41:46 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8eyz1F2KDgIm0NrT_6jVZR50mbOSYH4NfXAYbxcRZavU93pFeqF40MqX1gJO4lFF2N6uzAVtZh-sfToX4vesVXcyyOmMeH1afsNbxHu0EAfjvOoiuP3a2H2vku-doTKYmmmcjGORbq3_lDR80_jslnrS0K8M_PgN5T46QC0KHevogAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -2448,28 +4551,34 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n - \ \r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n - \ {\r\n \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n - \ }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n - \ \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n - \ \r\n ],\"deliveryPolicy\":{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n - \ \r\n ]\r\n }\r\n }\r\n}" + string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ + ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ + location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge-test.net\"\ + ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ + :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ + :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ + \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ + www.example.com\",\"httpPort\":80,\"httpsPort\":443\r\n }\r\n \ + \ }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ + :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ + :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ + :{\r\n \"description\":\"delivery_policy\",\"rules\":[\r\n \r\n\ + \ ]\r\n },\"webApplicationFirewallPolicyLink\":null\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1050' + - '1095' content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:27:46 GMT + - Tue, 25 Feb 2020 19:41:47 GMT expires: - '-1' odata-version: @@ -2493,6 +4602,65 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 + method: GET + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + response: + body: + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' + cache-control: + - private, max-age=86400 + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Feb 2020 19:41:48 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AsUX9OlYuHxIsZ5em-cQfrs; expires=Thu, 26-Mar-2020 19:41:48 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8tfszEfjZopNg4zeukLmyUOQhZjvKZxl0NiKMyCfrlbP39VdGx9hc61lJLT8aLNsQp7VIy1gTt-hoZvwGciTDNMSkT1nHNfM5RltyipDKnY03Xa3um9EKv0-MxJxrGi_b4CRkeiuG8X8Q_2FstwxrS_QOru0sGe_FIOQMEQoHZtIgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ests-server: + - 2.1.10104.13 - SAN ProdSlices + status: + code: 200 + message: OK - request: body: null headers: @@ -2509,28 +4677,28 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2019-06-15-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a332cb04-b56c-4ef9-9ca7-c38a8a1dc61b?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/41f16fae-7523-4ef3-9f06-71b163ba3d47?api-version=2019-06-15-preview cache-control: - no-cache content-length: - '0' date: - - Tue, 21 Jan 2020 22:27:50 GMT + - Tue, 25 Feb 2020 19:41:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a332cb04-b56c-4ef9-9ca7-c38a8a1dc61b/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/41f16fae-7523-4ef3-9f06-71b163ba3d47/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-06-15-preview pragma: - no-cache server: @@ -2552,53 +4720,58 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' + Accept-Charset: + - utf-8 Accept-Encoding: - gzip, deflate - CommandName: - - cdn endpoint delete Connection: - keep-alive - ParameterSetName: - - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python-requests/2.22.0 + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - darwin + x-client-SKU: + - Python + x-client-Ver: + - 1.2.2 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a332cb04-b56c-4ef9-9ca7-c38a8a1dc61b?api-version=2019-04-15 + uri: https://login.windows.net/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' headers: + access-control-allow-methods: + - GET, OPTIONS + access-control-allow-origin: + - '*' cache-control: - - no-cache + - private, max-age=86400 content-length: - - '78' + - '131' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Tue, 21 Jan 2020 22:28:00 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 + - Tue, 25 Feb 2020 19:41:59 GMT + p3p: + - CP="DSP CUR OTPi IND OTRi ONL FIN" + set-cookie: + - fpc=AivwaLw83ylKmx6G_AU-e04; expires=Thu, 26-Mar-2020 19:42:00 GMT; path=/; + secure; HttpOnly; SameSite=None + - esctx=AQABAAAAAABeAFzDwllzTYGDLh_qYbH8x8XjpwnScxJWd-r6ZjkLxrfwu4xTSZAuJxPTUqeyCTABz8Txw9aHezTX89nCZWxgWOeisfxof1-B0rcm97xHPGywmvYhSKK-RdRgRXhKXUnKlYHbAfxhAj6bhJ9DCwwxImzqWoayEH6BgUumcydcji1-5E8ZXCTMjuLdA-kgpYUgAA; + domain=.login.windows.net; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=corp; path=/; SameSite=None; secure; HttpOnly + - stsservicecookie=estscorp; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ests-server: + - 2.1.10104.13 - WST ProdSlices status: code: 200 message: OK @@ -2616,14 +4789,14 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 + - python/3.7.6 (Darwin-19.2.0-x86_64-i386-64bit) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-cdn/4.1.0rc1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a332cb04-b56c-4ef9-9ca7-c38a8a1dc61b?api-version=2019-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/41f16fae-7523-4ef3-9f06-71b163ba3d47?api-version=2019-06-15-preview response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ + ,\"message\":null\r\n }\r\n}" headers: cache-control: - no-cache @@ -2632,7 +4805,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Tue, 21 Jan 2020 22:28:30 GMT + - Tue, 25 Feb 2020 19:42:01 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_waf_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_waf_scenarios.py new file mode 100644 index 00000000000..422c1d8daec --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_waf_scenarios.py @@ -0,0 +1,447 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest +from azure.mgmt.cdn.models import (SkuName, + CdnEndpoint, + EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink, + PolicyMode, + ActionType, + ErrorResponseException) +from .scenario_mixin import CdnScenarioMixin +from base64 import b64encode +from knack.util import CLIError + + +class CdnWafPolicyScenarioTest(CdnScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_cdn_waf_policy_crud(self, resource_group): + + self.kwargs.update({ + 'resource_group': resource_group, + 'policy': 'policy123', + 'custom_rule_1': 'customrule1', + 'custom_rule_2': 'customrule2', + 'rate_limit_rule_1': 'ratelimitrule1', + 'rate_limit_rule_2': 'ratelimitrule2', + 'rule_set_type': 'DefaultRuleSet', + 'rule_set_version': '1.0', + 'rule_group': 'SQLI', + 'redirect_url': 'https://example.com', + 'block_response_body': b64encode('example body'.encode('utf-8')).decode('utf-8'), + 'block_response_status_code': 429, + }) + + # Create, show, and list empty policy. + checks = [JMESPathCheck('name', self.kwargs['policy']), + JMESPathCheck('sku.name', SkuName.standard_microsoft.value), + JMESPathCheck('customRules.rules', []), + JMESPathCheck('rateLimitRules.rules', []), + JMESPathCheck('managedRules.managedRuleSets', []), + JMESPathCheck('policySettings.enabledState', 'Enabled'), + JMESPathCheck('policySettings.defaultRedirectUrl', self.kwargs['redirect_url']), + JMESPathCheck('endpointLinks', []), + JMESPathCheck('tags.foo', 'bar')] + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].name', self.kwargs['policy']), + JMESPathCheck('@[0].sku.name', SkuName.standard_microsoft.value), + JMESPathCheck('@[0].customRules.rules', []), + JMESPathCheck('@[0].rateLimitRules.rules', []), + JMESPathCheck('@[0].managedRules.managedRuleSets', []), + JMESPathCheck('@[0].policySettings.enabledState', 'Enabled'), + JMESPathCheck('@[0].endpointLinks', []), + JMESPathCheck('@[0].tags.foo', 'bar')] + with self.assertRaises(SystemExit): # exits with code 3 due to missing resource + self.cmd('cdn waf policy show -g {resource_group} -n {policy}') + self.cmd( + 'cdn waf policy set -g {resource_group} --name {policy} --redirect-url "{redirect_url}" --tags="foo=bar"', checks=checks) + self.cmd('cdn waf policy show -g {resource_group} -n {policy}', checks=checks) + self.cmd('cdn waf policy list -g {resource_group}', checks=list_checks) + + # Add, show, and list managed rule set. + checks = [JMESPathCheck('ruleSetType', self.kwargs['rule_set_type']), + JMESPathCheck('ruleSetVersion', self.kwargs['rule_set_version']), + JMESPathCheck('managedRuleOverrides', None)] + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0]ruleSetType', self.kwargs['rule_set_type']), + JMESPathCheck('@[0]ruleSetVersion', self.kwargs['rule_set_version']), + JMESPathCheck('@[0]managedRuleOverrides', None)] + with self.assertRaises(CLIError): + self.cmd('cdn waf policy managed-rule-set show -g {resource_group} --policy-name {policy} ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version}') + self.cmd('cdn waf policy managed-rule-set add -g {resource_group} --policy-name {policy} ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version}', + checks=checks) + self.cmd('cdn waf policy managed-rule-set show -g {resource_group} --policy-name {policy} ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version}', + checks=checks) + + # Set, show, and list rule group override. + checks = [JMESPathCheck('ruleGroupName', self.kwargs['rule_group']), + JMESPathCheck('rules[0].ruleId', '942440'), + JMESPathCheck('rules[0].action', 'Redirect'), + JMESPathCheck('rules[0].enabledState', 'Enabled'), + JMESPathCheck('rules[1].ruleId', '942120'), + JMESPathCheck('rules[1].action', 'Block'), + JMESPathCheck('rules[1].enabledState', 'Disabled'), + JMESPathCheck('rules[2].ruleId', '942100'), + JMESPathCheck('rules[2].action', 'Block'), + JMESPathCheck('rules[2].enabledState', 'Disabled')] + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].ruleGroupName', self.kwargs['rule_group']), + JMESPathCheck('@[0].rules[0].ruleId', '942440'), + JMESPathCheck('@[0].rules[0].action', 'Redirect'), + JMESPathCheck('@[0].rules[0].enabledState', 'Enabled'), + JMESPathCheck('@[0].rules[1].ruleId', '942120'), + JMESPathCheck('@[0].rules[1].action', 'Block'), + JMESPathCheck('@[0].rules[1].enabledState', 'Disabled'), + JMESPathCheck('@[0].rules[2].ruleId', '942100'), + JMESPathCheck('@[0].rules[2].action', 'Block'), + JMESPathCheck('@[0].rules[2].enabledState', 'Disabled')] + with self.assertRaises(CLIError): + self.cmd('cdn waf policy managed-rule-set rule-group-override show -g {resource_group} ' + '--policy-name {policy} --rule-set-type {rule_set_type} ' + '--rule-set-version {rule_set_version} -n {rule_group}') + self.cmd('cdn waf policy managed-rule-set rule-group-override set -g {resource_group} --policy-name {policy} ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version} -n {rule_group} ' + '-r id=942440 action=Redirect enabled=Enabled -r id=942120 -r id=942100') + self.cmd('cdn waf policy managed-rule-set rule-group-override show -g {resource_group} ' + '--policy-name {policy} --rule-set-type {rule_set_type} ' + '--rule-set-version {rule_set_version} -n {rule_group}', + checks=checks) + self.cmd('cdn waf policy managed-rule-set rule-group-override list -g {resource_group} ' + '--policy-name {policy} --rule-set-type {rule_set_type} ' + '--rule-set-version {rule_set_version}', + checks=list_checks) + + # Set, show, and list custom rules. + checks = [JMESPathCheck('name', self.kwargs['custom_rule_1']), + JMESPathCheck('action', ActionType.block.value), + JMESPathCheck('priority', 100), + JMESPathCheck('length(matchConditions)', 1), + JMESPathCheck('matchConditions[0].matchVariable', 'RequestMethod'), + JMESPathCheck('matchConditions[0].operator', 'Equal'), + JMESPathCheck('matchConditions[0].negateCondition', True), + JMESPathCheck('length(matchConditions[0].matchValue)', 2), + JMESPathCheck('matchConditions[0].matchValue[0]', 'GET'), + JMESPathCheck('matchConditions[0].matchValue[1]', 'HEAD')] + checks2 = [JMESPathCheck('name', self.kwargs['custom_rule_2']), + JMESPathCheck('action', ActionType.redirect.value), + JMESPathCheck('priority', 200), + JMESPathCheck('length(matchConditions)', 2), + JMESPathCheck('matchConditions[0].matchVariable', 'RequestUri'), + JMESPathCheck('matchConditions[0].operator', 'Contains'), + JMESPathCheck('matchConditions[0].negateCondition', False), + JMESPathCheck('length(matchConditions[0].matchValue)', 1), + JMESPathCheck('matchConditions[0].matchValue[0]', '..'), + JMESPathCheck('matchConditions[1].matchVariable', 'QueryString'), + JMESPathCheck('matchConditions[1].operator', 'Contains'), + JMESPathCheck('matchConditions[1].negateCondition', False), + JMESPathCheck('length(matchConditions[1].matchValue)', 1), + JMESPathCheck('matchConditions[1].matchValue[0]', ' ')] + list_checks = [JMESPathCheck('@[0].name', self.kwargs['custom_rule_1']), + JMESPathCheck('@[0].action', ActionType.block.value), + JMESPathCheck('@[0].priority', 100), + JMESPathCheck('length(@[0].matchConditions)', 1), + JMESPathCheck('@[0].matchConditions[0].matchVariable', 'RequestMethod'), + JMESPathCheck('@[0].matchConditions[0].operator', 'Equal'), + JMESPathCheck('@[0].matchConditions[0].negateCondition', True), + JMESPathCheck('length(@[0].matchConditions[0].matchValue)', 2), + JMESPathCheck('@[0].matchConditions[0].matchValue[0]', 'GET'), + JMESPathCheck('@[0].matchConditions[0].matchValue[1]', 'HEAD'), + JMESPathCheck('@[1].name', self.kwargs['custom_rule_2']), + JMESPathCheck('@[1].action', ActionType.redirect.value), + JMESPathCheck('@[1].priority', 200), + JMESPathCheck('length(@[1].matchConditions)', 2), + JMESPathCheck('@[1].matchConditions[0].matchVariable', 'RequestUri'), + JMESPathCheck('@[1].matchConditions[0].operator', 'Contains'), + JMESPathCheck('@[1].matchConditions[0].negateCondition', False), + JMESPathCheck('length(@[1].matchConditions[0].matchValue)', 1), + JMESPathCheck('@[1].matchConditions[0].matchValue[0]', '..'), + JMESPathCheck('@[1].matchConditions[1].matchVariable', 'QueryString'), + JMESPathCheck('@[1].matchConditions[1].operator', 'Contains'), + JMESPathCheck('@[1].matchConditions[1].negateCondition', False), + JMESPathCheck('length(@[1].matchConditions[1].matchValue)', 1), + JMESPathCheck('@[1].matchConditions[1].matchValue[0]', ' ')] + with self.assertRaises(CLIError): + self.cmd('cdn waf policy custom-rule show -g {resource_group} --policy-name {policy} -n {custom_rule_1}') + self.cmd('cdn waf policy custom-rule set -g {resource_group} --policy-name {policy} -n {custom_rule_1} ' + '--action Block --priority 100 --match-condition ' + 'match-variable=RequestMethod operator=Equal negate=true match-value=GET match-value=HEAD', + checks=checks) + self.cmd('cdn waf policy custom-rule show -g {resource_group} --policy-name {policy} -n {custom_rule_1}', + checks=checks) + self.cmd('cdn waf policy custom-rule set -g {resource_group} --policy-name {policy} -n {custom_rule_2} ' + '--action Redirect --priority 200 ' + '-m match-variable=RequestUri operator=Contains match-value=.. ' + '-m match-variable=QueryString operator=Contains "match-value= "', + checks=checks2) + self.cmd('cdn waf policy custom-rule show -g {resource_group} --policy-name {policy} -n {custom_rule_2}', + checks=checks2) + self.cmd('cdn waf policy custom-rule list -g {resource_group} --policy-name {policy}', checks=list_checks) + + # Set, show, and list rate limit rules. + checks = [JMESPathCheck('name', self.kwargs['rate_limit_rule_1']), + JMESPathCheck('action', ActionType.block.value), + JMESPathCheck('priority', 100), + JMESPathCheck('rateLimitThreshold', 100), + JMESPathCheck('rateLimitDurationInMinutes', 1), + JMESPathCheck('length(matchConditions)', 1), + JMESPathCheck('matchConditions[0].matchVariable', 'RequestMethod'), + JMESPathCheck('matchConditions[0].operator', 'Equal'), + JMESPathCheck('matchConditions[0].negateCondition', True), + JMESPathCheck('length(matchConditions[0].matchValue)', 2), + JMESPathCheck('matchConditions[0].matchValue[0]', 'GET'), + JMESPathCheck('matchConditions[0].matchValue[1]', 'HEAD')] + checks2 = [JMESPathCheck('name', self.kwargs['rate_limit_rule_2']), + JMESPathCheck('action', ActionType.redirect.value), + JMESPathCheck('priority', 200), + JMESPathCheck('rateLimitThreshold', 100), + JMESPathCheck('rateLimitDurationInMinutes', 5), + JMESPathCheck('length(matchConditions)', 2), + JMESPathCheck('matchConditions[0].matchVariable', 'RequestMethod'), + JMESPathCheck('matchConditions[0].operator', 'Equal'), + JMESPathCheck('matchConditions[0].negateCondition', False), + JMESPathCheck('length(matchConditions[0].matchValue)', 1), + JMESPathCheck('matchConditions[0].matchValue[0]', 'PUT'), + JMESPathCheck('matchConditions[1].matchVariable', 'RequestUri'), + JMESPathCheck('matchConditions[1].operator', 'Contains'), + JMESPathCheck('matchConditions[1].negateCondition', False), + JMESPathCheck('length(matchConditions[1].matchValue)', 1), + JMESPathCheck('matchConditions[1].matchValue[0]', '/expensive/resource/')] + list_checks = [JMESPathCheck('@[0].name', self.kwargs['rate_limit_rule_1']), + JMESPathCheck('@[0].action', ActionType.block.value), + JMESPathCheck('@[0].priority', 100), + JMESPathCheck('@[0].rateLimitThreshold', 100), + JMESPathCheck('@[0].rateLimitDurationInMinutes', 1), + JMESPathCheck('length(@[0].matchConditions)', 1), + JMESPathCheck('@[0].matchConditions[0].matchVariable', 'RequestMethod'), + JMESPathCheck('@[0].matchConditions[0].operator', 'Equal'), + JMESPathCheck('@[0].matchConditions[0].negateCondition', True), + JMESPathCheck('length(@[0].matchConditions[0].matchValue)', 2), + JMESPathCheck('@[0].matchConditions[0].matchValue[0]', 'GET'), + JMESPathCheck('@[0].matchConditions[0].matchValue[1]', 'HEAD'), + JMESPathCheck('@[1].name', self.kwargs['rate_limit_rule_2']), + JMESPathCheck('@[1].action', ActionType.redirect.value), + JMESPathCheck('@[1].priority', 200), + JMESPathCheck('@[1].rateLimitThreshold', 100), + JMESPathCheck('@[1].rateLimitDurationInMinutes', 5), + JMESPathCheck('length(@[1].matchConditions)', 2), + JMESPathCheck('@[1].matchConditions[0].matchVariable', 'RequestMethod'), + JMESPathCheck('@[1].matchConditions[0].operator', 'Equal'), + JMESPathCheck('@[1].matchConditions[0].negateCondition', False), + JMESPathCheck('length(@[1].matchConditions[0].matchValue)', 1), + JMESPathCheck('@[1].matchConditions[0].matchValue[0]', 'PUT'), + JMESPathCheck('@[1].matchConditions[1].matchVariable', 'RequestUri'), + JMESPathCheck('@[1].matchConditions[1].operator', 'Contains'), + JMESPathCheck('@[1].matchConditions[1].negateCondition', False), + JMESPathCheck('length(@[1].matchConditions[1].matchValue)', 1), + JMESPathCheck('@[1].matchConditions[1].matchValue[0]', '/expensive/resource/')] + with self.assertRaises(CLIError): + self.cmd('cdn waf policy rate-limit-rule show -g {resource_group} --policy-name {policy} -n {rate_limit_rule_1}') + self.cmd('cdn waf policy rate-limit-rule set -g {resource_group} --policy-name {policy} -n {rate_limit_rule_1} ' + '--action Block --priority 100 --duration 1 --request-threshold 100 --match-condition ' + 'match-variable=RequestMethod operator=Equal negate=true match-value=GET match-value=HEAD', + checks=checks) + self.cmd('cdn waf policy rate-limit-rule show -g {resource_group} --policy-name {policy} -n {rate_limit_rule_1}', + checks=checks) + self.cmd('cdn waf policy rate-limit-rule set -g {resource_group} --policy-name {policy} -n {rate_limit_rule_2} ' + '--action Redirect --priority 200 --duration 5 --request-threshold 100 ' + '-m match-variable=RequestMethod operator=Equal match-value=PUT ' + '-m match-variable=RequestUri operator=Contains match-value=/expensive/resource/', + checks=checks2) + self.cmd('cdn waf policy rate-limit-rule show -g {resource_group} --policy-name {policy} -n {rate_limit_rule_2}', + checks=checks2) + self.cmd('cdn waf policy rate-limit-rule list -g {resource_group} --policy-name {policy}', + checks=list_checks) + + # Update and show policy with custom, rate limit, and managed rules set. + checks = [JMESPathCheck('name', self.kwargs['policy']), + JMESPathCheck('sku.name', SkuName.standard_microsoft.value), + JMESPathCheck('length(customRules.rules)', 2), + JMESPathCheck('length(rateLimitRules.rules)', 2), + JMESPathCheck('length(managedRules.managedRuleSets)', 1), + JMESPathCheck('policySettings.enabledState', 'Disabled'), + JMESPathCheck('policySettings.defaultRedirectUrl', self.kwargs['redirect_url']), + JMESPathCheck('policySettings.defaultCustomBlockResponseStatusCode', + self.kwargs['block_response_status_code']), + JMESPathCheck('policySettings.defaultCustomBlockResponseBody', self.kwargs['block_response_body']), + JMESPathCheck('policySettings.mode', PolicyMode.prevention.value), + JMESPathCheck('tags', {}), + JMESPathCheck('endpointLinks', [])] + self.cmd('cdn waf policy set -g {resource_group} ' + '--name {policy} ' + '--sku Standard_Microsoft ' + '--mode Prevention ' + '--block-response-body {block_response_body} ' + '--block-response-status-code {block_response_status_code} ' + '--redirect-url {redirect_url} ' + '--tags="" ' + '--disabled', + checks=checks) + self.cmd('cdn waf policy show -g {resource_group} -n {policy}', checks=checks) + + # Remove managed rule group override + self.cmd('cdn waf policy managed-rule-set rule-group-override delete -y -g {resource_group} --policy-name {policy} ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version} -n {rule_group}') + with self.assertRaises(CLIError): + self.cmd('cdn waf policy managed-rule-set rule-group-override show -g {resource_group} ' + '--policy-name {policy} --rule-set-type {rule_set_type} ' + '--rule-set-version {rule_set_version} -n {rule_group}') + + # Remove managed rule set + self.cmd('cdn waf policy managed-rule-set remove -y -g {resource_group} --policy-name {policy} ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version}') + with self.assertRaises(CLIError): + self.cmd('cdn waf policy managed-rule-set show -g {resource_group} --policy-name {policy} ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version}') + + # Remove custom rule + self.cmd('cdn waf policy custom-rule delete -y -g {resource_group} --policy-name {policy} -n {custom_rule_1}') + with self.assertRaises(CLIError): + self.cmd('cdn waf policy custom-rule show -g {resource_group} --policy-name {policy} -n {custom_rule_1}') + + # Remove rate limit rule + self.cmd('cdn waf policy rate-limit-rule delete -y -g {resource_group} --policy-name {policy} -n {rate_limit_rule_1}') + with self.assertRaises(CLIError): + self.cmd('cdn waf policy rate-limit-rule show -g {resource_group} --policy-name {policy} -n {rate_limit_rule_1}') + + # Delete policy + self.cmd('cdn waf policy delete -y -g {resource_group} -n {policy}') + + +class CdnWafEndpointLinkScenarioTest(CdnScenarioMixin, ScenarioTest): + @ResourceGroupPreparer(name_prefix='cli_test_cdn_domain') + def test_cdn_waf_endpoint_link(self, resource_group): + + policy = 'wafpolicy1' + profile = 'ps1' + endpoint1 = self.create_random_name(prefix='ep1', length=13) + endpoint2 = self.create_random_name(prefix='ep2', length=13) + policy_id = self.policy_id(resource_group, policy) + + self.kwargs.update({ + 'subscription_id': self.get_subscription_id(), + 'resource_group': resource_group, + 'profile': 'ps1', + 'endpoint1': endpoint1, + 'endpoint2': endpoint2, + 'policy': policy, + 'policy_id': policy_id, + }) + + self.cmd('cdn profile create -g {resource_group} -n {profile} --sku=Standard_Microsoft --location=westus') + + # Create WAF policy and linked endpoint. + policy_checks = [JMESPathCheck('length(endpointLinks)', 0), + JMESPathCheck('id', policy_id, case_sensitive=False)] + self.cmd('cdn waf policy set -g {resource_group} --name {policy}', checks=policy_checks) + + # Create the endpoint. + endpoint_checks = [JMESPathCheck('webApplicationFirewallPolicyLink', None)] + self.cmd('cdn endpoint create -g {resource_group} ' + '--origin www.test.com ' + '--profile-name {profile} ' + '-n {endpoint1} ', + checks=endpoint_checks) + with self.assertRaises(CLIError): + self.cmd('cdn endpoint waf policy show -g {resource_group} --profile-name {profile} --endpoint-name {endpoint1}') + + # Link the endpoint. + link_checks = [JMESPathCheck('id', policy_id, case_sensitive=False)] + endpoint_checks = [JMESPathCheck('webApplicationFirewallPolicyLink.id', policy_id, case_sensitive=False)] + policy_checks = [JMESPathCheck('length(endpointLinks)', 1), + JMESPathCheck('endpointLinks[0].id', self.endpoint_id(resource_group, profile, endpoint1), case_sensitive=False)] + self.cmd('cdn endpoint waf policy set -g {resource_group} --profile-name {profile} --endpoint-name {endpoint1} ' + '--waf-policy-subscription-id {subscription_id} --waf-policy-resource-group-name {resource_group} ' + '--waf-policy-name {policy}', + checks=link_checks) + self.cmd('cdn endpoint waf policy show -g {resource_group} --profile-name {profile} --endpoint-name {endpoint1}', + checks=link_checks) + self.cmd('cdn endpoint show -g {resource_group} ' + '--profile-name {profile} ' + '-n {endpoint1}', + checks=endpoint_checks) + self.cmd('cdn waf policy show -g {resource_group} -n {policy}', checks=policy_checks) + + # Create and link the second endpoint. + policy_checks = [JMESPathCheck('length(endpointLinks)', 2), + JMESPathCheck('endpointLinks[0].id', self.endpoint_id(resource_group, profile, endpoint1), case_sensitive=False), + JMESPathCheck('endpointLinks[1].id', self.endpoint_id(resource_group, profile, endpoint2), case_sensitive=False)] + self.cmd('cdn endpoint create -g {resource_group} ' + '--origin www.test.com ' + '--profile-name {profile} ' + '-n {endpoint2}') + self.cmd('cdn endpoint waf policy set -g {resource_group} ' + '--profile-name {profile} ' + '--endpoint-name {endpoint2} ' + '--waf-policy-id {policy_id}', + checks=link_checks) + self.cmd('cdn endpoint waf policy show -g {resource_group} --profile-name {profile} --endpoint-name {endpoint2}', + checks=link_checks) + self.cmd('cdn endpoint show -g {resource_group} ' + '--profile-name {profile} ' + '-n {endpoint2}', + checks=endpoint_checks) + self.cmd('cdn waf policy show -g {resource_group} -n {policy}', checks=policy_checks) + + # Remove both endpoint links + policy_checks = [JMESPathCheck('length(endpointLinks)', 0)] + endpoint_checks = [JMESPathCheck('webApplicationFirewallPolicyLink', None)] + self.cmd('cdn endpoint waf policy remove -y -g {resource_group} ' + '--profile-name {profile} ' + '--endpoint-name {endpoint1}') + with self.assertRaises(CLIError): + self.cmd('cdn endpoint waf policy show -g {resource_group} --profile-name {profile} --endpoint-name {endpoint1}') + self.cmd('cdn endpoint show -g {resource_group} ' + '--profile-name {profile} ' + '-n {endpoint1}', + checks=endpoint_checks) + self.cmd('cdn endpoint waf policy remove -y -g {resource_group} ' + '--profile-name {profile} ' + '--endpoint-name {endpoint2}') + with self.assertRaises(CLIError): + self.cmd('cdn endpoint waf policy show -g {resource_group} --profile-name {profile} --endpoint-name {endpoint2}') + self.cmd('cdn endpoint show -g {resource_group} ' + '--profile-name {profile} ' + '-n {endpoint2}', + checks=endpoint_checks) + self.cmd('cdn waf policy show -g {resource_group} -n {policy}', checks=policy_checks) + + def endpoint_id(self, resource_group, profile, endpoint): + return f'/subscriptions/{self.get_subscription_id()}' \ + f'/resourcegroups/{resource_group}' \ + f'/providers/Microsoft.Cdn' \ + f'/profiles/{profile}' \ + f'/endpoints/{endpoint}' + + def policy_id(self, resource_group, policy): + return f'/subscriptions/{self.get_subscription_id()}' \ + f'/resourcegroups/{resource_group}' \ + f'/providers/Microsoft.Cdn' \ + f'/cdnwebapplicationfirewallpolicies/{policy}' + + +class CdnWafManagedRuleSetTest(CdnScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_cdn_waf_managed_rule_set_crud(self, resource_group): + + rule_set_type = 'DefaultRuleSet' + rule_set_version = '1.0' + + self.kwargs.update({ + 'resource_group': resource_group, + 'rule_set_type': rule_set_type, + 'rule_set_version': rule_set_version, + }) + + checks = [JMESPathCheck('@[0].name', 'DefaultRuleSet_1.0')] + self.cmd('cdn waf policy managed-rule-set list-available', checks=checks) + + checks = [JMESPathCheck('@[0].ruleGroupName', 'PROTOCOL-ATTACK'), + JMESPathCheck('length(@[0].rules)', 7)] + self.cmd('cdn waf policy managed-rule-set rule-group-override list-available ' + '--rule-set-type {rule_set_type} --rule-set-version {rule_set_version}', + checks=checks) diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index eb2d47a3a7a..998f2b313c4 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -25,7 +25,7 @@ azure-mgmt-batch==7.0.0 azure-mgmt-batchai==2.0.0 azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 -azure-mgmt-cdn==4.0.0 +azure-mgmt-cdn==4.1.0rc1 azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index eb2d47a3a7a..998f2b313c4 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -25,7 +25,7 @@ azure-mgmt-batch==7.0.0 azure-mgmt-batchai==2.0.0 azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 -azure-mgmt-cdn==4.0.0 +azure-mgmt-cdn==4.1.0rc1 azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index d0887e7c065..709652ba5e3 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -24,7 +24,7 @@ azure-mgmt-batch==7.0.0 azure-mgmt-batchai==2.0.0 azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 -azure-mgmt-cdn==4.0.0 +azure-mgmt-cdn==4.1.0rc1 azure-mgmt-cognitiveservices==5.0.0 azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index a37f625b5a5..7fd95d800f3 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -70,7 +70,7 @@ 'azure-mgmt-batchai~=2.0', 'azure-mgmt-billing~=0.2', 'azure-mgmt-botservice~=0.2.0', - 'azure-mgmt-cdn~=4.0.0', + 'azure-mgmt-cdn==4.1.0rc1', 'azure-mgmt-cognitiveservices~=5.0.0', 'azure-mgmt-compute~=10.0', 'azure-mgmt-consumption~=2.0',