From 5e06fed2382695f9c7e2a902392f21ff984191d6 Mon Sep 17 00:00:00 2001 From: Hanyun Tao Date: Tue, 14 Jan 2020 12:18:28 -0800 Subject: [PATCH 1/3] Add rulesEngine support to Azure CLI --- src/azure-cli/HISTORY.rst | 6 + .../azure/cli/command_modules/cdn/_help.py | 110 + .../azure/cli/command_modules/cdn/_params.py | 55 + .../azure/cli/command_modules/cdn/commands.py | 22 + .../azure/cli/command_modules/cdn/custom.py | 322 +- .../recordings/test_cdn_custom_domain.yaml | 212 +- .../test_cdn_microsoft_standard_sku.yaml | 46 +- .../recordings/test_cdn_profile_crud.yaml | 178 +- .../test_cdn_profile_delete_not_found.yaml | 107 +- .../recordings/test_edge_node_crud.yaml | 81 +- .../latest/recordings/test_endpoint_crud.yaml | 380 +-- .../test_endpoint_different_profiles.yaml | 546 +--- .../test_endpoint_load_and_purge.yaml | 1230 +------- .../test_endpoint_start_and_stop.yaml | 264 +- .../recordings/test_origin_list_and_show.yaml | 154 +- .../recordings/test_rulesEngine_crud.yaml | 2604 +++++++++++++++++ .../cdn/tests/latest/scenario_mixin.py | 50 + .../tests/latest/test_endpoint_scenarios.py | 85 + .../tests/latest/test_profile_scenarios.py | 3 +- src/azure-cli/requirements.py2.Darwin.txt | 2 +- src/azure-cli/requirements.py2.Linux.txt | 2 +- src/azure-cli/requirements.py2.windows.txt | 2 +- src/azure-cli/requirements.py3.Darwin.txt | 2 +- src/azure-cli/requirements.py3.Linux.txt | 2 +- src/azure-cli/requirements.py3.windows.txt | 2 +- src/azure-cli/setup.py | 2 +- 26 files changed, 3983 insertions(+), 2486 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rulesEngine_crud.yaml diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index ccac2f211c0..2471e49525a 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -7,6 +7,12 @@ Release History * Support app creation/update with the new sku name ST0, ST1, ST2. +**Cdn** + +* Add support for rulesEngine feature +* Add new commands group 'cdn endpoint rule' to manage rules +* Update azure-mgmt-cdn version to 4.0.0 to use api version 2019-04-15 + 2.0.80 ++++++ 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 daa9702dfe4..1e18343c235 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_help.py @@ -159,6 +159,116 @@ --enable-compression """ +helps['cdn endpoint rule'] = """ +type: group +short-summary: Manage delivery rules for an endpoint. +""" + +helps['cdn endpoint rule add'] = """ +type: command +short-summary: Add a delivery rule to a CDN endpoint. +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 + - 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 +""" + +helps['cdn endpoint rule remove'] = """ +type: command +short-summary: Remove a delivery rule from an endpoint. +examples: + - name: Remove the global rule. + text: > + az cdn endpoint rule remove -g group -n endpoint --profile-name profile --rule-name Global\\ +""" + +helps['cdn endpoint rule show'] = """ +type: command +short-summary: Show delivery rules asscociate with the endpoint. +examples: + - name: show delivery rules asscociate with the endpoint. + text: > + az cdn endpoint rule show -g group --profile-name profile-name +""" + +helps['cdn endpoint rule condition'] = """ +type: group +short-summary: Manage delivery rule conditions for an endpoint. +""" + +helps['cdn endpoint rule condition add'] = """ +type: command +short-summary: Add a condition to a delivery rule. +examples: + - name: Add a remote address condition. + text: > + az cdn endpoint rule condition add -g group -n endpoint --profile-name profile --rule-name name\\ + --match-variable RemoteAddress --operator GeoMatch --match-values "TH" +""" + +helps['cdn endpoint rule condition remove'] = """ +type: command +short-summary: Remove a condition from a delivery rule. +examples: + - name: Remove the first condition. + text: > + az cdn endpoint rule condition remove -g group -n endpoint --profile-name profile --rule-name name\\ + --index 0 +""" + +helps['cdn endpoint rule condition show'] = """ +type: command +short-summary: show delivery rules asscociate with the endpoint. +examples: + - name: show delivery rules asscociate with the endpoint. + text: > + az cdn endpoint rule condition show -g group --profile-name profile-name +""" + +helps['cdn endpoint rule action'] = """ +type: group +short-summary: Manage delivery rule actions for an endpoint. +""" + +helps['cdn endpoint rule action add'] = """ +type: command +short-summary: Add an action to a delivery rule. +examples: + - name: Add a redirect action. + text: > + 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\\ + --action-name "CacheExpiration" --cache-behavior BypassCache +""" + +helps['cdn endpoint rule action remove'] = """ +type: command +short-summary: Remove an action from a delivery rule. +examples: + - name: Remove the first action. + text: > + az cdn endpoint rule action remove -g group -n endpoint --profile-name profile --rule-name name\\ + --index 0 +""" + +helps['cdn endpoint rule action show'] = """ +type: command +short-summary: show delivery rules asscociate with the endpoint. +examples: + - name: show delivery rules asscociate with the endpoint. + text: > + az cdn endpoint rule action show -g group --profile-name profile-name +""" + helps['cdn origin'] = """ type: group short-summary: List or show existing origins related to CDN endpoints. 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 437dab4eb6b..adf0e39a6f3 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_params.py @@ -36,6 +36,7 @@ def get_origin(self, values, option_string): return deep_created_origin +# pylint:disable=too-many-statements def load_arguments(self, _): name_arg_type = CLIArgumentType(options_list=('--name', '-n'), metavar='NAME') @@ -82,6 +83,60 @@ def load_arguments(self, _): 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.') + c.argument('order', help='The order of the rule. The order number must start from 0 and consecutive.\ + Rule with higher order will be applied later.') + c.argument('match_variable', arg_group="Match Condition", help='Name of the match condition.') + c.argument('operator', arg_group="Match Condition", help='Operator of the match condition.') + c.argument('selector', arg_group="Match Condition", help='Selector of the match condition.') + c.argument('match_values', arg_group="Match Condition", + help='Match values of the match condition (comma separated).') + c.argument('transform', arg_group="Match Condition", arg_type=get_enum_type(['Lowercase', 'Uppercase']), + nargs='+', help='Transform to apply before matching.') + c.argument('negate_condition', arg_group="Match Condition", arg_type=get_three_state_flag(), + options_list='--negate-condition', help='If true, negates the condition') + c.argument('action_name', arg_group="Action", help='Name of the action.') + c.argument('cache_behavior', arg_group="Action", + arg_type=get_enum_type(['BypassCache', 'Override', 'SetIfMissing']), + help='Caching behavior for the requests.') + c.argument('cache_duration', arg_group="Action", + help='The duration for which the content needs to be cached. \ + Allowed format is [d.]hh:mm:ss.') + c.argument('header_action', arg_group="Action", + arg_type=get_enum_type(['Append', 'Overwrite', 'Delete']), + help='Header action for the requests.') + c.argument('header_name', arg_group="Action", help='Name of the header to modify.') + c.argument('header_value', arg_group="Action", help='Value of the header.') + c.argument('redirect_type', arg_group="Action", + arg_type=get_enum_type(['Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect']), + help='The redirect type the rule will use when redirecting traffic.') + c.argument('redirect_protocol', arg_group="Action", + arg_type=get_enum_type(['MatchRequest', 'Http', 'Https']), + help='Protocol to use for the redirect.') + c.argument('custom_hostname', arg_group="Action", help='Host to redirect. \ + Leave empty to use the incoming host as the destination host.') + c.argument('custom_path', arg_group="Action", + help='The full path to redirect. Path cannot be empty and must start with /. \ + Leave empty to use the incoming path as destination path.') + c.argument('custom_querystring', arg_group="Action", + help='The set of query strings to be placed in the redirect URL. \ + leave empty to preserve the incoming query string.') + c.argument('custom_fragment', arg_group="Action", help='Fragment to add to the redirect URL.') + c.argument('query_string_behavior', arg_group="Action", + arg_type=get_enum_type(['Include', 'IncludeAll', 'Exclude', 'ExcludeAll']), + help='Query string behavior for the requests.') + c.argument('query_parameters', arg_group="Action", + help='Query parameters to include or exclude (comma separated).') + c.argument('source_pattern', arg_group="Action", + help='A request URI pattern that identifies the type of requests that may be rewritten.') + c.argument('destination', help='The destination path to be used in the rewrite.') + c.argument('preserve_unmatched_path', arg_group="Action", + arg_type=get_three_state_flag(), options_list='--preserve-unmatched-path', + help='If True, the remaining path after the source \ + pattern will be appended to the new destination path.') + c.argument('index', help='The index of the condition/action') + with self.argument_context('cdn endpoint create') as c: c.argument('name', name_arg_type, id_part='name', help='Name of the CDN endpoint.') 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 0d5a360ee32..f8eb52f6fa8 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/commands.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/commands.py @@ -9,6 +9,7 @@ cf_edge_nodes) +# pylint: disable=too-many-statements def load_command_table(self, _): def _not_found(message): @@ -91,6 +92,27 @@ def _inner_not_found(ex): doc_string_source='azure.mgmt.cdn.models#EndpointUpdateParameters', supports_no_wait=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, + doc_string_source='azure.mgmt.cdn.models#Endpoint') + g.custom_command('remove', 'remove_rule', client_factory=cf_cdn, + doc_string_source='azure.mgmt.cdn.models#Endpoint') + + with self.command_group('cdn endpoint rule condition', cdn_endpoints_sdk, is_preview=True) as g: + g.show_command('show', 'get') + g.custom_command('add', 'add_condition', client_factory=cf_cdn, + doc_string_source='azure.mgmt.cdn.models#Endpoint') + g.custom_command('remove', 'remove_condition', client_factory=cf_cdn, + doc_string_source='azure.mgmt.cdn.models#Endpoint') + + with self.command_group('cdn endpoint rule action', cdn_endpoints_sdk, is_preview=True) as g: + g.show_command('show', 'get') + g.custom_command('add', 'add_action', client_factory=cf_cdn, + doc_string_source='azure.mgmt.cdn.models#Endpoint') + g.custom_command('remove', 'remove_action', client_factory=cf_cdn, + doc_string_source='azure.mgmt.cdn.models#Endpoint') + with self.command_group('cdn profile', cdn_profiles_sdk) as g: g.show_command('show', 'get') g.command('usage', 'list_resource_usage') 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 1b9fb1a260e..1cab5cc17dd 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom.py @@ -3,8 +3,28 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.mgmt.cdn.models import (Endpoint, SkuName, - EndpointUpdateParameters, ProfileUpdateParameters) +from azure.mgmt.cdn.models import (Endpoint, SkuName, EndpointUpdateParameters, ProfileUpdateParameters, + EndpointPropertiesUpdateParametersDeliveryPolicy, DeliveryRule, + DeliveryRuleRemoteAddressCondition, RemoteAddressMatchConditionParameters, + DeliveryRuleRequestMethodCondition, RequestMethodMatchConditionParameters, + DeliveryRuleQueryStringCondition, QueryStringMatchConditionParameters, + DeliveryRulePostArgsCondition, PostArgsMatchConditionParameters, + DeliveryRuleRequestHeaderCondition, RequestHeaderMatchConditionParameters, + DeliveryRuleRequestUriCondition, RequestUriMatchConditionParameters, + DeliveryRuleRequestBodyCondition, RequestBodyMatchConditionParameters, + DeliveryRuleRequestSchemeCondition, RequestSchemeMatchConditionParameters, + DeliveryRuleUrlPathCondition, UrlPathMatchConditionParameters, + DeliveryRuleUrlFileExtensionCondition, UrlFileExtensionMatchConditionParameters, + DeliveryRuleUrlFileNameCondition, UrlFileNameMatchConditionParameters, + DeliveryRuleHttpVersionCondition, HttpVersionMatchConditionParameters, + DeliveryRuleIsDeviceCondition, IsDeviceMatchConditionParameters, + DeliveryRuleCookiesCondition, CookiesMatchConditionParameters, + DeliveryRuleCacheExpirationAction, CacheExpirationActionParameters, + DeliveryRuleRequestHeaderAction, HeaderActionParameters, + DeliveryRuleResponseHeaderAction, DeliveryRuleCacheKeyQueryStringAction, + CacheKeyQueryStringActionParameters, UrlRedirectAction, + DeliveryRuleAction, UrlRedirectActionParameters, + UrlRewriteAction, UrlRewriteActionParameters) from azure.cli.core.util import sdk_no_wait @@ -71,6 +91,304 @@ def update_endpoint(instance, return params +# pylint: disable=too-many-return-statements +def create_condition(match_variable=None, operator=None, match_values=None, + selector=None, negate_condition=None, transform=None): + if match_variable == 'RemoteAddress': + return DeliveryRuleRemoteAddressCondition( + parameters=RemoteAddressMatchConditionParameters( + operator=operator, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'RequestMethod': + return DeliveryRuleRequestMethodCondition( + parameters=RequestMethodMatchConditionParameters( + match_values=match_values.split(","), + negate_condition=negate_condition + )) + if match_variable == 'QueryString': + return DeliveryRuleQueryStringCondition( + parameters=QueryStringMatchConditionParameters( + operator=operator, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'PostArgs': + return DeliveryRulePostArgsCondition( + parameters=PostArgsMatchConditionParameters( + operator=operator, + selector=selector, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'RequestHeader': + return DeliveryRuleRequestHeaderCondition( + parameters=RequestHeaderMatchConditionParameters( + operator=operator, + selector=selector, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'RequestUri': + return DeliveryRuleRequestUriCondition( + parameters=RequestUriMatchConditionParameters( + operator=operator, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'RequestBody': + return DeliveryRuleRequestBodyCondition( + parameters=RequestBodyMatchConditionParameters( + operator=operator, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'RequestScheme': + return DeliveryRuleRequestSchemeCondition( + parameters=RequestSchemeMatchConditionParameters( + match_values=match_values.split(","), + negate_condition=negate_condition + )) + if match_variable == 'UrlPath': + return DeliveryRuleUrlPathCondition( + parameters=UrlPathMatchConditionParameters( + operator=operator, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'UrlFileExtension': + return DeliveryRuleUrlFileExtensionCondition( + parameters=UrlFileExtensionMatchConditionParameters( + operator=operator, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'UrlFileName': + return DeliveryRuleUrlFileNameCondition( + parameters=UrlFileNameMatchConditionParameters( + operator=operator, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + if match_variable == 'HttpVersion': + return DeliveryRuleHttpVersionCondition( + parameters=HttpVersionMatchConditionParameters( + match_values=match_values.split(","), + negate_condition=negate_condition + )) + if match_variable == 'IsDevice': + return DeliveryRuleIsDeviceCondition( + parameters=IsDeviceMatchConditionParameters( + match_values=match_values.split(","), + negate_condition=negate_condition + )) + if match_variable == 'Cookies': + return DeliveryRuleCookiesCondition( + parameters=CookiesMatchConditionParameters( + operator=operator, + selector=selector, + match_values=match_values.split(","), + negate_condition=negate_condition, + transforms=transform + )) + return None + + +# pylint: disable=too-many-return-statements +def create_action(action_name, cache_behavior=None, cache_duration=None, header_action=None, + header_name=None, header_value=None, query_string_behavior=None, query_parameters=None, + redirect_type=None, redirect_protocol=None, custom_hostname=None, custom_path=None, + custom_query_string=None, custom_fragment=None, source_pattern=None, destination=None, + preserve_unmatched_path=None): + if action_name == "CacheExpiration": + return DeliveryRuleCacheExpirationAction( + parameters=CacheExpirationActionParameters( + cache_behavior=cache_behavior, + cache_duration=cache_duration + )) + if action_name == 'RequestHeader': + return DeliveryRuleRequestHeaderAction( + parameters=HeaderActionParameters( + header_action=header_action, + header_name=header_name, + value=header_value + )) + if action_name == 'ResponseHeader': + return DeliveryRuleResponseHeaderAction( + parameters=HeaderActionParameters( + header_action=header_action, + header_name=header_name, + value=header_value + )) + if action_name == "CacheKeyQueryString": + return DeliveryRuleCacheKeyQueryStringAction( + parameters=CacheKeyQueryStringActionParameters( + query_string_behavior=query_string_behavior, + query_parameters=query_parameters + )) + if action_name == 'UrlRedirect': + return UrlRedirectAction( + parameters=UrlRedirectActionParameters( + redirect_type=redirect_type, + destination_protocol=redirect_protocol, + custom_path=custom_path, + custom_hostname=custom_hostname, + custom_query_string=custom_query_string, + custom_fragment=custom_fragment + )) + if action_name == 'UrlRewrite': + return UrlRewriteAction( + parameters=UrlRewriteActionParameters( + source_pattern=source_pattern, + destination=destination, + preserve_unmatched_path=preserve_unmatched_path + )) + return DeliveryRuleAction() + + +# pylint: disable=too-many-locals +def add_rule(client, resource_group_name, profile_name, endpoint_name, + order, rule_name, action_name, match_variable=None, operator=None, + match_values=None, selector=None, negate_condition=None, transform=None, + cache_behavior=None, cache_duration=None, header_action=None, + header_name=None, header_value=None, query_string_behavior=None, query_parameters=None, + redirect_type=None, redirect_protocol=None, custom_hostname=None, custom_path=None, + custom_querystring=None, custom_fragment=None, source_pattern=None, + destination=None, preserve_unmatched_path=None): + endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) + policy = endpoint.delivery_policy + if policy is None: + policy = EndpointPropertiesUpdateParametersDeliveryPolicy( + description='delivery_policy', + rules=[]) + + conditions = [] + condition = create_condition(match_variable, operator, match_values, selector, negate_condition, transform) + if condition is not None: + conditions.append(condition) + actions = [] + action = create_action(action_name, cache_behavior, cache_duration, header_action, header_name, + header_value, query_string_behavior, query_parameters, redirect_type, + redirect_protocol, custom_hostname, custom_path, custom_querystring, + custom_fragment, source_pattern, destination, preserve_unmatched_path) + if action is not None: + actions.append(action) + + rule = DeliveryRule( + name=rule_name, + order=order, + conditions=conditions, + actions=actions + ) + + policy.rules.append(rule) + params = EndpointUpdateParameters( + delivery_policy=policy + ) + + return client.endpoints.update(resource_group_name, profile_name, endpoint_name, params) + + +def add_condition(client, resource_group_name, profile_name, endpoint_name, + rule_name, match_variable, operator, match_values=None, selector=None, + negate_condition=None, transform=None): + + endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) + policy = endpoint.delivery_policy + condition = create_condition(match_variable, operator, match_values, selector, negate_condition, transform) + for i in range(0, len(policy.rules)): + if policy.rules[i].name == rule_name: + policy.rules[i].conditions.append(condition) + + params = EndpointUpdateParameters( + delivery_policy=policy + ) + + return client.endpoints.update(resource_group_name, profile_name, endpoint_name, params) + + +def add_action(client, resource_group_name, profile_name, endpoint_name, + rule_name, action_name, cache_behavior=None, cache_duration=None, + header_action=None, header_name=None, header_value=None, query_string_behavior=None, + query_parameters=None, redirect_type=None, redirect_protocol=None, custom_hostname=None, + custom_path=None, custom_querystring=None, custom_fragment=None, source_pattern=None, + destination=None, preserve_unmatched_path=None): + + endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) + policy = endpoint.delivery_policy + action = create_action(action_name, cache_behavior, cache_duration, header_action, header_name, + header_value, query_string_behavior, query_parameters, redirect_type, + redirect_protocol, custom_hostname, custom_path, custom_querystring, + custom_fragment, source_pattern, destination, preserve_unmatched_path) + for i in range(0, len(policy.rules)): + if policy.rules[i].name == rule_name: + policy.rules[i].actions.append(action) + + params = EndpointUpdateParameters( + delivery_policy=policy + ) + + return client.endpoints.update(resource_group_name, profile_name, endpoint_name, params) + + +def remove_rule(client, resource_group_name, profile_name, endpoint_name, rule_name): + + endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) + policy = endpoint.delivery_policy + if policy is not None: + for rule in policy.rules: + if rule.name == rule_name: + policy.rules.remove(rule) + + params = EndpointUpdateParameters( + delivery_policy=policy + ) + + return client.endpoints.update(resource_group_name, profile_name, endpoint_name, params) + + +def remove_condition(client, resource_group_name, profile_name, endpoint_name, rule_name, index): + + endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) + policy = endpoint.delivery_policy + if policy is not None: + for i in range(0, len(policy.rules)): + if policy.rules[i].name == rule_name: + policy.rules[i].conditions.pop(int(index)) + + params = EndpointUpdateParameters( + delivery_policy=policy + ) + + return client.endpoints.update(resource_group_name, profile_name, endpoint_name, params) + + +def remove_action(client, resource_group_name, profile_name, endpoint_name, rule_name, index): + + endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) + policy = endpoint.delivery_policy + if policy is not None: + for i in range(0, len(policy.rules)): + if policy.rules[i].name == rule_name: + policy.rules[i].actions.pop(int(index)) + + params = EndpointUpdateParameters( + delivery_policy=policy + ) + + return client.endpoints.update(resource_group_name, profile_name, endpoint_name, params) + + def create_endpoint(client, resource_group_name, profile_name, name, origins, location=None, origin_host_header=None, origin_path=None, content_types_to_compress=None, is_compression_enabled=None, is_http_allowed=None, is_https_allowed=None, 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 fb0334108b5..eb0748ea23e 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 @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:18:59Z"},"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":"2019-12-09T19:25:29Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:19:04 GMT + - Mon, 09 Dec 2019 19:25:29 GMT expires: - '-1' pragma: @@ -62,12 +62,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -76,7 +76,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/dbaae770-ee4b-4e4c-b3e4-bb7754100b4e?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -84,7 +84,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:19:21 GMT + - Mon, 09 Dec 2019 19:25:35 GMT expires: - '-1' odata-version: @@ -99,8 +99,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1115' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -120,64 +120,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/dbaae770-ee4b-4e4c-b3e4-bb7754100b4e?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:19: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/dbaae770-ee4b-4e4c-b3e4-bb7754100b4e?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -190,7 +136,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:20:05 GMT + - Mon, 09 Dec 2019 19:25:45 GMT expires: - '-1' odata-version: @@ -228,10 +174,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -246,7 +192,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:20:08 GMT + - Mon, 09 Dec 2019 19:25:46 GMT expires: - '-1' odata-version: @@ -284,15 +230,15 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:18:59Z"},"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":"2019-12-09T19:25:29Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -301,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:20:09 GMT + - Mon, 09 Dec 2019 19:25:47 GMT expires: - '-1' pragma: @@ -335,12 +281,12 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -351,7 +297,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/f8932fb3-1c38-49e8-941c-cbb8a0cb2abe?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -359,7 +305,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:20:24 GMT + - Mon, 09 Dec 2019 19:25:52 GMT expires: - '-1' odata-version: @@ -374,8 +320,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1169' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -395,10 +341,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/f8932fb3-1c38-49e8-941c-cbb8a0cb2abe?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -411,7 +357,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:20:36 GMT + - Mon, 09 Dec 2019 19:26:03 GMT expires: - '-1' odata-version: @@ -449,10 +395,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/f8932fb3-1c38-49e8-941c-cbb8a0cb2abe?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -465,7 +411,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:21:08 GMT + - Mon, 09 Dec 2019 19:26:33 GMT expires: - '-1' odata-version: @@ -503,10 +449,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -523,7 +469,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:21:09 GMT + - Mon, 09 Dec 2019 19:26:34 GMT expires: - '-1' odata-version: @@ -561,12 +507,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 response: body: string: "{\r\n \"value\":[\r\n \r\n ]\r\n}" @@ -578,7 +524,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:21:12 GMT + - Mon, 09 Dec 2019 19:26:35 GMT expires: - '-1' odata-version: @@ -616,15 +562,15 @@ interactions: ParameterSetName: - -g --endpoint-name --hostname --profile-name -n User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:18:59Z"},"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":"2019-12-09T19:25:29Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -633,7 +579,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:21:13 GMT + - Mon, 09 Dec 2019 19:26:35 GMT expires: - '-1' pragma: @@ -665,12 +611,12 @@ interactions: ParameterSetName: - -g --endpoint-name --hostname --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 response: body: string: "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": @@ -687,7 +633,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:21:18 GMT + - Mon, 09 Dec 2019 19:26:37 GMT expires: - '-1' pragma: @@ -701,7 +647,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1176' + - '1199' x-powered-by: - ASP.NET status: @@ -721,12 +667,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 response: body: string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": @@ -741,7 +687,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:21:20 GMT + - Mon, 09 Dec 2019 19:26:38 GMT expires: - '-1' pragma: @@ -775,12 +721,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 response: body: string: '' @@ -788,7 +734,7 @@ interactions: cache-control: - no-cache date: - - Mon, 21 Oct 2019 11:21:22 GMT + - Mon, 09 Dec 2019 19:26:39 GMT expires: - '-1' pragma: @@ -802,7 +748,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14989' + - '14998' x-powered-by: - ASP.NET status: @@ -826,27 +772,27 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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\": \"InvalidResource\",\r\n \"message\": + \"The resource format is invalid.\"\r\n }\r\n}" headers: cache-control: - no-cache content-language: - en-US content-length: - - '96' + - '105' content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:21:25 GMT + - Mon, 09 Dec 2019 19:26:39 GMT expires: - '-1' pragma: @@ -860,12 +806,12 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1187' + - '1199' x-powered-by: - ASP.NET status: - code: 404 - message: Not Found + code: 400 + message: Bad Request - request: body: null headers: @@ -882,12 +828,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 response: body: string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": @@ -902,7 +848,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:21:27 GMT + - Mon, 09 Dec 2019 19:26:40 GMT expires: - '-1' pragma: @@ -916,7 +862,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1199' x-powered-by: - ASP.NET status: 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 011ed286732..e1f704dc640 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 @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:34:28Z"},"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":"2019-12-09T19:31:30Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:34:32 GMT + - Mon, 09 Dec 2019 19:31:31 GMT expires: - '-1' pragma: @@ -62,12 +62,12 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-04-15 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 @@ -76,7 +76,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2e242ea0-86e8-4cdf-98f5-060f1f8825dc?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -84,7 +84,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:34:47 GMT + - Mon, 09 Dec 2019 19:31:37 GMT expires: - '-1' odata-version: @@ -99,8 +99,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1164' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '23' x-powered-by: - ASP.NET status: @@ -120,10 +120,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2e242ea0-86e8-4cdf-98f5-060f1f8825dc?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -136,7 +136,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:34:59 GMT + - Mon, 09 Dec 2019 19:31:47 GMT expires: - '-1' odata-version: @@ -174,10 +174,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2e242ea0-86e8-4cdf-98f5-060f1f8825dc?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -190,7 +190,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:35:32 GMT + - Mon, 09 Dec 2019 19:32:17 GMT expires: - '-1' odata-version: @@ -228,10 +228,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2019-04-15 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 @@ -246,7 +246,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:35:34 GMT + - Mon, 09 Dec 2019 19:32:18 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 eb1c446548a..0f8a869b839 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 @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2019-04-15 response: body: string: '{"value":[]}' @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:00:51 GMT + - Mon, 09 Dec 2019 19:25:51 GMT expires: - '-1' pragma: @@ -58,15 +58,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:00:46Z"},"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":"2019-12-09T19:25:50Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:00:52 GMT + - Mon, 09 Dec 2019 19:25:51 GMT expires: - '-1' pragma: @@ -107,12 +107,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -121,7 +121,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/39077450-f156-4055-bc1b-b712541823f5?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -129,7 +129,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:01:06 GMT + - Mon, 09 Dec 2019 19:25:56 GMT expires: - '-1' odata-version: @@ -144,8 +144,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1176' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -165,64 +165,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/39077450-f156-4055-bc1b-b712541823f5?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:01: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/39077450-f156-4055-bc1b-b712541823f5?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -235,7 +181,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:01:50 GMT + - Mon, 09 Dec 2019 19:26:06 GMT expires: - '-1' odata-version: @@ -273,10 +219,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -291,7 +237,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:01:52 GMT + - Mon, 09 Dec 2019 19:26:07 GMT expires: - '-1' odata-version: @@ -329,12 +275,12 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2019-04-15 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 @@ -349,7 +295,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:01:56 GMT + - Mon, 09 Dec 2019 19:26:08 GMT expires: - '-1' odata-version: @@ -387,12 +333,12 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -407,7 +353,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:01:58 GMT + - Mon, 09 Dec 2019 19:26:10 GMT expires: - '-1' odata-version: @@ -449,12 +395,12 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -463,7 +409,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cbb20a2f-b18c-4ec7-bd10-fc9591661b19?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -471,11 +417,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:02:08 GMT + - Mon, 09 Dec 2019 19:26:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cbb20a2f-b18c-4ec7-bd10-fc9591661b19/profileresults/profile123?api-version=2017-10-12 + - 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 odata-version: - '4.0' pragma: @@ -488,8 +434,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1171' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -509,10 +455,10 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cbb20a2f-b18c-4ec7-bd10-fc9591661b19?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -525,7 +471,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:02:19 GMT + - Mon, 09 Dec 2019 19:26:42 GMT expires: - '-1' odata-version: @@ -563,10 +509,10 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -581,7 +527,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:02:21 GMT + - Mon, 09 Dec 2019 19:26:43 GMT expires: - '-1' odata-version: @@ -621,28 +567,28 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b83796c9-7377-40af-97d9-500359fce44a?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: - '0' date: - - Mon, 21 Oct 2019 11:02:31 GMT + - Mon, 09 Dec 2019 19:26:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b83796c9-7377-40af-97d9-500359fce44a/profileresults/profile123?api-version=2017-10-12 + - 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 pragma: - no-cache server: @@ -654,7 +600,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14990' + - '14998' x-powered-by: - ASP.NET status: @@ -674,10 +620,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b83796c9-7377-40af-97d9-500359fce44a?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -690,7 +636,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:02:43 GMT + - Mon, 09 Dec 2019 19:26:56 GMT expires: - '-1' odata-version: @@ -728,10 +674,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b83796c9-7377-40af-97d9-500359fce44a?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -744,7 +690,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:03:16 GMT + - Mon, 09 Dec 2019 19:27:25 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 535a3c25e82..8768119590e 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,54 +1,4 @@ interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2019-03-21T19:24:58Z"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - group create - Connection: - - keep-alive - Content-Length: - - '110' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --location --name --tag - User-Agent: - - python/3.6.6 (Darwin-18.2.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.60 - accept-language: - - en-US - method: PUT - 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","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-03-21T19:24:58Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '384' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 21 Mar 2019 19:25:00 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created - request: body: null headers: @@ -62,17 +12,15 @@ interactions: - keep-alive Content-Length: - '0' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - -g -n User-Agent: - - python/3.6.6 (Darwin-18.2.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 - azure-mgmt-cdn/3.0.0 Azure-SDK-For-Python AZURECLI/2.0.60 + - 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 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/foo12345?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/foo12345?api-version=2019-04-15 response: body: string: '' @@ -80,7 +28,7 @@ interactions: cache-control: - no-cache date: - - Thu, 21 Mar 2019 19:25:02 GMT + - Mon, 09 Dec 2019 19:28:49 GMT expires: - '-1' pragma: @@ -94,51 +42,4 @@ interactions: status: code: 204 message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - group delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --name --yes --no-wait - User-Agent: - - python/3.6.6 (Darwin-18.2.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 - resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.60 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-07-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 21 Mar 2019 19:25:04 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdWM1hMTUszS01FWE5QNzJEUEJETElSS0lNTldYRDJZRldZVXw2QkM4QjE0OUZEQTE3Rjc4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-07-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted 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 784e210ca41..14d5bed3860 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 @@ -2,23 +2,27 @@ interactions: - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [cdn edge-node list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.7.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.5.0 azure-mgmt-cdn/3.0.0 Azure-SDK-For-Python - AZURECLI/2.0.44] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn edge-node list + 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 + accept-language: + - en-US method: GET - uri: https://management.azure.com/providers/Microsoft.Cdn/edgenodes?api-version=2017-10-12 + uri: https://management.azure.com/providers/Microsoft.Cdn/edgenodes?api-version=2019-04-15 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 + 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.49.62.128\",\"prefixLength\":25\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 @@ -60,6 +64,7 @@ interactions: \ },{\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 @@ -76,7 +81,6 @@ interactions: \ \"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.49.62.128\",\"prefixLength\":25\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 @@ -118,6 +122,7 @@ interactions: \ },{\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 @@ -134,7 +139,6 @@ interactions: \ \"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.49.62.128\",\"prefixLength\":25\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 @@ -176,6 +180,7 @@ interactions: \ },{\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 @@ -188,21 +193,37 @@ interactions: \ },{\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}"} + \ }\r\n ]\r\n}" headers: - cache-control: [no-cache] - content-length: ['14976'] - content-type: [application/json; odata.metadata=minimal] - date: ['Fri, 10 Aug 2018 17:52: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} + cache-control: + - no-cache + content-length: + - '14976' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 19:23: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 version: 1 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 6e281dca742..ff746f5ba75 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 @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2017-10-12 + 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 response: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:29:28 GMT + - Mon, 09 Dec 2019 19:23:24 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:29: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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:29:29 GMT + - Mon, 09 Dec 2019 19:23:24 GMT expires: - '-1' pragma: @@ -109,12 +109,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -123,7 +123,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6ea9a85-43e7-472c-8f04-38d5d7279b90?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -131,7 +131,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:29:46 GMT + - Mon, 09 Dec 2019 19:23:31 GMT expires: - '-1' odata-version: @@ -146,8 +146,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1134' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -167,64 +167,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6ea9a85-43e7-472c-8f04-38d5d7279b90?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:29: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6ea9a85-43e7-472c-8f04-38d5d7279b90?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -237,7 +183,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:30:29 GMT + - Mon, 09 Dec 2019 19:23:41 GMT expires: - '-1' odata-version: @@ -275,10 +221,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -293,7 +239,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:30:32 GMT + - Mon, 09 Dec 2019 19:23:43 GMT expires: - '-1' odata-version: @@ -331,12 +277,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"value\":[\r\n \r\n ]\r\n}" @@ -348,7 +294,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:30:36 GMT + - Mon, 09 Dec 2019 19:23:45 GMT expires: - '-1' odata-version: @@ -386,15 +332,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:29: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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -403,7 +349,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:30:36 GMT + - Mon, 09 Dec 2019 19:23:46 GMT expires: - '-1' pragma: @@ -437,12 +383,12 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -453,7 +399,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/7e7ae12a-c729-4bde-906a-a2277345ac1b?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -461,7 +407,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:30:54 GMT + - Mon, 09 Dec 2019 19:23:49 GMT expires: - '-1' odata-version: @@ -476,8 +422,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1141' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -497,10 +443,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7e7ae12a-c729-4bde-906a-a2277345ac1b?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -513,7 +459,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:31:06 GMT + - Mon, 09 Dec 2019 19:24:00 GMT expires: - '-1' odata-version: @@ -551,10 +497,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7e7ae12a-c729-4bde-906a-a2277345ac1b?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -567,7 +513,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:31:39 GMT + - Mon, 09 Dec 2019 19:24:30 GMT expires: - '-1' odata-version: @@ -605,10 +551,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -625,7 +571,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:31:41 GMT + - Mon, 09 Dec 2019 19:24:31 GMT expires: - '-1' odata-version: @@ -663,12 +609,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2017-10-12 + 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 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 @@ -685,7 +631,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:31:45 GMT + - Mon, 09 Dec 2019 19:24:33 GMT expires: - '-1' odata-version: @@ -723,12 +669,12 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -745,7 +691,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:31:48 GMT + - Mon, 09 Dec 2019 19:24:34 GMT expires: - '-1' odata-version: @@ -790,12 +736,12 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -807,7 +753,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/acb09ac7-921b-4aff-a322-deeb4cafb1fa?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -815,11 +761,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:32:00 GMT + - Mon, 09 Dec 2019 19:24:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/acb09ac7-921b-4aff-a322-deeb4cafb1fa/profileresults/profile123/endpointresults/endpoint000002?api-version=2017-10-12 + - 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 odata-version: - '4.0' pragma: @@ -832,8 +778,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1166' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -853,64 +799,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/acb09ac7-921b-4aff-a322-deeb4cafb1fa?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:32: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: - - application/json - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/acb09ac7-921b-4aff-a322-deeb4cafb1fa?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -923,7 +815,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:32:45 GMT + - Mon, 09 Dec 2019 19:24:48 GMT expires: - '-1' odata-version: @@ -961,10 +853,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -982,7 +874,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:32:48 GMT + - Mon, 09 Dec 2019 19:24:49 GMT expires: - '-1' odata-version: @@ -1020,12 +912,12 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -1043,7 +935,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:32:51 GMT + - Mon, 09 Dec 2019 19:24:50 GMT expires: - '-1' odata-version: @@ -1088,12 +980,12 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -1105,7 +997,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/aeab16f4-d2a6-4516-b952-35f618dac37c?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -1113,11 +1005,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:33:01 GMT + - Mon, 09 Dec 2019 19:24:54 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/aeab16f4-d2a6-4516-b952-35f618dac37c/profileresults/profile123/endpointresults/endpoint000002?api-version=2017-10-12 + - 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 odata-version: - '4.0' pragma: @@ -1130,8 +1022,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1144' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -1151,64 +1043,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/aeab16f4-d2a6-4516-b952-35f618dac37c?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:33: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint update - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --no-http --no-https --enable-compression - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/aeab16f4-d2a6-4516-b952-35f618dac37c?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1221,7 +1059,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:33:45 GMT + - Mon, 09 Dec 2019 19:25:05 GMT expires: - '-1' odata-version: @@ -1259,10 +1097,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -1280,7 +1118,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:33:48 GMT + - Mon, 09 Dec 2019 19:25:06 GMT expires: - '-1' odata-version: @@ -1320,28 +1158,28 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2b98bb32-692c-43ce-8dd4-e9ff63add407?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: - '0' date: - - Mon, 21 Oct 2019 11:33:56 GMT + - Mon, 09 Dec 2019 19:25:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2b98bb32-692c-43ce-8dd4-e9ff63add407/profileresults/profile123/endpointresults/endpoint000002?api-version=2017-10-12 + - 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 pragma: - no-cache server: @@ -1353,7 +1191,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14989' + - '14999' x-powered-by: - ASP.NET status: @@ -1373,10 +1211,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2b98bb32-692c-43ce-8dd4-e9ff63add407?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1389,7 +1227,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:34:11 GMT + - Mon, 09 Dec 2019 19:25:19 GMT expires: - '-1' odata-version: @@ -1427,10 +1265,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2b98bb32-692c-43ce-8dd4-e9ff63add407?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1443,7 +1281,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:34:44 GMT + - Mon, 09 Dec 2019 19:25:50 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 26a866435c0..6b61068b952 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 @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:06:10Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:06:14 GMT + - Mon, 09 Dec 2019 19:23:24 GMT expires: - '-1' pragma: @@ -62,12 +62,12 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -76,7 +76,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/71ac50b1-4c46-4e91-bfa5-6d8e65646e83?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -84,7 +84,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:06:29 GMT + - Mon, 09 Dec 2019 19:23:31 GMT expires: - '-1' odata-version: @@ -99,8 +99,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1177' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -120,10 +120,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/71ac50b1-4c46-4e91-bfa5-6d8e65646e83?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -136,7 +136,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:06:41 GMT + - Mon, 09 Dec 2019 19:23:41 GMT expires: - '-1' odata-version: @@ -174,10 +174,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/71ac50b1-4c46-4e91-bfa5-6d8e65646e83?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -190,7 +190,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:07:13 GMT + - Mon, 09 Dec 2019 19:24:12 GMT expires: - '-1' odata-version: @@ -228,10 +228,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -246,7 +246,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:07:15 GMT + - Mon, 09 Dec 2019 19:24:13 GMT expires: - '-1' odata-version: @@ -284,15 +284,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:06:10Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -301,7 +301,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:07:17 GMT + - Mon, 09 Dec 2019 19:24:13 GMT expires: - '-1' pragma: @@ -335,12 +335,12 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -351,7 +351,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/4f8eb990-60b1-43b6-8300-fefa27181b87?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -359,7 +359,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:07:49 GMT + - Mon, 09 Dec 2019 19:24:18 GMT expires: - '-1' odata-version: @@ -374,8 +374,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1172' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -395,10 +395,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4f8eb990-60b1-43b6-8300-fefa27181b87?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -411,7 +411,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:08:01 GMT + - Mon, 09 Dec 2019 19:24:29 GMT expires: - '-1' odata-version: @@ -449,64 +449,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4f8eb990-60b1-43b6-8300-fefa27181b87?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:08: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint create - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --origin - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4f8eb990-60b1-43b6-8300-fefa27181b87?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -519,7 +465,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:09:06 GMT + - Mon, 09 Dec 2019 19:24:59 GMT expires: - '-1' odata-version: @@ -557,10 +503,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -577,7 +523,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:09:08 GMT + - Mon, 09 Dec 2019 19:25:00 GMT expires: - '-1' odata-version: @@ -615,15 +561,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:06:10Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -632,7 +578,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:09:10 GMT + - Mon, 09 Dec 2019 19:25:00 GMT expires: - '-1' pragma: @@ -664,12 +610,12 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -678,7 +624,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bac1665c-dbf0-4d82-ad37-a8c6df0de9a5?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -686,7 +632,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:09:26 GMT + - Mon, 09 Dec 2019 19:25:23 GMT expires: - '-1' odata-version: @@ -701,8 +647,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1168' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -722,10 +668,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bac1665c-dbf0-4d82-ad37-a8c6df0de9a5?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -738,7 +684,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:09:38 GMT + - Mon, 09 Dec 2019 19:25:34 GMT expires: - '-1' odata-version: @@ -776,64 +722,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bac1665c-dbf0-4d82-ad37-a8c6df0de9a5?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:10: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n --sku - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bac1665c-dbf0-4d82-ad37-a8c6df0de9a5?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -846,7 +738,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:10:43 GMT + - Mon, 09 Dec 2019 19:26:05 GMT expires: - '-1' odata-version: @@ -884,10 +776,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -902,7 +794,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:10:45 GMT + - Mon, 09 Dec 2019 19:26:06 GMT expires: - '-1' odata-version: @@ -940,15 +832,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:06:10Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -957,7 +849,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:10:47 GMT + - Mon, 09 Dec 2019 19:26:05 GMT expires: - '-1' pragma: @@ -991,12 +883,12 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -1007,7 +899,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/d6b10755-880e-46d3-9df0-f59cea5880a1?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -1015,7 +907,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:04 GMT + - Mon, 09 Dec 2019 19:26:12 GMT expires: - '-1' odata-version: @@ -1030,8 +922,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1173' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -1051,10 +943,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d6b10755-880e-46d3-9df0-f59cea5880a1?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1067,7 +959,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:17 GMT + - Mon, 09 Dec 2019 19:26:22 GMT expires: - '-1' odata-version: @@ -1105,10 +997,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d6b10755-880e-46d3-9df0-f59cea5880a1?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1121,7 +1013,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:49 GMT + - Mon, 09 Dec 2019 19:26:53 GMT expires: - '-1' odata-version: @@ -1159,10 +1051,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -1179,7 +1071,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:51 GMT + - Mon, 09 Dec 2019 19:26:54 GMT expires: - '-1' odata-version: @@ -1217,15 +1109,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:06:10Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1234,7 +1126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:11:52 GMT + - Mon, 09 Dec 2019 19:26:54 GMT expires: - '-1' pragma: @@ -1266,12 +1158,12 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -1280,7 +1172,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db9a37df-c009-46b2-9cf5-d9bc3fe0eb41?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -1288,7 +1180,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:06 GMT + - Mon, 09 Dec 2019 19:27:00 GMT expires: - '-1' odata-version: @@ -1303,8 +1195,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1171' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -1324,172 +1216,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db9a37df-c009-46b2-9cf5-d9bc3fe0eb41?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:12: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n --sku - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db9a37df-c009-46b2-9cf5-d9bc3fe0eb41?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:12: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n --sku - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db9a37df-c009-46b2-9cf5-d9bc3fe0eb41?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:13:23 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n --sku - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db9a37df-c009-46b2-9cf5-d9bc3fe0eb41?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1502,7 +1232,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:53 GMT + - Mon, 09 Dec 2019 19:27:10 GMT expires: - '-1' odata-version: @@ -1540,10 +1270,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db9a37df-c009-46b2-9cf5-d9bc3fe0eb41?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1556,7 +1286,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:14:26 GMT + - Mon, 09 Dec 2019 19:27:41 GMT expires: - '-1' odata-version: @@ -1594,10 +1324,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -1612,7 +1342,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:14:28 GMT + - Mon, 09 Dec 2019 19:27:42 GMT expires: - '-1' odata-version: @@ -1650,15 +1380,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:06:10Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1667,7 +1397,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:14:30 GMT + - Mon, 09 Dec 2019 19:27:42 GMT expires: - '-1' pragma: @@ -1701,12 +1431,12 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -1717,7 +1447,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/c548c659-7153-41a9-b198-431974469756?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -1725,7 +1455,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:14:48 GMT + - Mon, 09 Dec 2019 19:28:05 GMT expires: - '-1' odata-version: @@ -1740,8 +1470,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1170' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -1761,10 +1491,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c548c659-7153-41a9-b198-431974469756?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1777,7 +1507,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:15:00 GMT + - Mon, 09 Dec 2019 19:28:16 GMT expires: - '-1' odata-version: @@ -1815,10 +1545,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c548c659-7153-41a9-b198-431974469756?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1831,7 +1561,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:15:33 GMT + - Mon, 09 Dec 2019 19:28:46 GMT expires: - '-1' odata-version: @@ -1869,10 +1599,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -1889,7 +1619,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:15:35 GMT + - Mon, 09 Dec 2019 19:28:47 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 1b7f395d0f4..6fb6c626aef 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 @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:24:39Z"},"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":"2019-12-09T19:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:24:43 GMT + - Mon, 09 Dec 2019 19:52:34 GMT expires: - '-1' pragma: @@ -62,12 +62,12 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -76,7 +76,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83c6feb3-d2be-4daa-9c81-8ac7b979b539?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -84,7 +84,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:24:57 GMT + - Mon, 09 Dec 2019 19:52:40 GMT expires: - '-1' odata-version: @@ -99,8 +99,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1113' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -120,10 +120,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83c6feb3-d2be-4daa-9c81-8ac7b979b539?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -136,7 +136,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:25:10 GMT + - Mon, 09 Dec 2019 19:52:50 GMT expires: - '-1' odata-version: @@ -174,64 +174,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83c6feb3-d2be-4daa-9c81-8ac7b979b539?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:25:41 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n --sku - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83c6feb3-d2be-4daa-9c81-8ac7b979b539?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -244,7 +190,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:26:14 GMT + - Mon, 09 Dec 2019 19:53:21 GMT expires: - '-1' odata-version: @@ -282,10 +228,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -300,7 +246,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:26:15 GMT + - Mon, 09 Dec 2019 19:53:22 GMT expires: - '-1' odata-version: @@ -338,15 +284,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:24:39Z"},"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":"2019-12-09T19:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -355,7 +301,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:26:17 GMT + - Mon, 09 Dec 2019 19:53:22 GMT expires: - '-1' pragma: @@ -389,12 +335,12 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -405,7 +351,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/9e32540b-f552-4d7f-adca-324b9049e55f?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -413,7 +359,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:26:33 GMT + - Mon, 09 Dec 2019 19:53:29 GMT expires: - '-1' odata-version: @@ -428,8 +374,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1170' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -449,10 +395,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9e32540b-f552-4d7f-adca-324b9049e55f?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -465,7 +411,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:26:45 GMT + - Mon, 09 Dec 2019 19:53:40 GMT expires: - '-1' odata-version: @@ -503,10 +449,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9e32540b-f552-4d7f-adca-324b9049e55f?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -519,7 +465,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:27:17 GMT + - Mon, 09 Dec 2019 19:54:10 GMT expires: - '-1' odata-version: @@ -557,10 +503,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -577,7 +523,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:27:19 GMT + - Mon, 09 Dec 2019 19:54:11 GMT expires: - '-1' odata-version: @@ -619,28 +565,28 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: - '0' date: - - Mon, 21 Oct 2019 11:27:30 GMT + - Mon, 09 Dec 2019 19:54:15 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde/profileresults/profile123/endpointresults/endpoint000002?api-version=2017-10-12 + - 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 pragma: - no-cache server: @@ -651,8 +597,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1178' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' x-powered-by: - ASP.NET status: @@ -672,172 +618,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:27: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:28: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:28: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -850,7 +634,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:29:18 GMT + - Mon, 09 Dec 2019 19:54:25 GMT expires: - '-1' odata-version: @@ -888,10 +672,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -904,7 +688,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:29:51 GMT + - Mon, 09 Dec 2019 19:54:56 GMT expires: - '-1' odata-version: @@ -942,10 +726,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -958,7 +742,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:30:23 GMT + - Mon, 09 Dec 2019 19:55:26 GMT expires: - '-1' odata-version: @@ -996,10 +780,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1012,7 +796,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:30:56 GMT + - Mon, 09 Dec 2019 19:55:56 GMT expires: - '-1' odata-version: @@ -1050,10 +834,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1066,7 +850,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:31:28 GMT + - Mon, 09 Dec 2019 19:56:26 GMT expires: - '-1' odata-version: @@ -1104,10 +888,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1120,7 +904,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:32:00 GMT + - Mon, 09 Dec 2019 19:56:57 GMT expires: - '-1' odata-version: @@ -1158,23 +942,23 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\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, 21 Oct 2019 11:32:33 GMT + - Mon, 09 Dec 2019 19:57:27 GMT expires: - '-1' odata-version: @@ -1199,59 +983,62 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"contentPaths": ["/index.html", "/javascript/*"]}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint load + - cdn endpoint purge Connection: - keep-alive + Content-Length: + - '50' + Content-Type: + - application/json; charset=utf-8 ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + - 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 + 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 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + 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 cache-control: - no-cache content-length: - - '78' - content-type: - - application/json; odata.metadata=minimal + - '0' date: - - Mon, 21 Oct 2019 11:33:05 GMT + - Mon, 09 Dec 2019 19:57:31 GMT expires: - '-1' - odata-version: - - '4.0' + 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 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-resource-requests: + - '499' x-powered-by: - ASP.NET status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -1260,16 +1047,16 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint load + - cdn endpoint purge Connection: - keep-alive ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1282,7 +1069,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:33:35 GMT + - Mon, 09 Dec 2019 19:57:42 GMT expires: - '-1' odata-version: @@ -1314,16 +1101,16 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint load + - cdn endpoint purge Connection: - keep-alive ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1336,7 +1123,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:34:11 GMT + - Mon, 09 Dec 2019 19:58:12 GMT expires: - '-1' odata-version: @@ -1360,765 +1147,6 @@ interactions: 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:34: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:35: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:35: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:36: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:36: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:37: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:37: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:38: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11: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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:40:38 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: - - 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.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c3294598-32dd-4c4a-b850-0c2798aabbde?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11: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: '{"contentPaths": ["/index.html", "/javascript/*"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint purge - Connection: - - keep-alive - Content-Length: - - '50' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --profile-name --content-paths - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - 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=2017-10-12 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dcbc308b-82ce-4df2-9909-12093b6877f2?api-version=2017-10-12 - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 21 Oct 2019 11:41:24 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dcbc308b-82ce-4df2-9909-12093b6877f2/profileresults/profile123/endpointresults/endpoint000002?api-version=2017-10-12 - 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: - - '1180' - x-powered-by: - - ASP.NET - status: - code: 202 - message: Accepted - request: body: null headers: @@ -2133,10 +1161,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dcbc308b-82ce-4df2-9909-12093b6877f2?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -2149,7 +1177,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:41:36 GMT + - Mon, 09 Dec 2019 19:58:41 GMT expires: - '-1' odata-version: @@ -2187,10 +1215,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dcbc308b-82ce-4df2-9909-12093b6877f2?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -2203,7 +1231,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:42:08 GMT + - Mon, 09 Dec 2019 19:59:12 GMT expires: - '-1' odata-version: @@ -2241,10 +1269,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dcbc308b-82ce-4df2-9909-12093b6877f2?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -2257,7 +1285,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:42:40 GMT + - Mon, 09 Dec 2019 19:59:42 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 758ebe5903c..f471e65e354 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 @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:10:42Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:10:45 GMT + - Mon, 09 Dec 2019 19:23:24 GMT expires: - '-1' pragma: @@ -62,12 +62,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -76,7 +76,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/beece038-ec29-478b-bfac-a6497bc8013b?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -84,7 +84,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:00 GMT + - Mon, 09 Dec 2019 19:23:30 GMT expires: - '-1' odata-version: @@ -99,8 +99,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1166' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -120,64 +120,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/beece038-ec29-478b-bfac-a6497bc8013b?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:11: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/beece038-ec29-478b-bfac-a6497bc8013b?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -190,7 +136,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:44 GMT + - Mon, 09 Dec 2019 19:23:40 GMT expires: - '-1' odata-version: @@ -228,10 +174,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -246,7 +192,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:46 GMT + - Mon, 09 Dec 2019 19:23:41 GMT expires: - '-1' odata-version: @@ -284,15 +230,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:10:42Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -301,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:11:48 GMT + - Mon, 09 Dec 2019 19:23:42 GMT expires: - '-1' pragma: @@ -335,12 +281,12 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -351,7 +297,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/a08a7c59-4e39-4075-a56a-d944391db1d3?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -359,7 +305,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:08 GMT + - Mon, 09 Dec 2019 19:23:47 GMT expires: - '-1' odata-version: @@ -374,8 +320,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1173' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' x-powered-by: - ASP.NET status: @@ -395,10 +341,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a08a7c59-4e39-4075-a56a-d944391db1d3?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -411,7 +357,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:21 GMT + - Mon, 09 Dec 2019 19:23:57 GMT expires: - '-1' odata-version: @@ -449,10 +395,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a08a7c59-4e39-4075-a56a-d944391db1d3?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -465,7 +411,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:54 GMT + - Mon, 09 Dec 2019 19:24:27 GMT expires: - '-1' odata-version: @@ -503,10 +449,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -523,7 +469,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:56 GMT + - Mon, 09 Dec 2019 19:24:28 GMT expires: - '-1' odata-version: @@ -563,12 +509,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -578,7 +524,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":null\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0bc86538-94a8-4762-a750-9ea719d84bfa?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -586,11 +532,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:09 GMT + - Mon, 09 Dec 2019 19:24:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0bc86538-94a8-4762-a750-9ea719d84bfa/profileresults/profile123/endpointresults/endpoint000002?api-version=2017-10-12 + - 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 odata-version: - '4.0' pragma: @@ -603,8 +549,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1189' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '49' x-powered-by: - ASP.NET status: @@ -624,10 +570,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0bc86538-94a8-4762-a750-9ea719d84bfa?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -640,7 +586,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:21 GMT + - Mon, 09 Dec 2019 19:24:41 GMT expires: - '-1' odata-version: @@ -678,10 +624,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0bc86538-94a8-4762-a750-9ea719d84bfa?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -694,7 +640,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:53 GMT + - Mon, 09 Dec 2019 19:25:12 GMT expires: - '-1' odata-version: @@ -732,12 +678,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -754,7 +700,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:57 GMT + - Mon, 09 Dec 2019 19:25:14 GMT expires: - '-1' odata-version: @@ -794,12 +740,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -809,7 +755,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":null\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52f6d334-5e2f-4132-b0f6-40bbc10210ee?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -817,11 +763,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:14:08 GMT + - Mon, 09 Dec 2019 19:25:16 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52f6d334-5e2f-4132-b0f6-40bbc10210ee/profileresults/profile123/endpointresults/endpoint000002?api-version=2017-10-12 + - 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 odata-version: - '4.0' pragma: @@ -834,8 +780,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1188' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '49' x-powered-by: - ASP.NET status: @@ -855,64 +801,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52f6d334-5e2f-4132-b0f6-40bbc10210ee?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:14: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint start - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52f6d334-5e2f-4132-b0f6-40bbc10210ee?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -925,7 +817,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:14:52 GMT + - Mon, 09 Dec 2019 19:25:26 GMT expires: - '-1' odata-version: @@ -963,12 +855,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -985,7 +877,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:14:55 GMT + - Mon, 09 Dec 2019 19:25:28 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 6d6ede25030..7d01b7529e3 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 @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:11:01Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:11:05 GMT + - Mon, 09 Dec 2019 19:23:24 GMT expires: - '-1' pragma: @@ -62,12 +62,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -76,7 +76,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2a7789a2-62fe-4031-bab1-b76ca46d5f65?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -84,7 +84,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:11:22 GMT + - Mon, 09 Dec 2019 19:23:31 GMT expires: - '-1' odata-version: @@ -99,8 +99,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1121' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' x-powered-by: - ASP.NET status: @@ -120,64 +120,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2a7789a2-62fe-4031-bab1-b76ca46d5f65?api-version=2017-10-12 - 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: - - Mon, 21 Oct 2019 11:11: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2a7789a2-62fe-4031-bab1-b76ca46d5f65?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -190,7 +136,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:07 GMT + - Mon, 09 Dec 2019 19:23:41 GMT expires: - '-1' odata-version: @@ -228,10 +174,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2017-10-12 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2019-04-15 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 @@ -246,7 +192,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:09 GMT + - Mon, 09 Dec 2019 19:23:42 GMT expires: - '-1' odata-version: @@ -284,15 +230,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (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.75 + - 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 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-10-21T11:11:01Z"},"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":"2019-12-09T19:23:23Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -301,7 +247,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 21 Oct 2019 11:12:11 GMT + - Mon, 09 Dec 2019 19:23:43 GMT expires: - '-1' pragma: @@ -335,12 +281,12 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -351,7 +297,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/a56362a9-cf03-4b58-bafa-f99a475df583?api-version=2017-10-12 + - 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 cache-control: - no-cache content-length: @@ -359,7 +305,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:26 GMT + - Mon, 09 Dec 2019 19:23:47 GMT expires: - '-1' odata-version: @@ -374,8 +320,8 @@ interactions: - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1173' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '98' x-powered-by: - ASP.NET status: @@ -395,10 +341,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a56362a9-cf03-4b58-bafa-f99a475df583?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -411,7 +357,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:12:40 GMT + - Mon, 09 Dec 2019 19:23:57 GMT expires: - '-1' odata-version: @@ -449,10 +395,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a56362a9-cf03-4b58-bafa-f99a475df583?api-version=2017-10-12 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -465,7 +411,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:12 GMT + - Mon, 09 Dec 2019 19:24:28 GMT expires: - '-1' odata-version: @@ -503,10 +449,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 @@ -523,7 +469,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:14 GMT + - Mon, 09 Dec 2019 19:24:29 GMT expires: - '-1' odata-version: @@ -561,12 +507,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -580,7 +526,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:17 GMT + - Mon, 09 Dec 2019 19:24:30 GMT expires: - '-1' odata-version: @@ -618,12 +564,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-cdn/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.75 + - 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 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=2017-10-12 + 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 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 @@ -637,7 +583,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 21 Oct 2019 11:13:19 GMT + - Mon, 09 Dec 2019 19:24:31 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rulesEngine_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rulesEngine_crud.yaml new file mode 100644 index 00000000000..1dcc4dde9a4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rulesEngine_crud.yaml @@ -0,0 +1,2604 @@ +interactions: +- 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.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 + 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 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''profile123'' not + found."}}' + headers: + cache-control: + - no-cache + content-length: + - '151' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 09 Dec 2019 20:50:43 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: + - application/json + 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-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + 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-09T20:50:42Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 09 Dec 2019 20:50:43 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: '{"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 + 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 + 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 + 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}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/44ec05cf-1bdc-41f7-96f7-2f0b564df47c?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '422' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:50:47 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: + - '24' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + 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 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/44ec05cf-1bdc-41f7-96f7-2f0b564df47c?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:50: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: + - application/json + 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 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/44ec05cf-1bdc-41f7-96f7-2f0b564df47c?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:51: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: + - application/json + 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 + 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 + 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}" + headers: + cache-control: + - no-cache + content-length: + - '421' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:51: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: + - application/json + 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.77 + 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 + response: + body: + string: "{\r\n \"value\":[\r\n \r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '28' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:51: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: + - application/json + 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-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + 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-09T20:50:42Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 09 Dec 2019 20:51:31 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: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": + true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": + {"hostName": "www.example.com", "httpPort": 80, "httpsPort": 443}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + Content-Length: + - '232' + Content-Type: + - application/json; charset=utf-8 + 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 + 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 + 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}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '978' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:51:36 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: + - '99' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- 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.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 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:51:46 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: + - application/json + 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 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:52: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: + - application/json + 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 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:53: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: + - application/json + 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 + 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 + 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}" + headers: + cache-control: + - no-cache + content-length: + - '978' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:53: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: + - application/json + 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.77 + 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 + 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}" + headers: + cache-control: + - no-cache + content-length: + - '1078' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:53: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-rule + 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.77 + 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 + 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}" + headers: + cache-control: + - no-cache + content-length: + - '978' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:53:11 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: '{"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"], "transforms": []}}], "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 add-rule + Connection: + - keep-alive + Content-Length: + - '524' + 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.77 + 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}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3751148d-01ee-4ec5-bd6d-66d7e6f0072c?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '1789' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:53:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3751148d-01ee-4ec5-bd6d-66d7e6f0072c/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + 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: + - '99' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-rule + 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.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3751148d-01ee-4ec5-bd6d-66d7e6f0072c?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:53: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-rule + 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.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3751148d-01ee-4ec5-bd6d-66d7e6f0072c?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:53:56 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-rule + 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.77 + 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 + 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}" + headers: + cache-control: + - no-cache + content-length: + - '1789' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:53: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-condition + 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.77 + 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 + 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}" + headers: + cache-control: + - no-cache + content-length: + - '1789' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:53: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: '{"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"], "transforms": []}}], "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 add-condition + Connection: + - keep-alive + Content-Length: + - '749' + Content-Type: + - application/json; charset=utf-8 + 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.77 + 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\"\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}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53492197-da50-44b6-862d-3f1698679862?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '2141' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53492197-da50-44b6-862d-3f1698679862/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + 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: + - '99' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-condition + 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.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53492197-da50-44b6-862d-3f1698679862?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:54: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-condition + 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.77 + 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 + 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\"\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}" + headers: + cache-control: + - no-cache + content-length: + - '2141' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-action + 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.77 + 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 + 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\"\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}" + headers: + cache-control: + - no-cache + content-length: + - '2141' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54: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: '{"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"], "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 add-action + Connection: + - keep-alive + Content-Length: + - '948' + Content-Type: + - application/json; charset=utf-8 + 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.77 + 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\"\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}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ec244f4-52aa-4010-9096-23029b8ca3e0?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '2398' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ec244f4-52aa-4010-9096-23029b8ca3e0/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + 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: + - '99' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-action + 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.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ec244f4-52aa-4010-9096-23029b8ca3e0?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:54: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint add-action + 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.77 + 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 + 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\"\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}" + headers: + cache-control: + - no-cache + content-length: + - '2398' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-condition + 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.77 + 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 + 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\"\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}" + headers: + cache-control: + - no-cache + content-length: + - '2398' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54: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: '{"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": + []}}], "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 remove-condition + Connection: + - keep-alive + Content-Length: + - '723' + Content-Type: + - application/json; charset=utf-8 + 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.77 + 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 \"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}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6f917fe-548a-4de0-8dee-65bd37244bb5?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '2046' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6f917fe-548a-4de0-8dee-65bd37244bb5/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + 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: + - '99' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-condition + 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.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6f917fe-548a-4de0-8dee-65bd37244bb5?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:54: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-condition + 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.77 + 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 + 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 \"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}" + headers: + cache-control: + - no-cache + content-length: + - '2046' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54:48 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-action + 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.77 + 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 + 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 \"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}" + headers: + cache-control: + - no-cache + content-length: + - '2046' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54: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: '{"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": + []}}], "actions": [{"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 remove-action + Connection: + - keep-alive + Content-Length: + - '536' + Content-Type: + - application/json; charset=utf-8 + 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.77 + 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\":\"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}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45d63a7a-342a-49b5-81a7-0fbbcc05f329?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '1783' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:54:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45d63a7a-342a-49b5-81a7-0fbbcc05f329/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + 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: + - '98' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-action + 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.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45d63a7a-342a-49b5-81a7-0fbbcc05f329?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:55: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-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-action + 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.77 + 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 + 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\":\"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}" + headers: + cache-control: + - no-cache + content-length: + - '1783' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:55: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-rule + 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.77 + 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 + 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\":\"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}" + headers: + cache-control: + - no-cache + content-length: + - '1783' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:55: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: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + []}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-rule + Connection: + - keep-alive + Content-Length: + - '83' + Content-Type: + - application/json; charset=utf-8 + 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.77 + 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 ]\r\n }\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a83f433c-7498-4dca-92df-82e04b69af8a?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '1050' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:55:10 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a83f433c-7498-4dca-92df-82e04b69af8a/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + 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: + - '99' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-rule + 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.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a83f433c-7498-4dca-92df-82e04b69af8a?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:55: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint remove-rule + 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.77 + 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 + 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}" + headers: + cache-control: + - no-cache + content-length: + - '1050' + content-type: + - application/json; odata.metadata=minimal + date: + - Mon, 09 Dec 2019 20:55: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + Content-Length: + - '0' + 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 + 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 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7?api-version=2019-04-15 + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 09 Dec 2019 20:55:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 + 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: + - '14999' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + 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 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:55: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: + - application/json + 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 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7?api-version=2019-04-15 + 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: + - Mon, 09 Dec 2019 20:56: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py index d0e3fc85bf9..76104e26d93 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py @@ -8,6 +8,7 @@ def add_tags(command, tags): return command + ' --tags {}'.format(tags) +# pylint: disable=too-many-public-methods class CdnScenarioMixin(object): def profile_create_cmd(self, group, name, tags=None, checks=None, options=None, sku=None): command = 'cdn profile create -g {} -n {}'.format(group, name) @@ -88,6 +89,55 @@ def endpoint_load_cmd(self, group, name, profile_name, content_paths, checks=Non ' '.join(content_paths)) return self.cmd(command, checks) + def endpoint_add_rule_cmd(self, group, name, profile_name, checks=None): + msg = 'az cdn endpoint rule add -g {} -n {} --profile-name {} --order 1 --rule-name r1\ + --match-variable RemoteAddress --operator GeoMatch --match-values "TH"\ + --action-name CacheExpiration --cache-behavior BypassCache' + command = msg.format(group, + name, + profile_name) + return self.cmd(command, checks) + + def endpoint_add_condition_cmd(self, group, name, profile_name, checks=None, options=None): + command = 'cdn endpoint rule condition add -g {} -n {} --profile-name {}'.format(group, + name, + profile_name) + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def endpoint_add_action_cmd(self, group, name, profile_name, checks=None, options=None): + command = 'cdn endpoint rule action add -g {} -n {} --profile-name {}'.format(group, + name, + profile_name) + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def endpoint_remove_rule_cmd(self, group, name, profile_name, checks=None, options=None): + command = 'cdn endpoint rule remove -g {} -n {} --profile-name {}'.format(group, + name, + profile_name) + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def endpoint_remove_condition_cmd(self, group, name, profile_name, checks=None, options=None): + command = 'cdn endpoint rule condition remove -g {} -n {} --profile-name {}'.format(group, + name, + profile_name) + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def endpoint_remove_action_cmd(self, group, name, profile_name, checks=None, options=None): + command = 'cdn endpoint rule action remove -g {} -n {} --profile-name {}'.format(group, + name, + profile_name) + if options: + command = command + ' ' + options + return self.cmd(command, checks) + def endpoint_purge_cmd(self, group, name, profile_name, content_paths, checks=None): msg = 'cdn endpoint purge -g {} -n {} --profile-name {} --content-paths {}' command = msg.format(group, diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py index ceae786753a..8ca80c5a52f 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py @@ -122,3 +122,88 @@ def _create_profile(self, resource_group, profile_sku): check = JMESPathCheck('sku.name', profile_sku) self.profile_create_cmd(resource_group, profile_name, sku=profile_sku, checks=check) return profile_name + + @ResourceGroupPreparer() + def test_rulesEngine_crud(self, resource_group): + profile_name = 'profile123' + self.endpoint_list_cmd(resource_group, profile_name, expect_failure=True) + + self.profile_create_cmd(resource_group, profile_name, options='--sku Standard_Microsoft') + list_checks = [JMESPathCheck('length(@)', 0)] + self.endpoint_list_cmd(resource_group, profile_name, checks=list_checks) + + endpoint_name = self.create_random_name(prefix='endpoint', length=24) + origin = 'www.example.com' + checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('origins[0].hostName', origin), + JMESPathCheck('isHttpAllowed', True), + JMESPathCheck('isHttpsAllowed', True), + JMESPathCheck('isCompressionEnabled', False), + JMESPathCheck('queryStringCachingBehavior', 'IgnoreQueryString')] + self.endpoint_create_cmd(resource_group, endpoint_name, profile_name, origin, checks=checks) + + list_checks = [JMESPathCheck('length(@)', 1)] + self.endpoint_list_cmd(resource_group, profile_name, checks=list_checks) + + rulename = 'r1' + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('origins[0].hostName', origin), + JMESPathCheck('isHttpAllowed', True), + JMESPathCheck('isHttpsAllowed', True), + JMESPathCheck('isCompressionEnabled', False), + JMESPathCheck('queryStringCachingBehavior', 'IgnoreQueryString'), + JMESPathCheck('length(deliveryPolicy.rules)', 1), + JMESPathCheck('deliveryPolicy.rules[0].name', rulename)] + self.endpoint_add_rule_cmd(resource_group, + endpoint_name, + profile_name, + checks=update_checks) + + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('origins[0].hostName', origin), + JMESPathCheck('isHttpAllowed', True), + JMESPathCheck('isHttpsAllowed', True), + JMESPathCheck('isCompressionEnabled', False), + JMESPathCheck('queryStringCachingBehavior', 'IgnoreQueryString'), + JMESPathCheck('length(deliveryPolicy.rules[0].conditions)', 2)] + self.endpoint_add_condition_cmd(resource_group, + endpoint_name, + profile_name, + checks=update_checks, + options='--rule-name r1 --match-variable RemoteAddress\ + --operator GeoMatch --match-values "TH"') + + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules[0].actions)', 2)] + self.endpoint_add_action_cmd(resource_group, + endpoint_name, + profile_name, + checks=update_checks, + options='--rule-name r1 --action-name "UrlRewrite"\ + --source-pattern "/abc" --destination "/def"') + + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules[0].conditions)', 1)] + self.endpoint_remove_condition_cmd(resource_group, + endpoint_name, + profile_name, + checks=update_checks, + options='--rule-name r1 --index 0') + + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules[0].actions)', 1)] + self.endpoint_remove_action_cmd(resource_group, + endpoint_name, + profile_name, + checks=update_checks, + options='--rule-name r1 --index 0') + + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules)', 0)] + self.endpoint_remove_rule_cmd(resource_group, + endpoint_name, + profile_name, + checks=update_checks, + options='--rule-name r1') + + self.endpoint_delete_cmd(resource_group, endpoint_name, profile_name) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_profile_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_profile_scenarios.py index d2424849a74..42567eb723e 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_profile_scenarios.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_profile_scenarios.py @@ -67,7 +67,6 @@ def test_cdn_custom_domain(self, resource_group): self.cmd('cdn profile create -g {rg} -n {profile}') self.cmd('cdn endpoint create -g {rg} --origin {origin} --profile-name {profile} -n {endpoint}') self.cmd('cdn custom-domain list -g {rg} --endpoint-name {endpoint} --profile-name {profile}') - # These will all fail because we don't really have the ability to create the custom endpoint in test. # but they should still fail if there was a CLI-level regression. with self.assertRaises(ErrorResponseException): @@ -76,7 +75,7 @@ def test_cdn_custom_domain(self, resource_group): with self.assertRaises(SystemExit): # exits with code 3 due to missing resource self.cmd('cdn custom-domain show -g {rg} --endpoint-name {endpoint} --profile-name {profile} -n {name}') self.cmd('cdn custom-domain delete -g {rg} --endpoint-name {endpoint} --profile-name {profile} -n {name}') - with self.assertRaises(CLIError): + with self.assertRaises(ErrorResponseException): self.cmd( 'cdn custom-domain enable-https -g {rg} --endpoint-name {endpoint} --profile-name {profile} -n {name}') with self.assertRaises(CLIError): diff --git a/src/azure-cli/requirements.py2.Darwin.txt b/src/azure-cli/requirements.py2.Darwin.txt index 87039448105..9ea1232ceb4 100644 --- a/src/azure-cli/requirements.py2.Darwin.txt +++ b/src/azure-cli/requirements.py2.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==3.1.0 +azure-mgmt-cdn==4.0.0 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.py2.Linux.txt b/src/azure-cli/requirements.py2.Linux.txt index 87039448105..9ea1232ceb4 100644 --- a/src/azure-cli/requirements.py2.Linux.txt +++ b/src/azure-cli/requirements.py2.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==3.1.0 +azure-mgmt-cdn==4.0.0 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.py2.windows.txt b/src/azure-cli/requirements.py2.windows.txt index 6ac5456febe..04d76f737a0 100644 --- a/src/azure-cli/requirements.py2.windows.txt +++ b/src/azure-cli/requirements.py2.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==3.1.0 +azure-mgmt-cdn==4.0.0 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.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index 81d8d3ccf9a..6b4e3f37b71 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==3.1.0 +azure-mgmt-cdn==4.0.0 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 81d8d3ccf9a..6b4e3f37b71 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==3.1.0 +azure-mgmt-cdn==4.0.0 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 7752fc5b4cd..2af34fefdd2 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==3.1.0 +azure-mgmt-cdn==4.0.0 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 1722fa9c6f4..436af9177eb 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -72,7 +72,7 @@ 'azure-mgmt-batchai~=2.0', 'azure-mgmt-billing~=0.2', 'azure-mgmt-botservice~=0.2.0', - 'azure-mgmt-cdn~=3.1', + 'azure-mgmt-cdn~=4.0.0', 'azure-mgmt-cognitiveservices~=5.0.0', 'azure-mgmt-compute~=10.0', 'azure-mgmt-consumption~=2.0', From f08caf9d2fbf061e9c4d7e41b54269e4f514f035 Mon Sep 17 00:00:00 2001 From: Hanyun Tao Date: Tue, 21 Jan 2020 14:50:31 -0800 Subject: [PATCH 2/3] matchValues nargs='+' & update test name --- .../azure/cli/command_modules/cdn/_params.py | 8 +- .../azure/cli/command_modules/cdn/custom.py | 32 +- ...e_crud.yaml => test_rule_engine_crud.yaml} | 569 ++++++++++-------- .../tests/latest/test_endpoint_scenarios.py | 4 +- 4 files changed, 334 insertions(+), 279 deletions(-) rename src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/{test_rulesEngine_crud.yaml => test_rule_engine_crud.yaml} (87%) 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 adf0e39a6f3..5eb35842bb1 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_params.py @@ -90,12 +90,12 @@ def load_arguments(self, _): c.argument('match_variable', arg_group="Match Condition", help='Name of the match condition.') c.argument('operator', arg_group="Match Condition", help='Operator of the match condition.') c.argument('selector', arg_group="Match Condition", help='Selector of the match condition.') - c.argument('match_values', arg_group="Match Condition", + c.argument('match_values', arg_group="Match Condition", nargs='+', help='Match values of the match condition (comma separated).') c.argument('transform', arg_group="Match Condition", arg_type=get_enum_type(['Lowercase', 'Uppercase']), nargs='+', help='Transform to apply before matching.') c.argument('negate_condition', arg_group="Match Condition", arg_type=get_three_state_flag(), - options_list='--negate-condition', help='If true, negates the condition') + help='If true, negates the condition') c.argument('action_name', arg_group="Action", help='Name of the action.') c.argument('cache_behavior', arg_group="Action", arg_type=get_enum_type(['BypassCache', 'Override', 'SetIfMissing']), @@ -132,10 +132,10 @@ def load_arguments(self, _): help='A request URI pattern that identifies the type of requests that may be rewritten.') c.argument('destination', help='The destination path to be used in the rewrite.') c.argument('preserve_unmatched_path', arg_group="Action", - arg_type=get_three_state_flag(), options_list='--preserve-unmatched-path', + arg_type=get_three_state_flag(), help='If True, the remaining path after the source \ pattern will be appended to the new destination path.') - c.argument('index', help='The index of the condition/action') + c.argument('index', type=int, help='The index of the condition/action') with self.argument_context('cdn endpoint create') as c: c.argument('name', name_arg_type, id_part='name', help='Name of the CDN endpoint.') 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 1cab5cc17dd..a2140498329 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom.py @@ -98,21 +98,21 @@ def create_condition(match_variable=None, operator=None, match_values=None, return DeliveryRuleRemoteAddressCondition( parameters=RemoteAddressMatchConditionParameters( operator=operator, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) if match_variable == 'RequestMethod': return DeliveryRuleRequestMethodCondition( parameters=RequestMethodMatchConditionParameters( - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition )) if match_variable == 'QueryString': return DeliveryRuleQueryStringCondition( parameters=QueryStringMatchConditionParameters( operator=operator, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) @@ -121,7 +121,7 @@ def create_condition(match_variable=None, operator=None, match_values=None, parameters=PostArgsMatchConditionParameters( operator=operator, selector=selector, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) @@ -130,7 +130,7 @@ def create_condition(match_variable=None, operator=None, match_values=None, parameters=RequestHeaderMatchConditionParameters( operator=operator, selector=selector, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) @@ -138,7 +138,7 @@ def create_condition(match_variable=None, operator=None, match_values=None, return DeliveryRuleRequestUriCondition( parameters=RequestUriMatchConditionParameters( operator=operator, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) @@ -146,21 +146,21 @@ def create_condition(match_variable=None, operator=None, match_values=None, return DeliveryRuleRequestBodyCondition( parameters=RequestBodyMatchConditionParameters( operator=operator, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) if match_variable == 'RequestScheme': return DeliveryRuleRequestSchemeCondition( parameters=RequestSchemeMatchConditionParameters( - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition )) if match_variable == 'UrlPath': return DeliveryRuleUrlPathCondition( parameters=UrlPathMatchConditionParameters( operator=operator, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) @@ -168,7 +168,7 @@ def create_condition(match_variable=None, operator=None, match_values=None, return DeliveryRuleUrlFileExtensionCondition( parameters=UrlFileExtensionMatchConditionParameters( operator=operator, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) @@ -176,20 +176,20 @@ def create_condition(match_variable=None, operator=None, match_values=None, return DeliveryRuleUrlFileNameCondition( parameters=UrlFileNameMatchConditionParameters( operator=operator, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) if match_variable == 'HttpVersion': return DeliveryRuleHttpVersionCondition( parameters=HttpVersionMatchConditionParameters( - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition )) if match_variable == 'IsDevice': return DeliveryRuleIsDeviceCondition( parameters=IsDeviceMatchConditionParameters( - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition )) if match_variable == 'Cookies': @@ -197,7 +197,7 @@ def create_condition(match_variable=None, operator=None, match_values=None, parameters=CookiesMatchConditionParameters( operator=operator, selector=selector, - match_values=match_values.split(","), + match_values=match_values, negate_condition=negate_condition, transforms=transform )) @@ -364,7 +364,7 @@ def remove_condition(client, resource_group_name, profile_name, endpoint_name, r if policy is not None: for i in range(0, len(policy.rules)): if policy.rules[i].name == rule_name: - policy.rules[i].conditions.pop(int(index)) + policy.rules[i].conditions.pop(index) params = EndpointUpdateParameters( delivery_policy=policy @@ -380,7 +380,7 @@ def remove_action(client, resource_group_name, profile_name, endpoint_name, rule if policy is not None: for i in range(0, len(policy.rules)): if policy.rules[i].name == rule_name: - policy.rules[i].actions.pop(int(index)) + policy.rules[i].actions.pop(index) params = EndpointUpdateParameters( delivery_policy=policy diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rulesEngine_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml similarity index 87% rename from src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rulesEngine_crud.yaml rename to src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml index 1dcc4dde9a4..8b15157a544 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rulesEngine_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml @@ -14,7 +14,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 20:50:43 GMT + - Tue, 21 Jan 2020 22:22:54 GMT expires: - '-1' pragma: @@ -61,14 +61,14 @@ interactions: - -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 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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-09T20:50:42Z"},"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-01-21T22:22:52Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 20:50:43 GMT + - Tue, 21 Jan 2020 22:22:54 GMT expires: - '-1' pragma: @@ -110,7 +110,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PUT @@ -123,7 +123,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/44ec05cf-1bdc-41f7-96f7-2f0b564df47c?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: @@ -131,7 +131,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:50:47 GMT + - Tue, 21 Jan 2020 22:23:01 GMT expires: - '-1' odata-version: @@ -168,9 +168,9 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/44ec05cf-1bdc-41f7-96f7-2f0b564df47c?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -183,7 +183,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:50:57 GMT + - Tue, 21 Jan 2020 22:23:11 GMT expires: - '-1' odata-version: @@ -222,9 +222,9 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/44ec05cf-1bdc-41f7-96f7-2f0b564df47c?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -237,7 +237,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:51:29 GMT + - Tue, 21 Jan 2020 22:23:42 GMT expires: - '-1' odata-version: @@ -276,7 +276,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -293,7 +293,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:51:29 GMT + - Tue, 21 Jan 2020 22:23:42 GMT expires: - '-1' odata-version: @@ -332,7 +332,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -348,7 +348,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:51:31 GMT + - Tue, 21 Jan 2020 22:23:44 GMT expires: - '-1' odata-version: @@ -387,14 +387,14 @@ interactions: - -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 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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-09T20:50:42Z"},"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-01-21T22:22:52Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -403,7 +403,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 09 Dec 2019 20:51:31 GMT + - Tue, 21 Jan 2020 22:23:44 GMT expires: - '-1' pragma: @@ -438,7 +438,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PUT @@ -453,7 +453,7 @@ interactions: \ \r\n ],\"deliveryPolicy\":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/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: @@ -461,7 +461,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:51:36 GMT + - Tue, 21 Jan 2020 22:23:50 GMT expires: - '-1' odata-version: @@ -498,9 +498,9 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -513,7 +513,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:51:46 GMT + - Tue, 21 Jan 2020 22:24:00 GMT expires: - '-1' odata-version: @@ -552,63 +552,9 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 - 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: - - Mon, 09 Dec 2019 20:52: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: - - application/json - 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 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eaa2aff-6af7-42fb-ab4b-c34c03bc88a8?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -621,7 +567,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:06 GMT + - Tue, 21 Jan 2020 22:24:30 GMT expires: - '-1' odata-version: @@ -660,7 +606,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -679,7 +625,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:07 GMT + - Tue, 21 Jan 2020 22:24:31 GMT expires: - '-1' odata-version: @@ -718,7 +664,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -739,7 +685,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:10 GMT + - Tue, 21 Jan 2020 22:24:33 GMT expires: - '-1' odata-version: @@ -771,7 +717,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-rule + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: @@ -779,7 +725,7 @@ interactions: --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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -800,7 +746,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:11 GMT + - Tue, 21 Jan 2020 22:24:35 GMT expires: - '-1' odata-version: @@ -828,8 +774,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", "matchValues": ["TH"], "transforms": []}}], "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: @@ -837,11 +783,11 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-rule + - cdn endpoint rule add Connection: - keep-alive Content-Length: - - '524' + - '506' Content-Type: - application/json; charset=utf-8 ParameterSetName: @@ -849,7 +795,7 @@ interactions: --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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH @@ -872,7 +818,7 @@ interactions: \ }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3751148d-01ee-4ec5-bd6d-66d7e6f0072c?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: @@ -880,11 +826,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:15 GMT + - 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/3751148d-01ee-4ec5-bd6d-66d7e6f0072c/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/940b230a-c514-4570-bbd4-ca374306b2e0/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 odata-version: - '4.0' pragma: @@ -912,7 +858,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-rule + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: @@ -920,9 +866,9 @@ interactions: --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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3751148d-01ee-4ec5-bd6d-66d7e6f0072c?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -935,7 +881,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:26 GMT + - Tue, 21 Jan 2020 22:24:48 GMT expires: - '-1' odata-version: @@ -967,7 +913,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-rule + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: @@ -975,9 +921,9 @@ interactions: --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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3751148d-01ee-4ec5-bd6d-66d7e6f0072c?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -990,7 +936,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:56 GMT + - Tue, 21 Jan 2020 22:25:19 GMT expires: - '-1' odata-version: @@ -1022,7 +968,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-rule + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: @@ -1030,7 +976,7 @@ interactions: --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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -1057,7 +1003,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:58 GMT + - Tue, 21 Jan 2020 22:25:20 GMT expires: - '-1' odata-version: @@ -1089,14 +1035,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-condition + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -1125,7 +1071,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:53:59 GMT + - Tue, 21 Jan 2020 22:25:23 GMT expires: - '-1' odata-version: @@ -1155,8 +1101,8 @@ interactions: {"@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"], "transforms": []}}], "actions": - [{"name": "CacheExpiration", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "operator": "GeoMatch", "matchValues": ["TH", "US"]}}], "actions": [{"name": + "CacheExpiration", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": "BypassCache", "cacheType": "All"}}]}]}}}' headers: Accept: @@ -1164,18 +1110,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-condition + - cdn endpoint rule condition add Connection: - keep-alive Content-Length: - - '749' + - '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.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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH @@ -1193,27 +1139,27 @@ interactions: \ \"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\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\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}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53492197-da50-44b6-862d-3f1698679862?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: - - '2141' + - '2146' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:03 GMT + - Tue, 21 Jan 2020 22:25:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53492197-da50-44b6-862d-3f1698679862/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/fd4bae0c-0aae-4d85-a7cd-90e1930e261b/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 odata-version: - '4.0' pragma: @@ -1241,16 +1187,16 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-condition + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/53492197-da50-44b6-862d-3f1698679862?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1263,7 +1209,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:14 GMT + - Tue, 21 Jan 2020 22:25:36 GMT expires: - '-1' odata-version: @@ -1295,14 +1241,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-condition + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -1318,9 +1264,9 @@ interactions: \ \"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\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\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}" @@ -1328,11 +1274,11 @@ interactions: cache-control: - no-cache content-length: - - '2141' + - '2146' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:15 GMT + - Tue, 21 Jan 2020 22:25:37 GMT expires: - '-1' odata-version: @@ -1364,14 +1310,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-action + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -1389,9 +1335,9 @@ interactions: \ \"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\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\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}" @@ -1399,11 +1345,11 @@ interactions: cache-control: - no-cache content-length: - - '2141' + - '2146' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:17 GMT + - Tue, 21 Jan 2020 22:25:39 GMT expires: - '-1' odata-version: @@ -1433,8 +1379,8 @@ interactions: {"@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"], "transforms": - []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "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": @@ -1445,18 +1391,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-action + - cdn endpoint rule action add Connection: - keep-alive Content-Length: - - '948' + - '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.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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH @@ -1474,9 +1420,9 @@ interactions: \ \"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\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\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 @@ -1484,19 +1430,19 @@ interactions: \ }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ec244f4-52aa-4010-9096-23029b8ca3e0?api-version=2019-04-15 + - 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: - - '2398' + - '2403' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:20 GMT + - Tue, 21 Jan 2020 22:25:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ec244f4-52aa-4010-9096-23029b8ca3e0/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/00c9c505-9c7f-4a80-b2e0-2f978bf80554/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 odata-version: - '4.0' pragma: @@ -1524,16 +1470,70 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-action + - 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 + 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 + 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, 21 Jan 2020 22:25: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: + - 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.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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ec244f4-52aa-4010-9096-23029b8ca3e0?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1546,7 +1546,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:30 GMT + - Tue, 21 Jan 2020 22:26:23 GMT expires: - '-1' odata-version: @@ -1578,14 +1578,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint add-action + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -1601,9 +1601,9 @@ interactions: \ \"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\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\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 @@ -1613,11 +1613,11 @@ interactions: cache-control: - no-cache content-length: - - '2398' + - '2403' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:31 GMT + - Tue, 21 Jan 2020 22:26:24 GMT expires: - '-1' odata-version: @@ -1649,14 +1649,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-condition + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -1674,9 +1674,9 @@ interactions: \ \"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\"\r\n ],\"transforms\":[\r\n \r\n - \ ]\r\n }\r\n }\r\n ],\"actions\":[\r\n - \ {\r\n \"name\":\"CacheExpiration\",\"parameters\":{\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 @@ -1686,11 +1686,11 @@ interactions: cache-control: - no-cache content-length: - - '2398' + - '2403' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:33 GMT + - Tue, 21 Jan 2020 22:26:26 GMT expires: - '-1' odata-version: @@ -1718,8 +1718,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": - []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "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": @@ -1730,18 +1730,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-condition + - cdn endpoint rule condition remove Connection: - keep-alive Content-Length: - - '723' + - '729' Content-Type: - application/json; charset=utf-8 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH @@ -1756,9 +1756,9 @@ interactions: \ \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 + \ \"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 @@ -1766,19 +1766,19 @@ interactions: \ }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6f917fe-548a-4de0-8dee-65bd37244bb5?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: - - '2046' + - '2051' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:36 GMT + - Tue, 21 Jan 2020 22:26:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6f917fe-548a-4de0-8dee-65bd37244bb5/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/551db036-744d-428a-85a7-a372069a0bb6/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 odata-version: - '4.0' pragma: @@ -1806,16 +1806,16 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-condition + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c6f917fe-548a-4de0-8dee-65bd37244bb5?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -1828,7 +1828,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:47 GMT + - Tue, 21 Jan 2020 22:26:42 GMT expires: - '-1' odata-version: @@ -1860,14 +1860,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-condition + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -1880,9 +1880,9 @@ interactions: \ \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 + \ \"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 @@ -1892,11 +1892,11 @@ interactions: cache-control: - no-cache content-length: - - '2046' + - '2051' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:48 GMT + - Tue, 21 Jan 2020 22:26:43 GMT expires: - '-1' odata-version: @@ -1928,14 +1928,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-action + - cdn endpoint rule action 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -1950,9 +1950,9 @@ interactions: \ \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 + \ \"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 @@ -1962,11 +1962,11 @@ interactions: cache-control: - no-cache content-length: - - '2046' + - '2051' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:50 GMT + - Tue, 21 Jan 2020 22:26:44 GMT expires: - '-1' odata-version: @@ -1994,27 +1994,28 @@ 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": - []}}], "actions": [{"name": "UrlRewrite", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", - "sourcePattern": "/abc", "destination": "/def"}}]}]}}}' + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH", "US"], + "transforms": []}}], "actions": [{"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 remove-action + - cdn endpoint rule action remove Connection: - keep-alive Content-Length: - - '536' + - '542' Content-Type: - application/json; charset=utf-8 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH @@ -2029,27 +2030,27 @@ interactions: \ \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\":\"UrlRewrite\",\"parameters\":{\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}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45d63a7a-342a-49b5-81a7-0fbbcc05f329?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: - - '1783' + - '1788' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:54:53 GMT + - Tue, 21 Jan 2020 22:26:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45d63a7a-342a-49b5-81a7-0fbbcc05f329/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/54f53969-a534-4225-96ae-496b5cb13baa/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 odata-version: - '4.0' pragma: @@ -2063,7 +2064,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '98' + - '99' x-powered-by: - ASP.NET status: @@ -2077,16 +2078,16 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-action + - cdn endpoint rule action 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45d63a7a-342a-49b5-81a7-0fbbcc05f329?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -2099,7 +2100,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:55:03 GMT + - Tue, 21 Jan 2020 22:26:58 GMT expires: - '-1' odata-version: @@ -2131,14 +2132,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-action + - cdn endpoint rule action 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -2151,9 +2152,9 @@ interactions: \ \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\":\"UrlRewrite\",\"parameters\":{\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}" @@ -2161,11 +2162,11 @@ interactions: cache-control: - no-cache content-length: - - '1783' + - '1788' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:55:04 GMT + - Tue, 21 Jan 2020 22:26:59 GMT expires: - '-1' odata-version: @@ -2197,14 +2198,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-rule + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: GET @@ -2219,9 +2220,9 @@ interactions: \ \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\":\"UrlRewrite\",\"parameters\":{\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}" @@ -2229,11 +2230,11 @@ interactions: cache-control: - no-cache content-length: - - '1783' + - '1788' content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:55:06 GMT + - Tue, 21 Jan 2020 22:27:01 GMT expires: - '-1' odata-version: @@ -2266,7 +2267,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-rule + - cdn endpoint rule remove Connection: - keep-alive Content-Length: @@ -2277,7 +2278,7 @@ interactions: - -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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: PATCH @@ -2293,7 +2294,7 @@ interactions: \ \r\n ]\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a83f433c-7498-4dca-92df-82e04b69af8a?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: @@ -2301,11 +2302,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:55:10 GMT + - Tue, 21 Jan 2020 22:27:04 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a83f433c-7498-4dca-92df-82e04b69af8a/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/be9a965b-be83-404d-9fac-5e1f8ed159b9/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 odata-version: - '4.0' pragma: @@ -2333,16 +2334,70 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-rule + - 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 + 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 + 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, 21 Jan 2020 22:27: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: + - application/json + 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a83f433c-7498-4dca-92df-82e04b69af8a?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -2355,7 +2410,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:55:20 GMT + - Tue, 21 Jan 2020 22:27:45 GMT expires: - '-1' odata-version: @@ -2387,14 +2442,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint remove-rule + - 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.77 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 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 response: @@ -2414,7 +2469,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:55:21 GMT + - Tue, 21 Jan 2020 22:27:46 GMT expires: - '-1' odata-version: @@ -2455,7 +2510,7 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 accept-language: - en-US method: DELETE @@ -2465,17 +2520,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7?api-version=2019-04-15 + - 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 cache-control: - no-cache content-length: - '0' date: - - Mon, 09 Dec 2019 20:55:24 GMT + - Tue, 21 Jan 2020 22:27:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7/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/a332cb04-b56c-4ef9-9ca7-c38a8a1dc61b/profileresults/profile123/endpointresults/endpoint000002?api-version=2019-04-15 pragma: - no-cache server: @@ -2508,9 +2563,9 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -2523,7 +2578,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:55:35 GMT + - Tue, 21 Jan 2020 22:28:00 GMT expires: - '-1' odata-version: @@ -2562,9 +2617,9 @@ interactions: - -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 + azure-mgmt-cdn/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.80 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/595d2c90-e62b-4816-9360-94be07b822d7?api-version=2019-04-15 + 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 response: body: string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n @@ -2577,7 +2632,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Mon, 09 Dec 2019 20:56:04 GMT + - Tue, 21 Jan 2020 22:28:30 GMT expires: - '-1' odata-version: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py index 8ca80c5a52f..421bdce9935 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py @@ -124,7 +124,7 @@ def _create_profile(self, resource_group, profile_sku): return profile_name @ResourceGroupPreparer() - def test_rulesEngine_crud(self, resource_group): + def test_rule_engine_crud(self, resource_group): profile_name = 'profile123' self.endpoint_list_cmd(resource_group, profile_name, expect_failure=True) @@ -171,7 +171,7 @@ def test_rulesEngine_crud(self, resource_group): profile_name, checks=update_checks, options='--rule-name r1 --match-variable RemoteAddress\ - --operator GeoMatch --match-values "TH"') + --operator GeoMatch --match-values "TH" "US"') update_checks = [JMESPathCheck('name', endpoint_name), JMESPathCheck('length(deliveryPolicy.rules[0].actions)', 2)] From 37f4c99d079cf1009be34469451a575af3ccb534 Mon Sep 17 00:00:00 2001 From: Hanyun Tao Date: Wed, 29 Jan 2020 11:29:13 -0800 Subject: [PATCH 3/3] add warning for rule not found --- src/azure-cli/azure/cli/command_modules/cdn/custom.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 a2140498329..bad2bcdf234 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom.py @@ -27,6 +27,9 @@ UrlRewriteAction, UrlRewriteActionParameters) from azure.cli.core.util import sdk_no_wait +from knack.log import get_logger + +logger = get_logger(__name__) def default_content_types(): @@ -349,6 +352,8 @@ def remove_rule(client, resource_group_name, profile_name, endpoint_name, rule_n for rule in policy.rules: if rule.name == rule_name: policy.rules.remove(rule) + else: + logger.warning("rule cannot be found. This command will be skipped. Please check the rule name") params = EndpointUpdateParameters( delivery_policy=policy @@ -365,6 +370,8 @@ def remove_condition(client, resource_group_name, profile_name, endpoint_name, r for i in range(0, len(policy.rules)): if policy.rules[i].name == rule_name: policy.rules[i].conditions.pop(index) + else: + logger.warning("rule cannot be found. This command will be skipped. Please check the rule name") params = EndpointUpdateParameters( delivery_policy=policy @@ -381,6 +388,8 @@ def remove_action(client, resource_group_name, profile_name, endpoint_name, rule for i in range(0, len(policy.rules)): if policy.rules[i].name == rule_name: policy.rules[i].actions.pop(index) + else: + logger.warning("rule cannot be found. This command will be skipped. Please check the rule name") params = EndpointUpdateParameters( delivery_policy=policy