From f9292b3245f1ef813492bb60fea95fb1a71dc7f0 Mon Sep 17 00:00:00 2001 From: t-bzhan <61817681+t-bzhan@users.noreply.github.com> Date: Thu, 15 Apr 2021 17:11:19 +0800 Subject: [PATCH] [FrontDoor] onboard Track2 SDK (#3267) --- src/front-door/HISTORY.rst | 16 + src/front-door/azext_front_door/_params.py | 2 +- src/front-door/azext_front_door/commands.py | 16 +- src/front-door/azext_front_door/custom.py | 146 +- .../recordings/test_backend_pool_basic.yaml | 290 +- .../test_create_update_waf_policy.yaml | 99 - .../test_create_waf_policy_kitchen_sink.yaml | 676 --- ...st_create_waf_policy_with_custom_rule.yaml | 162 - .../test_front_door_basic_scenario.yaml | 856 +++ ...st_front_door_check_name_availability.yaml | 186 +- .../test_front_door_purge_endpoint.yaml | 378 ++ .../test_frontend_endpoint_basic.yaml | 86 +- ...frontend_endpoint_byoc_latest_version.yaml | 2424 ++++++++- ...ontend_endpoint_byoc_specific_version.yaml | 2424 ++++++++- .../test_frontend_endpoint_wait.yaml | 93 +- .../recordings/test_load_balancing_basic.yaml | 383 +- .../latest/recordings/test_probe_basic.yaml | 385 +- .../recordings/test_route_rule_basic.yaml | 593 +-- .../recordings/test_rules_engine_basic.yaml | 333 +- .../recordings/test_waf_exclusions.yaml | 474 +- .../recordings/test_waf_policy_basic.yaml | 421 +- .../test_waf_policy_custom_rule_matching.yaml | 4609 ++++++++--------- .../test_waf_policy_custom_rules.yaml | 187 +- .../test_waf_policy_managed_rules.yaml | 188 +- .../latest/test_front_door_byoc_scenarios.py | 22 +- .../tests/latest/test_front_door_scenarios.py | 41 +- .../latest/test_rules_engine_scenarios.py | 4 +- .../tests/latest/test_waf_scenarios.py | 35 +- .../vendored_sdks/__init__.py | 18 +- .../vendored_sdks/_configuration.py | 82 +- .../_front_door_management_client.py | 114 +- .../vendored_sdks/{version.py => _version.py} | 10 +- .../vendored_sdks/aio/__init__.py | 10 + .../vendored_sdks/aio/_configuration.py | 66 + .../aio/_front_door_management_client.py | 119 + .../vendored_sdks/aio/operations/__init__.py | 35 + .../aio/operations/_endpoints_operations.py | 164 + .../aio/operations/_experiments_operations.py | 583 +++ ...front_door_name_availability_operations.py | 96 + ...ailability_with_subscription_operations.py | 100 + .../aio/operations/_front_doors_operations.py | 552 ++ .../_frontend_endpoints_operations.py | 427 ++ .../_managed_rule_sets_operations.py | 109 + ..._network_experiment_profiles_operations.py | 623 +++ .../aio/operations/_policies_operations.py | 412 ++ .../_preconfigured_endpoints_operations.py | 119 + .../aio/operations/_reports_operations.py | 214 + .../operations/_rules_engines_operations.py | 439 ++ .../vendored_sdks/models/__init__.py | 353 +- .../_front_door_management_client_enums.py | 869 ++-- .../vendored_sdks/models/_models.py | 2533 +++++---- .../vendored_sdks/models/_models_py3.py | 2853 ++++++---- .../vendored_sdks/models/_paged_models.py | 118 - .../vendored_sdks/operations/__init__.py | 7 +- .../operations/_endpoints_operations.py | 201 +- .../operations/_experiments_operations.py | 734 +-- ...front_door_name_availability_operations.py | 118 +- ...ailability_with_subscription_operations.py | 120 +- .../operations/_front_doors_operations.py | 726 +-- .../_frontend_endpoints_operations.py | 543 +- .../_managed_rule_sets_operations.py | 124 +- ..._network_experiment_profiles_operations.py | 800 +-- .../operations/_policies_operations.py | 515 +- .../_preconfigured_endpoints_operations.py | 136 +- .../operations/_reports_operations.py | 252 +- .../operations/_rules_engines_operations.py | 573 +- src/front-door/setup.py | 8 +- 67 files changed, 20833 insertions(+), 10571 deletions(-) create mode 100644 src/front-door/HISTORY.rst delete mode 100644 src/front-door/azext_front_door/tests/latest/recordings/test_create_update_waf_policy.yaml delete mode 100644 src/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_kitchen_sink.yaml delete mode 100644 src/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_with_custom_rule.yaml create mode 100644 src/front-door/azext_front_door/tests/latest/recordings/test_front_door_basic_scenario.yaml create mode 100644 src/front-door/azext_front_door/tests/latest/recordings/test_front_door_purge_endpoint.yaml rename src/front-door/azext_front_door/vendored_sdks/{version.py => _version.py} (84%) create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/__init__.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/_configuration.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/_front_door_management_client.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/__init__.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_endpoints_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_experiments_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_with_subscription_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_doors_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_frontend_endpoints_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_managed_rule_sets_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_network_experiment_profiles_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_policies_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_preconfigured_endpoints_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_reports_operations.py create mode 100644 src/front-door/azext_front_door/vendored_sdks/aio/operations/_rules_engines_operations.py delete mode 100644 src/front-door/azext_front_door/vendored_sdks/models/_paged_models.py diff --git a/src/front-door/HISTORY.rst b/src/front-door/HISTORY.rst new file mode 100644 index 00000000000..c770c5de4bc --- /dev/null +++ b/src/front-door/HISTORY.rst @@ -0,0 +1,16 @@ +.. :changelog: + +Release History +=============== + +1.0.14 +++++++ +* Migrate to Track2 SDK. + +1.0.13 +++++++ +* az network front-door frontend-endpoint enable-https: allow secret-version to be optional to always use the 'Latest' version to support certificate auto-rotation. + +1.0.12 +++++++ +* Add az network front-door check-name-availability command: Check the availability of a Front Door resource name. \ No newline at end of file diff --git a/src/front-door/azext_front_door/_params.py b/src/front-door/azext_front_door/_params.py index af562ee0c1e..1908f36f756 100644 --- a/src/front-door/azext_front_door/_params.py +++ b/src/front-door/azext_front_door/_params.py @@ -92,7 +92,7 @@ def load_arguments(self, _): c.argument('route_type', arg_type=get_enum_type(RouteType), help='Route type to define how Front Door should handle requests for this route i.e. forward them to a backend or redirect the users to a different URL.') with self.argument_context('network front-door purge-endpoint') as c: - c.argument('content_paths', nargs='+') + c.argument('content_paths', nargs='+', help="The path to the content to be purged. Can describe a file path or a wildcard directory.") with self.argument_context('network front-door check-name-availability') as c: c.argument('name', help='The resource name to be validated.') diff --git a/src/front-door/azext_front_door/commands.py b/src/front-door/azext_front_door/commands.py index aa5d399fd0d..dd213b93d62 100644 --- a/src/front-door/azext_front_door/commands.py +++ b/src/front-door/azext_front_door/commands.py @@ -70,15 +70,15 @@ def load_command_table(self, _): with self.command_group('network front-door', frontdoor_sdk) as g: g.show_command('show') g.custom_command('create', 'create_front_door', supports_no_wait=True) - g.command('delete', 'delete', supports_no_wait=True) + g.command('delete', 'begin_delete', supports_no_wait=True) g.custom_command('list', 'list_front_doors') - g.generic_update_command('update', custom_func_name='update_front_door', setter_arg_name='front_door_parameters') - g.command('check-custom-domain', 'validate_custom_domain') + g.generic_update_command('update', custom_func_name='update_front_door', setter_arg_name='front_door_parameters', setter_name="begin_create_or_update") + g.custom_command('check-custom-domain', 'validate_custom_domain', client_factory=cf_frontdoor) g.custom_command('check-name-availability', 'check_front_door_name_availability', client_factory=cf_front_door_name_availability) g.wait_command('wait') with self.command_group('network front-door', fd_endpoint_sdk) as g: - g.command('purge-endpoint', 'purge_content') + g.custom_command('purge-endpoint', 'purge_endpoint', client_factory=cf_fd_endpoints) property_map = { 'backend_pools': 'backend-pool', @@ -99,6 +99,7 @@ def load_command_table(self, _): with self.command_group('network front-door load-balancing', frontdoor_sdk) as g: g.generic_update_command('update', custom_func_name='update_fd_load_balancing_settings', + setter_name="begin_create_or_update", setter_arg_name='front_door_parameters', child_collection_prop_name='load_balancing_settings') @@ -119,6 +120,7 @@ def load_command_table(self, _): with self.command_group('network front-door routing-rule', frontdoor_sdk) as g: g.generic_update_command('update', custom_func_name='update_fd_routing_rule', + setter_name="begin_create_or_update", setter_arg_name='front_door_parameters', child_collection_prop_name='routing_rules') @@ -147,10 +149,10 @@ def load_command_table(self, _): # region WafPolicy with self.command_group('network front-door waf-policy', waf_policy_sdk) as g: g.custom_command('create', 'create_waf_policy') - g.command('delete', 'delete') + g.command('delete', 'begin_delete') g.command('list', 'list') g.show_command('show') - g.generic_update_command('update', custom_func_name='update_waf_policy') + g.generic_update_command('update', custom_func_name='update_waf_policy', setter_name="begin_create_or_update") with self.command_group('network front-door waf-policy managed-rules', waf_policy_sdk) as g: g.custom_command('add', 'add_azure_managed_rule_set') @@ -188,7 +190,7 @@ def load_command_table(self, _): with self.command_group('network front-door rules-engine', rules_engine_sdk) as g: g.show_command('show', 'get') g.command('list', 'list_by_front_door') - g.command('delete', 'delete') + g.command('delete', 'begin_delete') with self.command_group('network front-door rules-engine rule', rules_engine_sdk) as g: g.custom_command('create', 'create_rules_engine_rule') diff --git a/src/front-door/azext_front_door/custom.py b/src/front-door/azext_front_door/custom.py index d6f3cf71878..24e018dd0df 100644 --- a/src/front-door/azext_front_door/custom.py +++ b/src/front-door/azext_front_door/custom.py @@ -13,6 +13,9 @@ from knack.log import get_logger +from azext_front_door.vendored_sdks.models import (RulesEngine, CheckNameAvailabilityInput, PurgeParameters, + ValidateCustomDomainInput) + from ._client_factory import (cf_frontdoor, cf_waf_policies, cf_waf_managed_rules, cf_fd_frontend_endpoints, cf_fd_rules_engines) @@ -54,7 +57,7 @@ def _upsert_frontdoor_subresource(cmd, resource_group_name, front_door_name, col logger.warning("Item '%s' already exists. Replacing with new values.", item_name) collection.remove(match) collection.append(obj_to_add) - result = client.create_or_update(resource_group_name, front_door_name, frontdoor).result() + result = client.begin_create_or_update(resource_group_name, front_door_name, frontdoor).result() collection = getattr(result, collection_name) item = next(x for x in collection if getattr(x, key_name) == item_name) return item @@ -104,9 +107,11 @@ def delete_func(cmd, resource_group_name, resource_name, item_name, no_wait=Fals with UpdateContext(item) as c: c.update_param(prop, keep_items, False) if no_wait: - sdk_no_wait(no_wait, client.create_or_update, resource_group_name, resource_name, item) + sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, resource_name, item) else: - result = sdk_no_wait(no_wait, client.create_or_update, resource_group_name, resource_name, item).result() + result = sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name, resource_name, item).result() if next((x for x in getattr(result, prop) if x.name.lower() == item_name.lower()), None): from knack.util import CLIError raise CLIError("Failed to delete '{}' on '{}'".format(item_name, resource_name)) @@ -226,7 +231,7 @@ def create_front_door(cmd, resource_group_name, front_door_name, backend_address backend_pools_settings=BackendPoolsSettings(enforce_certificate_name_check=enforce_certificate_name_check, send_recv_timeout_seconds=send_recv_timeout) ) - return sdk_no_wait(no_wait, cf_frontdoor(cmd.cli_ctx, None).create_or_update, + return sdk_no_wait(no_wait, cf_frontdoor(cmd.cli_ctx, None).begin_create_or_update, resource_group_name, front_door_name, front_door) @@ -247,8 +252,34 @@ def list_front_doors(cmd, resource_group_name=None): return client.list() +def purge_endpoint(client, + resource_group_name, + front_door_name, + content_paths): + """Removes a content from Front Door. + """ + + purge_paramter = PurgeParameters(content_paths=content_paths) + return client.begin_purge_content(resource_group_name, front_door_name, purge_paramter) + + def check_front_door_name_availability(client, name, resource_type): - return client.check(name, resource_type) + availability_input = CheckNameAvailabilityInput(name=name, type=resource_type) + return client.check(availability_input) + + +def validate_custom_domain(client, + resource_group_name, + front_door_name, + host_name): + """Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS. + + :param host_name: Required. The host name of the custom domain. Must be a domain name. + :type host_name: str + """ + + validate_input = ValidateCustomDomainInput(host_name=host_name) + return client.validate_custom_domain(resource_group_name, front_door_name, validate_input) def list_fd_frontend_endpoints(cmd, resource_group_name, resource_name): @@ -288,8 +319,9 @@ def create_fd_frontend_endpoints(cmd, resource_group_name, front_door_name, item def configure_fd_frontend_endpoint_disable_https(cmd, resource_group_name, front_door_name, item_name): - return cf_fd_frontend_endpoints(cmd.cli_ctx, None).disable_https(resource_group_name, front_door_name, - item_name) + return sdk_no_wait(True, cf_fd_frontend_endpoints(cmd.cli_ctx, None).begin_disable_https, + resource_group_name, front_door_name, + item_name) def configure_fd_frontend_endpoint_enable_https(cmd, resource_group_name, front_door_name, item_name, @@ -328,8 +360,12 @@ def configure_fd_frontend_endpoint_https_frontdoor(cmd, resource_group_name, fro certificate_type="Dedicated", minimum_tls_version=minimum_tls_version ) - cf_fd_frontend_endpoints(cmd.cli_ctx, None).enable_https(resource_group_name, front_door_name, - item_name, config) + + sdk_no_wait(True, + cf_fd_frontend_endpoints(cmd.cli_ctx, None).begin_enable_https, + resource_group_name, front_door_name, + item_name, config) + return get_fd_frontend_endpoints(cmd, resource_group_name, front_door_name, item_name) @@ -345,8 +381,12 @@ def configure_fd_frontend_endpoint_https_keyvault(cmd, resource_group_name, fron certificate_type=None, minimum_tls_version=minimum_tls_version ) - cf_fd_frontend_endpoints(cmd.cli_ctx, None).enable_https(resource_group_name, front_door_name, - item_name, config) + + sdk_no_wait(True, + cf_fd_frontend_endpoints(cmd.cli_ctx, None).begin_enable_https, + resource_group_name, front_door_name, + item_name, config) + return get_fd_frontend_endpoints(cmd, resource_group_name, front_door_name, item_name) @@ -410,7 +450,7 @@ def add_fd_backend(cmd, resource_group_name, front_door_name, backend_pool_name, raise CLIError("Backend pool '{}' could not be found on frontdoor '{}'".format( backend_pool_name, front_door_name)) backend_pool.backends.append(backend) - client.create_or_update(resource_group_name, front_door_name, frontdoor).result() + client.begin_create_or_update(resource_group_name, front_door_name, frontdoor).result() return backend @@ -442,7 +482,7 @@ def remove_fd_backend(cmd, resource_group_name, front_door_name, backend_pool_na raise CLIError('invalid index. Index can range from 1 to {}'.format(len(backend_pool.backends))) except IndexError: raise CLIError('invalid index. Index can range from 1 to {}'.format(len(backend_pool.backends))) - client.create_or_update(resource_group_name, front_door_name, frontdoor).result() + client.begin_create_or_update(resource_group_name, front_door_name, frontdoor).result() def create_fd_health_probe_settings(cmd, resource_group_name, front_door_name, item_name, probe_path, probe_interval, @@ -481,7 +521,7 @@ def update_fd_health_probe_settings(cmd, resource_group_name, front_door_name, i if enabled: probe_setting.enabled_state = enabled - client.create_or_update(resource_group_name, front_door_name, frontdoor).result() + client.begin_create_or_update(resource_group_name, front_door_name, frontdoor).result() return probe_setting @@ -670,7 +710,7 @@ def create_waf_policy(cmd, resource_group_name, policy_name, custom_rules=CustomRuleList(rules=[]), managed_rules=ManagedRuleSetList(rule_sets=[]) ) - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def update_waf_policy(instance, tags=None, mode=None, redirect_url=None, @@ -714,7 +754,7 @@ def add_azure_managed_rule_set(cmd, resource_group_name, policy_name, rule_set_t if not found: policy_rule_sets.append(rule_set) - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def list_azure_managed_rule_set(cmd, resource_group_name, policy_name): @@ -730,7 +770,7 @@ def remove_azure_managed_rule_set(cmd, resource_group_name, policy_name, rule_se policy.managed_rules.managed_rule_sets = [x for x in policy.managed_rules.managed_rule_sets if x.rule_set_type.upper() != rule_set_type.upper()] - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def add_override_azure_managed_rule_set(cmd, resource_group_name, policy_name, rule_set_type, @@ -773,7 +813,7 @@ def add_override_azure_managed_rule_set(cmd, resource_group_name, policy_name, r if not setRule: from knack.util import CLIError raise CLIError("type '{}' not found".format(rule_set_type)) - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def remove_override_azure_managed_rule_set(cmd, resource_group_name, policy_name, rule_set_type, @@ -803,7 +843,7 @@ def remove_override_azure_managed_rule_set(cmd, resource_group_name, policy_name if not removedRule: from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_id)) - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def list_override_azure_managed_rule_set(cmd, resource_group_name, policy_name, rule_set_type): @@ -891,7 +931,7 @@ def add_exclusion_azure_managed_rule_set(cmd, resource_group_name, policy_name, .format(rule_id, rule_group_id, rule_set_type)) raise CLIError("group {} within type '{}' not found".format(rule_group_id, rule_set_type)) - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def remove_exclusion_azure_managed_rule_set(cmd, resource_group_name, policy_name, rule_set_type, @@ -947,7 +987,7 @@ def remove_exclusion_azure_managed_rule_set(cmd, resource_group_name, policy_nam exclusion.selector_match_operator == operator and exclusion.selector == value): del exclusions[i] - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def list_exclusion_azure_managed_rule_set(cmd, resource_group_name, policy_name, rule_set_type, @@ -1028,7 +1068,7 @@ def create_wp_custom_rule(cmd, resource_group_name, policy_name, rule_name, prio enabled_state='Enabled' if not disabled else 'Disabled' ) policy.custom_rules.rules.append(rule) - return cached_put(cmd, client.create_or_update, policy, resource_group_name, policy_name).result() + return cached_put(cmd, client.begin_create_or_update, policy, resource_group_name, policy_name).result() def update_wp_custom_rule(cmd, resource_group_name, policy_name, rule_name, priority=None, action=None, @@ -1051,14 +1091,14 @@ def update_wp_custom_rule(cmd, resource_group_name, policy_name, rule_name, prio from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return cached_put(cmd, client.create_or_update, policy, resource_group_name, policy_name).result() + return cached_put(cmd, client.begin_create_or_update, policy, resource_group_name, policy_name).result() def delete_wp_custom_rule(cmd, resource_group_name, policy_name, rule_name): client = cf_waf_policies(cmd.cli_ctx, None) policy = client.get(resource_group_name, policy_name) policy.custom_rules.rules = [x for x in policy.custom_rules.rules if x.name.lower() != rule_name.lower()] - return client.create_or_update(resource_group_name, policy_name, policy) + return client.begin_create_or_update(resource_group_name, policy_name, policy) def list_wp_custom_rules(cmd, resource_group_name, policy_name): @@ -1097,7 +1137,7 @@ def remove_custom_rule_match_condition(cmd, resource_group_name, policy_name, ru from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return cached_put(cmd, client.create_or_update, policy, resource_group_name, policy_name).result() + return cached_put(cmd, client.begin_create_or_update, policy, resource_group_name, policy_name).result() def add_custom_rule_match_condition(cmd, resource_group_name, policy_name, rule_name, @@ -1130,7 +1170,7 @@ def add_custom_rule_match_condition(cmd, resource_group_name, policy_name, rule_ from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return cached_put(cmd, client.create_or_update, policy, resource_group_name, policy_name).result() + return cached_put(cmd, client.begin_create_or_update, policy, resource_group_name, policy_name).result() def list_custom_rule_match_conditions(cmd, resource_group_name, policy_name, rule_name): @@ -1155,9 +1195,11 @@ def create_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_en header_value=None, match_variable=None, operator=None, match_values=None, selector=None, negate_condition=None, transforms=None, match_processing_behavior=None): - from azext_front_door.vendored_sdks.models import (ErrorResponseException, RulesEngineRule, + from azext_front_door.vendored_sdks.models import (RulesEngineRule, RulesEngineAction, HeaderAction, RulesEngineMatchCondition) + from azure.core.exceptions import (ResourceNotFoundError) + client = cf_fd_rules_engines(cmd.cli_ctx, None) match_conditions = [] @@ -1197,14 +1239,14 @@ def create_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_en rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name) rules_engine.rules.append(rule) rules_list = rules_engine.rules - except ErrorResponseException as e: - if e.response.status_code == 404: - rules_list = [rule] - else: - # If the error isn't a 404, rethrow it. - raise e + except ResourceNotFoundError: + rules_list = [rule] - return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules_list) + rules_engine_parameters = RulesEngine(rules=rules_list) + return client.begin_create_or_update(resource_group_name, + front_door_name, + rules_engine_name, + rules_engine_parameters) def delete_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_engine_name, rule_name): @@ -1215,7 +1257,11 @@ def delete_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_en from knack.util import CLIError raise CLIError("Rules Engine must at least contain one rule") - return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules) + rules_engine_parameters = RulesEngine(rules=rules_engine.rules) + return client.begin_create_or_update(resource_group_name, + front_door_name, + rules_engine_name, + rules_engine_parameters) def show_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_engine_name, rule_name): @@ -1253,7 +1299,11 @@ def update_rules_engine_rule(cmd, resource_group_name, front_door_name, from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules) + rules_engine_parameters = RulesEngine(rules=rules_engine.rules) + return client.begin_create_or_update(resource_group_name, + front_door_name, + rules_engine_name, + rules_engine_parameters) def add_rules_engine_condition(cmd, resource_group_name, front_door_name, rules_engine_name, @@ -1281,7 +1331,11 @@ def add_rules_engine_condition(cmd, resource_group_name, front_door_name, rules_ from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules) + rules_engine_parameters = RulesEngine(rules=rules_engine.rules) + return client.begin_create_or_update(resource_group_name, + front_door_name, + rules_engine_name, + rules_engine_parameters) def remove_rules_engine_condition(cmd, resource_group_name, @@ -1305,7 +1359,11 @@ def remove_rules_engine_condition(cmd, resource_group_name, from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules) + rules_engine_parameters = RulesEngine(rules=rules_engine.rules) + return client.begin_create_or_update(resource_group_name, + front_door_name, + rules_engine_name, + rules_engine_parameters) def list_rules_engine_condition(cmd, resource_group_name, @@ -1388,7 +1446,11 @@ def add_action_helper(rule): from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules) + rules_engine_parameters = RulesEngine(rules=rules_engine.rules) + return client.begin_create_or_update(resource_group_name, + front_door_name, + rules_engine_name, + rules_engine_parameters) def remove_rules_engine_action(cmd, resource_group_name, front_door_name, rules_engine_name, @@ -1431,7 +1493,11 @@ def remove_action_helper(rule): from knack.util import CLIError raise CLIError("rule '{}' not found".format(rule_name)) - return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules) + rules_engine_parameters = RulesEngine(rules=rules_engine.rules) + return client.begin_create_or_update(resource_group_name, + front_door_name, + rules_engine_name, + rules_engine_parameters) def list_rules_engine_action(cmd, resource_group_name, diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_backend_pool_basic.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_backend_pool_basic.yaml index b19ccadabe7..aae34ea3517 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_backend_pool_basic.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_backend_pool_basic.yaml @@ -1,22 +1,22 @@ interactions: - request: body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -29,24 +29,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/693a5035-fa99-446a-8a1f-30ae130df8d0?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/571d871b-143f-4a35-820d-345f8f41655d?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -54,7 +51,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:03 GMT + - Wed, 14 Apr 2021 05:35:55 GMT expires: - '-1' odata-version: @@ -68,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -76,7 +73,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -86,10 +83,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/693a5035-fa99-446a-8a1f-30ae130df8d0?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/571d871b-143f-4a35-820d-345f8f41655d?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -101,7 +97,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:14 GMT + - Wed, 14 Apr 2021 05:36:05 GMT expires: - '-1' odata-version: @@ -125,7 +121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -135,10 +131,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/693a5035-fa99-446a-8a1f-30ae130df8d0?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/571d871b-143f-4a35-820d-345f8f41655d?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -150,7 +145,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:44 GMT + - Wed, 14 Apr 2021 05:36:36 GMT expires: - '-1' odata-version: @@ -174,7 +169,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -184,13 +179,12 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -199,7 +193,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:45 GMT + - Wed, 14 Apr 2021 05:36:36 GMT expires: - '-1' odata-version: @@ -233,15 +227,12 @@ interactions: ParameterSetName: - -f -g -n --address --load-balancing --probe User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -250,7 +241,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:47 GMT + - Wed, 14 Apr 2021 05:36:38 GMT expires: - '-1' odata-version: @@ -273,34 +264,30 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}, {"properties": {"backends": - [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": - "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], - "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "bkp1"}], "frontendEndpoints": [{"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}, + {"name": "bkp1", "properties": {"backends": [{"address": "202.120.2.3", "httpPort": + 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, + "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -311,24 +298,21 @@ interactions: Connection: - keep-alive Content-Length: - - '4638' + - '4442' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --address --load-balancing --probe User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d16aedf-4726-4199-948a-5b83b437c6f6?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/c13decad-6c30-410f-b707-af72eebc1472?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -336,11 +320,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:49 GMT + - Wed, 14 Apr 2021 05:36:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d16aedf-4726-4199-948a-5b83b437c6f6/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/c13decad-6c30-410f-b707-af72eebc1472/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -352,7 +336,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -360,7 +344,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -370,10 +354,9 @@ interactions: ParameterSetName: - -f -g -n --address --load-balancing --probe User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d16aedf-4726-4199-948a-5b83b437c6f6?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/c13decad-6c30-410f-b707-af72eebc1472?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -385,7 +368,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:00 GMT + - Wed, 14 Apr 2021 05:36:52 GMT expires: - '-1' odata-version: @@ -409,7 +392,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -419,10 +402,9 @@ interactions: ParameterSetName: - -f -g -n --address --load-balancing --probe User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d16aedf-4726-4199-948a-5b83b437c6f6?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/c13decad-6c30-410f-b707-af72eebc1472?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -434,7 +416,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:31 GMT + - Wed, 14 Apr 2021 05:37:21 GMT expires: - '-1' odata-version: @@ -458,7 +440,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -468,13 +450,12 @@ interactions: ParameterSetName: - -f -g -n --address --load-balancing --probe User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -483,7 +464,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:31 GMT + - Wed, 14 Apr 2021 05:37:22 GMT expires: - '-1' odata-version: @@ -517,15 +498,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -534,7 +512,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:32 GMT + - Wed, 14 Apr 2021 05:37:23 GMT expires: - '-1' odata-version: @@ -568,15 +546,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -585,7 +560,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:32 GMT + - Wed, 14 Apr 2021 05:37:24 GMT expires: - '-1' odata-version: @@ -619,15 +594,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/bkp1","name":"bkp1","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -636,7 +608,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:33 GMT + - Wed, 14 Apr 2021 05:37:25 GMT expires: - '-1' odata-version: @@ -659,29 +631,26 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -692,24 +661,21 @@ interactions: Connection: - keep-alive Content-Length: - - '3840' + - '3672' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f0af85a3-b02e-44d8-aba7-a249afb1851b?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/194e59f1-f22e-4028-9acd-8540d41778fc?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -717,11 +683,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:35 GMT + - Wed, 14 Apr 2021 05:37:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f0af85a3-b02e-44d8-aba7-a249afb1851b/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/194e59f1-f22e-4028-9acd-8540d41778fc/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -741,7 +707,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -751,10 +717,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f0af85a3-b02e-44d8-aba7-a249afb1851b?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/194e59f1-f22e-4028-9acd-8540d41778fc?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -766,7 +731,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:47 GMT + - Wed, 14 Apr 2021 05:37:37 GMT expires: - '-1' odata-version: @@ -790,7 +755,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -800,10 +765,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f0af85a3-b02e-44d8-aba7-a249afb1851b?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/194e59f1-f22e-4028-9acd-8540d41778fc?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -815,7 +779,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:17 GMT + - Wed, 14 Apr 2021 05:38:07 GMT expires: - '-1' odata-version: @@ -839,7 +803,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -849,13 +813,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -864,7 +827,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:17 GMT + - Wed, 14 Apr 2021 05:38:08 GMT expires: - '-1' odata-version: @@ -898,15 +861,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"f5ff28ef-a022-48ca-9d89-3ade6acd3abb","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"88a382ae-0a8c-446d-b08e-43102e21cb01","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -915,7 +875,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:18 GMT + - Wed, 14 Apr 2021 05:38:09 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_create_update_waf_policy.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_create_update_waf_policy.yaml deleted file mode 100644 index 8dcc93f48e2..00000000000 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_create_update_waf_policy.yaml +++ /dev/null @@ -1,99 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2019-06-17T18:19:10Z"}}' - 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 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 resourcemanagementclient/2.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-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-06-17T18:19:10Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '384' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Jun 2019 18:19:13 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: - 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 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 resourcemanagementclient/2.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 17 Jun 2019 18:19:15 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdUQks1WVlGU0lZMjZaV1AzM0FCNEMySzU3R0YyRjdMTTMyVXxFNkU4ODNERkI5NDYwNkNGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-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/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_kitchen_sink.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_kitchen_sink.yaml deleted file mode 100644 index 20f2cf14d2c..00000000000 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_kitchen_sink.yaml +++ /dev/null @@ -1,676 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2019-06-17T17:40:12Z"}}' - 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 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 resourcemanagementclient/2.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-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-06-17T17:40:12Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '384' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Jun 2019 17:40:16 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: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention"}, "customRules": {"rules": []}, "managedRules": - {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy create - Connection: - - keep-alive - Content-Length: - - '157' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --mode - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '809' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:22 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Detection", "redirectUrl": "http://www.microsoft.com"}, - "customRules": {"rules": []}, "managedRules": {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy create - Connection: - - keep-alive - Content-Length: - - '199' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --mode --redirect-url - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000005?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000005\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '830' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:27 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Detection", "redirectUrl": "http://www.microsoft.com", "customBlockResponseStatusCode": - 406}, "customRules": {"rules": []}, "managedRules": {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy create - Connection: - - keep-alive - Content-Length: - - '237' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --mode --redirect-url --custom-block-response-status-code - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000006?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000006\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":406,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '829' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:31 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Detection", "redirectUrl": "http://www.microsoft.com", "customBlockResponseStatusCode": - 406, "customBlockResponseBody": "YiBvZHk="}, "customRules": {"rules": []}, "managedRules": - {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy create - Connection: - - keep-alive - Content-Length: - - '276' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --mode --redirect-url --custom-block-response-status-code --custom-block-response-body - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000007?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000007\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":406,\"customBlockResponseBody\":\"YiBvZHk=\"\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '835' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:35 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Disabled", "mode": "Detection"}, "customRules": {"rules": []}, "managedRules": - {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy create - Connection: - - keep-alive - Content-Length: - - '157' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --mode --disabled - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000008?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000008\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Disabled\",\"mode\":\"Detection\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '809' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:39 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy update - Connection: - - keep-alive - ParameterSetName: - - -g -n --mode --disabled - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000008?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000008\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Disabled\",\"mode\":\"Detection\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '809' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:40 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Disabled", "mode": "Detection"}, "customRules": {"rules": []}, "managedRules": - {"managedRuleSets": []}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy update - Connection: - - keep-alive - Content-Length: - - '190' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --mode --disabled - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000008?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000008\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Disabled\",\"mode\":\"Detection\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '809' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40: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-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy update - Connection: - - keep-alive - ParameterSetName: - - -g -n --tags - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '809' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40: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: '{"location": "Global", "tags": {"test": "best"}, "properties": {"policySettings": - {"enabledState": "Enabled", "mode": "Prevention"}, "customRules": {"rules": - []}, "managedRules": {"managedRuleSets": []}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy update - Connection: - - keep-alive - Content-Length: - - '204' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -g -n --tags - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '809' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:44 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- 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 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 resourcemanagementclient/2.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 17 Jun 2019 17:40:46 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdRSTdaWDMzVU5GV1ROUEFBVDNKTFJOQUg0TjJIWURUT0lHNHw2OUJCRTVBNzEwN0FBQ0ZELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-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/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_with_custom_rule.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_with_custom_rule.yaml deleted file mode 100644 index 713b9dc1b77..00000000000 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_create_waf_policy_with_custom_rule.yaml +++ /dev/null @@ -1,162 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2019-06-17T17:40:12Z"}}' - 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 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 resourcemanagementclient/2.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-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-06-17T17:40:12Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '384' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Jun 2019 17:40:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled"}, "customRules": {"rules": []}, "managedRules": {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network front-door waf-policy create - Connection: - - keep-alive - Content-Length: - - '135' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --name - User-Agent: - - python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2019-03-01 - response: - body: - string: "{\r\n \"name\":\"cli000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n - \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"frontendEndpointLinks\":[\r\n - \ \r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '809' - content-type: - - application/json; odata.metadata=minimal - date: - - Mon, 17 Jun 2019 17:40:22 GMT - expires: - - '-1' - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/8.5 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - 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 (Windows-10-10.0.18362-SP0) msrest/0.6.6 msrest_azure/0.6.1 resourcemanagementclient/2.1.0 - Azure-SDK-For-Python AZURECLI/2.0.66 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 17 Jun 2019 17:40:24 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdKWlRTWlZTSFRUUE1BNldMWURNQllLVk5IM05LRFlVMkdFQnxERjlGQjY1RThFMEZFMEFDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-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/front-door/azext_front_door/tests/latest/recordings/test_front_door_basic_scenario.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_basic_scenario.yaml new file mode 100644 index 00000000000..fc962be9be0 --- /dev/null +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_basic_scenario.yaml @@ -0,0 +1,856 @@ +interactions: +- request: + body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000003", + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/frontendEndpoints/DefaultFrontendEndpoint"}], + "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", + "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000003.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + Content-Length: + - '2313' + Content-Type: + - application/json + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000003?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\":\"clifrontdoor000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Creating\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Creating\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"clifrontdoor000003.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Creating\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Creating\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Creating\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"clifrontdoor000003.azurefd.net\",\"frontdoorId\":\"178aaed5-70c3-4ec1-aa3d-44e8cf2b9138\",\"friendlyName\":\"clifrontdoor000003\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5e71ce8b-4484-4725-9bcf-d1b3fc46c4ba?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '5429' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:12:22 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5e71ce8b-4484-4725-9bcf-d1b3fc46c4ba?api-version=2020-05-01 + 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: + - Wed, 14 Apr 2021 10:12:33 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5e71ce8b-4484-4725-9bcf-d1b3fc46c4ba?api-version=2020-05-01 + 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: + - Wed, 14 Apr 2021 10:13:05 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000003?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\":\"clifrontdoor000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Enabled\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Enabled\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"clifrontdoor000003.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Enabled\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"clifrontdoor000003.azurefd.net\",\"frontdoorId\":\"178aaed5-70c3-4ec1-aa3d-44e8cf2b9138\",\"friendlyName\":\"clifrontdoor000003\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '5424' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:13:06 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + 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: '{"hostName": "clife000002.cdne2e.azfdtest.xyz"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door check-custom-domain + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + ParameterSetName: + - -g -n --host-name + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000003/validateCustomDomain?api-version=2020-05-01 + response: + body: + string: '{"customDomainValidated":false,"message":"We couldn''t find a DNS record + for custom domain clife000002.cdne2e.azfdtest.xyz that points to Front Door + clifrontdoor000003.azurefd.net.To map a domain to this Front Door, create + a CNAME record with your DNS provider for custom domain that points to Front + Door.","reason":"IncorrectMapping"}' + headers: + cache-control: + - no-cache + content-length: + - '341' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 10:13:07 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network dns record-set cname set-record + Connection: + - keep-alive + ParameterSetName: + - -g -n -z -c + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-dns/2.1.0 Azure-SDK-For-Python AZURECLI/2.21.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azfdtest.xyz/providers/Microsoft.Network/dnsZones/cdne2e.azfdtest.xyz/CNAME/clife000002?api-version=2018-05-01 + response: + body: + string: '{"code":"NotFound","message":"The resource record ''clife000002'' does + not exist in resource group ''azfdtest.xyz'' of subscription ''27cafca8-b9a4-4264-b399-45d0c9cca1ab''."}' + headers: + cache-control: + - private + content-length: + - '174' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 10:13:09 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' + x-powered-by: + - ASP.NET + status: + code: 404 + message: Not Found +- request: + body: '{"properties": {"TTL": 3600, "CNAMERecord": {"cname": "clifrontdoor000003.azurefd.net"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network dns record-set cname set-record + Connection: + - keep-alive + Content-Length: + - '91' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -z -c + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-dns/2.1.0 Azure-SDK-For-Python AZURECLI/2.21.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azfdtest.xyz/providers/Microsoft.Network/dnsZones/cdne2e.azfdtest.xyz/CNAME/clife000002?api-version=2018-05-01 + response: + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/azfdtest.xyz\/providers\/Microsoft.Network\/dnszones\/cdne2e.azfdtest.xyz\/CNAME\/clife000002","name":"clife000002","type":"Microsoft.Network\/dnszones\/CNAME","etag":"bd9175a9-254c-4134-8aa2-9d23be6112b0","properties":{"fqdn":"clife000002.cdne2e.azfdtest.xyz.","TTL":3600,"CNAMERecord":{"cname":"clifrontdoor000003.azurefd.net"},"targetResource":{},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - private + content-length: + - '478' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 10:13:10 GMT + etag: + - bd9175a9-254c-4134-8aa2-9d23be6112b0 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: '{"hostName": "clife000002.cdne2e.azfdtest.xyz"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door check-custom-domain + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json + ParameterSetName: + - -g -n --host-name + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000003/validateCustomDomain?api-version=2020-05-01 + response: + body: + string: "{\r\n \"customDomainValidated\":true,\"message\":null,\"reason\":null\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '65' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:13:13 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -f -n --host-name --session-affinity-enabled + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000003?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\":\"clifrontdoor000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Enabled\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Enabled\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"clifrontdoor000003.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Enabled\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"clifrontdoor000003.azurefd.net\",\"frontdoorId\":\"178aaed5-70c3-4ec1-aa3d-44e8cf2b9138\",\"friendlyName\":\"clifrontdoor000003\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '5424' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:13:16 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + 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: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000003", + "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/RoutingRules/DefaultRoutingRule", + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/frontendEndpoints/DefaultFrontendEndpoint"}], + "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", + "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], + "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/BackendPools/DefaultBackendPool", + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000003.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}, + {"name": "clife000002", "properties": {"hostName": "clife000002.cdne2e.azfdtest.xyz", + "sessionAffinityEnabledState": "Enabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": + "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint create + Connection: + - keep-alive + Content-Length: + - '3812' + Content-Type: + - application/json + ParameterSetName: + - -g -f -n --host-name --session-affinity-enabled + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000003?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\":\"clifrontdoor000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Enabled\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Enabled\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"clifrontdoor000003.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n },{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/clife000002\",\"name\":\"clife000002\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"clife000002.cdne2e.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Enabled\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"clifrontdoor000003.azurefd.net\",\"frontdoorId\":\"178aaed5-70c3-4ec1-aa3d-44e8cf2b9138\",\"friendlyName\":\"clifrontdoor000003\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/99e75f63-3c5d-469f-ab6d-fcce37f3aec8?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '6101' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:13:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/99e75f63-3c5d-469f-ab6d-fcce37f3aec8/frontdoorresults/clifrontdoor000003?api-version=2020-05-01 + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -f -n --host-name --session-affinity-enabled + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/99e75f63-3c5d-469f-ab6d-fcce37f3aec8?api-version=2020-05-01 + 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: + - Wed, 14 Apr 2021 10:13:31 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -f -n --host-name --session-affinity-enabled + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/99e75f63-3c5d-469f-ab6d-fcce37f3aec8?api-version=2020-05-01 + 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: + - Wed, 14 Apr 2021 10:14:01 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -f -n --host-name --session-affinity-enabled + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000003?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\":\"clifrontdoor000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Enabled\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Enabled\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"clifrontdoor000003.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n },{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/FrontendEndpoints/clife000002\",\"name\":\"clife000002\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"clife000002.cdne2e.azfdtest.xyz\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000003/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Enabled\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000003/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"clifrontdoor000003.azurefd.net\",\"frontdoorId\":\"178aaed5-70c3-4ec1-aa3d-44e8cf2b9138\",\"friendlyName\":\"clifrontdoor000003\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '6101' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:14:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + 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/front-door/azext_front_door/tests/latest/recordings/test_front_door_check_name_availability.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_check_name_availability.yaml index 34857d47a83..0b1b9e9cff7 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_check_name_availability.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_check_name_availability.yaml @@ -13,14 +13,11 @@ interactions: Content-Length: - '72' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --resource-type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/providers/Microsoft.Network/checkFrontDoorNameAvailability?api-version=2020-05-01 response: @@ -34,7 +31,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Thu, 01 Apr 2021 16:57:55 GMT + - Wed, 14 Apr 2021 10:12:12 GMT expires: - '-1' odata-version: @@ -54,7 +51,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-tenant-writes: - - '1199' + - '1198' x-powered-by: - ASP.NET status: @@ -62,22 +59,22 @@ interactions: message: OK - request: body: '{"location": "global", "properties": {"friendlyName": "frontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "frontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "frontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -90,32 +87,52 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/frontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"frontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"frontdoor000002.azurefd.net","frontdoorId":"399a22e4-3a9a-4077-a30a-3ab4a5120109","friendlyName":"frontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"frontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: "{\r\n \"name\":\"frontdoor000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Creating\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Creating\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"frontdoor000002.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Creating\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Creating\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Creating\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"frontdoor000002.azurefd.net\",\"frontdoorId\":\"dab4762f-d639-4168-89d6-79d071e4db16\",\"friendlyName\":\"frontdoor000002\"\r\n + \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/80ca9f0f-4861-4103-8253-a5d4c3db7540?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/a4539441-833c-4aca-86f2-18f489a267c1?api-version=2020-05-01 cache-control: - no-cache content-length: - - '4833' + - '5429' content-type: - - application/json; odata.metadata=minimal; odata.streaming=true + - application/json; odata.metadata=minimal date: - - Thu, 01 Apr 2021 16:58:04 GMT + - Wed, 14 Apr 2021 10:12:27 GMT expires: - '-1' odata-version: @@ -123,13 +140,17 @@ interactions: pragma: - no-cache server: - - Kestrel + - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' + x-powered-by: + - ASP.NET status: code: 201 message: Created @@ -137,7 +158,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -147,22 +168,22 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/80ca9f0f-4861-4103-8253-a5d4c3db7540?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/a4539441-833c-4aca-86f2-18f489a267c1?api-version=2020-05-01 response: body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' + string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n + \ }\r\n}" headers: cache-control: - no-cache content-length: - - '62' + - '78' content-type: - - application/json; odata.metadata=minimal; odata.streaming=true + - application/json; odata.metadata=minimal date: - - Thu, 01 Apr 2021 16:58:15 GMT + - Wed, 14 Apr 2021 10:12:38 GMT expires: - '-1' odata-version: @@ -170,15 +191,19 @@ interactions: pragma: - no-cache server: - - Kestrel + - Microsoft-IIS/10.0 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 @@ -186,7 +211,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -196,22 +221,22 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/80ca9f0f-4861-4103-8253-a5d4c3db7540?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/a4539441-833c-4aca-86f2-18f489a267c1?api-version=2020-05-01 response: body: - string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n + \ }\r\n}" headers: cache-control: - no-cache content-length: - - '61' + - '77' content-type: - - application/json; odata.metadata=minimal; odata.streaming=true + - application/json; odata.metadata=minimal date: - - Thu, 01 Apr 2021 16:58:45 GMT + - Wed, 14 Apr 2021 10:13:08 GMT expires: - '-1' odata-version: @@ -219,15 +244,19 @@ interactions: pragma: - no-cache server: - - Kestrel + - Microsoft-IIS/10.0 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 @@ -235,7 +264,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -245,22 +274,44 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/frontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"frontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"frontdoor000002.azurefd.net","frontdoorId":"399a22e4-3a9a-4077-a30a-3ab4a5120109","friendlyName":"frontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"frontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: "{\r\n \"name\":\"frontdoor000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Enabled\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Enabled\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"frontdoor000002.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Enabled\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"frontdoor000002.azurefd.net\",\"frontdoorId\":\"dab4762f-d639-4168-89d6-79d071e4db16\",\"friendlyName\":\"frontdoor000002\"\r\n + \ }\r\n}" headers: cache-control: - no-cache content-length: - - '4828' + - '5424' content-type: - - application/json; odata.metadata=minimal; odata.streaming=true + - application/json; odata.metadata=minimal date: - - Thu, 01 Apr 2021 16:58:46 GMT + - Wed, 14 Apr 2021 10:13:09 GMT expires: - '-1' odata-version: @@ -268,15 +319,19 @@ interactions: pragma: - no-cache server: - - Kestrel + - Microsoft-IIS/10.0 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 @@ -294,14 +349,11 @@ interactions: Content-Length: - '72' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --resource-type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/providers/Microsoft.Network/checkFrontDoorNameAvailability?api-version=2020-05-01 response: @@ -317,7 +369,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Thu, 01 Apr 2021 16:58:50 GMT + - Wed, 14 Apr 2021 10:13:12 GMT expires: - '-1' odata-version: @@ -337,7 +389,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-tenant-writes: - - '1198' + - '1199' x-powered-by: - ASP.NET status: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_purge_endpoint.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_purge_endpoint.yaml new file mode 100644 index 00000000000..8e1b7499c2a --- /dev/null +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_front_door_purge_endpoint.yaml @@ -0,0 +1,378 @@ +interactions: +- request: + body: '{"location": "global", "properties": {"friendlyName": "frontdoor000002", + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", + "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "frontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + Content-Length: + - '2313' + Content-Type: + - application/json + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/frontdoor000002?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\":\"frontdoor000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Creating\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Creating\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"frontdoor000002.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Creating\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Creating\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Creating\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"frontdoor000002.azurefd.net\",\"frontdoorId\":\"cf464979-1320-43c2-8ff1-e97c18e73c77\",\"friendlyName\":\"frontdoor000002\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/65fee355-3be3-46c9-845e-f5726ba2c3ba?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '5429' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:12:27 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/65fee355-3be3-46c9-845e-f5726ba2c3ba?api-version=2020-05-01 + 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: + - Wed, 14 Apr 2021 10:12:38 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/65fee355-3be3-46c9-845e-f5726ba2c3ba?api-version=2020-05-01 + 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: + - Wed, 14 Apr 2021 10:13:09 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + ParameterSetName: + - -g -n --backend-address + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/frontdoor000002?api-version=2020-05-01 + response: + body: + string: "{\r\n \"name\":\"frontdoor000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002\",\"type\":\"Microsoft.Network/frontdoors\",\"tags\":{\r\n + \ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Enabled\",\"backendPools\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/BackendPools/DefaultBackendPool\",\"name\":\"DefaultBackendPool\",\"type\":\"Microsoft.Network/Frontdoors/BackendPools\",\"properties\":{\r\n + \ \"backends\":[\r\n {\r\n \"address\":\"202.120.2.3\",\"httpPort\":80,\"httpsPort\":443,\"priority\":1,\"weight\":50,\"backendHostHeader\":\"202.120.2.3\",\"enabledState\":\"Enabled\",\"privateLinkAlias\":null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null,\"privateLinkResourceId\":null,\"privateLinkLocation\":null\r\n + \ }\r\n ],\"healthProbeSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/healthProbeSettings/DefaultProbeSettings\"\r\n + \ },\"loadBalancingSettings\":{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings\"\r\n + \ },\"resourceState\":\"Enabled\"\r\n }\r\n }\r\n ],\"healthProbeSettings\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/HealthProbeSettings/DefaultProbeSettings\",\"name\":\"DefaultProbeSettings\",\"type\":\"Microsoft.Network/Frontdoors/HealthProbeSettings\",\"properties\":{\r\n + \ \"intervalInSeconds\":30,\"path\":\"/\",\"protocol\":\"Https\",\"resourceState\":\"Enabled\",\"enabledState\":\"Enabled\",\"healthProbeMethod\":\"Head\"\r\n + \ }\r\n }\r\n ],\"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint\",\"name\":\"DefaultFrontendEndpoint\",\"type\":\"Microsoft.Network/Frontdoors/FrontendEndpoints\",\"properties\":{\r\n + \ \"hostName\":\"frontdoor000002.azurefd.net\",\"sessionAffinityEnabledState\":\"Disabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":null,\"customHttpsProvisioningSubstate\":null,\"customHttpsConfiguration\":null,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"loadBalancingSettings\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings\",\"name\":\"DefaultLoadBalancingSettings\",\"type\":\"Microsoft.Network/Frontdoors/LoadBalancingSettings\",\"properties\":{\r\n + \ \"additionalLatencyMilliseconds\":0,\"sampleSize\":4,\"successfulSamplesRequired\":2,\"resourceState\":\"Enabled\"\r\n + \ }\r\n }\r\n ],\"rulesEngines\":[\r\n \r\n ],\"routingRules\":[\r\n + \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/frontdoor000002/RoutingRules/DefaultRoutingRule\",\"name\":\"DefaultRoutingRule\",\"type\":\"Microsoft.Network/Frontdoors/RoutingRules\",\"properties\":{\r\n + \ \"frontendEndpoints\":[\r\n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/frontendEndpoints/DefaultFrontendEndpoint\"\r\n + \ }\r\n ],\"acceptedProtocols\":[\r\n \"Http\"\r\n + \ ],\"patternsToMatch\":[\r\n \"/*\"\r\n ],\"enabledState\":\"Enabled\",\"resourceState\":\"Enabled\",\"routeConfiguration\":{\r\n + \ \"@odata.type\":\"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration\",\"customForwardingPath\":null,\"forwardingProtocol\":\"MatchRequest\",\"cacheConfiguration\":null,\"backendPool\":{\r\n + \ \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/frontdoor000002/backendPools/DefaultBackendPool\"\r\n + \ }\r\n },\"rulesEngine\":null,\"webApplicationFirewallPolicyLink\":null\r\n + \ }\r\n }\r\n ],\"backendPoolsSettings\":{\r\n \"enforceCertificateNameCheck\":\"Enabled\",\"sendRecvTimeoutSeconds\":30\r\n + \ },\"enabledState\":\"Enabled\",\"cName\":\"frontdoor000002.azurefd.net\",\"frontdoorId\":\"cf464979-1320-43c2-8ff1-e97c18e73c77\",\"friendlyName\":\"frontdoor000002\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '5424' + content-type: + - application/json; odata.metadata=minimal + date: + - Wed, 14 Apr 2021 10:13:10 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + 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": ["/test1/azure.json", "/test2/*"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door purge-endpoint + Connection: + - keep-alive + Content-Length: + - '51' + Content-Type: + - application/json + ParameterSetName: + - --name -g --content-paths + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/frontdoor000002/purge?api-version=2020-05-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/0b34b43d-1f82-49fd-84c2-a886012c908d?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 14 Apr 2021 10:13:13 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/0b34b43d-1f82-49fd-84c2-a886012c908d/frontdoorresults/frontdoor000002?api-version=2020-05-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door purge-endpoint + Connection: + - keep-alive + ParameterSetName: + - --name -g --content-paths + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/0b34b43d-1f82-49fd-84c2-a886012c908d?api-version=2020-05-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 10:13:24 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_basic.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_basic.yaml index a62d7cf4f5a..0f8c3e6484c 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_basic.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_basic.yaml @@ -1,22 +1,22 @@ interactions: - request: body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -29,24 +29,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"767632aa-08cc-4c01-86a3-261cd5d58eba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"126bc3c5-3864-45ae-8d1e-6a7774e1e54b","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f03228c6-66b5-4e56-a696-41301e8e74d1?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/66754917-54dc-40e1-a4c4-15841ebcc7f1?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -54,7 +51,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:03:21 GMT + - Wed, 14 Apr 2021 05:35:55 GMT expires: - '-1' odata-version: @@ -68,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -76,7 +73,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -86,10 +83,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f03228c6-66b5-4e56-a696-41301e8e74d1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/66754917-54dc-40e1-a4c4-15841ebcc7f1?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -101,7 +97,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:03:33 GMT + - Wed, 14 Apr 2021 05:36:05 GMT expires: - '-1' odata-version: @@ -125,7 +121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -135,10 +131,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f03228c6-66b5-4e56-a696-41301e8e74d1?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/66754917-54dc-40e1-a4c4-15841ebcc7f1?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -150,7 +145,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:03 GMT + - Wed, 14 Apr 2021 05:36:36 GMT expires: - '-1' odata-version: @@ -174,7 +169,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -184,13 +179,12 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"767632aa-08cc-4c01-86a3-261cd5d58eba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"126bc3c5-3864-45ae-8d1e-6a7774e1e54b","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -199,7 +193,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:03 GMT + - Wed, 14 Apr 2021 05:36:37 GMT expires: - '-1' odata-version: @@ -233,10 +227,7 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/frontendEndpoints?api-version=2020-05-01 response: @@ -250,7 +241,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:06 GMT + - Wed, 14 Apr 2021 05:36:39 GMT expires: - '-1' odata-version: @@ -284,10 +275,7 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint?api-version=2020-05-01 response: @@ -301,7 +289,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:08 GMT + - Wed, 14 Apr 2021 05:36:40 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_latest_version.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_latest_version.yaml index cedd516d254..722404bebd5 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_latest_version.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_latest_version.yaml @@ -16,14 +16,11 @@ interactions: Content-Length: - '331' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --certificate-source --vault-id --secret-name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn/enableHttps?api-version=2020-05-01 response: @@ -31,7 +28,7 @@ interactions: string: '{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/0785c1a9-e4ed-496c-b92b-5c36c23368e5?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/8438890e-996d-43d2-bcb0-25887e3e55c7?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -39,11 +36,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Wed, 07 Apr 2021 02:47:07 GMT + - Wed, 14 Apr 2021 07:36:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/0785c1a9-e4ed-496c-b92b-5c36c23368e5/frontdoorresults/frontdoorpstest2?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/8438890e-996d-43d2-bcb0-25887e3e55c7/frontdoorresults/frontdoorpstest2?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -73,10 +70,55 @@ interactions: ParameterSetName: - -f -g -n --certificate-source --vault-id --secret-name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1050' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:36:48 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 response: @@ -90,7 +132,2363 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Wed, 07 Apr 2021 02:47:08 GMT + - Wed, 14 Apr 2021 07:36:48 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:37:20 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:37:51 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:38:23 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:38:54 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:39:25 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:39:56 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:40:28 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:40:58 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:41:30 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:42:00 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:42:32 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:43:03 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:43:34 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:44:06 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:44:37 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:45:09 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:45:39 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:46:11 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:46:43 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:47:14 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:47:46 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:17 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabled","customHttpsProvisioningSubstate":"CertificateDeployed","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1036' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:48 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint disable-https + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f -g -n + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn/disableHttps?api-version=2020-05-01 + response: + body: + string: '{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/4e549a83-7770-47d1-9347-f8c591af3b47?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '721' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/4e549a83-7770-47d1-9347-f8c591af3b47/frontdoorresults/frontdoorpstest2?api-version=2020-05-01 + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:52 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:49:23 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:49:55 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:50:25 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:50:56 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:51:28 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:51:59 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:52:31 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:53:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:53:33 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:54:05 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:54:36 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:55:09 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:55:40 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:56:11 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:56:43 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:57:14 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:57:45 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:58:16 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:58:48 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:59:19 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:59:50 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 08:00:21 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":null,"vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1038' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 08:00:52 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-latest-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-latest-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-latest-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-latest.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}' + headers: + cache-control: + - no-cache + content-length: + - '621' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 08:01:24 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_specific_version.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_specific_version.yaml index b4f891e59c6..360baefd6ec 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_specific_version.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_byoc_specific_version.yaml @@ -16,14 +16,11 @@ interactions: Content-Length: - '384' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --certificate-source --vault-id --secret-name --secret-version User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn/enableHttps?api-version=2020-05-01 response: @@ -31,7 +28,7 @@ interactions: string: '{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/0d5ee887-43fd-4415-a22e-875b9adc8a37?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/2659fad6-3950-4ff2-9bf6-c0eea183d577?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -39,11 +36,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Wed, 07 Apr 2021 02:47:06 GMT + - Wed, 14 Apr 2021 07:36:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/0d5ee887-43fd-4415-a22e-875b9adc8a37/frontdoorresults/frontdoorpstest2?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/2659fad6-3950-4ff2-9bf6-c0eea183d577/frontdoorresults/frontdoorpstest2?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -73,10 +70,55 @@ interactions: ParameterSetName: - -f -g -n --certificate-source --vault-id --secret-name --secret-version User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1086' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:36:48 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 response: @@ -90,7 +132,2363 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Wed, 07 Apr 2021 02:47:08 GMT + - Wed, 14 Apr 2021 07:36:49 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:37:21 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:37:51 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:38:22 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:38:54 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:39:26 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:39:56 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:40:28 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:40:59 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:41:31 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:42:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:42:33 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:43:04 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:43:36 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:44:07 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:44:39 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:45:10 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:45:41 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:46:13 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:46:43 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:47:14 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:47:46 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"DeployingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:18 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Enabled","customHttpsProvisioningSubstate":"CertificateDeployed","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1072' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:49 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint disable-https + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -f -g -n + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn/disableHttps?api-version=2020-05-01 + response: + body: + string: '{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/5572ef56-b395-411b-8fcc-8dfc5d5d6153?api-version=2020-05-01 + cache-control: + - no-cache + content-length: + - '753' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdooroperationresults/5572ef56-b395-411b-8fcc-8dfc5d5d6153/frontdoorresults/frontdoorpstest2?api-version=2020-05-01 + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:48:52 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:49:23 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:49:55 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:50:26 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:50:57 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:51:29 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:52:00 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:52:31 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:53:02 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:53:34 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:54:05 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:54:36 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:55:09 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:55:40 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:56:11 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:56:43 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:57:14 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:57:46 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:58:16 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:58:48 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:59:19 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 07:59:51 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 08:00:22 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabling","customHttpsProvisioningSubstate":"DeletingCertificate","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":{"protocolType":"ServerNameIndication","certificateSource":"AzureKeyVault","minimumTlsVersion":"1.2","frontDoorCertificateSourceParameters":{"certificateType":null},"keyVaultCertificateSourceParameters":{"secretName":"frontdoorpstest2","secretVersion":"d6b1f0ffd2a142efb2a8a89289802c77","vault":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest"}}}}}' + headers: + cache-control: + - no-cache + content-length: + - '1074' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 08:00:54 GMT + expires: + - '-1' + odata-version: + - '4.0' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door frontend-endpoint wait + Connection: + - keep-alive + ParameterSetName: + - -f -g -n --custom + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bzhanafdtest/providers/Microsoft.Network/frontDoors/frontdoorpstest2/frontendEndpoints/afd-byoc-specific-localdev-cdn-azure-cn?api-version=2020-05-01 + response: + body: + string: '{"name":"afd-byoc-specific-localdev-cdn-azure-cn","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/bzhanafdtest/providers/Microsoft.Network/frontdoors/frontdoorpstest2/frontendendpoints/afd-byoc-specific-localdev-cdn-azure-cn","type":"Microsoft.Network/frontdoors/frontendendpoints","properties":{"hostName":"afd-byoc-specific.localdev.cdn.azure.cn","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}' + headers: + cache-control: + - no-cache + content-length: + - '627' + content-type: + - application/json; odata.metadata=minimal; odata.streaming=true + date: + - Wed, 14 Apr 2021 08:01:24 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_wait.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_wait.yaml index bbe4db3634b..573fea82e94 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_wait.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_frontend_endpoint_wait.yaml @@ -1,22 +1,22 @@ interactions: - request: body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -29,24 +29,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"885ffb94-04b1-4fdb-9d7b-d548034ddfc9","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ad9febec-a349-4589-8b80-cb142fac0ab1","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/bd851e29-2fb5-4e1f-b705-495aa831bac8?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/84b9bb16-c1fe-4b73-b158-3a3d51dbaf5f?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -54,7 +51,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:03:22 GMT + - Wed, 14 Apr 2021 05:38:24 GMT expires: - '-1' odata-version: @@ -68,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -76,7 +73,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -86,10 +83,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/bd851e29-2fb5-4e1f-b705-495aa831bac8?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/84b9bb16-c1fe-4b73-b158-3a3d51dbaf5f?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -101,7 +97,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:03:33 GMT + - Wed, 14 Apr 2021 05:38:34 GMT expires: - '-1' odata-version: @@ -125,7 +121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -135,10 +131,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/bd851e29-2fb5-4e1f-b705-495aa831bac8?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/84b9bb16-c1fe-4b73-b158-3a3d51dbaf5f?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -150,7 +145,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:04 GMT + - Wed, 14 Apr 2021 05:39:05 GMT expires: - '-1' odata-version: @@ -174,7 +169,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -184,13 +179,12 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"885ffb94-04b1-4fdb-9d7b-d548034ddfc9","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ad9febec-a349-4589-8b80-cb142fac0ab1","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -199,7 +193,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:05 GMT + - Wed, 14 Apr 2021 05:39:06 GMT expires: - '-1' odata-version: @@ -233,10 +227,7 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/frontendEndpoints?api-version=2020-05-01 response: @@ -250,7 +241,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:07 GMT + - Wed, 14 Apr 2021 05:39:08 GMT expires: - '-1' odata-version: @@ -284,10 +275,7 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint?api-version=2020-05-01 response: @@ -301,7 +289,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:09 GMT + - Wed, 14 Apr 2021 05:39:10 GMT expires: - '-1' odata-version: @@ -335,10 +323,7 @@ interactions: ParameterSetName: - -f -g -n --custom User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint?api-version=2020-05-01 response: @@ -352,7 +337,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Fri, 02 Apr 2021 09:04:11 GMT + - Wed, 14 Apr 2021 05:39:10 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_load_balancing_basic.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_load_balancing_basic.yaml index 2cbb7c2bcf5..c28056cb28a 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_load_balancing_basic.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_load_balancing_basic.yaml @@ -1,22 +1,22 @@ interactions: - request: body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -29,24 +29,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f531f790-f0e3-4b6f-b84b-63e50bc6ca24?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/82ae3a50-36ff-407d-a8f3-da59ad2d47d1?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -54,7 +51,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:03 GMT + - Wed, 14 Apr 2021 05:35:55 GMT expires: - '-1' odata-version: @@ -68,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -76,7 +73,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -86,10 +83,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f531f790-f0e3-4b6f-b84b-63e50bc6ca24?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/82ae3a50-36ff-407d-a8f3-da59ad2d47d1?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -101,7 +97,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:14 GMT + - Wed, 14 Apr 2021 05:36:05 GMT expires: - '-1' odata-version: @@ -125,7 +121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -135,10 +131,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/f531f790-f0e3-4b6f-b84b-63e50bc6ca24?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/82ae3a50-36ff-407d-a8f3-da59ad2d47d1?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -150,7 +145,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:44 GMT + - Wed, 14 Apr 2021 05:36:35 GMT expires: - '-1' odata-version: @@ -174,7 +169,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -184,13 +179,12 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -199,7 +193,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:45 GMT + - Wed, 14 Apr 2021 05:36:36 GMT expires: - '-1' odata-version: @@ -233,15 +227,12 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -250,7 +241,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:48 GMT + - Wed, 14 Apr 2021 05:36:38 GMT expires: - '-1' odata-version: @@ -273,30 +264,28 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}, {"properties": - {"sampleSize": 5, "successfulSamplesRequired": 1, "additionalLatencyMilliseconds": - 100}, "name": "lb1"}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}, {"name": "lb1", "properties": {"sampleSize": + 5, "successfulSamplesRequired": 1, "additionalLatencyMilliseconds": 100}}], + "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -307,24 +296,21 @@ interactions: Connection: - keep-alive Content-Length: - - '3960' + - '3792' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":100,"sampleSize":5,"successfulSamplesRequired":1,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":100,"sampleSize":5,"successfulSamplesRequired":1,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3e6afd4e-c8c7-4c3b-8578-ea27dd11163b?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/df4a9ee6-5a50-4de8-b50a-0419071301e2?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -332,11 +318,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:50 GMT + - Wed, 14 Apr 2021 05:36:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3e6afd4e-c8c7-4c3b-8578-ea27dd11163b/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/df4a9ee6-5a50-4de8-b50a-0419071301e2/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -348,7 +334,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 202 message: Accepted @@ -356,7 +342,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -366,10 +352,9 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3e6afd4e-c8c7-4c3b-8578-ea27dd11163b?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/df4a9ee6-5a50-4de8-b50a-0419071301e2?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -381,7 +366,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:01 GMT + - Wed, 14 Apr 2021 05:36:51 GMT expires: - '-1' odata-version: @@ -405,7 +390,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -415,10 +400,9 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3e6afd4e-c8c7-4c3b-8578-ea27dd11163b?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/df4a9ee6-5a50-4de8-b50a-0419071301e2?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -430,7 +414,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:32 GMT + - Wed, 14 Apr 2021 05:37:22 GMT expires: - '-1' odata-version: @@ -454,7 +438,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -464,13 +448,12 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":100,"sampleSize":5,"successfulSamplesRequired":1,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":100,"sampleSize":5,"successfulSamplesRequired":1,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -479,7 +462,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:33 GMT + - Wed, 14 Apr 2021 05:37:22 GMT expires: - '-1' odata-version: @@ -513,15 +496,12 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":100,"sampleSize":5,"successfulSamplesRequired":1,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":100,"sampleSize":5,"successfulSamplesRequired":1,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -530,7 +510,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:33 GMT + - Wed, 14 Apr 2021 05:37:23 GMT expires: - '-1' odata-version: @@ -553,32 +533,28 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}, {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 10, "resourceState": "Enabled"}, "name": "lb1"}], "healthProbeSettings": [{"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1", + "name": "lb1", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 10}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -589,24 +565,21 @@ interactions: Connection: - keep-alive Content-Length: - - '4225' + - '4029' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d1bcceb-999f-4b68-8b09-07cb125cda89?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/0de079ee-b65a-4cc4-be8d-bd420c3602c8?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -614,11 +587,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:35 GMT + - Wed, 14 Apr 2021 05:37:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d1bcceb-999f-4b68-8b09-07cb125cda89/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/0de079ee-b65a-4cc4-be8d-bd420c3602c8/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -630,7 +603,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 202 message: Accepted @@ -638,7 +611,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -648,10 +621,9 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d1bcceb-999f-4b68-8b09-07cb125cda89?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/0de079ee-b65a-4cc4-be8d-bd420c3602c8?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -663,7 +635,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:47 GMT + - Wed, 14 Apr 2021 05:37:36 GMT expires: - '-1' odata-version: @@ -687,7 +659,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -697,10 +669,9 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/6d1bcceb-999f-4b68-8b09-07cb125cda89?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/0de079ee-b65a-4cc4-be8d-bd420c3602c8?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -712,7 +683,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:16 GMT + - Wed, 14 Apr 2021 05:38:06 GMT expires: - '-1' odata-version: @@ -736,7 +707,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -746,13 +717,12 @@ interactions: ParameterSetName: - -f -g -n --sample-size --successful-samples-required --additional-latency User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -761,7 +731,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:17 GMT + - Wed, 14 Apr 2021 05:38:07 GMT expires: - '-1' odata-version: @@ -795,15 +765,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -812,7 +779,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:18 GMT + - Wed, 14 Apr 2021 05:38:08 GMT expires: - '-1' odata-version: @@ -846,15 +813,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -863,7 +827,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:19 GMT + - Wed, 14 Apr 2021 05:38:08 GMT expires: - '-1' odata-version: @@ -897,15 +861,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/lb1","name":"lb1","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":10,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -914,7 +875,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:20 GMT + - Wed, 14 Apr 2021 05:38:09 GMT expires: - '-1' odata-version: @@ -937,29 +898,26 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -970,24 +928,21 @@ interactions: Connection: - keep-alive Content-Length: - - '3840' + - '3672' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/816afb4a-e193-41c6-88f0-9ad2a9e39dc6?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/fdb4685e-954e-4c06-9851-05d532a1b884?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -995,11 +950,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:22 GMT + - Wed, 14 Apr 2021 05:38:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/816afb4a-e193-41c6-88f0-9ad2a9e39dc6/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/fdb4685e-954e-4c06-9851-05d532a1b884/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -1011,7 +966,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1198' status: code: 202 message: Accepted @@ -1019,7 +974,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1029,10 +984,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/816afb4a-e193-41c6-88f0-9ad2a9e39dc6?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/fdb4685e-954e-4c06-9851-05d532a1b884?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1044,7 +998,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:34 GMT + - Wed, 14 Apr 2021 05:38:23 GMT expires: - '-1' odata-version: @@ -1068,7 +1022,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1078,10 +1032,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/816afb4a-e193-41c6-88f0-9ad2a9e39dc6?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/fdb4685e-954e-4c06-9851-05d532a1b884?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1093,7 +1046,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:04 GMT + - Wed, 14 Apr 2021 05:38:53 GMT expires: - '-1' odata-version: @@ -1117,7 +1070,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1127,13 +1080,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1142,7 +1094,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:05 GMT + - Wed, 14 Apr 2021 05:38:53 GMT expires: - '-1' odata-version: @@ -1176,15 +1128,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"854908aa-6b2a-4b51-9596-a4fcdcbf5d51","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"2dd6ff22-ad57-465b-914a-32a993680923","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1193,7 +1142,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:06 GMT + - Wed, 14 Apr 2021 05:38:54 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_probe_basic.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_probe_basic.yaml index 7d2759e0683..c012d71219f 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_probe_basic.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_probe_basic.yaml @@ -1,22 +1,22 @@ interactions: - request: body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -29,24 +29,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/da2708c3-d8a0-4ccf-a72c-e9dfd2fbd54a?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/048d4bcb-e7d8-443d-a1de-9d89c25f8c6d?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -54,7 +51,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:03 GMT + - Wed, 14 Apr 2021 05:35:54 GMT expires: - '-1' odata-version: @@ -68,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' status: code: 201 message: Created @@ -76,7 +73,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -86,10 +83,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/da2708c3-d8a0-4ccf-a72c-e9dfd2fbd54a?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/048d4bcb-e7d8-443d-a1de-9d89c25f8c6d?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -101,7 +97,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:14 GMT + - Wed, 14 Apr 2021 05:36:05 GMT expires: - '-1' odata-version: @@ -125,7 +121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -135,10 +131,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/da2708c3-d8a0-4ccf-a72c-e9dfd2fbd54a?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/048d4bcb-e7d8-443d-a1de-9d89c25f8c6d?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -150,7 +145,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:44 GMT + - Wed, 14 Apr 2021 05:36:36 GMT expires: - '-1' odata-version: @@ -174,7 +169,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -184,13 +179,12 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -199,7 +193,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:45 GMT + - Wed, 14 Apr 2021 05:36:36 GMT expires: - '-1' odata-version: @@ -233,15 +227,12 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -250,7 +241,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:47 GMT + - Wed, 14 Apr 2021 05:36:38 GMT expires: - '-1' odata-version: @@ -273,31 +264,28 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}, - {"properties": {"path": "/abc", "protocol": "Http", "intervalInSeconds": 100, - "healthProbeMethod": "GET", "enabledState": "Disabled"}, "name": "pb1"}], "backendPools": + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}, + {"name": "pb1", "properties": {"path": "/abc", "protocol": "Http", "intervalInSeconds": + 100, "healthProbeMethod": "GET", "enabledState": "Disabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -308,24 +296,21 @@ interactions: Connection: - keep-alive Content-Length: - - '3991' + - '3823' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":100,"path":"/abc","protocol":"Http","resourceState":"Enabled","enabledState":"Disabled","healthProbeMethod":"Get"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":100,"path":"/abc","protocol":"Http","resourceState":"Enabled","enabledState":"Disabled","healthProbeMethod":"Get"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/44137bf1-2946-4954-9bc6-81b549cf5bc7?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5b2a5977-6225-4909-aa11-03e052973fd4?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -333,11 +318,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:50 GMT + - Wed, 14 Apr 2021 05:36:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/44137bf1-2946-4954-9bc6-81b549cf5bc7/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5b2a5977-6225-4909-aa11-03e052973fd4/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -349,7 +334,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 202 message: Accepted @@ -357,7 +342,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -367,10 +352,9 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/44137bf1-2946-4954-9bc6-81b549cf5bc7?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5b2a5977-6225-4909-aa11-03e052973fd4?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -382,7 +366,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:01 GMT + - Wed, 14 Apr 2021 05:36:51 GMT expires: - '-1' odata-version: @@ -406,7 +390,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -416,10 +400,9 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/44137bf1-2946-4954-9bc6-81b549cf5bc7?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5b2a5977-6225-4909-aa11-03e052973fd4?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -431,7 +414,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:30 GMT + - Wed, 14 Apr 2021 05:37:22 GMT expires: - '-1' odata-version: @@ -455,7 +438,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -465,13 +448,12 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":100,"path":"/abc","protocol":"Http","resourceState":"Enabled","enabledState":"Disabled","healthProbeMethod":"Get"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":100,"path":"/abc","protocol":"Http","resourceState":"Enabled","enabledState":"Disabled","healthProbeMethod":"Get"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -480,7 +462,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:32 GMT + - Wed, 14 Apr 2021 05:37:23 GMT expires: - '-1' odata-version: @@ -514,15 +496,12 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":100,"path":"/abc","protocol":"Http","resourceState":"Enabled","enabledState":"Disabled","healthProbeMethod":"Get"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":100,"path":"/abc","protocol":"Http","resourceState":"Enabled","enabledState":"Disabled","healthProbeMethod":"Get"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -531,7 +510,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:32 GMT + - Wed, 14 Apr 2021 05:37:23 GMT expires: - '-1' odata-version: @@ -554,32 +533,29 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}, + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 10, "healthProbeMethod": - "HEAD", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "pb1"}], - "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "pb1", "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": + 10, "healthProbeMethod": "HEAD", "enabledState": "Enabled"}}], "backendPools": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -590,24 +566,21 @@ interactions: Connection: - keep-alive Content-Length: - - '4252' + - '4056' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/33ceeeba-5430-4150-b01e-3288caa2fb94?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/7384db03-3a1c-4ff7-a7fd-c0893b7a1a69?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -615,11 +588,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:34 GMT + - Wed, 14 Apr 2021 05:37:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/33ceeeba-5430-4150-b01e-3288caa2fb94/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/7384db03-3a1c-4ff7-a7fd-c0893b7a1a69/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -631,7 +604,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 202 message: Accepted @@ -639,7 +612,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -649,10 +622,9 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/33ceeeba-5430-4150-b01e-3288caa2fb94?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/7384db03-3a1c-4ff7-a7fd-c0893b7a1a69?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -664,7 +636,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:45 GMT + - Wed, 14 Apr 2021 05:37:36 GMT expires: - '-1' odata-version: @@ -688,7 +660,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -698,10 +670,9 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/33ceeeba-5430-4150-b01e-3288caa2fb94?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/7384db03-3a1c-4ff7-a7fd-c0893b7a1a69?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -713,7 +684,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:16 GMT + - Wed, 14 Apr 2021 05:38:06 GMT expires: - '-1' odata-version: @@ -737,7 +708,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -747,13 +718,12 @@ interactions: ParameterSetName: - -f -g -n --interval --path --enabled --probeMethod --protocol User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -762,7 +732,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:17 GMT + - Wed, 14 Apr 2021 05:38:06 GMT expires: - '-1' odata-version: @@ -796,15 +766,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -813,7 +780,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:17 GMT + - Wed, 14 Apr 2021 05:38:07 GMT expires: - '-1' odata-version: @@ -847,15 +814,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -864,7 +828,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:18 GMT + - Wed, 14 Apr 2021 05:38:09 GMT expires: - '-1' odata-version: @@ -898,15 +862,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/pb1","name":"pb1","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":10,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -915,7 +876,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:19 GMT + - Wed, 14 Apr 2021 05:38:10 GMT expires: - '-1' odata-version: @@ -938,29 +899,26 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -971,24 +929,21 @@ interactions: Connection: - keep-alive Content-Length: - - '3840' + - '3672' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/be7c75f3-3161-47fb-945e-3bc363d9f524?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/94a6c487-bcfb-4063-98e0-b1a0849e7907?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -996,11 +951,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:21 GMT + - Wed, 14 Apr 2021 05:38:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/be7c75f3-3161-47fb-945e-3bc363d9f524/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/94a6c487-bcfb-4063-98e0-b1a0849e7907/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -1012,7 +967,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1197' status: code: 202 message: Accepted @@ -1020,7 +975,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1030,10 +985,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/be7c75f3-3161-47fb-945e-3bc363d9f524?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/94a6c487-bcfb-4063-98e0-b1a0849e7907?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1045,7 +999,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:33 GMT + - Wed, 14 Apr 2021 05:38:23 GMT expires: - '-1' odata-version: @@ -1069,7 +1023,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1079,10 +1033,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/be7c75f3-3161-47fb-945e-3bc363d9f524?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/94a6c487-bcfb-4063-98e0-b1a0849e7907?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1094,7 +1047,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:03 GMT + - Wed, 14 Apr 2021 05:38:53 GMT expires: - '-1' odata-version: @@ -1118,7 +1071,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1128,13 +1081,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1143,7 +1095,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:04 GMT + - Wed, 14 Apr 2021 05:38:54 GMT expires: - '-1' odata-version: @@ -1177,15 +1129,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"7b7671c2-b3bf-4747-b4fc-453f1d017bba","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"6ff80e84-a893-43fe-a484-8ba5f1e14492","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1194,7 +1143,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:04 GMT + - Wed, 14 Apr 2021 05:38:55 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_route_rule_basic.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_route_rule_basic.yaml index 2e26ad256c7..db6984900ce 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_route_rule_basic.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_route_rule_basic.yaml @@ -1,22 +1,22 @@ interactions: - request: body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -29,24 +29,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/11f5f203-89fd-4a5f-b31b-7dcbcf1d1733?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/2e8e8f5f-5c21-41f0-b71e-4df046bd1716?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -54,7 +51,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:33 GMT + - Wed, 14 Apr 2021 05:35:59 GMT expires: - '-1' odata-version: @@ -68,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1198' status: code: 201 message: Created @@ -76,7 +73,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -86,10 +83,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/11f5f203-89fd-4a5f-b31b-7dcbcf1d1733?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/2e8e8f5f-5c21-41f0-b71e-4df046bd1716?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -101,7 +97,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:43 GMT + - Wed, 14 Apr 2021 05:36:10 GMT expires: - '-1' odata-version: @@ -125,7 +121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -135,10 +131,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/11f5f203-89fd-4a5f-b31b-7dcbcf1d1733?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/2e8e8f5f-5c21-41f0-b71e-4df046bd1716?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -150,7 +145,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:14 GMT + - Wed, 14 Apr 2021 05:36:40 GMT expires: - '-1' odata-version: @@ -174,7 +169,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -184,13 +179,12 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -199,7 +193,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:15 GMT + - Wed, 14 Apr 2021 05:36:40 GMT expires: - '-1' odata-version: @@ -233,15 +227,12 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --backend-pool --patterns User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -250,7 +241,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:16 GMT + - Wed, 14 Apr 2021 05:36:41 GMT expires: - '-1' odata-version: @@ -273,33 +264,30 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}, {"properties": {"frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}, + {"name": "rule1", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/forward1"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}, - "name": "rule1"}], "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -310,24 +298,21 @@ interactions: Connection: - keep-alive Content-Length: - - '4616' + - '4448' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --frontend-endpoints --route-type --backend-pool --patterns User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d242f874-63e3-43d0-b87d-9d5d4ddbeab7?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/8d879472-59f3-49a0-8b04-f2b3c960d9a3?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -335,11 +320,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:18 GMT + - Wed, 14 Apr 2021 05:36:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d242f874-63e3-43d0-b87d-9d5d4ddbeab7/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/8d879472-59f3-49a0-8b04-f2b3c960d9a3/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -351,7 +336,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 202 message: Accepted @@ -359,7 +344,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -369,10 +354,9 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --backend-pool --patterns User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d242f874-63e3-43d0-b87d-9d5d4ddbeab7?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/8d879472-59f3-49a0-8b04-f2b3c960d9a3?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -384,7 +368,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:30 GMT + - Wed, 14 Apr 2021 05:36:54 GMT expires: - '-1' odata-version: @@ -408,7 +392,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -418,10 +402,9 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --backend-pool --patterns User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d242f874-63e3-43d0-b87d-9d5d4ddbeab7?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/8d879472-59f3-49a0-8b04-f2b3c960d9a3?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -433,7 +416,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:00 GMT + - Wed, 14 Apr 2021 05:37:25 GMT expires: - '-1' odata-version: @@ -457,7 +440,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -467,13 +450,12 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --backend-pool --patterns User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -482,7 +464,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:01 GMT + - Wed, 14 Apr 2021 05:37:25 GMT expires: - '-1' odata-version: @@ -516,15 +498,12 @@ interactions: ParameterSetName: - -f -g -n --patterns --caching User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -533,7 +512,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:02 GMT + - Wed, 14 Apr 2021 05:37:25 GMT expires: - '-1' odata-version: @@ -556,35 +535,32 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", + "name": "rule1", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/forward2"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", "forwardingProtocol": "MatchRequest", "cacheConfiguration": {"queryParameterStripDirective": - "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "rule1"}], "loadBalancingSettings": [{"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -595,24 +571,21 @@ interactions: Connection: - keep-alive Content-Length: - - '5015' + - '4819' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --patterns --caching User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/a4ed4ec2-d753-4b48-a1ea-941d404efc2d?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/344e2244-9900-4242-b448-4a32fd1f23d9?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -620,11 +593,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:06 GMT + - Wed, 14 Apr 2021 05:37:29 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/a4ed4ec2-d753-4b48-a1ea-941d404efc2d/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/344e2244-9900-4242-b448-4a32fd1f23d9/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -636,7 +609,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 202 message: Accepted @@ -644,7 +617,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -654,10 +627,9 @@ interactions: ParameterSetName: - -f -g -n --patterns --caching User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/a4ed4ec2-d753-4b48-a1ea-941d404efc2d?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/344e2244-9900-4242-b448-4a32fd1f23d9?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -669,7 +641,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:15 GMT + - Wed, 14 Apr 2021 05:37:40 GMT expires: - '-1' odata-version: @@ -693,7 +665,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -703,10 +675,9 @@ interactions: ParameterSetName: - -f -g -n --patterns --caching User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/a4ed4ec2-d753-4b48-a1ea-941d404efc2d?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/344e2244-9900-4242-b448-4a32fd1f23d9?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -718,7 +689,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:46 GMT + - Wed, 14 Apr 2021 05:38:10 GMT expires: - '-1' odata-version: @@ -742,7 +713,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -752,13 +723,12 @@ interactions: ParameterSetName: - -f -g -n --patterns --caching User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -767,7 +737,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:47 GMT + - Wed, 14 Apr 2021 05:38:10 GMT expires: - '-1' odata-version: @@ -801,15 +771,12 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --custom-host --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -818,7 +785,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:47 GMT + - Wed, 14 Apr 2021 05:38:12 GMT expires: - '-1' odata-version: @@ -841,40 +808,36 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", + "name": "rule1", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/forward2"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", "forwardingProtocol": "MatchRequest", "cacheConfiguration": {"queryParameterStripDirective": - "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "rule1"}, {"properties": {"frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}, + {"name": "rule2", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/redirect1"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", "redirectType": "Moved", "redirectProtocol": "MatchRequest", "customHost": "redirecthost.com", - "customQueryString": "querystring"}}, "name": "rule2"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "customQueryString": "querystring"}}}], "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -885,24 +848,21 @@ interactions: Connection: - keep-alive Content-Length: - - '5660' + - '5464' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --frontend-endpoints --route-type --custom-host --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/redirect1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/redirect1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4746274e-ed11-4a00-8a8d-ead190528103?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d076c6eb-cc43-437a-81cd-e7a150714967?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -910,11 +870,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:50 GMT + - Wed, 14 Apr 2021 05:38:14 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4746274e-ed11-4a00-8a8d-ead190528103/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d076c6eb-cc43-437a-81cd-e7a150714967/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -926,7 +886,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1198' status: code: 202 message: Accepted @@ -934,7 +894,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -944,10 +904,9 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --custom-host --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4746274e-ed11-4a00-8a8d-ead190528103?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d076c6eb-cc43-437a-81cd-e7a150714967?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -959,7 +918,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:03:01 GMT + - Wed, 14 Apr 2021 05:38:25 GMT expires: - '-1' odata-version: @@ -983,7 +942,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -993,10 +952,9 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --custom-host --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4746274e-ed11-4a00-8a8d-ead190528103?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/d076c6eb-cc43-437a-81cd-e7a150714967?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1008,7 +966,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:03:31 GMT + - Wed, 14 Apr 2021 05:38:55 GMT expires: - '-1' odata-version: @@ -1032,7 +990,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1042,13 +1000,12 @@ interactions: ParameterSetName: - -f -g -n --frontend-endpoints --route-type --custom-host --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/redirect1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/redirect1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1057,7 +1014,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:03:32 GMT + - Wed, 14 Apr 2021 05:38:55 GMT expires: - '-1' odata-version: @@ -1091,15 +1048,12 @@ interactions: ParameterSetName: - -f -g -n --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/redirect1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/redirect1"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1108,7 +1062,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:03:33 GMT + - Wed, 14 Apr 2021 05:38:56 GMT expires: - '-1' odata-version: @@ -1131,40 +1085,38 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", + "name": "rule1", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/forward2"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", "forwardingProtocol": "MatchRequest", "cacheConfiguration": {"queryParameterStripDirective": - "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "rule1"}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2", + "name": "rule2", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/forward3"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", "redirectType": "Moved", "redirectProtocol": "MatchRequest", "customHost": "redirecthost.com", - "customPath": "", "customQueryString": "querystring2"}, "resourceState": "Enabled"}, - "name": "rule2"}], "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "customPath": "", "customQueryString": "querystring2"}}}], "loadBalancingSettings": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -1175,24 +1127,21 @@ interactions: Connection: - keep-alive Content-Length: - - '5937' + - '5713' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3156e0aa-06e0-43a0-9160-99d4471ca36f?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/9c8fd5a6-762c-4d24-b182-347e106f1256?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -1200,11 +1149,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:03:37 GMT + - Wed, 14 Apr 2021 05:38:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3156e0aa-06e0-43a0-9160-99d4471ca36f/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/9c8fd5a6-762c-4d24-b182-347e106f1256/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -1216,7 +1165,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1196' status: code: 202 message: Accepted @@ -1224,7 +1173,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1234,10 +1183,9 @@ interactions: ParameterSetName: - -f -g -n --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3156e0aa-06e0-43a0-9160-99d4471ca36f?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/9c8fd5a6-762c-4d24-b182-347e106f1256?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1249,7 +1197,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:03:47 GMT + - Wed, 14 Apr 2021 05:39:09 GMT expires: - '-1' odata-version: @@ -1273,7 +1221,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1283,10 +1231,9 @@ interactions: ParameterSetName: - -f -g -n --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/3156e0aa-06e0-43a0-9160-99d4471ca36f?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/9c8fd5a6-762c-4d24-b182-347e106f1256?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1298,7 +1245,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:04:17 GMT + - Wed, 14 Apr 2021 05:39:39 GMT expires: - '-1' odata-version: @@ -1322,7 +1269,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1332,13 +1279,12 @@ interactions: ParameterSetName: - -f -g -n --patterns --custom-query-string User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1347,7 +1293,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:04:19 GMT + - Wed, 14 Apr 2021 05:39:40 GMT expires: - '-1' odata-version: @@ -1381,15 +1327,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1398,7 +1341,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:04:20 GMT + - Wed, 14 Apr 2021 05:39:41 GMT expires: - '-1' odata-version: @@ -1432,15 +1375,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule2","name":"rule2","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward3"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customFragment":null,"customHost":"redirecthost.com","customPath":"","redirectProtocol":"MatchRequest","customQueryString":"querystring2","redirectType":"Moved","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1449,7 +1389,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:04:22 GMT + - Wed, 14 Apr 2021 05:39:42 GMT expires: - '-1' odata-version: @@ -1472,35 +1412,32 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "clifrontdoor000002", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}, {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1", + "name": "rule1", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/forward2"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", "forwardingProtocol": "MatchRequest", "cacheConfiguration": {"queryParameterStripDirective": - "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "rule1"}], "loadBalancingSettings": [{"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "StripNone", "dynamicCompression": "Enabled"}, "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "resourceState": "Enabled"}, "name": - "DefaultFrontendEndpoint"}], "backendPoolsSettings": {"enforceCertificateNameCheck": - "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": "Enabled", "resourceState": - "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "202.120.2.3", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "clifrontdoor000002.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -1511,24 +1448,21 @@ interactions: Connection: - keep-alive Content-Length: - - '5015' + - '4819' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/93bba0a2-45b1-4559-89dc-f728402b6d14?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/11a9c04e-3112-41dd-bf0e-581e84fe6065?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -1536,11 +1470,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:04:24 GMT + - Wed, 14 Apr 2021 05:39:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/93bba0a2-45b1-4559-89dc-f728402b6d14/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/11a9c04e-3112-41dd-bf0e-581e84fe6065/frontdoorresults/clifrontdoor000002?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -1560,7 +1494,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1570,10 +1504,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/93bba0a2-45b1-4559-89dc-f728402b6d14?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/11a9c04e-3112-41dd-bf0e-581e84fe6065?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1585,7 +1518,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:04:35 GMT + - Wed, 14 Apr 2021 05:39:55 GMT expires: - '-1' odata-version: @@ -1609,7 +1542,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1619,10 +1552,9 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/93bba0a2-45b1-4559-89dc-f728402b6d14?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/11a9c04e-3112-41dd-bf0e-581e84fe6065?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1634,7 +1566,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:05:05 GMT + - Wed, 14 Apr 2021 05:40:25 GMT expires: - '-1' odata-version: @@ -1658,7 +1590,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1668,13 +1600,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1683,7 +1614,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:05:07 GMT + - Wed, 14 Apr 2021 05:40:25 GMT expires: - '-1' odata-version: @@ -1717,15 +1648,12 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1734,7 +1662,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:05:08 GMT + - Wed, 14 Apr 2021 05:40:27 GMT expires: - '-1' odata-version: @@ -1768,15 +1696,12 @@ interactions: ParameterSetName: - -f -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"ab3c75fb-9b92-48f5-b19f-54bb81b34121","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"78aba90b-7ec3-46c1-970e-db2933d0b2c6","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/rule1","name":"rule1","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/forward2"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":{"queryParameterStripDirective":"StripNone","queryParameters":null,"dynamicCompression":"Enabled","cacheDuration":null},"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -1785,7 +1710,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:05:08 GMT + - Wed, 14 Apr 2021 05:40:28 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_rules_engine_basic.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_rules_engine_basic.yaml index bba64a8c3b7..857726f5d8a 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_rules_engine_basic.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_rules_engine_basic.yaml @@ -1,22 +1,22 @@ interactions: - request: body: '{"location": "global", "properties": {"friendlyName": "clifrontdoor000002", - "routingRules": [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], + "routingRules": [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "202.120.2.3", "httpPort": - 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, "weight": 50, - "backendHostHeader": "202.120.2.3"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "202.120.2.3", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "202.120.2.3"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "clifrontdoor000002.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: @@ -29,24 +29,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2453' + - '2313' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"da08183c-c18a-4288-9a0f-54dee90b6c09","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"eb92264d-33c2-48f0-9e6a-b126fd31115f","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/925b36ef-8bec-460c-8882-5fe87e2c4179?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/105b88b6-94ae-45ef-bb64-34aeeb5d47e3?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -54,7 +51,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:02 GMT + - Wed, 14 Apr 2021 05:36:56 GMT expires: - '-1' odata-version: @@ -68,7 +65,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -76,7 +73,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -86,10 +83,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/925b36ef-8bec-460c-8882-5fe87e2c4179?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/105b88b6-94ae-45ef-bb64-34aeeb5d47e3?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -101,7 +97,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:14 GMT + - Wed, 14 Apr 2021 05:37:06 GMT expires: - '-1' odata-version: @@ -125,7 +121,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -135,10 +131,9 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/925b36ef-8bec-460c-8882-5fe87e2c4179?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/105b88b6-94ae-45ef-bb64-34aeeb5d47e3?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -150,7 +145,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:44 GMT + - Wed, 14 Apr 2021 05:37:37 GMT expires: - '-1' odata-version: @@ -174,7 +169,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -184,13 +179,12 @@ interactions: ParameterSetName: - -g -n --backend-address User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002?api-version=2020-05-01 response: body: - string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"da08183c-c18a-4288-9a0f-54dee90b6c09","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"clifrontdoor000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"clifrontdoor000002.azurefd.net","frontdoorId":"eb92264d-33c2-48f0-9e6a-b126fd31115f","friendlyName":"clifrontdoor000002","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"202.120.2.3","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"202.120.2.3","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"clifrontdoor000002.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/clifrontdoor000002/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/clifrontdoor000002/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -199,7 +193,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:45 GMT + - Wed, 14 Apr 2021 05:37:37 GMT expires: - '-1' odata-version: @@ -234,10 +228,7 @@ interactions: - -f -g --rules-engine-name --name --priority --action-type --header-action --header-name --header-value --match-variable --operator --match-values --transforms User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -252,7 +243,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 01 Apr 2021 16:58:46 GMT + - Wed, 14 Apr 2021 05:37:39 GMT expires: - '-1' pragma: @@ -284,15 +275,12 @@ interactions: Content-Length: - '389' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --priority --action-type --header-action --header-name --header-value --match-variable --operator --match-values --transforms User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -306,7 +294,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:48 GMT + - Wed, 14 Apr 2021 05:37:40 GMT expires: - '-1' odata-version: @@ -343,10 +331,7 @@ interactions: - -f -g --rules-engine-name --name --priority --action-type --header-action --header-name --header-value --match-variable --operator --match-values User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -360,7 +345,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:50 GMT + - Wed, 14 Apr 2021 05:37:41 GMT expires: - '-1' odata-version: @@ -402,15 +387,12 @@ interactions: Content-Length: - '732' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --priority --action-type --header-action --header-name --header-value --match-variable --operator --match-values User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -424,7 +406,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:52 GMT + - Wed, 14 Apr 2021 05:37:42 GMT expires: - '-1' odata-version: @@ -442,7 +424,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 200 message: OK @@ -460,10 +442,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name --name --match-processing-behavior User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -477,7 +456,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:53 GMT + - Wed, 14 Apr 2021 05:37:43 GMT expires: - '-1' odata-version: @@ -521,14 +500,11 @@ interactions: Content-Length: - '811' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --match-processing-behavior User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -542,7 +518,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:55 GMT + - Wed, 14 Apr 2021 05:37:45 GMT expires: - '-1' odata-version: @@ -560,7 +536,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -578,10 +554,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -595,7 +568,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:55 GMT + - Wed, 14 Apr 2021 05:37:47 GMT expires: - '-1' odata-version: @@ -629,10 +602,7 @@ interactions: ParameterSetName: - -f -g --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -646,7 +616,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:57 GMT + - Wed, 14 Apr 2021 05:37:47 GMT expires: - '-1' odata-version: @@ -680,10 +650,7 @@ interactions: ParameterSetName: - -f -g --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -697,7 +664,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:58 GMT + - Wed, 14 Apr 2021 05:37:48 GMT expires: - '-1' odata-version: @@ -731,10 +698,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name --name --action-type --header-action --header-name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -748,7 +712,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:58:59 GMT + - Wed, 14 Apr 2021 05:37:49 GMT expires: - '-1' odata-version: @@ -792,14 +756,11 @@ interactions: Content-Length: - '869' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --action-type --header-action --header-name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -813,7 +774,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:00 GMT + - Wed, 14 Apr 2021 05:37:51 GMT expires: - '-1' odata-version: @@ -831,7 +792,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -850,10 +811,7 @@ interactions: - -f -g --rules-engine-name --name --action-type --backend-pool --caching --query-parameter-strip-directive --query-parameters --cache-duration User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -867,7 +825,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:02 GMT + - Wed, 14 Apr 2021 05:37:52 GMT expires: - '-1' odata-version: @@ -914,15 +872,12 @@ interactions: Content-Length: - '1383' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --action-type --backend-pool --caching --query-parameter-strip-directive --query-parameters --cache-duration User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -936,7 +891,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:04 GMT + - Wed, 14 Apr 2021 05:37:54 GMT expires: - '-1' odata-version: @@ -954,7 +909,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 200 message: OK @@ -972,10 +927,7 @@ interactions: ParameterSetName: - -f -g -r --name --action-type --custom-path User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -989,7 +941,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:05 GMT + - Wed, 14 Apr 2021 05:37:55 GMT expires: - '-1' odata-version: @@ -1039,14 +991,11 @@ interactions: Content-Length: - '1657' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -r --name --action-type --custom-path User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1060,7 +1009,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:06 GMT + - Wed, 14 Apr 2021 05:37:57 GMT expires: - '-1' odata-version: @@ -1078,7 +1027,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 200 message: OK @@ -1096,10 +1045,7 @@ interactions: ParameterSetName: - -f -g -r --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1113,7 +1059,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:07 GMT + - Wed, 14 Apr 2021 05:37:57 GMT expires: - '-1' odata-version: @@ -1147,10 +1093,7 @@ interactions: ParameterSetName: - -f -g -r --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1164,7 +1107,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:07 GMT + - Wed, 14 Apr 2021 05:37:58 GMT expires: - '-1' odata-version: @@ -1198,10 +1141,7 @@ interactions: ParameterSetName: - -f -g -r --name --match-variable --selector --operator --match-values --transforms User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1215,7 +1155,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:08 GMT + - Wed, 14 Apr 2021 05:38:00 GMT expires: - '-1' odata-version: @@ -1267,14 +1207,11 @@ interactions: Content-Length: - '1854' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -r --name --match-variable --selector --operator --match-values --transforms User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1288,7 +1225,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:10 GMT + - Wed, 14 Apr 2021 05:38:02 GMT expires: - '-1' odata-version: @@ -1306,7 +1243,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' status: code: 200 message: OK @@ -1324,10 +1261,7 @@ interactions: ParameterSetName: - -f -g -r --name --match-variable --operator User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1341,7 +1275,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:11 GMT + - Wed, 14 Apr 2021 05:38:02 GMT expires: - '-1' odata-version: @@ -1395,14 +1329,11 @@ interactions: Content-Length: - '1984' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g -r --name --match-variable --operator User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1416,7 +1347,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:12 GMT + - Wed, 14 Apr 2021 05:38:04 GMT expires: - '-1' odata-version: @@ -1434,7 +1365,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 200 message: OK @@ -1452,10 +1383,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1469,7 +1397,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:13 GMT + - Wed, 14 Apr 2021 05:38:05 GMT expires: - '-1' odata-version: @@ -1503,10 +1431,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name --name --index User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1520,7 +1445,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:14 GMT + - Wed, 14 Apr 2021 05:38:06 GMT expires: - '-1' odata-version: @@ -1572,14 +1497,11 @@ interactions: Content-Length: - '1839' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --index User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1593,7 +1515,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:15 GMT + - Wed, 14 Apr 2021 05:38:08 GMT expires: - '-1' odata-version: @@ -1629,10 +1551,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name --name --action-type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1646,7 +1565,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:17 GMT + - Wed, 14 Apr 2021 05:38:08 GMT expires: - '-1' odata-version: @@ -1694,14 +1613,11 @@ interactions: Content-Length: - '1254' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --action-type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1715,7 +1631,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:19 GMT + - Wed, 14 Apr 2021 05:38:10 GMT expires: - '-1' odata-version: @@ -1733,7 +1649,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1197' status: code: 200 message: OK @@ -1751,10 +1667,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name --name --action-type --index User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1768,7 +1681,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:20 GMT + - Wed, 14 Apr 2021 05:38:10 GMT expires: - '-1' odata-version: @@ -1815,14 +1728,11 @@ interactions: Content-Length: - '1196' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name --action-type --index User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1836,7 +1746,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:22 GMT + - Wed, 14 Apr 2021 05:38:12 GMT expires: - '-1' odata-version: @@ -1854,7 +1764,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1197' status: code: 200 message: OK @@ -1872,10 +1782,7 @@ interactions: ParameterSetName: - -f -g --rules-engine-name --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1889,7 +1796,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:22 GMT + - Wed, 14 Apr 2021 05:38:13 GMT expires: - '-1' odata-version: @@ -1930,14 +1837,11 @@ interactions: Content-Length: - '614' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -f -g --rules-engine-name --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines/clirulesengine000003?api-version=2020-05-01 response: @@ -1951,7 +1855,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:24 GMT + - Wed, 14 Apr 2021 05:38:15 GMT expires: - '-1' odata-version: @@ -1969,7 +1873,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -1987,10 +1891,7 @@ interactions: ParameterSetName: - -f -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/clifrontdoor000002/rulesEngines?api-version=2020-05-01 response: @@ -2004,7 +1905,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:25 GMT + - Wed, 14 Apr 2021 05:38:17 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_exclusions.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_exclusions.yaml index 3da1c2af4fd..89d8479a03e 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_exclusions.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_exclusions.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention"}, "customRules": {"rules": []}, "managedRules": - {}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Classic_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled", "mode": "Prevention"}, "customRules": + {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -15,28 +15,25 @@ interactions: Content-Length: - '200' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:03 GMT + - Wed, 14 Apr 2021 05:36:55 GMT expires: - '-1' odata-version: @@ -50,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 201 message: Created @@ -68,24 +65,21 @@ interactions: ParameterSetName: - -g --policy-name --type --version User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:04 GMT + - Wed, 14 Apr 2021 05:36:56 GMT expires: - '-1' odata-version: @@ -106,10 +100,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0"}]}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0"}]}}}' headers: Accept: - application/json @@ -120,30 +114,27 @@ interactions: Connection: - keep-alive Content-Length: - - '323' + - '322' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --version User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:05 GMT + - Wed, 14 Apr 2021 05:36:58 GMT expires: - '-1' odata-version: @@ -161,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -179,24 +170,21 @@ interactions: ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:07 GMT + - Wed, 14 Apr 2021 05:36:59 GMT expires: - '-1' odata-version: @@ -230,24 +218,21 @@ interactions: ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:08 GMT + - Wed, 14 Apr 2021 05:37:00 GMT expires: - '-1' odata-version: @@ -281,24 +266,21 @@ interactions: ParameterSetName: - -g --policy-name --type --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:08 GMT + - Wed, 14 Apr 2021 05:37:01 GMT expires: - '-1' odata-version: @@ -319,12 +301,12 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [{"matchVariable": "RequestHeaderNames", - "selectorMatchOperator": "Contains", "selector": "ignoreme"}], "ruleGroupOverrides": - []}]}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [{"matchVariable": "RequestHeaderNames", "selectorMatchOperator": + "Contains", "selector": "ignoreme"}], "ruleGroupOverrides": []}]}}}' headers: Accept: - application/json @@ -335,30 +317,27 @@ interactions: Connection: - keep-alive Content-Length: - - '467' + - '466' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1019' + - '1018' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:09 GMT + - Wed, 14 Apr 2021 05:37:02 GMT expires: - '-1' odata-version: @@ -376,7 +355,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 200 message: OK @@ -394,24 +373,21 @@ interactions: ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1019' + - '1018' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:11 GMT + - Wed, 14 Apr 2021 05:37:03 GMT expires: - '-1' odata-version: @@ -445,24 +421,21 @@ interactions: ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1019' + - '1018' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:11 GMT + - Wed, 14 Apr 2021 05:37:04 GMT expires: - '-1' odata-version: @@ -496,24 +469,21 @@ interactions: ParameterSetName: - -g --policy-name --type --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1019' + - '1018' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:12 GMT + - Wed, 14 Apr 2021 05:37:05 GMT expires: - '-1' odata-version: @@ -534,11 +504,11 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [], "ruleGroupOverrides": []}]}}, "sku": - {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [], "ruleGroupOverrides": []}]}}}' headers: Accept: - application/json @@ -549,30 +519,27 @@ interactions: Connection: - keep-alive Content-Length: - - '367' + - '366' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:13 GMT + - Wed, 14 Apr 2021 05:37:06 GMT expires: - '-1' odata-version: @@ -590,7 +557,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1198' status: code: 200 message: OK @@ -608,24 +575,21 @@ interactions: ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:13 GMT + - Wed, 14 Apr 2021 05:37:08 GMT expires: - '-1' odata-version: @@ -659,24 +623,21 @@ interactions: ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:14 GMT + - Wed, 14 Apr 2021 05:37:08 GMT expires: - '-1' odata-version: @@ -710,24 +671,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:15 GMT + - Wed, 14 Apr 2021 05:37:10 GMT expires: - '-1' odata-version: @@ -761,24 +719,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:15 GMT + - Wed, 14 Apr 2021 05:37:11 GMT expires: - '-1' odata-version: @@ -812,24 +767,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:16 GMT + - Wed, 14 Apr 2021 05:37:11 GMT expires: - '-1' odata-version: @@ -850,12 +802,13 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": - "SQLI", "exclusions": [{"matchVariable": "RequestHeaderNames", "selectorMatchOperator": - "Contains", "selector": "ignoreme"}]}]}]}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "exclusions": + [{"matchVariable": "RequestHeaderNames", "selectorMatchOperator": "Contains", + "selector": "ignoreme"}]}]}]}}}' headers: Accept: - application/json @@ -866,30 +819,27 @@ interactions: Connection: - keep-alive Content-Length: - - '510' + - '509' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --rule-group-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1070' + - '1069' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:17 GMT + - Wed, 14 Apr 2021 05:37:12 GMT expires: - '-1' odata-version: @@ -907,7 +857,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 200 message: OK @@ -925,24 +875,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1070' + - '1069' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:18 GMT + - Wed, 14 Apr 2021 05:37:14 GMT expires: - '-1' odata-version: @@ -976,24 +923,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1070' + - '1069' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:20 GMT + - Wed, 14 Apr 2021 05:37:15 GMT expires: - '-1' odata-version: @@ -1027,24 +971,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1070' + - '1069' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:20 GMT + - Wed, 14 Apr 2021 05:37:15 GMT expires: - '-1' odata-version: @@ -1065,11 +1006,12 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": - "SQLI", "exclusions": [], "rules": []}]}]}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "exclusions": + [], "rules": []}]}]}}}' headers: Accept: - application/json @@ -1080,30 +1022,27 @@ interactions: Connection: - keep-alive Content-Length: - - '423' + - '422' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --rule-group-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '975' + - '974' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:21 GMT + - Wed, 14 Apr 2021 05:37:16 GMT expires: - '-1' odata-version: @@ -1121,7 +1060,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -1139,24 +1078,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '975' + - '974' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:22 GMT + - Wed, 14 Apr 2021 05:37:17 GMT expires: - '-1' odata-version: @@ -1190,24 +1126,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '975' + - '974' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:22 GMT + - Wed, 14 Apr 2021 05:37:19 GMT expires: - '-1' odata-version: @@ -1242,24 +1175,21 @@ interactions: - -g --policy-name --type --rule-group-id --rule-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '975' + - '974' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:23 GMT + - Wed, 14 Apr 2021 05:37:19 GMT expires: - '-1' odata-version: @@ -1280,13 +1210,13 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": - "SQLI", "exclusions": [], "rules": [{"ruleId": "942100", "exclusions": [{"matchVariable": - "RequestHeaderNames", "selectorMatchOperator": "Contains", "selector": "ignoreme"}]}]}]}]}}, - "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "exclusions": + [], "rules": [{"ruleId": "942100", "exclusions": [{"matchVariable": "RequestHeaderNames", + "selectorMatchOperator": "Contains", "selector": "ignoreme"}]}]}]}]}}}' headers: Accept: - application/json @@ -1297,31 +1227,28 @@ interactions: Connection: - keep-alive Content-Length: - - '561' + - '560' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1147' + - '1146' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:24 GMT + - Wed, 14 Apr 2021 05:37:20 GMT expires: - '-1' odata-version: @@ -1339,7 +1266,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 200 message: OK @@ -1357,24 +1284,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1147' + - '1146' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:26 GMT + - Wed, 14 Apr 2021 05:37:22 GMT expires: - '-1' odata-version: @@ -1408,24 +1332,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1147' + - '1146' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:26 GMT + - Wed, 14 Apr 2021 05:37:23 GMT expires: - '-1' odata-version: @@ -1460,24 +1381,21 @@ interactions: - -g --policy-name --type --rule-group-id --rule-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[{"matchVariable":"RequestHeaderNames","selectorMatchOperator":"Contains","selector":"ignoreme"}]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1147' + - '1146' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:26 GMT + - Wed, 14 Apr 2021 05:37:23 GMT expires: - '-1' odata-version: @@ -1498,12 +1416,13 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": - "SQLI", "exclusions": [], "rules": [{"ruleId": "942100", "enabledState": "Enabled", - "action": "Block", "exclusions": []}]}]}]}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "exclusions": + [], "rules": [{"ruleId": "942100", "enabledState": "Enabled", "action": "Block", + "exclusions": []}]}]}]}}}' headers: Accept: - application/json @@ -1514,31 +1433,28 @@ interactions: Connection: - keep-alive Content-Length: - - '507' + - '506' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id --match-variable --operator --value User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1052' + - '1051' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:27 GMT + - Wed, 14 Apr 2021 05:37:24 GMT expires: - '-1' odata-version: @@ -1556,7 +1472,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 200 message: OK @@ -1574,24 +1490,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1052' + - '1051' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:28 GMT + - Wed, 14 Apr 2021 05:37:25 GMT expires: - '-1' odata-version: @@ -1625,24 +1538,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Enabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1052' + - '1051' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:30 GMT + - Wed, 14 Apr 2021 05:37:26 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_basic.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_basic.yaml index aaaaca4bb84..fa7715c4dea 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_basic.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_basic.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention"}, "customRules": {"rules": []}, "managedRules": - {}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Classic_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled", "mode": "Prevention"}, "customRules": + {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -15,28 +15,25 @@ interactions: Content-Length: - '200' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:02 GMT + - Wed, 14 Apr 2021 05:39:04 GMT expires: - '-1' odata-version: @@ -50,14 +47,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1197' status: code: 201 message: Created - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention"}, "customRules": {"rules": []}, "managedRules": - {}}, "sku": {"name": "Standard_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled", "mode": "Prevention"}, "customRules": + {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -70,28 +67,25 @@ interactions: Content-Length: - '201' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode --sku User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000004?api-version=2020-11-01 response: body: - string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '809' + - '808' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:09 GMT + - Wed, 14 Apr 2021 05:39:11 GMT expires: - '-1' odata-version: @@ -105,14 +99,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Detection", "redirectUrl": "http://www.microsoft.com"}, - "customRules": {"rules": []}, "managedRules": {}}, "sku": {"name": "Premium_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Premium_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled", "mode": "Detection", "redirectUrl": + "http://www.microsoft.com"}, "customRules": {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -125,28 +119,25 @@ interactions: Content-Length: - '242' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode --redirect-url --sku User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000005?api-version=2020-11-01 response: body: - string: '{"name":"cli000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '829' + - '828' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:16 GMT + - Wed, 14 Apr 2021 05:39:18 GMT expires: - '-1' odata-version: @@ -165,9 +156,10 @@ interactions: code: 201 message: Created - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Detection", "redirectUrl": "http://www.microsoft.com", "customBlockResponseStatusCode": - 406}, "customRules": {"rules": []}, "managedRules": {}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Classic_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled", "mode": "Detection", "redirectUrl": + "http://www.microsoft.com", "customBlockResponseStatusCode": 406}, "customRules": + {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -180,28 +172,25 @@ interactions: Content-Length: - '280' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode --redirect-url --custom-block-response-status-code --sku User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000006?api-version=2020-11-01 response: body: - string: '{"name":"cli000006","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000006","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '828' + - '827' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:23 GMT + - Wed, 14 Apr 2021 05:39:25 GMT expires: - '-1' odata-version: @@ -220,10 +209,10 @@ interactions: code: 201 message: Created - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Detection", "redirectUrl": "http://www.microsoft.com", "customBlockResponseStatusCode": - 406, "customBlockResponseBody": "YiBvZHk="}, "customRules": {"rules": []}, "managedRules": - {}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Classic_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled", "mode": "Detection", "redirectUrl": + "http://www.microsoft.com", "customBlockResponseStatusCode": 406, "customBlockResponseBody": + "YiBvZHk="}, "customRules": {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -236,28 +225,25 @@ interactions: Content-Length: - '319' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode --redirect-url --custom-block-response-status-code --custom-block-response-body User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000007?api-version=2020-11-01 response: body: - string: '{"name":"cli000007","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000007","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '834' + - '833' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:30 GMT + - Wed, 14 Apr 2021 05:39:32 GMT expires: - '-1' odata-version: @@ -271,14 +257,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Disabled", "mode": "Detection"}, "customRules": {"rules": []}, "managedRules": - {}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Classic_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Disabled", "mode": "Detection"}, "customRules": + {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -291,28 +277,25 @@ interactions: Content-Length: - '200' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode --disabled User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000008?api-version=2020-11-01 response: body: - string: '{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:40 GMT + - Wed, 14 Apr 2021 05:39:39 GMT expires: - '-1' odata-version: @@ -326,7 +309,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 201 message: Created @@ -344,24 +327,21 @@ interactions: ParameterSetName: - -g -n --mode User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000008?api-version=2020-11-01 response: body: - string: '{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:40 GMT + - Wed, 14 Apr 2021 05:39:39 GMT expires: - '-1' odata-version: @@ -382,9 +362,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Detection", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Detection", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -395,30 +376,27 @@ interactions: Connection: - keep-alive Content-Length: - - '264' + - '263' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000008?api-version=2020-11-01 response: body: - string: '{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '807' + - '806' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:42 GMT + - Wed, 14 Apr 2021 05:39:42 GMT expires: - '-1' odata-version: @@ -436,7 +414,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 200 message: OK @@ -454,24 +432,21 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:43 GMT + - Wed, 14 Apr 2021 05:39:42 GMT expires: - '-1' odata-version: @@ -492,10 +467,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {"test": "best"}, "properties": {"policySettings": - {"enabledState": "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, - "customRules": {"rules": []}, "managedRules": {"managedRuleSets": []}}, "sku": - {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {"test": "best"}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -506,30 +481,27 @@ interactions: Connection: - keep-alive Content-Length: - - '279' + - '278' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --tags User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '821' + - '820' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:46 GMT + - Wed, 14 Apr 2021 05:39:48 GMT expires: - '-1' odata-version: @@ -547,7 +519,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1197' status: code: 200 message: OK @@ -565,24 +537,21 @@ interactions: ParameterSetName: - -g -n --mode --sku User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '821' + - '820' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:47 GMT + - Wed, 14 Apr 2021 05:39:49 GMT expires: - '-1' odata-version: @@ -603,10 +572,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {"test": "best"}, "properties": {"policySettings": - {"enabledState": "Enabled", "mode": "Detection", "requestBodyCheck": "Disabled"}, - "customRules": {"rules": []}, "managedRules": {"managedRuleSets": []}}, "sku": - {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {"test": "best"}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Detection", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -617,30 +586,27 @@ interactions: Connection: - keep-alive Content-Length: - - '278' + - '277' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode --sku User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '820' + - '819' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:48 GMT + - Wed, 14 Apr 2021 05:39:51 GMT expires: - '-1' odata-version: @@ -658,7 +624,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1198' status: code: 200 message: OK @@ -676,24 +642,21 @@ interactions: ParameterSetName: - -g -n --mode --redirect-url User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '820' + - '819' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:48 GMT + - Wed, 14 Apr 2021 05:39:52 GMT expires: - '-1' odata-version: @@ -714,10 +677,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {"test": "best"}, "properties": {"policySettings": - {"enabledState": "Enabled", "mode": "Prevention", "redirectUrl": "http://www.microsoft.com", - "requestBodyCheck": "Disabled"}, "customRules": {"rules": []}, "managedRules": - {"managedRuleSets": []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {"test": "best"}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "redirectUrl": "http://www.microsoft.com", "requestBodyCheck": "Enabled"}, "customRules": + {"rules": []}, "managedRules": {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -728,30 +691,27 @@ interactions: Connection: - keep-alive Content-Length: - - '322' + - '321' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode --redirect-url User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '843' + - '842' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:50 GMT + - Wed, 14 Apr 2021 05:39:54 GMT expires: - '-1' odata-version: @@ -787,24 +747,21 @@ interactions: ParameterSetName: - -g -n --custom-block-response-status-code User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '843' + - '842' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:51 GMT + - Wed, 14 Apr 2021 05:39:54 GMT expires: - '-1' odata-version: @@ -825,10 +782,11 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {"test": "best"}, "properties": {"policySettings": - {"enabledState": "Enabled", "mode": "Prevention", "redirectUrl": "http://www.microsoft.com", - "customBlockResponseStatusCode": 406, "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {"test": "best"}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "redirectUrl": "http://www.microsoft.com", "customBlockResponseStatusCode": + 406, "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -839,30 +797,27 @@ interactions: Connection: - keep-alive Content-Length: - - '360' + - '359' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --custom-block-response-status-code User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '842' + - '841' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:53 GMT + - Wed, 14 Apr 2021 05:39:56 GMT expires: - '-1' odata-version: @@ -880,7 +835,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1197' status: code: 200 message: OK @@ -898,24 +853,21 @@ interactions: ParameterSetName: - -g -n --custom-block-response-status-code --custom-block-response-body User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '842' + - '841' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:53 GMT + - Wed, 14 Apr 2021 05:39:57 GMT expires: - '-1' odata-version: @@ -936,11 +888,11 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {"test": "best"}, "properties": {"policySettings": - {"enabledState": "Enabled", "mode": "Prevention", "redirectUrl": "http://www.microsoft.com", - "customBlockResponseStatusCode": 405, "customBlockResponseBody": "YiBvZHk=", - "requestBodyCheck": "Disabled"}, "customRules": {"rules": []}, "managedRules": - {"managedRuleSets": []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {"test": "best"}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "redirectUrl": "http://www.microsoft.com", "customBlockResponseStatusCode": + 405, "customBlockResponseBody": "YiBvZHk=", "requestBodyCheck": "Enabled"}, + "customRules": {"rules": []}, "managedRules": {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -951,30 +903,27 @@ interactions: Connection: - keep-alive Content-Length: - - '399' + - '398' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --custom-block-response-status-code --custom-block-response-body User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '848' + - '847' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:54 GMT + - Wed, 14 Apr 2021 05:39:59 GMT expires: - '-1' odata-version: @@ -992,7 +941,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1196' status: code: 200 message: OK @@ -1010,24 +959,21 @@ interactions: ParameterSetName: - -g -n --disabled User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '848' + - '847' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:55 GMT + - Wed, 14 Apr 2021 05:40:00 GMT expires: - '-1' odata-version: @@ -1048,11 +994,11 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {"test": "best"}, "properties": {"policySettings": - {"enabledState": "Disabled", "mode": "Prevention", "redirectUrl": "http://www.microsoft.com", - "customBlockResponseStatusCode": 405, "customBlockResponseBody": "YiBvZHk=", - "requestBodyCheck": "Disabled"}, "customRules": {"rules": []}, "managedRules": - {"managedRuleSets": []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {"test": "best"}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Disabled", "mode": "Prevention", + "redirectUrl": "http://www.microsoft.com", "customBlockResponseStatusCode": + 405, "customBlockResponseBody": "YiBvZHk=", "requestBodyCheck": "Enabled"}, + "customRules": {"rules": []}, "managedRules": {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -1063,30 +1009,27 @@ interactions: Connection: - keep-alive Content-Length: - - '400' + - '399' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --disabled User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '849' + - '848' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:56 GMT + - Wed, 14 Apr 2021 05:40:02 GMT expires: - '-1' odata-version: @@ -1104,7 +1047,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1198' status: code: 200 message: OK @@ -1122,24 +1065,21 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '849' + - '848' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:57 GMT + - Wed, 14 Apr 2021 05:40:02 GMT expires: - '-1' odata-version: @@ -1173,24 +1113,21 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2020-11-01 response: body: - string: '{"value":[{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000006","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000007","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}]}' + string: '{"value":[{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000006","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000007","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{"test":"best"},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Disabled","mode":"Prevention","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":405,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}]}' headers: cache-control: - no-cache content-length: - - '4973' + - '4967' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:58 GMT + - Wed, 14 Apr 2021 05:40:04 GMT expires: - '-1' odata-version: @@ -1214,7 +1151,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1226,10 +1163,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: @@ -1239,7 +1173,7 @@ interactions: cache-control: - no-cache date: - - Thu, 01 Apr 2021 17:00:03 GMT + - Wed, 14 Apr 2021 05:40:09 GMT expires: - '-1' pragma: @@ -1269,24 +1203,21 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies?api-version=2020-11-01 response: body: - string: '{"value":[{"name":"cli000006","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000007","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}]}' + string: '{"value":[{"name":"cli000008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000008","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000007","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":"YiBvZHk=","requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000006","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":406,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}},{"name":"cli000005","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Detection","redirectUrl":"http://www.microsoft.com","customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}]}' headers: cache-control: - no-cache content-length: - - '4123' + - '4118' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:00:04 GMT + - Wed, 14 Apr 2021 05:40:10 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rule_matching.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rule_matching.yaml index 030e51ef3ca..1dce15e26ed 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rule_matching.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rule_matching.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled"}, "customRules": {"rules": []}, "managedRules": {}}, "sku": {"name": - "Classic_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Classic_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled"}, "customRules": {"rules": []}, + "managedRules": {}}}' headers: Accept: - application/json @@ -15,28 +15,25 @@ interactions: Content-Length: - '178' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --resource-group --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:18 GMT + - Wed, 14 Apr 2021 05:40:40 GMT expires: - '-1' odata-version: @@ -50,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' status: code: 201 message: Created @@ -68,24 +65,21 @@ interactions: ParameterSetName: - -g --policy-name -n --priority --rule-type --action --defer User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:20 GMT + - Wed, 14 Apr 2021 05:40:42 GMT expires: - '-1' odata-version: @@ -106,12 +100,12 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": [{"name": "cli000003", "priority": 6, "enabledState": "Enabled", "ruleType": - "MatchRule", "matchConditions": [{"matchVariable": "RequestBody", "operator": - "RegEx", "matchValue": ["something"]}], "action": "Block"}]}, "managedRules": - {"managedRuleSets": []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": [{"name": "cli000003", + "priority": 6, "enabledState": "Enabled", "ruleType": "MatchRule", "matchConditions": + [{"matchVariable": "RequestBody", "operator": "RegEx", "matchValue": ["something"]}], + "action": "Block"}]}, "managedRules": {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -122,30 +116,27 @@ interactions: Connection: - keep-alive Content-Length: - - '492' + - '491' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name -n --match-variable --operator --values User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":6,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Block","matchConditions":[{"matchVariable":"RequestBody","selector":null,"operator":"RegEx","negateCondition":false,"matchValue":["something"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":6,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Block","matchConditions":[{"matchVariable":"RequestBody","selector":null,"operator":"RegEx","negateCondition":false,"matchValue":["something"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1135' + - '1134' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:21 GMT + - Wed, 14 Apr 2021 05:40:44 GMT expires: - '-1' odata-version: @@ -163,31 +154,97 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1193' status: code: 200 message: OK - request: body: '{"location": "global", "properties": {"friendlyName": "cli000004", "routingRules": - [{"properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}], + [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, - "healthProbeMethod": "HEAD", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], - "backendPools": [{"properties": {"backends": [{"address": "www.example.com", - "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, - "weight": 50, "backendHostHeader": "www.example.com"}], "loadBalancingSettings": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"properties": {"hostName": "cli000004.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], - "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled"}, "enabledState": - "Enabled"}}' + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "www.example.com", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "www.example.com"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "cli000004.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": + {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network front-door create + Connection: + - keep-alive + Content-Length: + - '2345' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --backend-address --name + User-Agent: + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/cli000004?api-version=2020-05-01 + response: + body: + string: "{\n \"error\": {\n \"code\": \"TooManyRequests\",\n \"message\": + \"Too many requests. Please try again after sometime.\"\n }\n}" + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '120' + content-type: + - application/json + date: + - Wed, 14 Apr 2021 05:40:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 429 + message: Too Many Requests +- request: + body: '{"location": "global", "properties": {"friendlyName": "cli000004", "routingRules": + [{"name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}], + "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", + "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"name": "DefaultLoadBalancingSettings", "properties": + {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": + 0}}], "healthProbeSettings": [{"name": "DefaultProbeSettings", "properties": + {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": + "HEAD"}}], "backendPools": [{"name": "DefaultBackendPool", "properties": {"backends": + [{"address": "www.example.com", "httpPort": 80, "httpsPort": 443, "enabledState": + "Enabled", "priority": 1, "weight": 50, "backendHostHeader": "www.example.com"}], + "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"name": "DefaultFrontendEndpoint", "properties": {"hostName": + "cli000004.azurefd.net", "sessionAffinityEnabledState": "Disabled"}}], "backendPoolsSettings": + {"enforceCertificateNameCheck": "Enabled"}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -198,24 +255,21 @@ interactions: Connection: - keep-alive Content-Length: - - '2485' + - '2345' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --resource-group --backend-address --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/cli000004?api-version=2020-05-01 response: body: - string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"226a0581-c9d2-4bc4-b1db-75acab06649e","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Creating","resourceState":"Creating","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"26d125d9-d3c0-4832-872f-ba487aa5eafa","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Creating","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Creating","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Creating","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Creating"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Creating","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5a26b0d4-a3cc-4c6d-b5a4-ae2bf9ac1d91?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/ef8cc70c-2bc8-45e4-9e7f-314a4e34d67b?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -223,7 +277,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:30 GMT + - Wed, 14 Apr 2021 05:41:02 GMT expires: - '-1' odata-version: @@ -245,7 +299,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -255,10 +309,9 @@ interactions: ParameterSetName: - --resource-group --backend-address --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5a26b0d4-a3cc-4c6d-b5a4-ae2bf9ac1d91?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/ef8cc70c-2bc8-45e4-9e7f-314a4e34d67b?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -270,7 +323,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:41 GMT + - Wed, 14 Apr 2021 05:41:12 GMT expires: - '-1' odata-version: @@ -294,7 +347,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -304,10 +357,9 @@ interactions: ParameterSetName: - --resource-group --backend-address --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5a26b0d4-a3cc-4c6d-b5a4-ae2bf9ac1d91?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/ef8cc70c-2bc8-45e4-9e7f-314a4e34d67b?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -319,7 +371,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:12 GMT + - Wed, 14 Apr 2021 05:41:42 GMT expires: - '-1' odata-version: @@ -343,7 +395,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -353,13 +405,12 @@ interactions: ParameterSetName: - --resource-group --backend-address --name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/cli000004?api-version=2020-05-01 response: body: - string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"226a0581-c9d2-4bc4-b1db-75acab06649e","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"26d125d9-d3c0-4832-872f-ba487aa5eafa","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -368,7 +419,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:14 GMT + - Wed, 14 Apr 2021 05:41:43 GMT expires: - '-1' odata-version: @@ -402,15 +453,12 @@ interactions: ParameterSetName: - --name --resource-group --set User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/cli000004?api-version=2020-05-01 response: body: - string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"226a0581-c9d2-4bc4-b1db-75acab06649e","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"26d125d9-d3c0-4832-872f-ba487aa5eafa","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":null,"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -419,7 +467,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:15 GMT + - Wed, 14 Apr 2021 05:41:44 GMT expires: - '-1' odata-version: @@ -442,30 +490,27 @@ interactions: - request: body: '{"location": "Global", "tags": {}, "properties": {"friendlyName": "cli000004", "routingRules": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule", - "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}], + "name": "DefaultRoutingRule", "properties": {"frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}], "acceptedProtocols": ["Http"], "patternsToMatch": ["/*"], "enabledState": "Enabled", "routeConfiguration": {"@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", - "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}}, - "resourceState": "Enabled"}, "name": "DefaultRoutingRule"}], "loadBalancingSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings", - "properties": {"sampleSize": 4, "successfulSamplesRequired": 2, "additionalLatencyMilliseconds": - 0, "resourceState": "Enabled"}, "name": "DefaultLoadBalancingSettings"}], "healthProbeSettings": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings", - "properties": {"path": "/", "protocol": "Https", "intervalInSeconds": 30, "healthProbeMethod": - "Head", "enabledState": "Enabled", "resourceState": "Enabled"}, "name": "DefaultProbeSettings"}], + "forwardingProtocol": "MatchRequest", "backendPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}}}}], + "loadBalancingSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings", + "name": "DefaultLoadBalancingSettings", "properties": {"sampleSize": 4, "successfulSamplesRequired": + 2, "additionalLatencyMilliseconds": 0}}], "healthProbeSettings": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings", + "name": "DefaultProbeSettings", "properties": {"path": "/", "protocol": "Https", + "intervalInSeconds": 30, "healthProbeMethod": "Head", "enabledState": "Enabled"}}], "backendPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool", - "properties": {"backends": [{"address": "www.example.com", "httpPort": 80, "httpsPort": - 443, "enabledState": "Enabled", "priority": 1, "weight": 50, "backendHostHeader": - "www.example.com"}], "loadBalancingSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}, - "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"}, - "resourceState": "Enabled"}, "name": "DefaultBackendPool"}], "frontendEndpoints": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint", - "properties": {"hostName": "cli000004.azurefd.net", "sessionAffinityEnabledState": - "Disabled", "sessionAffinityTtlSeconds": 0, "webApplicationFirewallPolicyLink": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002"}, - "resourceState": "Enabled"}, "name": "DefaultFrontendEndpoint"}], "backendPoolsSettings": - {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": 30}, "enabledState": - "Enabled", "resourceState": "Enabled"}}' + "name": "DefaultBackendPool", "properties": {"backends": [{"address": "www.example.com", + "httpPort": 80, "httpsPort": 443, "enabledState": "Enabled", "priority": 1, + "weight": 50, "backendHostHeader": "www.example.com"}], "loadBalancingSettings": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}, + "healthProbeSettings": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"}}}], + "frontendEndpoints": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint", + "name": "DefaultFrontendEndpoint", "properties": {"hostName": "cli000004.azurefd.net", + "sessionAffinityEnabledState": "Disabled", "sessionAffinityTtlSeconds": 0, "webApplicationFirewallPolicyLink": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002"}}}], + "backendPoolsSettings": {"enforceCertificateNameCheck": "Enabled", "sendRecvTimeoutSeconds": + 30}, "enabledState": "Enabled"}}' headers: Accept: - application/json @@ -476,24 +521,21 @@ interactions: Connection: - keep-alive Content-Length: - - '4175' + - '4007' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --name --resource-group --set User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/cli000004?api-version=2020-05-01 response: body: - string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"226a0581-c9d2-4bc4-b1db-75acab06649e","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002"},"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"26d125d9-d3c0-4832-872f-ba487aa5eafa","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002"},"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5bdae814-2631-4f18-97e6-276aac570db2?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4c508b36-3d13-42c6-b28d-95662f41764d?api-version=2020-05-01 cache-control: - no-cache content-length: @@ -501,11 +543,11 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:18 GMT + - Wed, 14 Apr 2021 05:41:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5bdae814-2631-4f18-97e6-276aac570db2/frontdoorresults/cli000004?api-version=2020-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4c508b36-3d13-42c6-b28d-95662f41764d/frontdoorresults/cli000004?api-version=2020-05-01 odata-version: - '4.0' pragma: @@ -517,7 +559,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1195' status: code: 202 message: Accepted @@ -525,7 +567,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -535,10 +577,9 @@ interactions: ParameterSetName: - --name --resource-group --set User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5bdae814-2631-4f18-97e6-276aac570db2?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4c508b36-3d13-42c6-b28d-95662f41764d?api-version=2020-05-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -550,7 +591,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:28 GMT + - Wed, 14 Apr 2021 05:41:59 GMT expires: - '-1' odata-version: @@ -574,7 +615,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -584,10 +625,9 @@ interactions: ParameterSetName: - --name --resource-group --set User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/5bdae814-2631-4f18-97e6-276aac570db2?api-version=2020-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdooroperationresults/4c508b36-3d13-42c6-b28d-95662f41764d?api-version=2020-05-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -599,7 +639,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:02:59 GMT + - Wed, 14 Apr 2021 05:42:29 GMT expires: - '-1' odata-version: @@ -623,7 +663,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -633,13 +673,12 @@ interactions: ParameterSetName: - --name --resource-group --set User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontDoors/cli000004?api-version=2020-05-01 response: body: - string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"226a0581-c9d2-4bc4-b1db-75acab06649e","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002"},"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' + string: '{"name":"cli000004","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004","type":"Microsoft.Network/frontdoors","location":"Global","tags":{},"properties":{"provisioningState":"Succeeded","resourceState":"Enabled","enabledState":"Enabled","cName":"cli000004.azurefd.net","frontdoorId":"26d125d9-d3c0-4832-872f-ba487aa5eafa","friendlyName":"cli000004","backendPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/BackendPools/DefaultBackendPool","name":"DefaultBackendPool","type":"Microsoft.Network/Frontdoors/BackendPools","properties":{"resourceState":"Enabled","backends":[{"address":"www.example.com","httpPort":80,"httpsPort":443,"priority":1,"weight":50,"backendHostHeader":"www.example.com","enabledState":"Enabled","privateLinkAlias":null,"privateLinkApprovalMessage":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null}],"healthProbeSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/healthProbeSettings/DefaultProbeSettings"},"loadBalancingSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/loadBalancingSettings/DefaultLoadBalancingSettings"}}}],"healthProbeSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/HealthProbeSettings/DefaultProbeSettings","name":"DefaultProbeSettings","type":"Microsoft.Network/Frontdoors/HealthProbeSettings","properties":{"intervalInSeconds":30,"path":"/","protocol":"Https","resourceState":"Enabled","enabledState":"Enabled","healthProbeMethod":"Head"}}],"frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/FrontendEndpoints/DefaultFrontendEndpoint","name":"DefaultFrontendEndpoint","type":"Microsoft.Network/Frontdoors/FrontendEndpoints","properties":{"hostName":"cli000004.azurefd.net","sessionAffinityEnabledState":"Disabled","sessionAffinityTtlSeconds":0,"customHttpsProvisioningState":null,"customHttpsProvisioningSubstate":null,"resourceState":"Enabled","webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002"},"customHttpsConfiguration":null}}],"loadBalancingSettings":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/LoadBalancingSettings/DefaultLoadBalancingSettings","name":"DefaultLoadBalancingSettings","type":"Microsoft.Network/Frontdoors/LoadBalancingSettings","properties":{"additionalLatencyMilliseconds":0,"sampleSize":4,"successfulSamplesRequired":2,"resourceState":"Enabled"}}],"rulesEngines":[],"routingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/Frontdoors/cli000004/RoutingRules/DefaultRoutingRule","name":"DefaultRoutingRule","type":"Microsoft.Network/Frontdoors/RoutingRules","properties":{"acceptedProtocols":["Http"],"patternsToMatch":["/*"],"enabledState":"Enabled","resourceState":"Enabled","frontendEndpoints":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/frontendEndpoints/DefaultFrontendEndpoint"}],"routeConfiguration":{"customForwardingPath":null,"forwardingProtocol":"MatchRequest","@odata.type":"#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration","cacheConfiguration":null,"backendPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/frontdoors/cli000004/backendPools/DefaultBackendPool"}},"rulesEngine":null,"webApplicationFirewallPolicyLink":null}}],"backendPoolsSettings":{"enforceCertificateNameCheck":"Enabled","sendRecvTimeoutSeconds":30}}}' headers: cache-control: - no-cache @@ -648,7 +687,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:03:00 GMT + - Wed, 14 Apr 2021 05:42:29 GMT expires: - '-1' odata-version: @@ -690,13 +729,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:03:00 GMT + - Wed, 14 Apr 2021 05:42:29 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: FACFC104401A469B8231831FB2DF0A51 Ref B: SG2EDGE0809 Ref C: 2021-04-01T17:03:00Z' + - 'Ref A: A7FFA3660F584B228379341191248F67 Ref B: SG2EDGE0707 Ref C: 2021-04-14T05:42:30Z' status: code: 302 message: Found @@ -759,7 +798,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:03:01 GMT + - Wed, 14 Apr 2021 05:42:30 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -771,7 +810,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 8E918B161C8A4001A46B9FA2E010F876 Ref B: SG2EDGE0809 Ref C: 2021-04-01T17:03:01Z' + - 'Ref A: 0BB0236685C247A683D146AAC4948C3B Ref B: SG2EDGE0707 Ref C: 2021-04-14T05:42:30Z' status: code: 200 message: OK @@ -797,13 +836,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:03:10 GMT + - Wed, 14 Apr 2021 05:42:41 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: 484DD03D72DA4F58B4F3D3B2A7E38DB8 Ref B: SG2EDGE0713 Ref C: 2021-04-01T17:03:11Z' + - 'Ref A: 05C9D7FCB0B7445DAFA893F06C39ECC3 Ref B: SG2EDGE0719 Ref C: 2021-04-14T05:42:41Z' status: code: 302 message: Found @@ -866,7 +905,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:03:11 GMT + - Wed, 14 Apr 2021 05:42:42 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -878,7 +917,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: C8DDE52EB9F54E7596AAAD0F32BC0B3A Ref B: SG2EDGE0713 Ref C: 2021-04-01T17:03:11Z' + - 'Ref A: 0F2E93FC00AA449E93FA53BFCBC3B7E4 Ref B: SG2EDGE0719 Ref C: 2021-04-14T05:42:41Z' status: code: 200 message: OK @@ -904,13 +943,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:03:21 GMT + - Wed, 14 Apr 2021 05:42:52 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: F46C2AE2CC5C4DBAB58EC06DCA80A085 Ref B: SG2EDGE0715 Ref C: 2021-04-01T17:03:22Z' + - 'Ref A: 95876B1EA558474DA6B166CB5F71D995 Ref B: SG2EDGE0708 Ref C: 2021-04-14T05:42:52Z' status: code: 302 message: Found @@ -973,7 +1012,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:03:22 GMT + - Wed, 14 Apr 2021 05:42:53 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -985,7 +1024,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 87A2A7ED14584F5B8442F66ADF370AB6 Ref B: SG2EDGE0715 Ref C: 2021-04-01T17:03:22Z' + - 'Ref A: 4079FE722E0848AF83DCFBEFD8962EFD Ref B: SG2EDGE0708 Ref C: 2021-04-14T05:42:52Z' status: code: 200 message: OK @@ -1011,13 +1050,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:03:33 GMT + - Wed, 14 Apr 2021 05:43:03 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: ABE49C62ECB44593B37097D69D79CB66 Ref B: SG2EDGE0813 Ref C: 2021-04-01T17:03:33Z' + - 'Ref A: 330A16B6AAB4421298468BC653CE1CC8 Ref B: SG2EDGE0812 Ref C: 2021-04-14T05:43:04Z' status: code: 302 message: Found @@ -1080,7 +1119,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:03:34 GMT + - Wed, 14 Apr 2021 05:43:04 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1092,7 +1131,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 6C792C9157974D2892D61DD3EEE6468B Ref B: SG2EDGE0813 Ref C: 2021-04-01T17:03:33Z' + - 'Ref A: F6BA2C89924B4F79A59EFC93845B6BF2 Ref B: SG2EDGE0812 Ref C: 2021-04-14T05:43:04Z' status: code: 200 message: OK @@ -1118,13 +1157,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:03:44 GMT + - Wed, 14 Apr 2021 05:43:14 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: B5B96B783A184BB1A2C9E10149E414E7 Ref B: SG2EDGE0709 Ref C: 2021-04-01T17:03:45Z' + - 'Ref A: E313EA04A78845F49929312CBC362DD4 Ref B: SG2EDGE0712 Ref C: 2021-04-14T05:43:14Z' status: code: 302 message: Found @@ -1187,7 +1226,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:03:45 GMT + - Wed, 14 Apr 2021 05:43:15 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1199,7 +1238,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 82E33843DDA74D88B7C48E9141EDDCEA Ref B: SG2EDGE0709 Ref C: 2021-04-01T17:03:45Z' + - 'Ref A: 3104ABCA3CF842F3827F6EA45AE92C36 Ref B: SG2EDGE0712 Ref C: 2021-04-14T05:43:14Z' status: code: 200 message: OK @@ -1225,13 +1264,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:03:55 GMT + - Wed, 14 Apr 2021 05:43:25 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: BB9E0616EF9C488F9683F3E8F92FBAA4 Ref B: SG2EDGE0811 Ref C: 2021-04-01T17:03:56Z' + - 'Ref A: A5D9C132E76F47CBA79899F5B2C5AAC0 Ref B: SG2EDGE0807 Ref C: 2021-04-14T05:43:25Z' status: code: 302 message: Found @@ -1294,7 +1333,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:03:56 GMT + - Wed, 14 Apr 2021 05:43:26 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1306,7 +1345,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 7BEA533FAFCC4468821A8F528112BE4F Ref B: SG2EDGE0811 Ref C: 2021-04-01T17:03:56Z' + - 'Ref A: EA602FE8E53C4485906573BC990B609C Ref B: SG2EDGE0807 Ref C: 2021-04-14T05:43:25Z' status: code: 200 message: OK @@ -1332,13 +1371,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:04:07 GMT + - Wed, 14 Apr 2021 05:43:37 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: AD668F6469D84369B54585FB688BE997 Ref B: SG2EDGE0812 Ref C: 2021-04-01T17:04:07Z' + - 'Ref A: 7540F0EC1A3B4A69AF76A1F36DBF9CC9 Ref B: SG2EDGE0707 Ref C: 2021-04-14T05:43:37Z' status: code: 302 message: Found @@ -1401,7 +1440,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:04:07 GMT + - Wed, 14 Apr 2021 05:43:37 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1413,7 +1452,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: A10179CD9CA64C2BB6F0487C13B88840 Ref B: SG2EDGE0812 Ref C: 2021-04-01T17:04:07Z' + - 'Ref A: F5F48F504F68433B9C694050A71799FE Ref B: SG2EDGE0707 Ref C: 2021-04-14T05:43:37Z' status: code: 200 message: OK @@ -1439,13 +1478,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:04:17 GMT + - Wed, 14 Apr 2021 05:43:47 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: 8823BBF84F30452B99975DB63C9CF8C8 Ref B: SG2EDGE0821 Ref C: 2021-04-01T17:04:18Z' + - 'Ref A: 6D14746532C149F9918DC42F32EE84DF Ref B: SG2EDGE0714 Ref C: 2021-04-14T05:43:47Z' status: code: 302 message: Found @@ -1508,7 +1547,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:04:18 GMT + - Wed, 14 Apr 2021 05:43:48 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1520,7 +1559,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: A2AED8AA4DB34634BA56E0F3FBE28A79 Ref B: SG2EDGE0821 Ref C: 2021-04-01T17:04:18Z' + - 'Ref A: F396A9F5048A4B91B20AB9A679A1D7EE Ref B: SG2EDGE0714 Ref C: 2021-04-14T05:43:47Z' status: code: 200 message: OK @@ -1546,13 +1585,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:04:28 GMT + - Wed, 14 Apr 2021 05:43:57 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: A2A0DB500F9845469360CFF688EF7118 Ref B: SG2EDGE0720 Ref C: 2021-04-01T17:04:29Z' + - 'Ref A: ADFB30145CF249B68FAD2A87C99A55A8 Ref B: SG2EDGE0817 Ref C: 2021-04-14T05:43:58Z' status: code: 302 message: Found @@ -1615,7 +1654,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:04:29 GMT + - Wed, 14 Apr 2021 05:43:58 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1627,7 +1666,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 10407308AF5843B7AAEC1EBEDB5FD956 Ref B: SG2EDGE0720 Ref C: 2021-04-01T17:04:29Z' + - 'Ref A: F4D5E1D44B7C4913890C0AC6F0F7B41A Ref B: SG2EDGE0817 Ref C: 2021-04-14T05:43:58Z' status: code: 200 message: OK @@ -1653,13 +1692,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:04:41 GMT + - Wed, 14 Apr 2021 05:44:09 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: C2BF30B76D38439D91564BF3794502F0 Ref B: SG2EDGE0819 Ref C: 2021-04-01T17:04:41Z' + - 'Ref A: 4E225C06FE074E87A10388D284CDF0DC Ref B: SG2EDGE0812 Ref C: 2021-04-14T05:44:09Z' status: code: 302 message: Found @@ -1722,7 +1761,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:04:41 GMT + - Wed, 14 Apr 2021 05:44:09 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1734,7 +1773,193 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 17100A4B4830437BBCCB597CF3835FA7 Ref B: SG2EDGE0819 Ref C: 2021-04-01T17:04:41Z' + - 'Ref A: B9C1F4AB9CC141E3A1573368B00942E1 Ref B: SG2EDGE0812 Ref C: 2021-04-14T05:44:10Z' + status: + code: 200 + message: OK +- request: + body: '''key'':''something''' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '17' + User-Agent: + - python-requests/2.22.0 + method: POST + uri: http://cli000004.azurefd.net/ + response: + body: + string: 'Service unavailable

Our services aren''t available right now

We''re + working to restore all services as soon as possible. Please check back soon.

0NIF2YAAAAABiXQfhWKB9RI01OqJkrS/LU0cyRURHRTA3MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh
' + headers: + cache-control: + - no-store + content-length: + - '994' + content-type: + - text/html + date: + - Wed, 14 Apr 2021 05:44:19 GMT + x-azure-ref: + - 0NIF2YAAAAABiXQfhWKB9RI01OqJkrS/LU0cyRURHRTA3MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh + status: + code: 503 + message: Service Unavailable +- request: + body: '''key'':''something''' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '17' + User-Agent: + - python-requests/2.22.0 + method: POST + uri: http://cli000004.azurefd.net/ + response: + body: + string: 'Service unavailable

Our services aren''t available right now

We''re + working to restore all services as soon as possible. Please check back soon.

0PoF2YAAAAAB5ljad1Fy+SZxEVRXVIgB/U0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh
' + headers: + cache-control: + - no-store + content-length: + - '994' + content-type: + - text/html + date: + - Wed, 14 Apr 2021 05:44:29 GMT + x-azure-ref: + - 0PoF2YAAAAAB5ljad1Fy+SZxEVRXVIgB/U0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh + status: + code: 503 + message: Service Unavailable +- request: + body: '''key'':''something''' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '17' + User-Agent: + - python-requests/2.22.0 + method: POST + uri: http://cli000004.azurefd.net/ + response: + body: + string: 'Service unavailable

Our services aren''t available right now

We''re + working to restore all services as soon as possible. Please check back soon.

0SIF2YAAAAABqemoDa3JjRJMWQjj6iwlxU0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh
' + headers: + cache-control: + - no-store + content-length: + - '994' + content-type: + - text/html + date: + - Wed, 14 Apr 2021 05:44:40 GMT + x-azure-ref: + - 0SIF2YAAAAABqemoDa3JjRJMWQjj6iwlxU0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh + status: + code: 503 + message: Service Unavailable +- request: + body: '''key'':''something''' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '17' + User-Agent: + - python-requests/2.22.0 + method: POST + uri: http://cli000004.azurefd.net/ + response: + body: + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" + headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 + content-length: + - '1256' + content-type: + - text/html; charset=UTF-8 + date: + - Wed, 14 Apr 2021 05:44:50 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:44:51 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0U4F2YAAAAACsiSzDPbtUT6AKoyvQKsk6U0cyRURHRTA3MDkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -1760,13 +1985,13 @@ interactions: content-length: - '0' date: - - Thu, 01 Apr 2021 17:04:51 GMT + - Wed, 14 Apr 2021 05:45:01 GMT location: - /pages/404.html server: - Microsoft-IIS/10.0 x-msedge-ref: - - 'Ref A: 7DEB56C9A6374035B78DADD21579DE96 Ref B: SG2EDGE0811 Ref C: 2021-04-01T17:04:51Z' + - 'Ref A: 5C4F8868F2F84091970DC6796266B51C Ref B: SG2EDGE0813 Ref C: 2021-04-14T05:45:01Z' status: code: 302 message: Found @@ -1829,7 +2054,7 @@ interactions: content-type: - text/html date: - - Thu, 01 Apr 2021 17:04:52 GMT + - Wed, 14 Apr 2021 05:45:02 GMT etag: - '0x8D61E6FBA75C854' last-modified: @@ -1841,7 +2066,7 @@ interactions: x-ms-version: - '2009-09-19' x-msedge-ref: - - 'Ref A: 23C3DF806D434511847F58CB3DE7DD2A Ref B: SG2EDGE0811 Ref C: 2021-04-01T17:04:52Z' + - 'Ref A: BEA111E9CB61432F8F623C4BD772292A Ref B: SG2EDGE0813 Ref C: 2021-04-14T05:45:01Z' status: code: 200 message: OK @@ -1862,93 +2087,46 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:05:01 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: DE831E3233CE45029D40847B46547DE2 Ref B: SG2EDGE0817 Ref C: 2021-04-01T17:05:02Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:02 GMT + - Wed, 14 Apr 2021 05:45:12 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:45:13 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 9AA0FACE767A46D7BC986C9EDBEB2E54 Ref B: SG2EDGE0817 Ref C: 2021-04-01T17:05:02Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0aIF2YAAAAACcwbYGhDK9SqHVAPlHpWY5U0cyRURHRTA3MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -1969,23 +2147,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:13 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: C1B0355375F64B50A0DA6D6372CAFE0D Ref B: SG2EDGE0821 Ref C: 2021-04-01T17:05:13Z' + - Wed, 14 Apr 2021 05:45:22 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:45:23 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0c4F2YAAAAACEpzvBYxT2S5fJJHDbbRIMU0cyRURHRTA3MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -1993,69 +2199,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:13 GMT + - Wed, 14 Apr 2021 05:45:33 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:45:33 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 61BA14B912194F43A8C40EE3249F8B9E Ref B: SG2EDGE0821 Ref C: 2021-04-01T17:05:13Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0fYF2YAAAAACbkKq1arczR4TdybrS5pP6U0cyRURHRTA4MTEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2076,23 +2267,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:23 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: C4E146C34D584CDF91F1E23384F27D26 Ref B: SG2EDGE0708 Ref C: 2021-04-01T17:05:24Z' + - Wed, 14 Apr 2021 05:45:44 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:45:44 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0iIF2YAAAAADPx7GsLyILS7gSoqGcAwAGU0cyRURHRTA3MjAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -2100,69 +2319,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:24 GMT + - Wed, 14 Apr 2021 05:45:54 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:45:55 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: B8FEB13F2250478E8314FDFCB73564BC Ref B: SG2EDGE0708 Ref C: 2021-04-01T17:05:24Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0koF2YAAAAACi5j8iHCmCRKzf6FtWVa7uU0cyRURHRTA4MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2183,23 +2387,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:34 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: C619A6CF2CC74F7E89733F7050CC17D7 Ref B: SG2EDGE0720 Ref C: 2021-04-01T17:05:35Z' + - Wed, 14 Apr 2021 05:46:05 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:46:05 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0nYF2YAAAAADNsik0VlSVSJYcK+NOxeK9U0cyRURHRTA4MTgAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -2207,69 +2439,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:34 GMT + - Wed, 14 Apr 2021 05:46:15 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:46:16 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 2821A12CC56445E897D3ABC5F99EA698 Ref B: SG2EDGE0720 Ref C: 2021-04-01T17:05:35Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0p4F2YAAAAAAurFWnGd/ZRoJUW2yrL8b1U0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2290,23 +2507,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: - content-length: - - '0' + accept-ranges: + - bytes + cache-control: + - max-age=604800 + content-length: + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:45 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 3D2EEFCDFD5E453CB2F83533CFB960E0 Ref B: SG2EDGE0720 Ref C: 2021-04-01T17:05:46Z' + - Wed, 14 Apr 2021 05:46:26 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:46:26 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0soF2YAAAAADWFZ1cyAFPQ7RX/rjSGH+KU0cyRURHRTA3MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -2314,69 +2559,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:45 GMT + - Wed, 14 Apr 2021 05:46:36 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:46:36 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: DC6D7615D7194EAFB59F49811CF66E8E Ref B: SG2EDGE0720 Ref C: 2021-04-01T17:05:46Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0vIF2YAAAAABec/A04qEhTKeGbh4JoNjvU0cyRURHRTA4MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2397,23 +2627,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:56 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 063AA2124ED24608B19779B943029EC6 Ref B: SG2EDGE0717 Ref C: 2021-04-01T17:05:56Z' + - Wed, 14 Apr 2021 05:46:47 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:46:47 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0x4F2YAAAAADyC05d3V+vSJt163ujv6qGU0cyRURHRTA4MTUAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -2421,69 +2679,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:05:57 GMT + - Wed, 14 Apr 2021 05:46:57 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:46:57 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 2BFF0DA8E1AB4F728D598858774CB570 Ref B: SG2EDGE0717 Ref C: 2021-04-01T17:05:56Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 00YF2YAAAAABx2IANsVQVQb9Lx6CmG4axU0cyRURHRTA4MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2504,93 +2747,46 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:06:07 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 4D927255CE274695947199C2FD168734 Ref B: SG2EDGE0721 Ref C: 2021-04-01T17:06:07Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:08 GMT + - Wed, 14 Apr 2021 05:47:07 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:47:08 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 116E6D3600BF406780EE8BDCEBC0FA55 Ref B: SG2EDGE0721 Ref C: 2021-04-01T17:06:07Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 03IF2YAAAAACE5Sgo2CtHTYAWJn0GZOk1U0cyRURHRTA3MDgAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2611,23 +2807,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:18 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 5EFAE5713F5A4B999674C0D5DEB13122 Ref B: SG2EDGE0708 Ref C: 2021-04-01T17:06:19Z' + - Wed, 14 Apr 2021 05:47:18 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:47:19 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 05oF2YAAAAABGx2yHfVixSoPdXKOxDZ4LU0cyRURHRTA3MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -2635,69 +2859,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:18 GMT + - Wed, 14 Apr 2021 05:47:28 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:47:29 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 38B4C7952D9F489FA31A790733F0D72C Ref B: SG2EDGE0708 Ref C: 2021-04-01T17:06:19Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 08YF2YAAAAABNTq1U3jPDT6PArEc9rVMEU0cyRURHRTA4MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2718,23 +2927,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:28 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 880D2D757D0D499C90BE73A933DD01F3 Ref B: SG2EDGE0811 Ref C: 2021-04-01T17:06:29Z' + - Wed, 14 Apr 2021 05:47:39 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:47:40 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0+4F2YAAAAACbY267tGyzRYvgo/zgYr7oU0cyRURHRTA4MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -2742,69 +2979,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:29 GMT + - Wed, 14 Apr 2021 05:47:50 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:47:50 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 85DDE623A55640D48897DD30AB06A904 Ref B: SG2EDGE0811 Ref C: 2021-04-01T17:06:29Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0BoJ2YAAAAADScZb3lZY6T6pJZuGZDUc+U0cyRURHRTA3MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2825,23 +3047,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:40 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 441DE86C864141FEA8976341879E6B51 Ref B: SG2EDGE0721 Ref C: 2021-04-01T17:06:40Z' + - Wed, 14 Apr 2021 05:48:00 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:48:01 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0EIJ2YAAAAADflBVbwu9YTpXpHv5777ahU0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -2849,69 +3099,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:40 GMT + - Wed, 14 Apr 2021 05:48:11 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:48:11 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: D372C010EABA4C659713A7DBB55587FF Ref B: SG2EDGE0721 Ref C: 2021-04-01T17:06:41Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0G4J2YAAAAACN3K4bOg5HTLwVtv+DspXxU0cyRURHRTA4MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -2932,93 +3167,46 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:06:51 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 026EB5F58B2A46D684564D42BB17FAA7 Ref B: SG2EDGE0712 Ref C: 2021-04-01T17:06:51Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:06:51 GMT + - Wed, 14 Apr 2021 05:48:21 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:48:22 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 768A909061634256BE5D638BB0871FDF Ref B: SG2EDGE0712 Ref C: 2021-04-01T17:06:51Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0JYJ2YAAAAABeXnCeMHByQ6DXSoaEKOvcU0cyRURHRTA4MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -3039,23 +3227,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:01 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 0777324290434341B52520773DAF95F2 Ref B: SG2EDGE0807 Ref C: 2021-04-01T17:07:01Z' + - Wed, 14 Apr 2021 05:48:32 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:48:32 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0MIJ2YAAAAACSay8rRPlWT6sRmybnOLsvU0cyRURHRTA3MDkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -3063,69 +3279,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:02 GMT + - Wed, 14 Apr 2021 05:48:42 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:48:43 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: F35A8548FCBD4060AF2B26E00C0C5383 Ref B: SG2EDGE0807 Ref C: 2021-04-01T17:07:01Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0OoJ2YAAAAAA9RMtvBQYuRJKR6BzLVZZ1U0cyRURHRTA4MjIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -3146,23 +3347,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:12 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 9D7D0A667C5647B280FFCED13DBB0DC6 Ref B: SG2EDGE0817 Ref C: 2021-04-01T17:07:13Z' + - Wed, 14 Apr 2021 05:48:53 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:48:53 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0RYJ2YAAAAABRgVm/mrm8RK2lcTN0ZBwgU0cyRURHRTA4MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -3170,69 +3399,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:13 GMT + - Wed, 14 Apr 2021 05:49:03 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:49:04 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 41680E9B2B314BBF8C6893A9D78B95DE Ref B: SG2EDGE0817 Ref C: 2021-04-01T17:07:13Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0T4J2YAAAAAAWXz7dCGbGQLFy91dWskyQU0cyRURHRTA4MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -3253,23 +3467,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:23 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: A1856DB95A9F4FDEB1B06193325AC5C2 Ref B: SG2EDGE0721 Ref C: 2021-04-01T17:07:24Z' + - Wed, 14 Apr 2021 05:49:14 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:49:14 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0WoJ2YAAAAAAakOPsf9ATTqayjjcJWAF5U0cyRURHRTA4MDcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -3277,69 +3519,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:23 GMT + - Wed, 14 Apr 2021 05:49:24 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:49:25 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: B330CE33646247029DA1D36AA50C2027 Ref B: SG2EDGE0721 Ref C: 2021-04-01T17:07:24Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0ZYJ2YAAAAAAwZQta/afxSaIi+CAOHQGiU0cyRURHRTA3MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -3360,23 +3587,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:34 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: BEAA2A449CF041ECB8BD1D2A8351A321 Ref B: SG2EDGE0808 Ref C: 2021-04-01T17:07:34Z' + - Wed, 14 Apr 2021 05:49:35 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:49:35 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0b4J2YAAAAAAKNaK2ZfM/S6YPzenp5xa2U0cyRURHRTA4MDcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -3384,69 +3639,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:35 GMT + - Wed, 14 Apr 2021 05:49:45 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:49:46 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 02DF15A2DEB4420EA70EDCCF52FCB3DC Ref B: SG2EDGE0808 Ref C: 2021-04-01T17:07:34Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0eYJ2YAAAAAAzYxvXxgfyTqCNNSNaxXqpU0cyRURHRTA3MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -3467,23 +3707,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:45 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 76D7EAC3DDEE4A2895AD2E1A272FCB0B Ref B: SG2EDGE0813 Ref C: 2021-04-01T17:07:46Z' + - Wed, 14 Apr 2021 05:49:56 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:49:56 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0hIJ2YAAAAACshDjFZrReS4jLC5A1tt/vU0cyRURHRTA4MDkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -3491,69 +3759,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:07:46 GMT + - Wed, 14 Apr 2021 05:50:07 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:50:07 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 165CE5C1B34F426B9F57CE6DD7B7BA82 Ref B: SG2EDGE0813 Ref C: 2021-04-01T17:07:46Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0j4J2YAAAAABYt+P3KuuHS7vVjJDhJfwAU0cyRURHRTA4MTgAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -3574,949 +3827,46 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:07:56 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: D2263FD199934D92A75E1E1748F7C977 Ref B: SG2EDGE0807 Ref C: 2021-04-01T17:07:57Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:07:57 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 212464A54C5A4058ACD1238DA64E05B6 Ref B: SG2EDGE0807 Ref C: 2021-04-01T17:07:57Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:08:06 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: F2845683ED5C48D5B5711B6D470BAF4D Ref B: SG2EDGE0816 Ref C: 2021-04-01T17:08:07Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:08:07 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 688699F650CB49528FF8239CC2EB2431 Ref B: SG2EDGE0816 Ref C: 2021-04-01T17:08:07Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:08:18 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 0305533254E64F4D956ABE082BEF0614 Ref B: SG2EDGE0820 Ref C: 2021-04-01T17:08:19Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:08:18 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 88F6E2C5121C49CEB5B9D0E9C65E5D46 Ref B: SG2EDGE0820 Ref C: 2021-04-01T17:08:19Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:08:29 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 36D73CC6A59346F9A48370C2506DFB9D Ref B: SG2EDGE0717 Ref C: 2021-04-01T17:08:29Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:08:30 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: E7E9C2D39C0F4B36872367980622E47B Ref B: SG2EDGE0717 Ref C: 2021-04-01T17:08:29Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:08:40 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 0BD8F348B1574711BA9F003E44B3D0B5 Ref B: SG2EDGE0810 Ref C: 2021-04-01T17:08:40Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:08:40 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 1481C865910E4B4DA80CE78A57B154D8 Ref B: SG2EDGE0810 Ref C: 2021-04-01T17:08:40Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:08:50 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 4EA08C58484C4FFF8064F8A3D095EE6A Ref B: SG2EDGE0822 Ref C: 2021-04-01T17:08:51Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:08:51 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: FBB6C19C28704B0AB2986550B979F034 Ref B: SG2EDGE0822 Ref C: 2021-04-01T17:08:51Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:09:01 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 7B6F9EBFB47D490795574853E66F2CB4 Ref B: SG2EDGE0722 Ref C: 2021-04-01T17:09:02Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:09:02 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 17B107F535DB4317B03416DC3EC5C27D Ref B: SG2EDGE0722 Ref C: 2021-04-01T17:09:02Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:09:12 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 81EB9660B7B64313BB777DDC8CB6FF0D Ref B: SG2EDGE0809 Ref C: 2021-04-01T17:09:12Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" - headers: - content-length: - - '3469' - content-type: - - text/html - date: - - Thu, 01 Apr 2021 17:09:12 GMT - etag: - - '0x8D61E6FBA75C854' - last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: C186FF5FAE1E4A84860FE8B213D0E7C8 Ref B: SG2EDGE0809 Ref C: 2021-04-01T17:09:12Z' - status: - code: 200 - message: OK -- request: - body: '''key'':''something''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '17' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: http://cli000004.azurefd.net/ - response: - body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:09:23 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 046B5F142B6A473F98C0898951A5E086 Ref B: SG2EDGE0817 Ref C: 2021-04-01T17:09:23Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:09:24 GMT + - Wed, 14 Apr 2021 05:50:17 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:50:17 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: E483C009A6F74A60BBC58CC61CFC6C3E Ref B: SG2EDGE0817 Ref C: 2021-04-01T17:09:23Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0mYJ2YAAAAADRb+JN8gahSqiSCyjJJjnOU0cyRURHRTA4MTEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -4537,93 +3887,46 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' - headers: - content-length: - - '0' - date: - - Thu, 01 Apr 2021 17:09:34 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 2582381F1FF54FD1B21E10357D4C76D5 Ref B: SG2EDGE0810 Ref C: 2021-04-01T17:09:34Z' - status: - code: 302 - message: Found -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html - response: - body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:09:34 GMT + - Wed, 14 Apr 2021 05:50:27 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:50:28 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 18491152DDE543A091D2D1688E9DE648 Ref B: SG2EDGE0810 Ref C: 2021-04-01T17:09:34Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0pIJ2YAAAAAAhtMcfnb8URJWe4l7hL0CAU0cyRURHRTA4MTEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -4644,23 +3947,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:09:44 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: F69C2D3E10414F6C8A966CAC5606A8CA Ref B: SG2EDGE0819 Ref C: 2021-04-01T17:09:45Z' + - Wed, 14 Apr 2021 05:50:38 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:50:38 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0roJ2YAAAAADiw/bFkVVvSaQ2k2SMDLk2U0cyRURHRTA3MTUAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -4668,69 +3999,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:09:45 GMT + - Wed, 14 Apr 2021 05:50:49 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:50:49 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: 70B003A643E8468FAED5B62E5473F93C Ref B: SG2EDGE0819 Ref C: 2021-04-01T17:09:45Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0uYJ2YAAAAAB/h0Ob5HYJTLNiQO0aouc/U0cyRURHRTA3MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -4751,31 +4067,49 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: 'Service unavailable

Our services aren''t available right now

We''re - working to restore all services as soon as possible. Please check back soon.

0ZP5lYAAAAACtmnPNWIrGR6f0mnIJI65bU0cyRURHRTA3MDcAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll
' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes cache-control: - - no-store + - max-age=604800 content-length: - - '994' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:09:55 GMT + - Wed, 14 Apr 2021 05:50:59 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:50:59 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-azure-ref: - - 0ZP5lYAAAAACtmnPNWIrGR6f0mnIJI65bU0cyRURHRTA3MDcAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0w4J2YAAAAAAduQWhnfMVRZ04y3W3NhJYU0cyRURHRTA3MTUAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 503 - message: Service Unavailable + code: 200 + message: OK - request: body: '''key'':''something''' headers: @@ -4793,31 +4127,49 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: 'Service unavailable

Our services aren''t available right now

We''re - working to restore all services as soon as possible. Please check back soon.

0bv5lYAAAAADEv0KKpscrQL7Ynrt9fk7bU0cyRURHRTA4MTcAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll
' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes cache-control: - - no-store + - max-age=604800 content-length: - - '994' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:10:05 GMT + - Wed, 14 Apr 2021 05:51:10 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:51:10 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-azure-ref: - - 0bv5lYAAAAADEv0KKpscrQL7Ynrt9fk7bU0cyRURHRTA4MTcAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0zoJ2YAAAAACUMqh3IV/hRJKFHv1wA8YxU0cyRURHRTA4MjEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 503 - message: Service Unavailable + code: 200 + message: OK - request: body: '''key'':''something''' headers: @@ -4835,31 +4187,49 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: 'Service unavailable

Our services aren''t available right now

We''re - working to restore all services as soon as possible. Please check back soon.

0eP5lYAAAAADVsvuTYArFQpTTvzxnkT4bU0cyRURHRTA4MDkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll
' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes cache-control: - - no-store + - max-age=604800 content-length: - - '994' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:10:15 GMT + - Wed, 14 Apr 2021 05:51:20 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:51:20 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-azure-ref: - - 0eP5lYAAAAADVsvuTYArFQpTTvzxnkT4bU0cyRURHRTA4MDkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 02IJ2YAAAAAAUql/hz8PASLuYn23hOdajU0cyRURHRTA4MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 503 - message: Service Unavailable + code: 200 + message: OK - request: body: '''key'':''something''' headers: @@ -4904,11 +4274,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:10:27 GMT + - Wed, 14 Apr 2021 05:51:31 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:10:27 GMT + - Wed, 21 Apr 2021 05:51:31 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -4916,7 +4286,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0gv5lYAAAAAC0HqyuUbw5RrylUtRKWf+zU0cyRURHRTA4MDkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 044J2YAAAAABn8GjgAc9LTbiW5gL6BLkcU0cyRURHRTA3MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -4964,11 +4334,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:10:37 GMT + - Wed, 14 Apr 2021 05:51:42 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:10:37 GMT + - Wed, 21 Apr 2021 05:51:42 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -4976,7 +4346,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0jf5lYAAAAADeMojT/mUKSJFyq4kLnOLxU0cyRURHRTA3MDgAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 07YJ2YAAAAADyKamzL+BxSa59oK3kUxhYU0cyRURHRTA4MTMAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -4997,23 +4367,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:10:47 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: F05B4926C254481787458DABE033C068 Ref B: SG2EDGE0813 Ref C: 2021-04-01T17:10:48Z' + - Wed, 14 Apr 2021 05:51:51 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:51:52 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0+IJ2YAAAAADfgjLfTdA7TaBhKPKxat3HU0cyRURHRTA4MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -5021,37 +4419,57 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: 'Service unavailable

Our services aren''t available right now

We''re - working to restore all services as soon as possible. Please check back soon.

0mP5lYAAAAADtf/KdAkT5Q7r8le7rz1nlU0cyRURHRTA4MTMAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll
' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes cache-control: - - no-store + - max-age=604800 content-length: - - '994' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:10:47 GMT + - Wed, 14 Apr 2021 05:52:03 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:52:03 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-azure-ref: - - 0mP5lYAAAAADtf/KdAkT5Q7r8le7rz1nlU0cyRURHRTA4MTMAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0AoN2YAAAAADxqGiJUG+5SL7qrO63/ptAU0cyRURHRTA4MTMAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 503 - message: Service Unavailable + code: 200 + message: OK - request: body: '''key'':''something''' headers: @@ -5096,11 +4514,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:10:58 GMT + - Wed, 14 Apr 2021 05:52:12 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:10:58 GMT + - Wed, 21 Apr 2021 05:52:13 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5108,7 +4526,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0ov5lYAAAAAA71cnFGvd7QLcWgE4uoRohU0cyRURHRTA3MjEAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0DYN2YAAAAACXO2SzSFsvTZ+sTHBwLVUgU0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5156,11 +4574,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:11:08 GMT + - Wed, 14 Apr 2021 05:52:23 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:11:09 GMT + - Wed, 21 Apr 2021 05:52:23 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5168,7 +4586,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0rP5lYAAAAABfgev7fHSySLJ3/t1WdBcDU0cyRURHRTA4MDkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0F4N2YAAAAABxrq9dM8+XRacBn3RJfHNcU0cyRURHRTA4MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5216,11 +4634,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:11:18 GMT + - Wed, 14 Apr 2021 05:52:33 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:11:19 GMT + - Wed, 21 Apr 2021 05:52:34 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5228,7 +4646,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0t/5lYAAAAAAYvKheynaiQqZeo/Gx5lL0U0cyRURHRTA4MTMAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0IoN2YAAAAABB7F1gD+BORo88Y36rfNlQU0cyRURHRTA3MTUAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5276,11 +4694,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:11:29 GMT + - Wed, 14 Apr 2021 05:52:44 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:11:30 GMT + - Wed, 21 Apr 2021 05:52:45 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5288,7 +4706,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0wf5lYAAAAABzMa9AGkjvSKRxt+sp89yxU0cyRURHRTA4MjIAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0LIN2YAAAAAACnIvQwu5uR6kJhi5DiextU0cyRURHRTA3MTkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5336,11 +4754,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:11:40 GMT + - Wed, 14 Apr 2021 05:52:55 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:11:40 GMT + - Wed, 21 Apr 2021 05:52:55 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5348,7 +4766,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0zP5lYAAAAADDcSz/o8v6R5OeRVf9LtdqU0cyRURHRTA4MTIAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0N4N2YAAAAADgqaB2gxUATJ5crIFUWmv9U0cyRURHRTA4MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5396,11 +4814,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:11:51 GMT + - Wed, 14 Apr 2021 05:53:06 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:11:51 GMT + - Wed, 21 Apr 2021 05:53:06 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5408,7 +4826,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 01v5lYAAAAADKmkB2IEOUQ5qxknDQafc9U0cyRURHRTA3MTIAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0QoN2YAAAAAA34IT9PVGQS4aqKA6k05PYU0cyRURHRTA4MjIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5456,11 +4874,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:12:01 GMT + - Wed, 14 Apr 2021 05:53:16 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:12:01 GMT + - Wed, 21 Apr 2021 05:53:16 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5468,7 +4886,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 04f5lYAAAAAABRsKyzg72QJ4usHXv/JviU0cyRURHRTA4MDgAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0TIN2YAAAAADdBZ9w8TzjTodrZLWxKOhPU0cyRURHRTA4MjEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5516,11 +4934,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:12:12 GMT + - Wed, 14 Apr 2021 05:53:26 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:12:12 GMT + - Wed, 21 Apr 2021 05:53:27 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5528,7 +4946,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 07P5lYAAAAAAe7L/oTyTgRKyRAQeiPRoWU0cyRURHRTA4MjIAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0V4N2YAAAAAC+IG5c6yDKS5sq9Lctl83UU0cyRURHRTA3MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5576,11 +4994,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:12:22 GMT + - Wed, 14 Apr 2021 05:53:37 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:12:22 GMT + - Wed, 21 Apr 2021 05:53:38 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5588,7 +5006,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 09v5lYAAAAACrd0qe4PS5SIHwaBizbdQ6U0cyRURHRTA4MTkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0YYN2YAAAAAAYUPnnxOCvQY7qnZNgVj8eU0cyRURHRTA4MTMAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5636,11 +5054,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:12:33 GMT + - Wed, 14 Apr 2021 05:53:48 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:12:33 GMT + - Wed, 21 Apr 2021 05:53:48 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5648,7 +5066,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0Af9lYAAAAAAY4an5O8wkRIKr5p1Et1kDU0cyRURHRTA3MTMAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0bIN2YAAAAAAPlAtS00MsRZgG5xmefaUgU0cyRURHRTA4MjAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5696,11 +5114,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:12:43 GMT + - Wed, 14 Apr 2021 05:53:59 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:12:43 GMT + - Wed, 21 Apr 2021 05:53:59 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5708,7 +5126,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0C/9lYAAAAABHwahKgvD2T5SJhIXtE7GnU0cyRURHRTA4MTIAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0doN2YAAAAACEnAeG5UJ7QYDQcq7g6IlmU0cyRURHRTA3MjAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5756,11 +5174,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:12:53 GMT + - Wed, 14 Apr 2021 05:54:09 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:12:54 GMT + - Wed, 21 Apr 2021 05:54:09 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5768,7 +5186,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0Fv9lYAAAAAD5ON7SEiPqRqMvDgYdGOiyU0cyRURHRTA4MTYAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0gYN2YAAAAACfhUP+/qN+TZ8vu57OfTzhU0cyRURHRTA4MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5816,11 +5234,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:13:04 GMT + - Wed, 14 Apr 2021 05:54:19 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:13:04 GMT + - Wed, 21 Apr 2021 05:54:20 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5828,7 +5246,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0IP9lYAAAAADCYz2mc6bvSJvZnwKWFm/IU0cyRURHRTA4MTAAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0i4N2YAAAAAA06JkHkP8GT4iwyaAETYuZU0cyRURHRTA3MTEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5849,23 +5267,51 @@ interactions: uri: http://cli000004.azurefd.net/ response: body: - string: '' + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '0' + - '1256' + content-type: + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:13:14 GMT - location: - - /pages/404.html - server: - - Microsoft-IIS/10.0 - x-msedge-ref: - - 'Ref A: 485607ECF20C40E683D03F56421755A9 Ref B: SG2EDGE0714 Ref C: 2021-04-01T17:13:15Z' + - Wed, 14 Apr 2021 05:54:30 GMT + etag: + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:54:30 GMT + last-modified: + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0loN2YAAAAABuWswBP9MwT4falWrJ+OfAU0cyRURHRTA4MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: - code: 302 - message: Found + code: 200 + message: OK - request: - body: null + body: '''key'':''something''' headers: Accept: - '*/*' @@ -5873,69 +5319,54 @@ interactions: - gzip, deflate Connection: - keep-alive + Content-Length: + - '17' User-Agent: - python-requests/2.22.0 - method: GET - uri: http://cli000004.azurefd.net/pages/404.html + method: POST + uri: http://cli000004.azurefd.net/ response: body: - string: "\n\n\n - \ Page not found\n \n\n\n\n\n\n\n\n \n\n\n - \ \n \n\n\n\n - \ \n\n\n - \
\n
\n - \

Page not found

\n\n\t\t\t
Oops! - We weren't able to find your Azure Front Door Service configuration. If it\u2019s - a new configuration that you recently created, it might not be ready yet. - \ You should check again in a few minutes. If the problem persists, please - contact Azure support.
\n \n
\n \n - \ \n - \ \n - \
\n
\n
\n \n\n - \
\n
\n\n\n" + string: "\n\n\n Example Domain\n\n + \ \n \n \n \n\n\n\n
\n

Example Domain

\n + \

This domain is for use in illustrative examples in documents. You may + use this\n domain in literature without prior coordination or asking for + permission.

\n

More + information...

\n
\n\n\n" headers: + accept-ranges: + - bytes + cache-control: + - max-age=604800 content-length: - - '3469' + - '1256' content-type: - - text/html + - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:13:15 GMT + - Wed, 14 Apr 2021 05:54:40 GMT etag: - - '0x8D61E6FBA75C854' + - '"3147526947+gzip"' + expires: + - Wed, 21 Apr 2021 05:54:41 GMT last-modified: - - Wed, 19 Sep 2018 20:37:33 GMT - x-ms-blob-type: - - BlockBlob - x-ms-lease-status: - - unlocked - x-ms-version: - - '2009-09-19' - x-msedge-ref: - - 'Ref A: B89692DD754C407EB431F42B7157F5E2 Ref B: SG2EDGE0714 Ref C: 2021-04-01T17:13:15Z' + - Thu, 17 Oct 2019 07:18:26 GMT + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-azure-ref: + - 0oYN2YAAAAAB0U2Y0EeRpS6J8viRp5M7FU0cyRURHRTA4MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -5983,11 +5414,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:13:25 GMT + - Wed, 14 Apr 2021 05:54:51 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:13:26 GMT + - Wed, 21 Apr 2021 05:54:51 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -5995,7 +5426,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0Nv9lYAAAAAC1GTTCbR+yQJF0bXiIyPOnU0cyRURHRTA4MDgAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0q4N2YAAAAAA6xJoLiihgSagYt3XjmDwyU0cyRURHRTA4MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6043,11 +5474,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:13:36 GMT + - Wed, 14 Apr 2021 05:55:01 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:13:37 GMT + - Wed, 21 Apr 2021 05:55:02 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6055,7 +5486,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0QP9lYAAAAAB+ZMSjQAvJSqAqBOdOKe99U0cyRURHRTA3MDgAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0toN2YAAAAADXw263kUJURJF1GNPOn90NU0cyRURHRTA4MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6103,11 +5534,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:13:47 GMT + - Wed, 14 Apr 2021 05:55:11 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:13:47 GMT + - Wed, 21 Apr 2021 05:55:12 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6115,7 +5546,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0S/9lYAAAAABq0EdOOoc3SrdahulkUscWU0cyRURHRTA4MjAAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0wIN2YAAAAAAfD1yU+I92TbexlqzIKs0aU0cyRURHRTA4MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6163,11 +5594,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:13:58 GMT + - Wed, 14 Apr 2021 05:55:22 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:13:58 GMT + - Wed, 21 Apr 2021 05:55:23 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6175,7 +5606,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0Vv9lYAAAAADMAEld5HohR72134E3h6n0U0cyRURHRTA4MTkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0yoN2YAAAAABW46vV6a0yTKH47kSHvBo4U0cyRURHRTA3MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6223,11 +5654,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:14:08 GMT + - Wed, 14 Apr 2021 05:55:33 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:14:08 GMT + - Wed, 21 Apr 2021 05:55:33 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6235,7 +5666,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0YP9lYAAAAAA40gt8QsG1SqcJOPiox5kiU0cyRURHRTA3MjIAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 01YN2YAAAAABLSnqUODamSLQLLvYF9CZbU0cyRURHRTA3MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6283,11 +5714,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:14:18 GMT + - Wed, 14 Apr 2021 05:55:43 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:14:19 GMT + - Wed, 21 Apr 2021 05:55:44 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6295,7 +5726,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0a/9lYAAAAABFUN1VoI41RazS2sJ7WepdU0cyRURHRTA3MDgAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 034N2YAAAAAAknjd9IBAnSIwEQG4RC2dsU0cyRURHRTA3MTQAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6343,11 +5774,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:14:29 GMT + - Wed, 14 Apr 2021 05:55:54 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:14:29 GMT + - Wed, 21 Apr 2021 05:55:54 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6355,7 +5786,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0df9lYAAAAABAdYXM4vbhRI60qtB42NdGU0cyRURHRTA3MTAAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 06oN2YAAAAACzjBBoSyjaTrjhW0KN3GUMU0cyRURHRTA3MDcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6403,11 +5834,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:14:40 GMT + - Wed, 14 Apr 2021 05:56:04 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:14:40 GMT + - Wed, 21 Apr 2021 05:56:05 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6415,7 +5846,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0gP9lYAAAAABkLUKbdIn+QYp3btzbOtjsU0cyRURHRTA3MTMAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 09IN2YAAAAAA6acRJDJH6RqbYb5w2Mq2BU0cyRURHRTA3MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6463,11 +5894,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:14:50 GMT + - Wed, 14 Apr 2021 05:56:15 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:14:51 GMT + - Wed, 21 Apr 2021 05:56:15 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6475,7 +5906,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0iv9lYAAAAABUfk0AtxxVRbxOttgzT+6JU0cyRURHRTA3MDkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0/4N2YAAAAAB+DI69s+rKQJzyLJ7vex5pU0cyRURHRTA3MTEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6523,11 +5954,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:15:01 GMT + - Wed, 14 Apr 2021 05:56:26 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:15:01 GMT + - Wed, 21 Apr 2021 05:56:26 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6535,7 +5966,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0lf9lYAAAAAAQrmMikqDPTJjgJ4h3fB6LU0cyRURHRTA3MTUAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0CoR2YAAAAADbWpqRDPRKTr9n90wKfuM8U0cyRURHRTA3MTIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6583,11 +6014,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:15:11 GMT + - Wed, 14 Apr 2021 05:56:36 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:15:12 GMT + - Wed, 21 Apr 2021 05:56:36 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6595,7 +6026,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0oP9lYAAAAAB9e2DBoiUVQ4by0GE6z+pGU0cyRURHRTA3MTcAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0FIR2YAAAAADjr33B+5AMRIuOTH7XwSHHU0cyRURHRTA3MDcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6643,11 +6074,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:15:22 GMT + - Wed, 14 Apr 2021 05:56:46 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:15:22 GMT + - Wed, 21 Apr 2021 05:56:47 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6655,7 +6086,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0qv9lYAAAAACzFSMrscBWQ4qpYnkXfWGoU0cyRURHRTA3MjAAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0HoR2YAAAAAB6zzQVWu61Q4XXC4y/dBu+U0cyRURHRTA4MDkAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6703,11 +6134,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:15:33 GMT + - Wed, 14 Apr 2021 05:56:57 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:15:33 GMT + - Wed, 21 Apr 2021 05:56:57 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6715,7 +6146,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0tf9lYAAAAAA5Qg0gjU0fSI71hXT710/VU0cyRURHRTA3MjIAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0KYR2YAAAAABLXFSHNxVeR6geEiaEOmaJU0cyRURHRTA4MTcAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6763,11 +6194,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:15:43 GMT + - Wed, 14 Apr 2021 05:57:07 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:15:43 GMT + - Wed, 21 Apr 2021 05:57:08 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6775,7 +6206,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0v/9lYAAAAAAJPJ9U5eIdSqcglQYwDLF8U0cyRURHRTA4MTUAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0M4R2YAAAAABMe0ttQ8dXRLqkm2jL9KQ0U0cyRURHRTA3MjIAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK @@ -6804,14 +6235,14 @@ interactions: margin: 34px 0px 0px 0px }#message p { font-size: 13px; color: #000000; margin: 7px 0px 0px 0px }#errorref { font-size: 11px; color: #737373; margin-top: 41px }Microsoft

The request is blocked.

0yv9lYAAAAABNnRjyfatrSIzgZpLTrgsiU0cyRURHRTA4MDkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll
' + id=''message''>

The request is blocked.

0PoR2YAAAAABJL5guOkN+T55DnHIWvEhmU0cyRURHRTA4MTEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh
' headers: date: - - Thu, 01 Apr 2021 17:15:53 GMT + - Wed, 14 Apr 2021 05:57:18 GMT transfer-encoding: - chunked x-azure-ref: - - 0yv9lYAAAAABNnRjyfatrSIzgZpLTrgsiU0cyRURHRTA4MDkAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0PoR2YAAAAABJL5guOkN+T55DnHIWvEhmU0cyRURHRTA4MTEAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 403 message: Forbidden @@ -6859,11 +6290,11 @@ interactions: content-type: - text/html; charset=UTF-8 date: - - Thu, 01 Apr 2021 17:15:53 GMT + - Wed, 14 Apr 2021 05:57:18 GMT etag: - '"3147526947+gzip"' expires: - - Thu, 08 Apr 2021 17:15:54 GMT + - Wed, 21 Apr 2021 05:57:18 GMT last-modified: - Thu, 17 Oct 2019 07:18:26 GMT transfer-encoding: @@ -6871,7 +6302,7 @@ interactions: vary: - Accept-Encoding x-azure-ref: - - 0yv9lYAAAAAD/EZEyAow+RLlpikeanEfEU0cyRURHRTA4MDgAMjI2YTA1ODEtYzlkMi00YmM0LWIxZGItNzVhY2FiMDY2NDll + - 0PoR2YAAAAAB3VHvBpqJzSbekJeO4fIylU0cyRURHRTA3MTAAMjZkMTI1ZDktZDNjMC00ODMyLTg3MmYtYmE0ODdhYTVlYWZh status: code: 200 message: OK diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rules.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rules.yaml index 9e4dbc03727..ebc6729d709 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rules.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_custom_rules.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention"}, "customRules": {"rules": []}, "managedRules": - {}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Classic_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled", "mode": "Prevention"}, "customRules": + {"rules": []}, "managedRules": {}}}' headers: Accept: - application/json @@ -15,28 +15,25 @@ interactions: Content-Length: - '200' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g -n --mode User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:18 GMT + - Wed, 14 Apr 2021 05:39:06 GMT expires: - '-1' odata-version: @@ -50,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -69,24 +66,21 @@ interactions: - -g --policy-name -n --priority --action --rule-type --rate-limit-duration --rate-limit-threshold --defer User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:18 GMT + - Wed, 14 Apr 2021 05:39:06 GMT expires: - '-1' odata-version: @@ -107,21 +101,21 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": [{"name": "cli000003", "priority": 45, "enabledState": "Enabled", - "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": 5, "rateLimitThreshold": - 10000, "matchConditions": [{"matchVariable": "RequestHeader", "selector": "value", - "operator": "Contains", "matchValue": ["foo", "boo"]}, {"matchVariable": "RequestHeader", - "operator": "Contains", "matchValue": ["foo", "boo"]}], "action": "Block"}, - {"name": "cli000005", "priority": 75, "enabledState": "Enabled", "ruleType": - "RateLimitRule", "rateLimitDurationInMinutes": 1, "rateLimitThreshold": 10000, - "matchConditions": [{"matchVariable": "RequestUri", "operator": "Contains", + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": [{"name": "cli000003", + "priority": 45, "enabledState": "Enabled", "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": + 5, "rateLimitThreshold": 10000, "matchConditions": [{"matchVariable": "RequestHeader", + "selector": "value", "operator": "Contains", "matchValue": ["foo", "boo"]}, + {"matchVariable": "RequestHeader", "operator": "Contains", "matchValue": ["foo", + "boo"]}], "action": "Block"}, {"name": "cli000005", "priority": 75, "enabledState": + "Enabled", "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": 1, "rateLimitThreshold": + 10000, "matchConditions": [{"matchVariable": "RequestUri", "operator": "Contains", "negateCondition": true, "matchValue": ["foo", "boo"]}], "action": "Log"}, {"name": "cli000006", "priority": 40, "enabledState": "Enabled", "ruleType": "MatchRule", "matchConditions": [{"matchVariable": "RequestUri", "operator": "Contains", "matchValue": ["foo", "boo"]}], "action": "Log"}]}, "managedRules": {"managedRuleSets": - []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + []}}}' headers: Accept: - application/json @@ -132,16 +126,13 @@ interactions: Connection: - keep-alive Content-Length: - - '1229' + - '1228' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name -n --priority User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: @@ -157,7 +148,7 @@ interactions: content-type: - application/json date: - - Thu, 01 Apr 2021 17:01:21 GMT + - Wed, 14 Apr 2021 05:39:09 GMT expires: - '-1' pragma: @@ -169,25 +160,25 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1196' status: code: 400 message: Bad Request - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": [{"name": "cli000003", "priority": 45, "enabledState": "Enabled", - "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": 5, "rateLimitThreshold": - 10000, "matchConditions": [{"matchVariable": "RequestHeader", "selector": "value", - "operator": "Contains", "matchValue": ["foo", "boo"]}], "action": "Block"}, - {"name": "cli000005", "priority": 75, "enabledState": "Enabled", "ruleType": - "RateLimitRule", "rateLimitDurationInMinutes": 1, "rateLimitThreshold": 10000, - "matchConditions": [{"matchVariable": "RequestUri", "operator": "Contains", + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": [{"name": "cli000003", + "priority": 45, "enabledState": "Enabled", "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": + 5, "rateLimitThreshold": 10000, "matchConditions": [{"matchVariable": "RequestHeader", + "selector": "value", "operator": "Contains", "matchValue": ["foo", "boo"]}], + "action": "Block"}, {"name": "cli000005", "priority": 75, "enabledState": "Enabled", + "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": 1, "rateLimitThreshold": + 10000, "matchConditions": [{"matchVariable": "RequestUri", "operator": "Contains", "negateCondition": true, "matchValue": ["foo", "boo"]}], "action": "Log"}, {"name": "cli000006", "priority": 40, "enabledState": "Enabled", "ruleType": "MatchRule", "matchConditions": [{"matchVariable": "RequestUri", "operator": "Contains", "matchValue": ["foo", "boo"]}], "action": "Log"}]}, "managedRules": {"managedRuleSets": - []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + []}}}' headers: Accept: - application/json @@ -198,30 +189,27 @@ interactions: Connection: - keep-alive Content-Length: - - '1139' + - '1138' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name -n --priority User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000005","enabledState":"Enabled","priority":75,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":1,"rateLimitThreshold":10000,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":true,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000005","enabledState":"Enabled","priority":75,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":1,"rateLimitThreshold":10000,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":true,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1805' + - '1804' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:22 GMT + - Wed, 14 Apr 2021 05:39:09 GMT expires: - '-1' odata-version: @@ -239,7 +227,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1197' status: code: 200 message: OK @@ -257,24 +245,21 @@ interactions: ParameterSetName: - -g --policy-name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000005","enabledState":"Enabled","priority":75,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":1,"rateLimitThreshold":10000,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":true,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000005","enabledState":"Enabled","priority":75,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":1,"rateLimitThreshold":10000,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":true,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1805' + - '1804' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:23 GMT + - Wed, 14 Apr 2021 05:39:11 GMT expires: - '-1' odata-version: @@ -308,24 +293,21 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000005","enabledState":"Enabled","priority":75,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":1,"rateLimitThreshold":10000,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":true,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000005","enabledState":"Enabled","priority":75,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":1,"rateLimitThreshold":10000,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":true,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1805' + - '1804' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:24 GMT + - Wed, 14 Apr 2021 05:39:12 GMT expires: - '-1' odata-version: @@ -346,17 +328,17 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": [{"name": "cli000003", "priority": 45, "enabledState": "Enabled", - "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": 5, "rateLimitThreshold": - 10000, "matchConditions": [{"matchVariable": "RequestHeader", "selector": "value", - "operator": "Contains", "negateCondition": false, "matchValue": ["foo", "boo"], - "transforms": []}], "action": "Block"}, {"name": "cli000006", "priority": 40, - "enabledState": "Enabled", "ruleType": "MatchRule", "matchConditions": [{"matchVariable": - "RequestUri", "operator": "Contains", "negateCondition": false, "matchValue": - ["foo", "boo"], "transforms": []}], "action": "Log"}]}, "managedRules": {"managedRuleSets": - []}}, "sku": {"name": "Classic_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Classic_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": [{"name": "cli000003", + "priority": 45, "enabledState": "Enabled", "ruleType": "RateLimitRule", "rateLimitDurationInMinutes": + 5, "rateLimitThreshold": 10000, "matchConditions": [{"matchVariable": "RequestHeader", + "selector": "value", "operator": "Contains", "negateCondition": false, "matchValue": + ["foo", "boo"], "transforms": []}], "action": "Block"}, {"name": "cli000006", + "priority": 40, "enabledState": "Enabled", "ruleType": "MatchRule", "matchConditions": + [{"matchVariable": "RequestUri", "operator": "Contains", "negateCondition": + false, "matchValue": ["foo", "boo"], "transforms": []}], "action": "Log"}]}, + "managedRules": {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -367,30 +349,27 @@ interactions: Connection: - keep-alive Content-Length: - - '905' + - '904' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1475' + - '1474' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:25 GMT + - Wed, 14 Apr 2021 05:39:13 GMT expires: - '-1' odata-version: @@ -408,7 +387,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1194' status: code: 200 message: OK @@ -426,24 +405,21 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1475' + - '1474' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:27 GMT + - Wed, 14 Apr 2021 05:39:14 GMT expires: - '-1' odata-version: @@ -477,24 +453,21 @@ interactions: ParameterSetName: - -g --policy-name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Classic_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[{"name":"cli000003","enabledState":"Enabled","priority":45,"ruleType":"RateLimitRule","rateLimitDurationInMinutes":5,"rateLimitThreshold":10000,"action":"Block","matchConditions":[{"matchVariable":"RequestHeader","selector":"value","operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]},{"name":"cli000006","enabledState":"Enabled","priority":40,"ruleType":"MatchRule","rateLimitDurationInMinutes":null,"rateLimitThreshold":null,"action":"Log","matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["foo","boo"],"transforms":[]}]}]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1475' + - '1474' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 17:01:27 GMT + - Wed, 14 Apr 2021 05:39:15 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_managed_rules.yaml b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_managed_rules.yaml index 8b5cc9c1acc..db19774a559 100644 --- a/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_managed_rules.yaml +++ b/src/front-door/azext_front_door/tests/latest/recordings/test_waf_policy_managed_rules.yaml @@ -1,8 +1,8 @@ interactions: - request: - body: '{"location": "global", "properties": {"policySettings": {"enabledState": - "Enabled"}, "customRules": {"rules": []}, "managedRules": {}}, "sku": {"name": - "Premium_AzureFrontDoor"}}' + body: '{"location": "global", "sku": {"name": "Premium_AzureFrontDoor"}, "properties": + {"policySettings": {"enabledState": "Enabled"}, "customRules": {"rules": []}, + "managedRules": {}}}' headers: Accept: - application/json @@ -15,28 +15,25 @@ interactions: Content-Length: - '178' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - --resource-group --name --sku User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:40 GMT + - Wed, 14 Apr 2021 05:38:30 GMT expires: - '-1' odata-version: @@ -50,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -68,24 +65,21 @@ interactions: ParameterSetName: - -g --policy-name --type --version User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:41 GMT + - Wed, 14 Apr 2021 05:38:31 GMT expires: - '-1' odata-version: @@ -106,10 +100,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0"}]}}, "sku": {"name": "Premium_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Premium_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0"}]}}}' headers: Accept: - application/json @@ -120,30 +114,27 @@ interactions: Connection: - keep-alive Content-Length: - - '323' + - '322' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --version User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:42 GMT + - Wed, 14 Apr 2021 05:38:32 GMT expires: - '-1' odata-version: @@ -161,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 200 message: OK @@ -179,24 +170,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id --action --disabled User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:42 GMT + - Wed, 14 Apr 2021 05:38:32 GMT expires: - '-1' odata-version: @@ -217,12 +205,12 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": - "SQLI", "rules": [{"ruleId": "942100", "enabledState": "Disabled", "action": - "Block"}]}]}]}}, "sku": {"name": "Premium_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Premium_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "rules": + [{"ruleId": "942100", "enabledState": "Disabled", "action": "Block"}]}]}]}}}' headers: Accept: - application/json @@ -233,30 +221,27 @@ interactions: Connection: - keep-alive Content-Length: - - '472' + - '471' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id --action --disabled User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Disabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Disabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1053' + - '1052' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:43 GMT + - Wed, 14 Apr 2021 05:38:33 GMT expires: - '-1' odata-version: @@ -274,7 +259,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1197' status: code: 200 message: OK @@ -292,24 +277,21 @@ interactions: ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Disabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942100","enabledState":"Disabled","action":"Block","exclusions":[]}],"exclusions":[]}],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '1053' + - '1052' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:44 GMT + - Wed, 14 Apr 2021 05:38:34 GMT expires: - '-1' odata-version: @@ -330,11 +312,11 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", "exclusions": [], "ruleGroupOverrides": []}]}}, "sku": - {"name": "Premium_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Premium_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0", + "exclusions": [], "ruleGroupOverrides": []}]}}}' headers: Accept: - application/json @@ -345,30 +327,27 @@ interactions: Connection: - keep-alive Content-Length: - - '367' + - '366' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type --rule-group-id --rule-id User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:45 GMT + - Wed, 14 Apr 2021 05:38:35 GMT expires: - '-1' odata-version: @@ -386,7 +365,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1198' status: code: 200 message: OK @@ -404,24 +383,21 @@ interactions: ParameterSetName: - -g --policy-name User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:45 GMT + - Wed, 14 Apr 2021 05:38:37 GMT expires: - '-1' odata-version: @@ -455,24 +431,21 @@ interactions: ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleSetAction":null,"ruleGroupOverrides":[],"exclusions":[]}]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '924' + - '923' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:47 GMT + - Wed, 14 Apr 2021 05:38:38 GMT expires: - '-1' odata-version: @@ -493,9 +466,10 @@ interactions: code: 200 message: OK - request: - body: '{"location": "Global", "tags": {}, "properties": {"policySettings": {"enabledState": - "Enabled", "mode": "Prevention", "requestBodyCheck": "Disabled"}, "customRules": - {"rules": []}, "managedRules": {"managedRuleSets": []}}, "sku": {"name": "Premium_AzureFrontDoor"}}' + body: '{"location": "Global", "tags": {}, "sku": {"name": "Premium_AzureFrontDoor"}, + "properties": {"policySettings": {"enabledState": "Enabled", "mode": "Prevention", + "requestBodyCheck": "Enabled"}, "customRules": {"rules": []}, "managedRules": + {"managedRuleSets": []}}}' headers: Accept: - application/json @@ -506,30 +480,27 @@ interactions: Connection: - keep-alive Content-Length: - - '265' + - '264' Content-Type: - - application/json; charset=utf-8 + - application/json ParameterSetName: - -g --policy-name --type User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/cli000002?api-version=2020-11-01 response: body: - string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Disabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' + string: '{"name":"cli000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002","type":"Microsoft.Network/frontdoorwebapplicationfirewallpolicies","location":"Global","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"resourceState":"Enabled","provisioningState":"Succeeded","policySettings":{"enabledState":"Enabled","mode":"Prevention","redirectUrl":null,"customBlockResponseStatusCode":null,"customBlockResponseBody":null,"requestBodyCheck":"Enabled"},"customRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"frontendEndpointLinks":[],"routingRuleLinks":[],"securityPolicyLinks":[]}}' headers: cache-control: - no-cache content-length: - - '808' + - '807' content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:48 GMT + - Wed, 14 Apr 2021 05:38:39 GMT expires: - '-1' odata-version: @@ -547,7 +518,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1199' status: code: 200 message: OK @@ -563,10 +534,7 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.21.0 (MSI) - accept-language: - - en-US + - AZURECLI/2.21.0 azsdk-python-mgmt-frontdoor/1.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets?api-version=2020-11-01 response: @@ -971,7 +939,7 @@ interactions: content-type: - application/json; odata.metadata=minimal; odata.streaming=true date: - - Thu, 01 Apr 2021 16:59:49 GMT + - Wed, 14 Apr 2021 05:38:40 GMT expires: - '-1' odata-version: diff --git a/src/front-door/azext_front_door/tests/latest/test_front_door_byoc_scenarios.py b/src/front-door/azext_front_door/tests/latest/test_front_door_byoc_scenarios.py index 1daca7656ac..0905ea684b6 100644 --- a/src/front-door/azext_front_door/tests/latest/test_front_door_byoc_scenarios.py +++ b/src/front-door/azext_front_door/tests/latest/test_front_door_byoc_scenarios.py @@ -3,12 +3,12 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import unittest -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, JMESPathCheck) +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, JMESPathCheck, record_only) class FrontDoorBYOCScenarioTests(ScenarioTest): - @unittest.skip("The test is not working as existing enable-https's implemention has ignored the LROPoller which will cause failures in test TearDown") + @record_only() # This test requires resources in the specific subscription def test_frontend_endpoint_byoc_latest_version(self): resource_group = "bzhanafdtest" front_door = "frontdoorpstest2" @@ -22,7 +22,15 @@ def test_frontend_endpoint_byoc_latest_version(self): f'--vault-id /subscriptions/{self.get_subscription_id()}/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest ' '--secret-name frontdoorpstest2', checks=byoc_checks) - @unittest.skip("The test is not working as existing enable-https's implemention has ignored the LROPoller which will cause failures in test TearDown") + self.cmd(f'network front-door frontend-endpoint wait -f {front_door} -g {resource_group} -n {frontend_endpoint_name} ' + "--custom \"customHttpsProvisioningState=='Enabled'\"") + + self.cmd(f'network front-door frontend-endpoint disable-https -f {front_door} -g {resource_group} -n {frontend_endpoint_name}') + + self.cmd(f'network front-door frontend-endpoint wait -f {front_door} -g {resource_group} -n {frontend_endpoint_name} ' + "--custom \"customHttpsProvisioningState=='Disabled'\"") + + @record_only() # This test requires resources in the specific subscription def test_frontend_endpoint_byoc_specific_version(self): resource_group = "bzhanafdtest" front_door = "frontdoorpstest2" @@ -37,3 +45,11 @@ def test_frontend_endpoint_byoc_specific_version(self): f'--vault-id /subscriptions/{self.get_subscription_id()}/resourceGroups/bzhanafdtest/providers/Microsoft.KeyVault/vaults/bzhanbyostest ' '--secret-name frontdoorpstest2 ' '--secret-version d6b1f0ffd2a142efb2a8a89289802c77', checks=byoc_checks) + + self.cmd(f'network front-door frontend-endpoint wait -f {front_door} -g {resource_group} -n {frontend_endpoint_name} ' + "--custom \"customHttpsProvisioningState=='Enabled'\"") + + self.cmd(f'network front-door frontend-endpoint disable-https -f {front_door} -g {resource_group} -n {frontend_endpoint_name}') + + self.cmd(f'network front-door frontend-endpoint wait -f {front_door} -g {resource_group} -n {frontend_endpoint_name} ' + "--custom \"customHttpsProvisioningState=='Disabled'\"") diff --git a/src/front-door/azext_front_door/tests/latest/test_front_door_scenarios.py b/src/front-door/azext_front_door/tests/latest/test_front_door_scenarios.py index e49950db2e8..fc8af91ef4d 100644 --- a/src/front-door/azext_front_door/tests/latest/test_front_door_scenarios.py +++ b/src/front-door/azext_front_door/tests/latest/test_front_door_scenarios.py @@ -3,26 +3,41 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- import unittest -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, JMESPathCheck) +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, JMESPathCheck, record_only) class FrontDoorBasicScenarioTests(ScenarioTest): - @unittest.skip("The test is not working due to the service's limitation.") + # @record_only() # This test requires resources in the specific subscription @ResourceGroupPreparer(location='westus') def test_front_door_basic_scenario(self, resource_group): + front_endpoint_name = f"{self.create_random_name('clife', 16)}" + front_endpoint_host_name = f"{front_endpoint_name}.cdne2e.azfdtest.xyz" self.kwargs.update({ 'front_door': self.create_random_name('clifrontdoor', 20), - 'frontend_endpoint': 'www.mysite.com', - 'rule1': 'rule1', - 'rule2': 'rule2' + 'front_endpoint_host_name': front_endpoint_host_name, + "front_endpoint_name": front_endpoint_name }) - self.cmd('network front-door create -g {rg} -n {front_door} --backend-address 202.120.2.3') + + output = self.cmd('network front-door create -g {rg} -n {front_door} --backend-address 202.120.2.3').get_output_in_json() + + check_custom_domain_check = [JMESPathCheck('customDomainValidated', False), + JMESPathCheck('reason', "IncorrectMapping")] + self.cmd('network front-door check-custom-domain -g {rg} -n {front_door} --host-name {front_endpoint_host_name}', + checks=check_custom_domain_check) + + # Create CNAME record which point to front door CANME # Custom frontend endpoint must have a CNAME pointing to the default frontend host. # More information can be found in https://docs.microsoft.com/en-us/azure/frontdoor/front-door-custom-domain#create-a-cname-dns-record - # Since it's not easy to have a custom domain, we skip this test for now. - self.cmd('network front-door frontend-endpoint create -g {rg} -f {front_door} -n myclitest ' - '--host-name {frontend_endpoint} --session-affinity-enabled') + self.cmd(f'network dns record-set cname set-record -g azfdtest.xyz -n {front_endpoint_name} -z cdne2e.azfdtest.xyz -c {output["frontendEndpoints"][0]["hostName"]}') + + check_custom_domain_check = [JMESPathCheck('customDomainValidated', True), + JMESPathCheck('reason', None)] + self.cmd('network front-door check-custom-domain -g {rg} -n {front_door} --host-name {front_endpoint_host_name}', + checks=check_custom_domain_check) + + self.cmd('network front-door frontend-endpoint create -g {rg} -f {front_door} -n {front_endpoint_name} ' + '--host-name {front_endpoint_host_name} --session-affinity-enabled') @ResourceGroupPreparer(location='westus') def test_front_door_check_name_availability(self, resource_group): @@ -34,3 +49,11 @@ def test_front_door_check_name_availability(self, resource_group): unavailable_checks = [JMESPathCheck('nameAvailability', "Not Available")] self.cmd(f'network front-door check-name-availability --name {front_door_name} --resource-type Microsoft.Network/frontdoors', checks=unavailable_checks) + + @ResourceGroupPreparer(location='westus') + def test_front_door_purge_endpoint(self, resource_group): + front_door_name = self.create_random_name(prefix='frontdoor', length=20) + + self.cmd(f'network front-door create -g {resource_group} -n {front_door_name} --backend-address 202.120.2.3') + + self.cmd(f'network front-door purge-endpoint --name {front_door_name} -g {resource_group} --content-paths /test1/azure.json /test2/*') diff --git a/src/front-door/azext_front_door/tests/latest/test_rules_engine_scenarios.py b/src/front-door/azext_front_door/tests/latest/test_rules_engine_scenarios.py index ec2fddc4647..ca9648dd74b 100644 --- a/src/front-door/azext_front_door/tests/latest/test_rules_engine_scenarios.py +++ b/src/front-door/azext_front_door/tests/latest/test_rules_engine_scenarios.py @@ -103,12 +103,11 @@ def test_rules_engine_basic(self, resource_group): '--cache-duration P5DT1H30M30S', checks=[ self.check('length(rules[0].action.routeConfigurationOverride)', 5), - self.check('contains(rules[0].action.routeConfigurationOverride.odatatype, `FrontdoorForwardingConfiguration`)', True), self.check('contains(rules[0].action.routeConfigurationOverride.backendPool.id, `DefaultBackendPool`)', True), self.check('length(rules[0].action.routeConfigurationOverride.cacheConfiguration)', 4), self.check('rules[0].action.routeConfigurationOverride.cacheConfiguration.queryParameterStripDirective', 'StripOnly'), self.check('rules[0].action.routeConfigurationOverride.cacheConfiguration.queryParameters', 'a=b,x=y&p=q'), - self.check('rules[0].action.routeConfigurationOverride.cacheConfiguration.cacheDuration', '5 days, 1:30:30') + self.check('rules[0].action.routeConfigurationOverride.cacheConfiguration.cacheDuration', 'P5DT1H30M30S') ]) """Step 10: Add a Redirect Route Override action to the rule""" @@ -117,7 +116,6 @@ def test_rules_engine_basic(self, resource_group): 'RedirectRouteOverride --custom-path /redirect', checks=[ self.check('length(rules[1].action.routeConfigurationOverride)', 7), - self.check('contains(rules[1].action.routeConfigurationOverride.odatatype, `FrontdoorRedirectConfiguration`)', True), self.check('rules[1].action.routeConfigurationOverride.redirectProtocol', 'MatchRequest'), self.check('rules[1].action.routeConfigurationOverride.customPath', '/redirect') ]) diff --git a/src/front-door/azext_front_door/tests/latest/test_waf_scenarios.py b/src/front-door/azext_front_door/tests/latest/test_waf_scenarios.py index 16112a02777..7debf0ec4cb 100644 --- a/src/front-door/azext_front_door/tests/latest/test_waf_scenarios.py +++ b/src/front-door/azext_front_door/tests/latest/test_waf_scenarios.py @@ -7,10 +7,7 @@ from .frontdoor_test_util import WafScenarioMixin from knack.cli import CLIError -try: - from azext_front_door.vendored_sdks.models._models_py3 import ErrorResponseException -except (SyntaxError, ImportError): - from azext_front_door.vendored_sdks.models._models import ErrorResponseException +from azure.core.exceptions import (HttpResponseError) class WafTests(WafScenarioMixin, ScenarioTest): @@ -45,7 +42,7 @@ def test_waf_policy_basic(self, resource_group): result = self.cmd(cmd).get_output_in_json() self.assertEqual(result['name'], blockpolicy) self.assertEqual(result['policySettings']['mode'], "Prevention") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertIn('customRules', result) self.assertIn('managedRules', result) self.assertIn('id', result) @@ -56,7 +53,7 @@ def test_waf_policy_basic(self, resource_group): result = self.cmd(cmd).get_output_in_json() self.assertEqual(result['name'], standardskupolicy) self.assertEqual(result['policySettings']['mode'], "Prevention") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertIn('customRules', result) self.assertIn('managedRules', result) self.assertIn('id', result) @@ -68,7 +65,7 @@ def test_waf_policy_basic(self, resource_group): self.assertEqual(result['name'], detectionredirectpolicy) self.assertEqual(result['policySettings']['mode'], "Detection") self.assertEqual(result['policySettings']['redirectUrl'], "http://www.microsoft.com") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertIn('customRules', result) self.assertIn('managedRules', result) self.assertIn('id', result) @@ -81,7 +78,7 @@ def test_waf_policy_basic(self, resource_group): self.assertEqual(result['policySettings']['mode'], "Detection") self.assertEqual(result['policySettings']['redirectUrl'], "http://www.microsoft.com") self.assertEqual(result['policySettings']['customBlockResponseStatusCode'], 406) - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertIn('customRules', result) self.assertIn('managedRules', result) self.assertIn('id', result) @@ -96,7 +93,7 @@ def test_waf_policy_basic(self, resource_group): self.assertEqual(result['policySettings']['redirectUrl'], "http://www.microsoft.com") self.assertEqual(result['policySettings']['customBlockResponseStatusCode'], 406) self.assertEqual(result['policySettings']['customBlockResponseBody'], "YiBvZHk=") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertIn('customRules', result) self.assertIn('managedRules', result) self.assertIn('id', result) @@ -111,7 +108,7 @@ def test_waf_policy_basic(self, resource_group): self.assertEqual(result['policySettings']['redirectUrl'], None) self.assertEqual(result['policySettings']['customBlockResponseStatusCode'], None) self.assertEqual(result['policySettings']['customBlockResponseBody'], None) - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertIn('customRules', result) self.assertIn('managedRules', result) self.assertIn('id', result) @@ -123,7 +120,7 @@ def test_waf_policy_basic(self, resource_group): self.assertIn('managedRules', result) self.assertIn('id', result) self.assertEqual(result['policySettings']['enabledState'], "Enabled") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertEqual(result['sku']['name'], "Classic_AzureFrontDoor") cmd = 'az network front-door waf-policy update -g {resource_group} -n {blockpolicy} --tags test=best'.format(**locals()) @@ -141,7 +138,7 @@ def test_waf_policy_basic(self, resource_group): result = self.cmd(cmd).get_output_in_json() self.assertEqual(result['name'], blockpolicy) self.assertEqual(result['policySettings']['mode'], "Detection") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertEqual(result['sku']['name'], "Classic_AzureFrontDoor") cmd = 'az network front-door waf-policy update -g {resource_group} -n {blockpolicy} --mode prevention --redirect-url http://www.microsoft.com'.format(**locals()) @@ -156,7 +153,7 @@ def test_waf_policy_basic(self, resource_group): self.assertEqual(result['name'], blockpolicy) self.assertEqual(result['policySettings']['mode'], "Prevention") self.assertEqual(result['policySettings']['customBlockResponseStatusCode'], 406) - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertEqual(result['sku']['name'], "Classic_AzureFrontDoor") cmd = 'az network front-door waf-policy update -g {resource_group} -n {blockpolicy} --custom-block-response-status-code 405 --custom-block-response-body YiBvZHk='.format(**locals()) @@ -165,14 +162,14 @@ def test_waf_policy_basic(self, resource_group): self.assertEqual(result['policySettings']['mode'], "Prevention") self.assertEqual(result['policySettings']['customBlockResponseStatusCode'], 405) self.assertEqual(result['policySettings']['customBlockResponseBody'], "YiBvZHk=") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertEqual(result['sku']['name'], "Classic_AzureFrontDoor") cmd = 'az network front-door waf-policy update -g {resource_group} -n {blockpolicy} --disabled'.format(**locals()) result = self.cmd(cmd).get_output_in_json() self.assertEqual(result['name'], blockpolicy) self.assertEqual(result['policySettings']['enabledState'], "Disabled") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertEqual(result['sku']['name'], "Classic_AzureFrontDoor") cmd = 'az network front-door waf-policy show -g {resource_group} -n {blockpolicy}'.format(**locals()) @@ -181,7 +178,7 @@ def test_waf_policy_basic(self, resource_group): # spot check self.assertEqual(result['policySettings']['enabledState'], "Disabled") self.assertEqual(result['policySettings']['customBlockResponseStatusCode'], 405) - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertEqual(result['sku']['name'], "Classic_AzureFrontDoor") cmd = 'az network front-door waf-policy list -g {resource_group}'.format(**locals()) @@ -437,9 +434,9 @@ def test_waf_policy_custom_rules(self, resource_group): cmd = 'az network front-door waf-policy rule update -g {resource_group} --policy-name {policyName} -n {disabledRateLimit} --priority 75'.format(**locals()) result = self.cmd(cmd) self.fail() - except ErrorResponseException as e: + except HttpResponseError as e: # fails because of missing selector on RequestHeader - self.assertTrue("400" in str(e.response)) + self.assertTrue(e.status_code == 400) # delete problematic match condition cmd = 'az network front-door waf-policy rule match-condition remove -g {resource_group} --policy-name {policyName} -n {rateLimit} --index 1 --defer'.format(**locals()) @@ -487,7 +484,7 @@ def test_waf_exclusions(self, resource_group): result = self.cmd(cmd).get_output_in_json() self.assertEqual(result['name'], policyName) self.assertEqual(result['policySettings']['mode'], "Prevention") - self.assertEqual(result['policySettings']['requestBodyCheck'], "Disabled") + self.assertEqual(result['policySettings']['requestBodyCheck'], "Enabled") self.assertIn('customRules', result) self.assertIn('managedRules', result) self.assertIn('id', result) diff --git a/src/front-door/azext_front_door/vendored_sdks/__init__.py b/src/front-door/azext_front_door/vendored_sdks/__init__.py index c1ad53652dd..4afc05f018d 100644 --- a/src/front-door/azext_front_door/vendored_sdks/__init__.py +++ b/src/front-door/azext_front_door/vendored_sdks/__init__.py @@ -1,19 +1,19 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._configuration import FrontDoorManagementClientConfiguration from ._front_door_management_client import FrontDoorManagementClient -__all__ = ['FrontDoorManagementClient', 'FrontDoorManagementClientConfiguration'] - -from .version import VERSION +from ._version import VERSION __version__ = VERSION +__all__ = ['FrontDoorManagementClient'] +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/src/front-door/azext_front_door/vendored_sdks/_configuration.py b/src/front-door/azext_front_door/vendored_sdks/_configuration.py index 826e21351d0..a57a16253db 100644 --- a/src/front-door/azext_front_door/vendored_sdks/_configuration.py +++ b/src/front-door/azext_front_door/vendored_sdks/_configuration.py @@ -1,50 +1,70 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrestazure import AzureConfiguration -from .version import VERSION +from typing import TYPE_CHECKING +from azure.core.configuration import Configuration +from azure.core.pipeline import policies +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + + +class FrontDoorManagementClientConfiguration(Configuration): + """Configuration for FrontDoorManagementClient. -class FrontDoorManagementClientConfiguration(AzureConfiguration): - """Configuration for FrontDoorManagementClient Note that all parameters used to create this instance are saved as instance attributes. - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription credentials which uniquely - identify the Microsoft Azure subscription. The subscription ID forms part - of the URI for every service call. + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str - :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(FrontDoorManagementClientConfiguration, self).__init__(base_url) - - # Starting Autorest.Python 4.0.64, make connection pool activated by default - self.keep_alive = True + super(FrontDoorManagementClientConfiguration, self).__init__(**kwargs) - self.add_user_agent('azure-mgmt-frontdoor/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials + self.credential = credential self.subscription_id = subscription_id + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-frontdoor/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/front-door/azext_front_door/vendored_sdks/_front_door_management_client.py b/src/front-door/azext_front_door/vendored_sdks/_front_door_management_client.py index 84761d53435..2aad8ccc556 100644 --- a/src/front-door/azext_front_door/vendored_sdks/_front_door_management_client.py +++ b/src/front-door/azext_front_door/vendored_sdks/_front_door_management_client.py @@ -1,16 +1,21 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import SDKClient -from msrest import Serializer, Deserializer +from typing import TYPE_CHECKING + +from azure.mgmt.core import ARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential from ._configuration import FrontDoorManagementClientConfiguration from .operations import NetworkExperimentProfilesOperations @@ -28,78 +33,93 @@ from . import models -class FrontDoorManagementClient(SDKClient): - """FrontDoor Client +class FrontDoorManagementClient(object): + """FrontDoor Client. - :ivar config: Configuration for client. - :vartype config: FrontDoorManagementClientConfiguration - - :ivar network_experiment_profiles: NetworkExperimentProfiles operations + :ivar network_experiment_profiles: NetworkExperimentProfilesOperations operations :vartype network_experiment_profiles: azure.mgmt.frontdoor.operations.NetworkExperimentProfilesOperations - :ivar preconfigured_endpoints: PreconfiguredEndpoints operations + :ivar preconfigured_endpoints: PreconfiguredEndpointsOperations operations :vartype preconfigured_endpoints: azure.mgmt.frontdoor.operations.PreconfiguredEndpointsOperations - :ivar experiments: Experiments operations + :ivar experiments: ExperimentsOperations operations :vartype experiments: azure.mgmt.frontdoor.operations.ExperimentsOperations - :ivar reports: Reports operations + :ivar reports: ReportsOperations operations :vartype reports: azure.mgmt.frontdoor.operations.ReportsOperations - :ivar front_door_name_availability: FrontDoorNameAvailability operations + :ivar front_door_name_availability: FrontDoorNameAvailabilityOperations operations :vartype front_door_name_availability: azure.mgmt.frontdoor.operations.FrontDoorNameAvailabilityOperations - :ivar front_door_name_availability_with_subscription: FrontDoorNameAvailabilityWithSubscription operations + :ivar front_door_name_availability_with_subscription: FrontDoorNameAvailabilityWithSubscriptionOperations operations :vartype front_door_name_availability_with_subscription: azure.mgmt.frontdoor.operations.FrontDoorNameAvailabilityWithSubscriptionOperations - :ivar front_doors: FrontDoors operations + :ivar front_doors: FrontDoorsOperations operations :vartype front_doors: azure.mgmt.frontdoor.operations.FrontDoorsOperations - :ivar frontend_endpoints: FrontendEndpoints operations + :ivar frontend_endpoints: FrontendEndpointsOperations operations :vartype frontend_endpoints: azure.mgmt.frontdoor.operations.FrontendEndpointsOperations - :ivar endpoints: Endpoints operations + :ivar endpoints: EndpointsOperations operations :vartype endpoints: azure.mgmt.frontdoor.operations.EndpointsOperations - :ivar rules_engines: RulesEngines operations + :ivar rules_engines: RulesEnginesOperations operations :vartype rules_engines: azure.mgmt.frontdoor.operations.RulesEnginesOperations - :ivar policies: Policies operations + :ivar policies: PoliciesOperations operations :vartype policies: azure.mgmt.frontdoor.operations.PoliciesOperations - :ivar managed_rule_sets: ManagedRuleSets operations + :ivar managed_rule_sets: ManagedRuleSetsOperations operations :vartype managed_rule_sets: azure.mgmt.frontdoor.operations.ManagedRuleSetsOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The subscription credentials which uniquely - identify the Microsoft Azure subscription. The subscription ID forms part - of the URI for every service call. + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = FrontDoorManagementClientConfiguration(credentials, subscription_id, base_url) - super(FrontDoorManagementClient, self).__init__(self.config.credentials, self.config) + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = FrontDoorManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) self.network_experiment_profiles = NetworkExperimentProfilesOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.preconfigured_endpoints = PreconfiguredEndpointsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.experiments = ExperimentsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.reports = ReportsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.front_door_name_availability = FrontDoorNameAvailabilityOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.front_door_name_availability_with_subscription = FrontDoorNameAvailabilityWithSubscriptionOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.front_doors = FrontDoorsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.frontend_endpoints = FrontendEndpointsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.endpoints = EndpointsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.rules_engines = RulesEnginesOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.policies = PoliciesOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.managed_rule_sets = ManagedRuleSetsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> FrontDoorManagementClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/src/front-door/azext_front_door/vendored_sdks/version.py b/src/front-door/azext_front_door/vendored_sdks/_version.py similarity index 84% rename from src/front-door/azext_front_door/vendored_sdks/version.py rename to src/front-door/azext_front_door/vendored_sdks/_version.py index 3e682bbd5fb..c47f66669f1 100644 --- a/src/front-door/azext_front_door/vendored_sdks/version.py +++ b/src/front-door/azext_front_door/vendored_sdks/_version.py @@ -1,13 +1,9 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.3.0" - +VERSION = "1.0.0" diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/__init__.py b/src/front-door/azext_front_door/vendored_sdks/aio/__init__.py new file mode 100644 index 00000000000..879639cbd88 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._front_door_management_client import FrontDoorManagementClient +__all__ = ['FrontDoorManagementClient'] diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/_configuration.py b/src/front-door/azext_front_door/vendored_sdks/aio/_configuration.py new file mode 100644 index 00000000000..fa50fe396e7 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/_configuration.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from .._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + + +class FrontDoorManagementClientConfiguration(Configuration): + """Configuration for FrontDoorManagementClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(FrontDoorManagementClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-frontdoor/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs: Any + ) -> None: + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/_front_door_management_client.py b/src/front-door/azext_front_door/vendored_sdks/aio/_front_door_management_client.py new file mode 100644 index 00000000000..a8f63c5a942 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/_front_door_management_client.py @@ -0,0 +1,119 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, Optional, TYPE_CHECKING + +from azure.mgmt.core import AsyncARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +from ._configuration import FrontDoorManagementClientConfiguration +from .operations import NetworkExperimentProfilesOperations +from .operations import PreconfiguredEndpointsOperations +from .operations import ExperimentsOperations +from .operations import ReportsOperations +from .operations import FrontDoorNameAvailabilityOperations +from .operations import FrontDoorNameAvailabilityWithSubscriptionOperations +from .operations import FrontDoorsOperations +from .operations import FrontendEndpointsOperations +from .operations import EndpointsOperations +from .operations import RulesEnginesOperations +from .operations import PoliciesOperations +from .operations import ManagedRuleSetsOperations +from .. import models + + +class FrontDoorManagementClient(object): + """FrontDoor Client. + + :ivar network_experiment_profiles: NetworkExperimentProfilesOperations operations + :vartype network_experiment_profiles: azure.mgmt.frontdoor.aio.operations.NetworkExperimentProfilesOperations + :ivar preconfigured_endpoints: PreconfiguredEndpointsOperations operations + :vartype preconfigured_endpoints: azure.mgmt.frontdoor.aio.operations.PreconfiguredEndpointsOperations + :ivar experiments: ExperimentsOperations operations + :vartype experiments: azure.mgmt.frontdoor.aio.operations.ExperimentsOperations + :ivar reports: ReportsOperations operations + :vartype reports: azure.mgmt.frontdoor.aio.operations.ReportsOperations + :ivar front_door_name_availability: FrontDoorNameAvailabilityOperations operations + :vartype front_door_name_availability: azure.mgmt.frontdoor.aio.operations.FrontDoorNameAvailabilityOperations + :ivar front_door_name_availability_with_subscription: FrontDoorNameAvailabilityWithSubscriptionOperations operations + :vartype front_door_name_availability_with_subscription: azure.mgmt.frontdoor.aio.operations.FrontDoorNameAvailabilityWithSubscriptionOperations + :ivar front_doors: FrontDoorsOperations operations + :vartype front_doors: azure.mgmt.frontdoor.aio.operations.FrontDoorsOperations + :ivar frontend_endpoints: FrontendEndpointsOperations operations + :vartype frontend_endpoints: azure.mgmt.frontdoor.aio.operations.FrontendEndpointsOperations + :ivar endpoints: EndpointsOperations operations + :vartype endpoints: azure.mgmt.frontdoor.aio.operations.EndpointsOperations + :ivar rules_engines: RulesEnginesOperations operations + :vartype rules_engines: azure.mgmt.frontdoor.aio.operations.RulesEnginesOperations + :ivar policies: PoliciesOperations operations + :vartype policies: azure.mgmt.frontdoor.aio.operations.PoliciesOperations + :ivar managed_rule_sets: ManagedRuleSetsOperations operations + :vartype managed_rule_sets: azure.mgmt.frontdoor.aio.operations.ManagedRuleSetsOperations + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + base_url: Optional[str] = None, + **kwargs: Any + ) -> None: + if not base_url: + base_url = 'https://management.azure.com' + self._config = FrontDoorManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + self.network_experiment_profiles = NetworkExperimentProfilesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.preconfigured_endpoints = PreconfiguredEndpointsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.experiments = ExperimentsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.reports = ReportsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.front_door_name_availability = FrontDoorNameAvailabilityOperations( + self._client, self._config, self._serialize, self._deserialize) + self.front_door_name_availability_with_subscription = FrontDoorNameAvailabilityWithSubscriptionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.front_doors = FrontDoorsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.frontend_endpoints = FrontendEndpointsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.endpoints = EndpointsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.rules_engines = RulesEnginesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.policies = PoliciesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.managed_rule_sets = ManagedRuleSetsOperations( + self._client, self._config, self._serialize, self._deserialize) + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "FrontDoorManagementClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/__init__.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/__init__.py new file mode 100644 index 00000000000..e7a8086b356 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/__init__.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._network_experiment_profiles_operations import NetworkExperimentProfilesOperations +from ._preconfigured_endpoints_operations import PreconfiguredEndpointsOperations +from ._experiments_operations import ExperimentsOperations +from ._reports_operations import ReportsOperations +from ._front_door_name_availability_operations import FrontDoorNameAvailabilityOperations +from ._front_door_name_availability_with_subscription_operations import FrontDoorNameAvailabilityWithSubscriptionOperations +from ._front_doors_operations import FrontDoorsOperations +from ._frontend_endpoints_operations import FrontendEndpointsOperations +from ._endpoints_operations import EndpointsOperations +from ._rules_engines_operations import RulesEnginesOperations +from ._policies_operations import PoliciesOperations +from ._managed_rule_sets_operations import ManagedRuleSetsOperations + +__all__ = [ + 'NetworkExperimentProfilesOperations', + 'PreconfiguredEndpointsOperations', + 'ExperimentsOperations', + 'ReportsOperations', + 'FrontDoorNameAvailabilityOperations', + 'FrontDoorNameAvailabilityWithSubscriptionOperations', + 'FrontDoorsOperations', + 'FrontendEndpointsOperations', + 'EndpointsOperations', + 'RulesEnginesOperations', + 'PoliciesOperations', + 'ManagedRuleSetsOperations', +] diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_endpoints_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_endpoints_operations.py new file mode 100644 index 00000000000..33e2e524203 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_endpoints_operations.py @@ -0,0 +1,164 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class EndpointsOperations: + """EndpointsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _purge_content_initial( + self, + resource_group_name: str, + front_door_name: str, + content_file_paths: "_models.PurgeParameters", + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._purge_content_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(content_file_paths, 'PurgeParameters') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _purge_content_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge'} # type: ignore + + async def begin_purge_content( + self, + resource_group_name: str, + front_door_name: str, + content_file_paths: "_models.PurgeParameters", + **kwargs + ) -> AsyncLROPoller[None]: + """Removes a content from Front Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param content_file_paths: The path to the content to be purged. Path can be a full URL, e.g. + '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. + '/pictures/*' which removes all folders and files in the directory. + :type content_file_paths: ~azure.mgmt.frontdoor.models.PurgeParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._purge_content_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + content_file_paths=content_file_paths, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_purge_content.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_experiments_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_experiments_operations.py new file mode 100644 index 00000000000..8a1ff2ad924 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_experiments_operations.py @@ -0,0 +1,583 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ExperimentsOperations: + """ExperimentsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_profile( + self, + resource_group_name: str, + profile_name: str, + **kwargs + ) -> AsyncIterable["_models.ExperimentList"]: + """Gets a list of Experiments. + + Gets a list of Experiments. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ExperimentList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.ExperimentList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_profile.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ExperimentList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments'} # type: ignore + + async def get( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + **kwargs + ) -> "_models.Experiment": + """Gets an Experiment by ExperimentName. + + Gets an Experiment by ExperimentName. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the Experiment. + :type experiment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Experiment, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.Experiment + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Experiment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + parameters: "_models.Experiment", + **kwargs + ) -> "_models.Experiment": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'Experiment') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Experiment', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Experiment', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Experiment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + parameters: "_models.Experiment", + **kwargs + ) -> AsyncLROPoller["_models.Experiment"]: + """Creates or updates an Experiment. + + Creates or updates an Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the Experiment. + :type experiment_name: str + :param parameters: The Experiment resource. + :type parameters: ~azure.mgmt.frontdoor.models.Experiment + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Experiment or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.frontdoor.models.Experiment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Experiment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + parameters: "_models.ExperimentUpdateModel", + **kwargs + ) -> "_models.Experiment": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ExperimentUpdateModel') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Experiment', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Experiment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + parameters: "_models.ExperimentUpdateModel", + **kwargs + ) -> AsyncLROPoller["_models.Experiment"]: + """Updates an Experiment by Experiment id. + + Updates an Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the Experiment. + :type experiment_name: str + :param parameters: The Experiment Update Model. + :type parameters: ~azure.mgmt.frontdoor.models.ExperimentUpdateModel + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Experiment or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.frontdoor.models.Experiment] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Experiment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes an Experiment. + + Deletes an Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the Experiment. + :type experiment_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_operations.py new file mode 100644 index 00000000000..1adeeddb5b9 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_operations.py @@ -0,0 +1,96 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class FrontDoorNameAvailabilityOperations: + """FrontDoorNameAvailabilityOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def check( + self, + check_front_door_name_availability_input: "_models.CheckNameAvailabilityInput", + **kwargs + ) -> "_models.CheckNameAvailabilityOutput": + """Check the availability of a Front Door resource name. + + :param check_front_door_name_availability_input: Input to check. + :type check_front_door_name_availability_input: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CheckNameAvailabilityOutput, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityOutput"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.check.metadata['url'] # type: ignore + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('CheckNameAvailabilityOutput', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + check.metadata = {'url': '/providers/Microsoft.Network/checkFrontDoorNameAvailability'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_with_subscription_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_with_subscription_operations.py new file mode 100644 index 00000000000..e72ded6a7d4 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_door_name_availability_with_subscription_operations.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class FrontDoorNameAvailabilityWithSubscriptionOperations: + """FrontDoorNameAvailabilityWithSubscriptionOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def check( + self, + check_front_door_name_availability_input: "_models.CheckNameAvailabilityInput", + **kwargs + ) -> "_models.CheckNameAvailabilityOutput": + """Check the availability of a Front Door subdomain. + + :param check_front_door_name_availability_input: Input to check. + :type check_front_door_name_availability_input: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CheckNameAvailabilityOutput, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityOutput"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.check.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('CheckNameAvailabilityOutput', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + check.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_doors_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_doors_operations.py new file mode 100644 index 00000000000..bc689522216 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_front_doors_operations.py @@ -0,0 +1,552 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class FrontDoorsOperations: + """FrontDoorsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs + ) -> AsyncIterable["_models.FrontDoorListResult"]: + """Lists all of the Front Doors within an Azure subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FrontDoorListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.FrontDoorListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoorListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('FrontDoorListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs + ) -> AsyncIterable["_models.FrontDoorListResult"]: + """Lists all of the Front Doors within a resource group under a subscription. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FrontDoorListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.FrontDoorListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoorListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('FrontDoorListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'} # type: ignore + + async def get( + self, + resource_group_name: str, + front_door_name: str, + **kwargs + ) -> "_models.FrontDoor": + """Gets a Front Door with the specified Front Door name under the specified subscription and + resource group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: FrontDoor, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.FrontDoor + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoor"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('FrontDoor', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + front_door_name: str, + front_door_parameters: "_models.FrontDoor", + **kwargs + ) -> "_models.FrontDoor": + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoor"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(front_door_parameters, 'FrontDoor') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('FrontDoor', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('FrontDoor', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('FrontDoor', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + front_door_name: str, + front_door_parameters: "_models.FrontDoor", + **kwargs + ) -> AsyncLROPoller["_models.FrontDoor"]: + """Creates a new Front Door with a Front Door name under the specified subscription and resource + group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param front_door_parameters: Front Door properties needed to create a new Front Door. + :type front_door_parameters: ~azure.mgmt.frontdoor.models.FrontDoor + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either FrontDoor or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.frontdoor.models.FrontDoor] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoor"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + front_door_parameters=front_door_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('FrontDoor', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + front_door_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + front_door_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes an existing Front Door with the specified parameters. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore + + async def validate_custom_domain( + self, + resource_group_name: str, + front_door_name: str, + custom_domain_properties: "_models.ValidateCustomDomainInput", + **kwargs + ) -> "_models.ValidateCustomDomainOutput": + """Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in + DNS. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param custom_domain_properties: Custom domain to be validated. + :type custom_domain_properties: ~azure.mgmt.frontdoor.models.ValidateCustomDomainInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ValidateCustomDomainOutput, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.ValidateCustomDomainOutput + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ValidateCustomDomainOutput"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.validate_custom_domain.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(custom_domain_properties, 'ValidateCustomDomainInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ValidateCustomDomainOutput', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + validate_custom_domain.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_frontend_endpoints_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_frontend_endpoints_operations.py new file mode 100644 index 00000000000..c337c814d3d --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_frontend_endpoints_operations.py @@ -0,0 +1,427 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class FrontendEndpointsOperations: + """FrontendEndpointsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_front_door( + self, + resource_group_name: str, + front_door_name: str, + **kwargs + ) -> AsyncIterable["_models.FrontendEndpointsListResult"]: + """Lists all of the frontend endpoints within a Front Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FrontendEndpointsListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.FrontendEndpointsListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontendEndpointsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_front_door.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('FrontendEndpointsListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'} # type: ignore + + async def get( + self, + resource_group_name: str, + front_door_name: str, + frontend_endpoint_name: str, + **kwargs + ) -> "_models.FrontendEndpoint": + """Gets a Frontend endpoint with the specified name within the specified Front Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param frontend_endpoint_name: Name of the Frontend endpoint which is unique within the Front + Door. + :type frontend_endpoint_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: FrontendEndpoint, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.FrontendEndpoint + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontendEndpoint"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('FrontendEndpoint', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'} # type: ignore + + async def _enable_https_initial( + self, + resource_group_name: str, + front_door_name: str, + frontend_endpoint_name: str, + custom_https_configuration: "_models.CustomHttpsConfiguration", + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._enable_https_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(custom_https_configuration, 'CustomHttpsConfiguration') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _enable_https_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps'} # type: ignore + + async def begin_enable_https( + self, + resource_group_name: str, + front_door_name: str, + frontend_endpoint_name: str, + custom_https_configuration: "_models.CustomHttpsConfiguration", + **kwargs + ) -> AsyncLROPoller[None]: + """Enables a frontendEndpoint for HTTPS traffic. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param frontend_endpoint_name: Name of the Frontend endpoint which is unique within the Front + Door. + :type frontend_endpoint_name: str + :param custom_https_configuration: The configuration specifying how to enable HTTPS. + :type custom_https_configuration: ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._enable_https_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + frontend_endpoint_name=frontend_endpoint_name, + custom_https_configuration=custom_https_configuration, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_enable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps'} # type: ignore + + async def _disable_https_initial( + self, + resource_group_name: str, + front_door_name: str, + frontend_endpoint_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + # Construct URL + url = self._disable_https_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _disable_https_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps'} # type: ignore + + async def begin_disable_https( + self, + resource_group_name: str, + front_door_name: str, + frontend_endpoint_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Disables a frontendEndpoint for HTTPS traffic. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param frontend_endpoint_name: Name of the Frontend endpoint which is unique within the Front + Door. + :type frontend_endpoint_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._disable_https_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + frontend_endpoint_name=frontend_endpoint_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_disable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_managed_rule_sets_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_managed_rule_sets_operations.py new file mode 100644 index 00000000000..d682ff45f78 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_managed_rule_sets_operations.py @@ -0,0 +1,109 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ManagedRuleSetsOperations: + """ManagedRuleSetsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs + ) -> AsyncIterable["_models.ManagedRuleSetDefinitionList"]: + """Lists all available managed rule sets. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ManagedRuleSetDefinitionList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.ManagedRuleSetDefinitionList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedRuleSetDefinitionList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ManagedRuleSetDefinitionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_network_experiment_profiles_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_network_experiment_profiles_operations.py new file mode 100644 index 00000000000..ea3bea371bd --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_network_experiment_profiles_operations.py @@ -0,0 +1,623 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class NetworkExperimentProfilesOperations: + """NetworkExperimentProfilesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs + ) -> AsyncIterable["_models.ProfileList"]: + """Gets a list of Network Experiment Profiles under a subscription. + + Gets a list of Network Experiment Profiles under a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProfileList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.ProfileList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProfileList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ProfileList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/NetworkExperimentProfiles'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs + ) -> AsyncIterable["_models.ProfileList"]: + """Gets a list of Network Experiment Profiles within a resource group under a subscription. + + Gets a list of Network Experiment Profiles within a resource group under a subscription. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProfileList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.ProfileList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProfileList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ProfileList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles'} # type: ignore + + async def get( + self, + resource_group_name: str, + profile_name: str, + **kwargs + ) -> "_models.Profile": + """Gets an NetworkExperiment Profile by ProfileName. + + Gets an NetworkExperiment Profile by ProfileName. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Profile, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.Profile + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Profile', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + async def _create_or_update_initial( + self, + profile_name: str, + resource_group_name: str, + parameters: "_models.Profile", + **kwargs + ) -> "_models.Profile": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'Profile') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Profile', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Profile', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Profile', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + async def begin_create_or_update( + self, + profile_name: str, + resource_group_name: str, + parameters: "_models.Profile", + **kwargs + ) -> AsyncLROPoller["_models.Profile"]: + """Creates an NetworkExperiment Profile. + + Creates an NetworkExperiment Profile. + + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param parameters: An Network Experiment Profile. + :type parameters: ~azure.mgmt.frontdoor.models.Profile + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Profile or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.frontdoor.models.Profile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + profile_name=profile_name, + resource_group_name=resource_group_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Profile', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + profile_name: str, + parameters: "_models.ProfileUpdateModel", + **kwargs + ) -> "_models.Profile": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ProfileUpdateModel') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Profile', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Profile', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + profile_name: str, + parameters: "_models.ProfileUpdateModel", + **kwargs + ) -> AsyncLROPoller["_models.Profile"]: + """Updates an NetworkExperimentProfiles by NetworkExperimentProfile name. + + Updates an NetworkExperimentProfiles. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param parameters: The Profile Update Model. + :type parameters: ~azure.mgmt.frontdoor.models.ProfileUpdateModel + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Profile or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.frontdoor.models.Profile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Profile', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + profile_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + profile_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes an NetworkExperiment Profile by ProfileName. + + Deletes an NetworkExperiment Profile by ProfileName. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_policies_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_policies_operations.py new file mode 100644 index 00000000000..0d3644f7298 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_policies_operations.py @@ -0,0 +1,412 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class PoliciesOperations: + """PoliciesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + **kwargs + ) -> AsyncIterable["_models.WebApplicationFirewallPolicyList"]: + """Lists all of the protection policies within a resource group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WebApplicationFirewallPolicyList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicyList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicyList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WebApplicationFirewallPolicyList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'} # type: ignore + + async def get( + self, + resource_group_name: str, + policy_name: str, + **kwargs + ) -> "_models.WebApplicationFirewallPolicy": + """Retrieve protection policy with specified name within a resource group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param policy_name: The name of the Web Application Firewall Policy. + :type policy_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WebApplicationFirewallPolicy, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + policy_name: str, + parameters: "_models.WebApplicationFirewallPolicy", + **kwargs + ) -> "_models.WebApplicationFirewallPolicy": + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'WebApplicationFirewallPolicy') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + policy_name: str, + parameters: "_models.WebApplicationFirewallPolicy", + **kwargs + ) -> AsyncLROPoller["_models.WebApplicationFirewallPolicy"]: + """Create or update policy with specified rule set name within a resource group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param policy_name: The name of the Web Application Firewall Policy. + :type policy_name: str + :param parameters: Policy to be created. + :type parameters: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either WebApplicationFirewallPolicy or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicy"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + policy_name=policy_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + policy_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + policy_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes Policy. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param policy_name: The name of the Web Application Firewall Policy. + :type policy_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + policy_name=policy_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_preconfigured_endpoints_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_preconfigured_endpoints_operations.py new file mode 100644 index 00000000000..365e002a207 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_preconfigured_endpoints_operations.py @@ -0,0 +1,119 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class PreconfiguredEndpointsOperations: + """PreconfiguredEndpointsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + profile_name: str, + **kwargs + ) -> AsyncIterable["_models.PreconfiguredEndpointList"]: + """Gets a list of Preconfigured Endpoints. + + Gets a list of Preconfigured Endpoints. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PreconfiguredEndpointList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.PreconfiguredEndpointList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.PreconfiguredEndpointList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('PreconfiguredEndpointList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/PreconfiguredEndpoints'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_reports_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_reports_operations.py new file mode 100644 index 00000000000..fa4398afee3 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_reports_operations.py @@ -0,0 +1,214 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ReportsOperations: + """ReportsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get_latency_scorecards( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + aggregation_interval: Union[str, "_models.LatencyScorecardAggregationInterval"], + end_date_time_utc: Optional[str] = None, + country: Optional[str] = None, + **kwargs + ) -> "_models.LatencyScorecard": + """Gets a Latency Scorecard for a given Experiment. + + Gets a Latency Scorecard for a given Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the Experiment. + :type experiment_name: str + :param aggregation_interval: The aggregation interval of the Latency Scorecard. + :type aggregation_interval: str or ~azure.mgmt.frontdoor.models.LatencyScorecardAggregationInterval + :param end_date_time_utc: The end DateTime of the Latency Scorecard in UTC. + :type end_date_time_utc: str + :param country: The country associated with the Latency Scorecard. Values are country ISO codes + as specified here- https://www.iso.org/iso-3166-country-codes.html. + :type country: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: LatencyScorecard, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.LatencyScorecard + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.LatencyScorecard"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + # Construct URL + url = self.get_latency_scorecards.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if end_date_time_utc is not None: + query_parameters['endDateTimeUTC'] = self._serialize.query("end_date_time_utc", end_date_time_utc, 'str') + if country is not None: + query_parameters['country'] = self._serialize.query("country", country, 'str') + query_parameters['aggregationInterval'] = self._serialize.query("aggregation_interval", aggregation_interval, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('LatencyScorecard', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_latency_scorecards.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard'} # type: ignore + + async def get_timeseries( + self, + resource_group_name: str, + profile_name: str, + experiment_name: str, + start_date_time_utc: datetime.datetime, + end_date_time_utc: datetime.datetime, + aggregation_interval: Union[str, "_models.TimeseriesAggregationInterval"], + timeseries_type: Union[str, "_models.TimeseriesType"], + endpoint: Optional[str] = None, + country: Optional[str] = None, + **kwargs + ) -> "_models.Timeseries": + """Gets a Timeseries for a given Experiment. + + Gets a Timeseries for a given Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param profile_name: The Profile identifier associated with the Tenant and Partner. + :type profile_name: str + :param experiment_name: The Experiment identifier associated with the Experiment. + :type experiment_name: str + :param start_date_time_utc: The start DateTime of the Timeseries in UTC. + :type start_date_time_utc: ~datetime.datetime + :param end_date_time_utc: The end DateTime of the Timeseries in UTC. + :type end_date_time_utc: ~datetime.datetime + :param aggregation_interval: The aggregation interval of the Timeseries. + :type aggregation_interval: str or ~azure.mgmt.frontdoor.models.TimeseriesAggregationInterval + :param timeseries_type: The type of Timeseries. + :type timeseries_type: str or ~azure.mgmt.frontdoor.models.TimeseriesType + :param endpoint: The specific endpoint. + :type endpoint: str + :param country: The country associated with the Timeseries. Values are country ISO codes as + specified here- https://www.iso.org/iso-3166-country-codes.html. + :type country: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Timeseries, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.Timeseries + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Timeseries"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + + # Construct URL + url = self.get_timeseries.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['startDateTimeUTC'] = self._serialize.query("start_date_time_utc", start_date_time_utc, 'iso-8601') + query_parameters['endDateTimeUTC'] = self._serialize.query("end_date_time_utc", end_date_time_utc, 'iso-8601') + query_parameters['aggregationInterval'] = self._serialize.query("aggregation_interval", aggregation_interval, 'str') + query_parameters['timeseriesType'] = self._serialize.query("timeseries_type", timeseries_type, 'str') + if endpoint is not None: + query_parameters['endpoint'] = self._serialize.query("endpoint", endpoint, 'str') + if country is not None: + query_parameters['country'] = self._serialize.query("country", country, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Timeseries', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_timeseries.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/aio/operations/_rules_engines_operations.py b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_rules_engines_operations.py new file mode 100644 index 00000000000..3718b619f23 --- /dev/null +++ b/src/front-door/azext_front_door/vendored_sdks/aio/operations/_rules_engines_operations.py @@ -0,0 +1,439 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class RulesEnginesOperations: + """RulesEnginesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_front_door( + self, + resource_group_name: str, + front_door_name: str, + **kwargs + ) -> AsyncIterable["_models.RulesEngineListResult"]: + """Lists all of the Rules Engine Configurations within a Front Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RulesEngineListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.frontdoor.models.RulesEngineListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_front_door.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('RulesEngineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines'} # type: ignore + + async def get( + self, + resource_group_name: str, + front_door_name: str, + rules_engine_name: str, + **kwargs + ) -> "_models.RulesEngine": + """Gets a Rules Engine Configuration with the specified name within the specified Front Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param rules_engine_name: Name of the Rules Engine which is unique within the Front Door. + :type rules_engine_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RulesEngine, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.RulesEngine + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('RulesEngine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + front_door_name: str, + rules_engine_name: str, + rules_engine_parameters: "_models.RulesEngine", + **kwargs + ) -> "_models.RulesEngine": + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(rules_engine_parameters, 'RulesEngine') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('RulesEngine', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('RulesEngine', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('RulesEngine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + front_door_name: str, + rules_engine_name: str, + rules_engine_parameters: "_models.RulesEngine", + **kwargs + ) -> AsyncLROPoller["_models.RulesEngine"]: + """Creates a new Rules Engine Configuration with the specified name within the specified Front + Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param rules_engine_name: Name of the Rules Engine which is unique within the Front Door. + :type rules_engine_name: str + :param rules_engine_parameters: Rules Engine Configuration properties needed to create a new + Rules Engine Configuration. + :type rules_engine_parameters: ~azure.mgmt.frontdoor.models.RulesEngine + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either RulesEngine or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.frontdoor.models.RulesEngine] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngine"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + rules_engine_name=rules_engine_name, + rules_engine_parameters=rules_engine_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RulesEngine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + front_door_name: str, + rules_engine_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + front_door_name: str, + rules_engine_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes an existing Rules Engine Configuration with the specified parameters. + + :param resource_group_name: Name of the Resource group within the Azure subscription. + :type resource_group_name: str + :param front_door_name: Name of the Front Door which is globally unique. + :type front_door_name: str + :param rules_engine_name: Name of the Rules Engine which is unique within the Front Door. + :type rules_engine_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + rules_engine_name=rules_engine_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/models/__init__.py b/src/front-door/azext_front_door/vendored_sdks/models/__init__.py index bb39a347cbd..8b3787e077a 100644 --- a/src/front-door/azext_front_door/vendored_sdks/models/__init__.py +++ b/src/front-door/azext_front_door/vendored_sdks/models/__init__.py @@ -1,12 +1,9 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- try: @@ -14,8 +11,9 @@ from ._models_py3 import Backend from ._models_py3 import BackendPool from ._models_py3 import BackendPoolListResult - from ._models_py3 import BackendPoolsSettings + from ._models_py3 import BackendPoolProperties from ._models_py3 import BackendPoolUpdateParameters + from ._models_py3 import BackendPoolsSettings from ._models_py3 import CacheConfiguration from ._models_py3 import CheckNameAvailabilityInput from ._models_py3 import CheckNameAvailabilityOutput @@ -25,25 +23,32 @@ from ._models_py3 import Endpoint from ._models_py3 import Error from ._models_py3 import ErrorDetails - from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import ErrorResponse from ._models_py3 import Experiment + from ._models_py3 import ExperimentList from ._models_py3 import ExperimentUpdateModel from ._models_py3 import ForwardingConfiguration from ._models_py3 import FrontDoor + from ._models_py3 import FrontDoorListResult + from ._models_py3 import FrontDoorProperties from ._models_py3 import FrontDoorUpdateParameters from ._models_py3 import FrontendEndpoint from ._models_py3 import FrontendEndpointLink + from ._models_py3 import FrontendEndpointProperties from ._models_py3 import FrontendEndpointUpdateParameters from ._models_py3 import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + from ._models_py3 import FrontendEndpointsListResult from ._models_py3 import HeaderAction from ._models_py3 import HealthProbeSettingsListResult from ._models_py3 import HealthProbeSettingsModel + from ._models_py3 import HealthProbeSettingsProperties from ._models_py3 import HealthProbeSettingsUpdateParameters from ._models_py3 import KeyVaultCertificateSourceParametersVault from ._models_py3 import LatencyMetric from ._models_py3 import LatencyScorecard from ._models_py3 import LoadBalancingSettingsListResult from ._models_py3 import LoadBalancingSettingsModel + from ._models_py3 import LoadBalancingSettingsProperties from ._models_py3 import LoadBalancingSettingsUpdateParameters from ._models_py3 import ManagedRuleDefinition from ._models_py3 import ManagedRuleExclusion @@ -52,11 +57,14 @@ from ._models_py3 import ManagedRuleOverride from ._models_py3 import ManagedRuleSet from ._models_py3 import ManagedRuleSetDefinition + from ._models_py3 import ManagedRuleSetDefinitionList from ._models_py3 import ManagedRuleSetList from ._models_py3 import MatchCondition from ._models_py3 import PolicySettings from ._models_py3 import PreconfiguredEndpoint + from ._models_py3 import PreconfiguredEndpointList from ._models_py3 import Profile + from ._models_py3 import ProfileList from ._models_py3 import ProfileUpdateModel from ._models_py3 import PurgeParameters from ._models_py3 import RedirectConfiguration @@ -65,11 +73,14 @@ from ._models_py3 import RoutingRule from ._models_py3 import RoutingRuleLink from ._models_py3 import RoutingRuleListResult + from ._models_py3 import RoutingRuleProperties from ._models_py3 import RoutingRuleUpdateParameters from ._models_py3 import RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink from ._models_py3 import RulesEngine from ._models_py3 import RulesEngineAction + from ._models_py3 import RulesEngineListResult from ._models_py3 import RulesEngineMatchCondition + from ._models_py3 import RulesEngineProperties from ._models_py3 import RulesEngineRule from ._models_py3 import RulesEngineUpdateParameters from ._models_py3 import SecurityPolicyLink @@ -81,137 +92,147 @@ from ._models_py3 import ValidateCustomDomainInput from ._models_py3 import ValidateCustomDomainOutput from ._models_py3 import WebApplicationFirewallPolicy + from ._models_py3 import WebApplicationFirewallPolicyList except (SyntaxError, ImportError): - from ._models import AzureAsyncOperationResult - from ._models import Backend - from ._models import BackendPool - from ._models import BackendPoolListResult - from ._models import BackendPoolsSettings - from ._models import BackendPoolUpdateParameters - from ._models import CacheConfiguration - from ._models import CheckNameAvailabilityInput - from ._models import CheckNameAvailabilityOutput - from ._models import CustomHttpsConfiguration - from ._models import CustomRule - from ._models import CustomRuleList - from ._models import Endpoint - from ._models import Error - from ._models import ErrorDetails - from ._models import ErrorResponse, ErrorResponseException - from ._models import Experiment - from ._models import ExperimentUpdateModel - from ._models import ForwardingConfiguration - from ._models import FrontDoor - from ._models import FrontDoorUpdateParameters - from ._models import FrontendEndpoint - from ._models import FrontendEndpointLink - from ._models import FrontendEndpointUpdateParameters - from ._models import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - from ._models import HeaderAction - from ._models import HealthProbeSettingsListResult - from ._models import HealthProbeSettingsModel - from ._models import HealthProbeSettingsUpdateParameters - from ._models import KeyVaultCertificateSourceParametersVault - from ._models import LatencyMetric - from ._models import LatencyScorecard - from ._models import LoadBalancingSettingsListResult - from ._models import LoadBalancingSettingsModel - from ._models import LoadBalancingSettingsUpdateParameters - from ._models import ManagedRuleDefinition - from ._models import ManagedRuleExclusion - from ._models import ManagedRuleGroupDefinition - from ._models import ManagedRuleGroupOverride - from ._models import ManagedRuleOverride - from ._models import ManagedRuleSet - from ._models import ManagedRuleSetDefinition - from ._models import ManagedRuleSetList - from ._models import MatchCondition - from ._models import PolicySettings - from ._models import PreconfiguredEndpoint - from ._models import Profile - from ._models import ProfileUpdateModel - from ._models import PurgeParameters - from ._models import RedirectConfiguration - from ._models import Resource - from ._models import RouteConfiguration - from ._models import RoutingRule - from ._models import RoutingRuleLink - from ._models import RoutingRuleListResult - from ._models import RoutingRuleUpdateParameters - from ._models import RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink - from ._models import RulesEngine - from ._models import RulesEngineAction - from ._models import RulesEngineMatchCondition - from ._models import RulesEngineRule - from ._models import RulesEngineUpdateParameters - from ._models import SecurityPolicyLink - from ._models import Sku - from ._models import SubResource - from ._models import TagsObject - from ._models import Timeseries - from ._models import TimeseriesDataPoint - from ._models import ValidateCustomDomainInput - from ._models import ValidateCustomDomainOutput - from ._models import WebApplicationFirewallPolicy -from ._paged_models import ExperimentPaged -from ._paged_models import FrontDoorPaged -from ._paged_models import FrontendEndpointPaged -from ._paged_models import ManagedRuleSetDefinitionPaged -from ._paged_models import PreconfiguredEndpointPaged -from ._paged_models import ProfilePaged -from ._paged_models import RulesEnginePaged -from ._paged_models import WebApplicationFirewallPolicyPaged + from ._models import AzureAsyncOperationResult # type: ignore + from ._models import Backend # type: ignore + from ._models import BackendPool # type: ignore + from ._models import BackendPoolListResult # type: ignore + from ._models import BackendPoolProperties # type: ignore + from ._models import BackendPoolUpdateParameters # type: ignore + from ._models import BackendPoolsSettings # type: ignore + from ._models import CacheConfiguration # type: ignore + from ._models import CheckNameAvailabilityInput # type: ignore + from ._models import CheckNameAvailabilityOutput # type: ignore + from ._models import CustomHttpsConfiguration # type: ignore + from ._models import CustomRule # type: ignore + from ._models import CustomRuleList # type: ignore + from ._models import Endpoint # type: ignore + from ._models import Error # type: ignore + from ._models import ErrorDetails # type: ignore + from ._models import ErrorResponse # type: ignore + from ._models import Experiment # type: ignore + from ._models import ExperimentList # type: ignore + from ._models import ExperimentUpdateModel # type: ignore + from ._models import ForwardingConfiguration # type: ignore + from ._models import FrontDoor # type: ignore + from ._models import FrontDoorListResult # type: ignore + from ._models import FrontDoorProperties # type: ignore + from ._models import FrontDoorUpdateParameters # type: ignore + from ._models import FrontendEndpoint # type: ignore + from ._models import FrontendEndpointLink # type: ignore + from ._models import FrontendEndpointProperties # type: ignore + from ._models import FrontendEndpointUpdateParameters # type: ignore + from ._models import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink # type: ignore + from ._models import FrontendEndpointsListResult # type: ignore + from ._models import HeaderAction # type: ignore + from ._models import HealthProbeSettingsListResult # type: ignore + from ._models import HealthProbeSettingsModel # type: ignore + from ._models import HealthProbeSettingsProperties # type: ignore + from ._models import HealthProbeSettingsUpdateParameters # type: ignore + from ._models import KeyVaultCertificateSourceParametersVault # type: ignore + from ._models import LatencyMetric # type: ignore + from ._models import LatencyScorecard # type: ignore + from ._models import LoadBalancingSettingsListResult # type: ignore + from ._models import LoadBalancingSettingsModel # type: ignore + from ._models import LoadBalancingSettingsProperties # type: ignore + from ._models import LoadBalancingSettingsUpdateParameters # type: ignore + from ._models import ManagedRuleDefinition # type: ignore + from ._models import ManagedRuleExclusion # type: ignore + from ._models import ManagedRuleGroupDefinition # type: ignore + from ._models import ManagedRuleGroupOverride # type: ignore + from ._models import ManagedRuleOverride # type: ignore + from ._models import ManagedRuleSet # type: ignore + from ._models import ManagedRuleSetDefinition # type: ignore + from ._models import ManagedRuleSetDefinitionList # type: ignore + from ._models import ManagedRuleSetList # type: ignore + from ._models import MatchCondition # type: ignore + from ._models import PolicySettings # type: ignore + from ._models import PreconfiguredEndpoint # type: ignore + from ._models import PreconfiguredEndpointList # type: ignore + from ._models import Profile # type: ignore + from ._models import ProfileList # type: ignore + from ._models import ProfileUpdateModel # type: ignore + from ._models import PurgeParameters # type: ignore + from ._models import RedirectConfiguration # type: ignore + from ._models import Resource # type: ignore + from ._models import RouteConfiguration # type: ignore + from ._models import RoutingRule # type: ignore + from ._models import RoutingRuleLink # type: ignore + from ._models import RoutingRuleListResult # type: ignore + from ._models import RoutingRuleProperties # type: ignore + from ._models import RoutingRuleUpdateParameters # type: ignore + from ._models import RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink # type: ignore + from ._models import RulesEngine # type: ignore + from ._models import RulesEngineAction # type: ignore + from ._models import RulesEngineListResult # type: ignore + from ._models import RulesEngineMatchCondition # type: ignore + from ._models import RulesEngineProperties # type: ignore + from ._models import RulesEngineRule # type: ignore + from ._models import RulesEngineUpdateParameters # type: ignore + from ._models import SecurityPolicyLink # type: ignore + from ._models import Sku # type: ignore + from ._models import SubResource # type: ignore + from ._models import TagsObject # type: ignore + from ._models import Timeseries # type: ignore + from ._models import TimeseriesDataPoint # type: ignore + from ._models import ValidateCustomDomainInput # type: ignore + from ._models import ValidateCustomDomainOutput # type: ignore + from ._models import WebApplicationFirewallPolicy # type: ignore + from ._models import WebApplicationFirewallPolicyList # type: ignore + from ._front_door_management_client_enums import ( - NetworkOperationStatus, - NetworkExperimentResourceState, - State, + ActionType, AggregationInterval, - TimeseriesType, - EndpointType, - FrontDoorResourceState, + Availability, + BackendEnabledState, CustomHttpsProvisioningState, CustomHttpsProvisioningSubstate, + CustomRuleEnabledState, + DynamicCompressionEnabled, + EndpointType, + EnforceCertificateNameCheckEnabledState, FrontDoorCertificateSource, - MinimumTLSVersion, FrontDoorCertificateType, - EnforceCertificateNameCheckEnabledState, FrontDoorEnabledState, - FrontDoorProtocol, - RoutingRuleEnabledState, FrontDoorForwardingProtocol, + FrontDoorHealthProbeMethod, + FrontDoorProtocol, FrontDoorQuery, - DynamicCompressionEnabled, - FrontDoorRedirectType, FrontDoorRedirectProtocol, - PrivateEndpointStatus, - BackendEnabledState, - FrontDoorHealthProbeMethod, - HealthProbeEnabled, - SessionAffinityEnabledState, + FrontDoorRedirectType, + FrontDoorResourceState, + FrontDoorTlsProtocolType, HeaderActionType, - RulesEngineMatchVariable, - RulesEngineOperator, - Transform, + HealthProbeEnabled, + LatencyScorecardAggregationInterval, + ManagedRuleEnabledState, + ManagedRuleExclusionMatchVariable, + ManagedRuleExclusionSelectorMatchOperator, + ManagedRuleSetActionType, MatchProcessingBehavior, - ResourceType, - Availability, + MatchVariable, + MinimumTLSVersion, + NetworkExperimentResourceState, + NetworkOperationStatus, + Operator, PolicyEnabledState, PolicyMode, PolicyRequestBodyCheck, - CustomRuleEnabledState, - RuleType, - MatchVariable, - Operator, - TransformType, - ActionType, - ManagedRuleSetActionType, - ManagedRuleExclusionMatchVariable, - ManagedRuleExclusionSelectorMatchOperator, - ManagedRuleEnabledState, PolicyResourceState, + PrivateEndpointStatus, + ResourceType, + RoutingRuleEnabledState, + RuleType, + RulesEngineMatchVariable, + RulesEngineOperator, + SessionAffinityEnabledState, SkuName, - LatencyScorecardAggregationInterval, + State, TimeseriesAggregationInterval, + TimeseriesType, + Transform, + TransformType, ) __all__ = [ @@ -219,8 +240,9 @@ 'Backend', 'BackendPool', 'BackendPoolListResult', - 'BackendPoolsSettings', + 'BackendPoolProperties', 'BackendPoolUpdateParameters', + 'BackendPoolsSettings', 'CacheConfiguration', 'CheckNameAvailabilityInput', 'CheckNameAvailabilityOutput', @@ -230,25 +252,32 @@ 'Endpoint', 'Error', 'ErrorDetails', - 'ErrorResponse', 'ErrorResponseException', + 'ErrorResponse', 'Experiment', + 'ExperimentList', 'ExperimentUpdateModel', 'ForwardingConfiguration', 'FrontDoor', + 'FrontDoorListResult', + 'FrontDoorProperties', 'FrontDoorUpdateParameters', 'FrontendEndpoint', 'FrontendEndpointLink', + 'FrontendEndpointProperties', 'FrontendEndpointUpdateParameters', 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink', + 'FrontendEndpointsListResult', 'HeaderAction', 'HealthProbeSettingsListResult', 'HealthProbeSettingsModel', + 'HealthProbeSettingsProperties', 'HealthProbeSettingsUpdateParameters', 'KeyVaultCertificateSourceParametersVault', 'LatencyMetric', 'LatencyScorecard', 'LoadBalancingSettingsListResult', 'LoadBalancingSettingsModel', + 'LoadBalancingSettingsProperties', 'LoadBalancingSettingsUpdateParameters', 'ManagedRuleDefinition', 'ManagedRuleExclusion', @@ -257,11 +286,14 @@ 'ManagedRuleOverride', 'ManagedRuleSet', 'ManagedRuleSetDefinition', + 'ManagedRuleSetDefinitionList', 'ManagedRuleSetList', 'MatchCondition', 'PolicySettings', 'PreconfiguredEndpoint', + 'PreconfiguredEndpointList', 'Profile', + 'ProfileList', 'ProfileUpdateModel', 'PurgeParameters', 'RedirectConfiguration', @@ -270,11 +302,14 @@ 'RoutingRule', 'RoutingRuleLink', 'RoutingRuleListResult', + 'RoutingRuleProperties', 'RoutingRuleUpdateParameters', 'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink', 'RulesEngine', 'RulesEngineAction', + 'RulesEngineListResult', 'RulesEngineMatchCondition', + 'RulesEngineProperties', 'RulesEngineRule', 'RulesEngineUpdateParameters', 'SecurityPolicyLink', @@ -286,62 +321,56 @@ 'ValidateCustomDomainInput', 'ValidateCustomDomainOutput', 'WebApplicationFirewallPolicy', - 'ProfilePaged', - 'PreconfiguredEndpointPaged', - 'ExperimentPaged', - 'FrontDoorPaged', - 'FrontendEndpointPaged', - 'RulesEnginePaged', - 'WebApplicationFirewallPolicyPaged', - 'ManagedRuleSetDefinitionPaged', - 'NetworkOperationStatus', - 'NetworkExperimentResourceState', - 'State', + 'WebApplicationFirewallPolicyList', + 'ActionType', 'AggregationInterval', - 'TimeseriesType', - 'EndpointType', - 'FrontDoorResourceState', + 'Availability', + 'BackendEnabledState', 'CustomHttpsProvisioningState', 'CustomHttpsProvisioningSubstate', + 'CustomRuleEnabledState', + 'DynamicCompressionEnabled', + 'EndpointType', + 'EnforceCertificateNameCheckEnabledState', 'FrontDoorCertificateSource', - 'MinimumTLSVersion', 'FrontDoorCertificateType', - 'EnforceCertificateNameCheckEnabledState', 'FrontDoorEnabledState', - 'FrontDoorProtocol', - 'RoutingRuleEnabledState', 'FrontDoorForwardingProtocol', + 'FrontDoorHealthProbeMethod', + 'FrontDoorProtocol', 'FrontDoorQuery', - 'DynamicCompressionEnabled', - 'FrontDoorRedirectType', 'FrontDoorRedirectProtocol', - 'PrivateEndpointStatus', - 'BackendEnabledState', - 'FrontDoorHealthProbeMethod', - 'HealthProbeEnabled', - 'SessionAffinityEnabledState', + 'FrontDoorRedirectType', + 'FrontDoorResourceState', + 'FrontDoorTlsProtocolType', 'HeaderActionType', - 'RulesEngineMatchVariable', - 'RulesEngineOperator', - 'Transform', + 'HealthProbeEnabled', + 'LatencyScorecardAggregationInterval', + 'ManagedRuleEnabledState', + 'ManagedRuleExclusionMatchVariable', + 'ManagedRuleExclusionSelectorMatchOperator', + 'ManagedRuleSetActionType', 'MatchProcessingBehavior', - 'ResourceType', - 'Availability', + 'MatchVariable', + 'MinimumTLSVersion', + 'NetworkExperimentResourceState', + 'NetworkOperationStatus', + 'Operator', 'PolicyEnabledState', 'PolicyMode', 'PolicyRequestBodyCheck', - 'CustomRuleEnabledState', - 'RuleType', - 'MatchVariable', - 'Operator', - 'TransformType', - 'ActionType', - 'ManagedRuleSetActionType', - 'ManagedRuleExclusionMatchVariable', - 'ManagedRuleExclusionSelectorMatchOperator', - 'ManagedRuleEnabledState', 'PolicyResourceState', + 'PrivateEndpointStatus', + 'ResourceType', + 'RoutingRuleEnabledState', + 'RuleType', + 'RulesEngineMatchVariable', + 'RulesEngineOperator', + 'SessionAffinityEnabledState', 'SkuName', - 'LatencyScorecardAggregationInterval', + 'State', 'TimeseriesAggregationInterval', + 'TimeseriesType', + 'Transform', + 'TransformType', ] diff --git a/src/front-door/azext_front_door/vendored_sdks/models/_front_door_management_client_enums.py b/src/front-door/azext_front_door/vendored_sdks/models/_front_door_management_client_enums.py index 455e843a743..9c9b19ade63 100644 --- a/src/front-door/azext_front_door/vendored_sdks/models/_front_door_management_client_enums.py +++ b/src/front-door/azext_front_door/vendored_sdks/models/_front_door_management_client_enums.py @@ -1,404 +1,481 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class ActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the action to take on rule match. + """ + + ALLOW = "Allow" + BLOCK = "Block" + LOG = "Log" + REDIRECT = "Redirect" + +class AggregationInterval(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The aggregation interval of the Timeseries + """ + + HOURLY = "Hourly" + DAILY = "Daily" + +class Availability(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Indicates whether the name is available. + """ + + AVAILABLE = "Available" + UNAVAILABLE = "Unavailable" + +class BackendEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled' + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class CustomHttpsProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Provisioning status of Custom Https of the frontendEndpoint. + """ + + ENABLING = "Enabling" + ENABLED = "Enabled" + DISABLING = "Disabling" + DISABLED = "Disabled" + FAILED = "Failed" + +class CustomHttpsProvisioningSubstate(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by + step. + """ + + SUBMITTING_DOMAIN_CONTROL_VALIDATION_REQUEST = "SubmittingDomainControlValidationRequest" + PENDING_DOMAIN_CONTROL_VALIDATION_R_EQUEST_APPROVAL = "PendingDomainControlValidationREquestApproval" + DOMAIN_CONTROL_VALIDATION_REQUEST_APPROVED = "DomainControlValidationRequestApproved" + DOMAIN_CONTROL_VALIDATION_REQUEST_REJECTED = "DomainControlValidationRequestRejected" + DOMAIN_CONTROL_VALIDATION_REQUEST_TIMED_OUT = "DomainControlValidationRequestTimedOut" + ISSUING_CERTIFICATE = "IssuingCertificate" + DEPLOYING_CERTIFICATE = "DeployingCertificate" + CERTIFICATE_DEPLOYED = "CertificateDeployed" + DELETING_CERTIFICATE = "DeletingCertificate" + CERTIFICATE_DELETED = "CertificateDeleted" + +class CustomRuleEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not + specified. + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class DynamicCompressionEnabled(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether to use dynamic compression for cached content + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class EndpointType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of endpoint + """ + + AFD = "AFD" + AZURE_REGION = "AzureRegion" + CDN = "CDN" + ATM = "ATM" + +class EnforceCertificateNameCheckEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether to enforce certificate name check on HTTPS requests to all backend pools. No effect on + non-HTTPS requests. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class FrontDoorCertificateSource(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the source of the SSL certificate + """ + + AZURE_KEY_VAULT = "AzureKeyVault" + FRONT_DOOR = "FrontDoor" + +class FrontDoorCertificateType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the type of the certificate used for secure connections to a frontendEndpoint + """ + DEDICATED = "Dedicated" + +class FrontDoorEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Operational status of the Front Door load balancer. Permitted values are 'Enabled' or + 'Disabled' + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" -class NetworkOperationStatus(str, Enum): - - in_progress = "InProgress" - succeeded = "Succeeded" - failed = "Failed" - - -class NetworkExperimentResourceState(str, Enum): - - creating = "Creating" - enabling = "Enabling" - enabled = "Enabled" - disabling = "Disabling" - disabled = "Disabled" - deleting = "Deleting" - - -class State(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class AggregationInterval(str, Enum): - - hourly = "Hourly" - daily = "Daily" - - -class TimeseriesType(str, Enum): - - measurement_counts = "MeasurementCounts" - latency_p50 = "LatencyP50" - latency_p75 = "LatencyP75" - latency_p95 = "LatencyP95" - - -class EndpointType(str, Enum): - - afd = "AFD" - azure_region = "AzureRegion" - cdn = "CDN" - atm = "ATM" - - -class FrontDoorResourceState(str, Enum): - - creating = "Creating" - enabling = "Enabling" - enabled = "Enabled" - disabling = "Disabling" - disabled = "Disabled" - deleting = "Deleting" - - -class CustomHttpsProvisioningState(str, Enum): - - enabling = "Enabling" - enabled = "Enabled" - disabling = "Disabling" - disabled = "Disabled" - failed = "Failed" - - -class CustomHttpsProvisioningSubstate(str, Enum): - - submitting_domain_control_validation_request = "SubmittingDomainControlValidationRequest" - pending_domain_control_validation_request_approval = "PendingDomainControlValidationREquestApproval" - domain_control_validation_request_approved = "DomainControlValidationRequestApproved" - domain_control_validation_request_rejected = "DomainControlValidationRequestRejected" - domain_control_validation_request_timed_out = "DomainControlValidationRequestTimedOut" - issuing_certificate = "IssuingCertificate" - deploying_certificate = "DeployingCertificate" - certificate_deployed = "CertificateDeployed" - deleting_certificate = "DeletingCertificate" - certificate_deleted = "CertificateDeleted" - - -class FrontDoorCertificateSource(str, Enum): - - azure_key_vault = "AzureKeyVault" - front_door = "FrontDoor" - - -class MinimumTLSVersion(str, Enum): - - one_full_stop_zero = "1.0" - one_full_stop_two = "1.2" - - -class FrontDoorCertificateType(str, Enum): - - dedicated = "Dedicated" - - -class EnforceCertificateNameCheckEnabledState(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class FrontDoorEnabledState(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class FrontDoorProtocol(str, Enum): - - http = "Http" - https = "Https" - - -class RoutingRuleEnabledState(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class FrontDoorForwardingProtocol(str, Enum): - - http_only = "HttpOnly" - https_only = "HttpsOnly" - match_request = "MatchRequest" - - -class FrontDoorQuery(str, Enum): - - strip_none = "StripNone" - strip_all = "StripAll" - strip_only = "StripOnly" - strip_all_except = "StripAllExcept" - - -class DynamicCompressionEnabled(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class FrontDoorRedirectType(str, Enum): - - moved = "Moved" - found = "Found" - temporary_redirect = "TemporaryRedirect" - permanent_redirect = "PermanentRedirect" - - -class FrontDoorRedirectProtocol(str, Enum): - - http_only = "HttpOnly" - https_only = "HttpsOnly" - match_request = "MatchRequest" - - -class PrivateEndpointStatus(str, Enum): - - pending = "Pending" - approved = "Approved" - rejected = "Rejected" - disconnected = "Disconnected" - timeout = "Timeout" - - -class BackendEnabledState(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class FrontDoorHealthProbeMethod(str, Enum): - - get = "GET" - head = "HEAD" - - -class HealthProbeEnabled(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class SessionAffinityEnabledState(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class HeaderActionType(str, Enum): - - append = "Append" - delete = "Delete" - overwrite = "Overwrite" - - -class RulesEngineMatchVariable(str, Enum): - - is_mobile = "IsMobile" - remote_addr = "RemoteAddr" - request_method = "RequestMethod" - query_string = "QueryString" - post_args = "PostArgs" - request_uri = "RequestUri" - request_path = "RequestPath" - request_filename = "RequestFilename" - request_filename_extension = "RequestFilenameExtension" - request_header = "RequestHeader" - request_body = "RequestBody" - request_scheme = "RequestScheme" - - -class RulesEngineOperator(str, Enum): - - any = "Any" - ip_match = "IPMatch" - geo_match = "GeoMatch" - equal = "Equal" - contains = "Contains" - less_than = "LessThan" - greater_than = "GreaterThan" - less_than_or_equal = "LessThanOrEqual" - greater_than_or_equal = "GreaterThanOrEqual" - begins_with = "BeginsWith" - ends_with = "EndsWith" - - -class Transform(str, Enum): - - lowercase = "Lowercase" - uppercase = "Uppercase" - trim = "Trim" - url_decode = "UrlDecode" - url_encode = "UrlEncode" - remove_nulls = "RemoveNulls" - - -class MatchProcessingBehavior(str, Enum): - - continue_enum = "Continue" - stop = "Stop" - - -class ResourceType(str, Enum): - - microsoft_networkfront_doors = "Microsoft.Network/frontDoors" - microsoft_networkfront_doorsfrontend_endpoints = "Microsoft.Network/frontDoors/frontendEndpoints" - - -class Availability(str, Enum): - - available = "Available" - unavailable = "Unavailable" - - -class PolicyEnabledState(str, Enum): - - disabled = "Disabled" - enabled = "Enabled" - - -class PolicyMode(str, Enum): - - prevention = "Prevention" - detection = "Detection" - - -class PolicyRequestBodyCheck(str, Enum): - - disabled = "Disabled" - enabled = "Enabled" - - -class CustomRuleEnabledState(str, Enum): - - disabled = "Disabled" - enabled = "Enabled" - - -class RuleType(str, Enum): - - match_rule = "MatchRule" - rate_limit_rule = "RateLimitRule" - - -class MatchVariable(str, Enum): - - remote_addr = "RemoteAddr" - request_method = "RequestMethod" - query_string = "QueryString" - post_args = "PostArgs" - request_uri = "RequestUri" - request_header = "RequestHeader" - request_body = "RequestBody" - cookies = "Cookies" - socket_addr = "SocketAddr" - - -class Operator(str, Enum): - - any = "Any" - ip_match = "IPMatch" - geo_match = "GeoMatch" - equal = "Equal" - contains = "Contains" - less_than = "LessThan" - greater_than = "GreaterThan" - less_than_or_equal = "LessThanOrEqual" - greater_than_or_equal = "GreaterThanOrEqual" - begins_with = "BeginsWith" - ends_with = "EndsWith" - reg_ex = "RegEx" - - -class TransformType(str, Enum): - - lowercase = "Lowercase" - uppercase = "Uppercase" - trim = "Trim" - url_decode = "UrlDecode" - url_encode = "UrlEncode" - remove_nulls = "RemoveNulls" - - -class ActionType(str, Enum): - - allow = "Allow" - block = "Block" - log = "Log" - redirect = "Redirect" - - -class ManagedRuleSetActionType(str, Enum): - - block = "Block" - log = "Log" - redirect = "Redirect" - - -class ManagedRuleExclusionMatchVariable(str, Enum): - - request_header_names = "RequestHeaderNames" - request_cookie_names = "RequestCookieNames" - query_string_arg_names = "QueryStringArgNames" - request_body_post_arg_names = "RequestBodyPostArgNames" - request_body_json_arg_names = "RequestBodyJsonArgNames" - - -class ManagedRuleExclusionSelectorMatchOperator(str, Enum): - - equals = "Equals" - contains = "Contains" - starts_with = "StartsWith" - ends_with = "EndsWith" - equals_any = "EqualsAny" - - -class ManagedRuleEnabledState(str, Enum): - - disabled = "Disabled" - enabled = "Enabled" - - -class PolicyResourceState(str, Enum): - - creating = "Creating" - enabling = "Enabling" - enabled = "Enabled" - disabling = "Disabling" - disabled = "Disabled" - deleting = "Deleting" - - -class SkuName(str, Enum): - - classic_azure_front_door = "Classic_AzureFrontDoor" - standard_azure_front_door = "Standard_AzureFrontDoor" - premium_azure_front_door = "Premium_AzureFrontDoor" - - -class LatencyScorecardAggregationInterval(str, Enum): - - daily = "Daily" - weekly = "Weekly" - monthly = "Monthly" - - -class TimeseriesAggregationInterval(str, Enum): - - hourly = "Hourly" - daily = "Daily" +class FrontDoorForwardingProtocol(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Protocol this rule will use when forwarding traffic to backends. + """ + + HTTP_ONLY = "HttpOnly" + HTTPS_ONLY = "HttpsOnly" + MATCH_REQUEST = "MatchRequest" + +class FrontDoorHealthProbeMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Configures which HTTP method to use to probe the backends defined under backendPools. + """ + + GET = "GET" + HEAD = "HEAD" + +class FrontDoorProtocol(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Accepted protocol schemes. + """ + + HTTP = "Http" + HTTPS = "Https" + +class FrontDoorQuery(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Treatment of URL query terms when forming the cache key. + """ + + STRIP_NONE = "StripNone" + STRIP_ALL = "StripAll" + STRIP_ONLY = "StripOnly" + STRIP_ALL_EXCEPT = "StripAllExcept" + +class FrontDoorRedirectProtocol(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The protocol of the destination to where the traffic is redirected + """ + + HTTP_ONLY = "HttpOnly" + HTTPS_ONLY = "HttpsOnly" + MATCH_REQUEST = "MatchRequest" + +class FrontDoorRedirectType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The redirect type the rule will use when redirecting traffic. + """ + + MOVED = "Moved" + FOUND = "Found" + TEMPORARY_REDIRECT = "TemporaryRedirect" + PERMANENT_REDIRECT = "PermanentRedirect" + +class FrontDoorResourceState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Resource status of the Front Door or Front Door SubResource. + """ + + CREATING = "Creating" + ENABLING = "Enabling" + ENABLED = "Enabled" + DISABLING = "Disabling" + DISABLED = "Disabled" + DELETING = "Deleting" + +class FrontDoorTlsProtocolType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the TLS extension protocol that is used for secure delivery + """ + + SERVER_NAME_INDICATION = "ServerNameIndication" + +class HeaderActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Which type of manipulation to apply to the header. + """ + + APPEND = "Append" + DELETE = "Delete" + OVERWRITE = "Overwrite" + +class HealthProbeEnabled(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether to enable health probes to be made against backends defined under backendPools. Health + probes can only be disabled if there is a single enabled backend in single enabled backend + pool. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class LatencyScorecardAggregationInterval(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + DAILY = "Daily" + WEEKLY = "Weekly" + MONTHLY = "Monthly" + +class ManagedRuleEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes if the managed rule is in enabled or disabled state. + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class ManagedRuleExclusionMatchVariable(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The variable type to be excluded. + """ + + REQUEST_HEADER_NAMES = "RequestHeaderNames" + REQUEST_COOKIE_NAMES = "RequestCookieNames" + QUERY_STRING_ARG_NAMES = "QueryStringArgNames" + REQUEST_BODY_POST_ARG_NAMES = "RequestBodyPostArgNames" + REQUEST_BODY_JSON_ARG_NAMES = "RequestBodyJsonArgNames" + +class ManagedRuleExclusionSelectorMatchOperator(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Comparison operator to apply to the selector when specifying which elements in the collection + this exclusion applies to. + """ + + EQUALS = "Equals" + CONTAINS = "Contains" + STARTS_WITH = "StartsWith" + ENDS_WITH = "EndsWith" + EQUALS_ANY = "EqualsAny" + +class ManagedRuleSetActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the action to take when a managed rule set score threshold is met. + """ + + BLOCK = "Block" + LOG = "Log" + REDIRECT = "Redirect" + +class MatchProcessingBehavior(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """If this rule is a match should the rules engine continue running the remaining rules or stop. + If not present, defaults to Continue. + """ + + CONTINUE_ENUM = "Continue" + STOP = "Stop" + +class MatchVariable(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Request variable to compare with. + """ + + REMOTE_ADDR = "RemoteAddr" + REQUEST_METHOD = "RequestMethod" + QUERY_STRING = "QueryString" + POST_ARGS = "PostArgs" + REQUEST_URI = "RequestUri" + REQUEST_HEADER = "RequestHeader" + REQUEST_BODY = "RequestBody" + COOKIES = "Cookies" + SOCKET_ADDR = "SocketAddr" + +class MinimumTLSVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The minimum TLS version required from the clients to establish an SSL handshake with Front + Door. + """ + + ONE0 = "1.0" + ONE2 = "1.2" + +class NetworkExperimentResourceState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the server side resource status + """ + + CREATING = "Creating" + ENABLING = "Enabling" + ENABLED = "Enabled" + DISABLING = "Disabling" + DISABLED = "Disabled" + DELETING = "Deleting" + +class NetworkOperationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and + 'Failed'. + """ + + IN_PROGRESS = "InProgress" + SUCCEEDED = "Succeeded" + FAILED = "Failed" + +class Operator(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Comparison type to use for matching with the variable value. + """ + + ANY = "Any" + IP_MATCH = "IPMatch" + GEO_MATCH = "GeoMatch" + EQUAL = "Equal" + CONTAINS = "Contains" + LESS_THAN = "LessThan" + GREATER_THAN = "GreaterThan" + LESS_THAN_OR_EQUAL = "LessThanOrEqual" + GREATER_THAN_OR_EQUAL = "GreaterThanOrEqual" + BEGINS_WITH = "BeginsWith" + ENDS_WITH = "EndsWith" + REG_EX = "RegEx" + +class PolicyEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified. + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class PolicyMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes if it is in detection mode or prevention mode at policy level. + """ + + PREVENTION = "Prevention" + DETECTION = "Detection" + +class PolicyRequestBodyCheck(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes if policy managed rules will inspect the request body content. + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class PolicyResourceState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Resource status of the policy. + """ + + CREATING = "Creating" + ENABLING = "Enabling" + ENABLED = "Enabled" + DISABLING = "Disabling" + DISABLED = "Disabled" + DELETING = "Deleting" + +class PrivateEndpointStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The Approval status for the connection to the Private Link + """ + + PENDING = "Pending" + APPROVED = "Approved" + REJECTED = "Rejected" + DISCONNECTED = "Disconnected" + TIMEOUT = "Timeout" + +class ResourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Type of Front Door resource used in CheckNameAvailability. + """ + + MICROSOFT_NETWORK_FRONT_DOORS = "Microsoft.Network/frontDoors" + MICROSOFT_NETWORK_FRONT_DOORS_FRONTEND_ENDPOINTS = "Microsoft.Network/frontDoors/frontendEndpoints" + +class RoutingRuleEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class RulesEngineMatchVariable(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Match Variable + """ + + IS_MOBILE = "IsMobile" + REMOTE_ADDR = "RemoteAddr" + REQUEST_METHOD = "RequestMethod" + QUERY_STRING = "QueryString" + POST_ARGS = "PostArgs" + REQUEST_URI = "RequestUri" + REQUEST_PATH = "RequestPath" + REQUEST_FILENAME = "RequestFilename" + REQUEST_FILENAME_EXTENSION = "RequestFilenameExtension" + REQUEST_HEADER = "RequestHeader" + REQUEST_BODY = "RequestBody" + REQUEST_SCHEME = "RequestScheme" + +class RulesEngineOperator(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes operator to apply to the match condition. + """ + + ANY = "Any" + IP_MATCH = "IPMatch" + GEO_MATCH = "GeoMatch" + EQUAL = "Equal" + CONTAINS = "Contains" + LESS_THAN = "LessThan" + GREATER_THAN = "GreaterThan" + LESS_THAN_OR_EQUAL = "LessThanOrEqual" + GREATER_THAN_OR_EQUAL = "GreaterThanOrEqual" + BEGINS_WITH = "BeginsWith" + ENDS_WITH = "EndsWith" + +class RuleType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes type of rule. + """ + + MATCH_RULE = "MatchRule" + RATE_LIMIT_RULE = "RateLimitRule" + +class SessionAffinityEnabledState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled' + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class SkuName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Name of the pricing tier. + """ + + CLASSIC_AZURE_FRONT_DOOR = "Classic_AzureFrontDoor" + STANDARD_AZURE_FRONT_DOOR = "Standard_AzureFrontDoor" + PREMIUM_AZURE_FRONT_DOOR = "Premium_AzureFrontDoor" + +class State(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The state of the Experiment + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class TimeseriesAggregationInterval(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + HOURLY = "Hourly" + DAILY = "Daily" + +class TimeseriesType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of Timeseries + """ + + MEASUREMENT_COUNTS = "MeasurementCounts" + LATENCY_P50 = "LatencyP50" + LATENCY_P75 = "LatencyP75" + LATENCY_P95 = "LatencyP95" + +class Transform(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes what transforms are applied before matching + """ + + LOWERCASE = "Lowercase" + UPPERCASE = "Uppercase" + TRIM = "Trim" + URL_DECODE = "UrlDecode" + URL_ENCODE = "UrlEncode" + REMOVE_NULLS = "RemoveNulls" + +class TransformType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes what transforms applied before matching. + """ + + LOWERCASE = "Lowercase" + UPPERCASE = "Uppercase" + TRIM = "Trim" + URL_DECODE = "UrlDecode" + URL_ENCODE = "UrlEncode" + REMOVE_NULLS = "RemoveNulls" diff --git a/src/front-door/azext_front_door/vendored_sdks/models/_models.py b/src/front-door/azext_front_door/vendored_sdks/models/_models.py index c257d82a903..c01fb5be775 100644 --- a/src/front-door/azext_front_door/vendored_sdks/models/_models.py +++ b/src/front-door/azext_front_door/vendored_sdks/models/_models.py @@ -1,31 +1,20 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError +from azure.core.exceptions import HttpResponseError +import msrest.serialization -class AzureAsyncOperationResult(Model): - """The response body contains the status of the specified asynchronous - operation, indicating whether it has succeeded, is in progress, or has - failed. Note that this status is distinct from the HTTP status code - returned for the Get Operation Status operation itself. If the asynchronous - operation succeeded, the response body includes the HTTP status code for - the successful request. If the asynchronous operation failed, the response - body includes the HTTP status code for the failed request and error - information regarding the failure. +class AzureAsyncOperationResult(msrest.serialization.Model): + """The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure. - :param status: Status of the Azure async operation. Possible values are: - 'InProgress', 'Succeeded', and 'Failed'. Possible values include: - 'InProgress', 'Succeeded', 'Failed' + :param status: Status of the Azure async operation. Possible values are: 'InProgress', + 'Succeeded', and 'Failed'. Possible values include: "InProgress", "Succeeded", "Failed". :type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus :param error: :type error: ~azure.mgmt.frontdoor.models.Error @@ -36,55 +25,51 @@ class AzureAsyncOperationResult(Model): 'error': {'key': 'error', 'type': 'Error'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(AzureAsyncOperationResult, self).__init__(**kwargs) self.status = kwargs.get('status', None) self.error = kwargs.get('error', None) -class Backend(Model): +class Backend(msrest.serialization.Model): """Backend address of a frontDoor load balancer. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :param address: Location of the backend (IP address or FQDN) + :param address: Location of the backend (IP address or FQDN). :type address: str - :param private_link_alias: The Alias of the Private Link resource. - Populating this optional field indicates that this backend is 'Private' + :param private_link_alias: The Alias of the Private Link resource. Populating this optional + field indicates that this backend is 'Private'. :type private_link_alias: str - :param private_link_resource_id: The Resource Id of the Private Link - resource. Populating this optional field indicates that this backend is - 'Private' + :param private_link_resource_id: The Resource Id of the Private Link resource. Populating this + optional field indicates that this backend is 'Private'. :type private_link_resource_id: str - :param private_link_location: The location of the Private Link resource. - Required only if 'privateLinkResourceId' is populated + :param private_link_location: The location of the Private Link resource. Required only if + 'privateLinkResourceId' is populated. :type private_link_location: str - :ivar private_endpoint_status: The Approval status for the connection to - the Private Link. Possible values include: 'Pending', 'Approved', - 'Rejected', 'Disconnected', 'Timeout' - :vartype private_endpoint_status: str or - ~azure.mgmt.frontdoor.models.PrivateEndpointStatus - :param private_link_approval_message: A custom message to be included in - the approval request to connect to the Private Link + :ivar private_endpoint_status: The Approval status for the connection to the Private Link. + Possible values include: "Pending", "Approved", "Rejected", "Disconnected", "Timeout". + :vartype private_endpoint_status: str or ~azure.mgmt.frontdoor.models.PrivateEndpointStatus + :param private_link_approval_message: A custom message to be included in the approval request + to connect to the Private Link. :type private_link_approval_message: str :param http_port: The HTTP TCP port number. Must be between 1 and 65535. :type http_port: int :param https_port: The HTTPS TCP port number. Must be between 1 and 65535. :type https_port: int - :param enabled_state: Whether to enable use of this backend. Permitted - values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.BackendEnabledState - :param priority: Priority to use for load balancing. Higher priorities - will not be used for load balancing if any lower priority backend is - healthy. + :param enabled_state: Whether to enable use of this backend. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.BackendEnabledState + :param priority: Priority to use for load balancing. Higher priorities will not be used for + load balancing if any lower priority backend is healthy. :type priority: int :param weight: Weight of this endpoint for load balancing purposes. :type weight: int - :param backend_host_header: The value to use as the host header sent to - the backend. If blank or unspecified, this defaults to the incoming host. + :param backend_host_header: The value to use as the host header sent to the backend. If blank + or unspecified, this defaults to the incoming host. :type backend_host_header: str """ @@ -111,7 +96,10 @@ class Backend(Model): 'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Backend, self).__init__(**kwargs) self.address = kwargs.get('address', None) self.private_link_alias = kwargs.get('private_link_alias', None) @@ -127,7 +115,7 @@ def __init__(self, **kwargs): self.backend_host_header = kwargs.get('backend_host_header', None) -class SubResource(Model): +class SubResource(msrest.serialization.Model): """Reference to another subresource. :param id: Resource ID. @@ -138,7 +126,10 @@ class SubResource(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(SubResource, self).__init__(**kwargs) self.id = kwargs.get('id', None) @@ -146,62 +137,61 @@ def __init__(self, **kwargs): class BackendPool(SubResource): """A backend pool is a collection of backends that can be routed to. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param backends: The set of backends for this pool - :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool - :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool - :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :param name: Resource name. :type name: str :ivar type: Resource type. :vartype type: str + :param backends: The set of backends for this pool. + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool. + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool. + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'backends': {'key': 'properties.backends', 'type': '[Backend]'}, 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'}, 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(BackendPool, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = None self.backends = kwargs.get('backends', None) self.load_balancing_settings = kwargs.get('load_balancing_settings', None) self.health_probe_settings = kwargs.get('health_probe_settings', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None + self.resource_state = None -class BackendPoolListResult(Model): - """Result of the request to list Backend Pools. It contains a list of Backend - Pools objects and a URL link to get the next set of results. +class BackendPoolListResult(msrest.serialization.Model): + """Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Backend Pools within a Front Door. :vartype value: list[~azure.mgmt.frontdoor.models.BackendPool] - :param next_link: URL to get the next set of BackendPool objects if there - are any. + :param next_link: URL to get the next set of BackendPool objects if there are any. :type next_link: str """ @@ -214,87 +204,123 @@ class BackendPoolListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(BackendPoolListResult, self).__init__(**kwargs) self.value = None self.next_link = kwargs.get('next_link', None) -class BackendPoolsSettings(Model): - """Settings that apply to all backend pools. +class BackendPoolUpdateParameters(msrest.serialization.Model): + """A collection of backends that can be routed to. - :param enforce_certificate_name_check: Whether to enforce certificate name - check on HTTPS requests to all backend pools. No effect on non-HTTPS - requests. Possible values include: 'Enabled', 'Disabled'. Default value: - "Enabled" . - :type enforce_certificate_name_check: str or - ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState - :param send_recv_timeout_seconds: Send and receive timeout on forwarding - request to the backend. When timeout is reached, the request fails and - returns. - :type send_recv_timeout_seconds: int + :param backends: The set of backends for this pool. + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool. + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool. + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource """ - _validation = { - 'send_recv_timeout_seconds': {'minimum': 16}, - } - _attribute_map = { - 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, - 'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'}, + 'backends': {'key': 'backends', 'type': '[Backend]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, } - def __init__(self, **kwargs): - super(BackendPoolsSettings, self).__init__(**kwargs) - self.enforce_certificate_name_check = kwargs.get('enforce_certificate_name_check', "Enabled") - self.send_recv_timeout_seconds = kwargs.get('send_recv_timeout_seconds', None) + def __init__( + self, + **kwargs + ): + super(BackendPoolUpdateParameters, self).__init__(**kwargs) + self.backends = kwargs.get('backends', None) + self.load_balancing_settings = kwargs.get('load_balancing_settings', None) + self.health_probe_settings = kwargs.get('health_probe_settings', None) -class BackendPoolUpdateParameters(Model): - """A collection of backends that can be routed to. +class BackendPoolProperties(BackendPoolUpdateParameters): + """The JSON object that contains the properties required to create a Backend Pool. - :param backends: The set of backends for this pool + Variables are only populated by the server, and will be ignored when sending a request. + + :param backends: The set of backends for this pool. :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool + :param load_balancing_settings: Load balancing settings for a backend pool. :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool + :param health_probe_settings: L7 health probe settings for a backend pool. :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ + _validation = { + 'resource_state': {'readonly': True}, + } + _attribute_map = { 'backends': {'key': 'backends', 'type': '[Backend]'}, 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, } - def __init__(self, **kwargs): - super(BackendPoolUpdateParameters, self).__init__(**kwargs) - self.backends = kwargs.get('backends', None) - self.load_balancing_settings = kwargs.get('load_balancing_settings', None) - self.health_probe_settings = kwargs.get('health_probe_settings', None) + def __init__( + self, + **kwargs + ): + super(BackendPoolProperties, self).__init__(**kwargs) + self.resource_state = None + + +class BackendPoolsSettings(msrest.serialization.Model): + """Settings that apply to all backend pools. + :param enforce_certificate_name_check: Whether to enforce certificate name check on HTTPS + requests to all backend pools. No effect on non-HTTPS requests. Possible values include: + "Enabled", "Disabled". Default value: "Enabled". + :type enforce_certificate_name_check: str or + ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState + :param send_recv_timeout_seconds: Send and receive timeout on forwarding request to the + backend. When timeout is reached, the request fails and returns. + :type send_recv_timeout_seconds: int + """ + + _validation = { + 'send_recv_timeout_seconds': {'minimum': 16}, + } + + _attribute_map = { + 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, + 'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(BackendPoolsSettings, self).__init__(**kwargs) + self.enforce_certificate_name_check = kwargs.get('enforce_certificate_name_check', "Enabled") + self.send_recv_timeout_seconds = kwargs.get('send_recv_timeout_seconds', None) -class CacheConfiguration(Model): - """Caching settings for a caching-type route. To disable caching, do not - provide a cacheConfiguration object. - :param query_parameter_strip_directive: Treatment of URL query terms when - forming the cache key. Possible values include: 'StripNone', 'StripAll', - 'StripOnly', 'StripAllExcept' - :type query_parameter_strip_directive: str or - ~azure.mgmt.frontdoor.models.FrontDoorQuery - :param query_parameters: query parameters to include or exclude (comma - separated). +class CacheConfiguration(msrest.serialization.Model): + """Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + + :param query_parameter_strip_directive: Treatment of URL query terms when forming the cache + key. Possible values include: "StripNone", "StripAll", "StripOnly", "StripAllExcept". + :type query_parameter_strip_directive: str or ~azure.mgmt.frontdoor.models.FrontDoorQuery + :param query_parameters: query parameters to include or exclude (comma separated). :type query_parameters: str - :param dynamic_compression: Whether to use dynamic compression for cached - content. Possible values include: 'Enabled', 'Disabled' - :type dynamic_compression: str or - ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled - :param cache_duration: The duration for which the content needs to be - cached. Allowed format is in ISO 8601 format - (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value - to be no more than a year - :type cache_duration: timedelta + :param dynamic_compression: Whether to use dynamic compression for cached content. Possible + values include: "Enabled", "Disabled". + :type dynamic_compression: str or ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled + :param cache_duration: The duration for which the content needs to be cached. Allowed format is + in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value + to be no more than a year. + :type cache_duration: ~datetime.timedelta """ _attribute_map = { @@ -304,7 +330,10 @@ class CacheConfiguration(Model): 'cache_duration': {'key': 'cacheDuration', 'type': 'duration'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(CacheConfiguration, self).__init__(**kwargs) self.query_parameter_strip_directive = kwargs.get('query_parameter_strip_directive', None) self.query_parameters = kwargs.get('query_parameters', None) @@ -312,16 +341,15 @@ def __init__(self, **kwargs): self.cache_duration = kwargs.get('cache_duration', None) -class CheckNameAvailabilityInput(Model): +class CheckNameAvailabilityInput(msrest.serialization.Model): """Input of CheckNameAvailability API. All required parameters must be populated in order to send to Azure. :param name: Required. The resource name to validate. :type name: str - :param type: Required. The type of the resource whose name is to be - validated. Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' + :param type: Required. The type of the resource whose name is to be validated. Possible values + include: "Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints". :type type: str or ~azure.mgmt.frontdoor.models.ResourceType """ @@ -332,29 +360,29 @@ class CheckNameAvailabilityInput(Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceType'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(CheckNameAvailabilityInput, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) + self.name = kwargs['name'] + self.type = kwargs['type'] -class CheckNameAvailabilityOutput(Model): +class CheckNameAvailabilityOutput(msrest.serialization.Model): """Output of check name availability API. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name_availability: Indicates whether the name is available. Possible - values include: 'Available', 'Unavailable' - :vartype name_availability: str or - ~azure.mgmt.frontdoor.models.Availability + :ivar name_availability: Indicates whether the name is available. Possible values include: + "Available", "Unavailable". + :vartype name_availability: str or ~azure.mgmt.frontdoor.models.Availability :ivar reason: The reason why the name is not available. :vartype reason: str - :ivar message: The detailed error message describing why the name is not - available. + :ivar message: The detailed error message describing why the name is not available. :vartype message: str """ @@ -370,60 +398,45 @@ class CheckNameAvailabilityOutput(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(CheckNameAvailabilityOutput, self).__init__(**kwargs) self.name_availability = None self.reason = None self.message = None -class CloudError(Model): - """CloudError. - """ - - _attribute_map = { - } - - -class CustomHttpsConfiguration(Model): +class CustomHttpsConfiguration(msrest.serialization.Model): """Https settings for a domain. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. - :param certificate_source: Required. Defines the source of the SSL - certificate. Possible values include: 'AzureKeyVault', 'FrontDoor' - :type certificate_source: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource - :ivar protocol_type: Required. Defines the TLS extension protocol that is - used for secure delivery. Default value: "ServerNameIndication" . - :vartype protocol_type: str - :param minimum_tls_version: Required. The minimum TLS version required - from the clients to establish an SSL handshake with Front Door. Possible - values include: '1.0', '1.2' - :type minimum_tls_version: str or - ~azure.mgmt.frontdoor.models.MinimumTLSVersion - :param vault: The Key Vault containing the SSL certificate - :type vault: - ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault - :param secret_name: The name of the Key Vault secret representing the full - certificate PFX + :param certificate_source: Required. Defines the source of the SSL certificate. Possible values + include: "AzureKeyVault", "FrontDoor". + :type certificate_source: str or ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource + :param protocol_type: Required. Defines the TLS extension protocol that is used for secure + delivery. Possible values include: "ServerNameIndication". + :type protocol_type: str or ~azure.mgmt.frontdoor.models.FrontDoorTlsProtocolType + :param minimum_tls_version: Required. The minimum TLS version required from the clients to + establish an SSL handshake with Front Door. Possible values include: "1.0", "1.2". + :type minimum_tls_version: str or ~azure.mgmt.frontdoor.models.MinimumTLSVersion + :param certificate_type: Defines the type of the certificate used for secure connections to a + frontendEndpoint. Possible values include: "Dedicated". + :type certificate_type: str or ~azure.mgmt.frontdoor.models.FrontDoorCertificateType + :param vault: The Key Vault containing the SSL certificate. + :type vault: ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault + :param secret_name: The name of the Key Vault secret representing the full certificate PFX. :type secret_name: str - :param secret_version: The version of the Key Vault secret representing - the full certificate PFX + :param secret_version: The version of the Key Vault secret representing the full certificate + PFX. :type secret_version: str - :param certificate_type: Defines the type of the certificate used for - secure connections to a frontendEndpoint. Possible values include: - 'Dedicated' - :type certificate_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateType """ _validation = { 'certificate_source': {'required': True}, - 'protocol_type': {'required': True, 'constant': True}, + 'protocol_type': {'required': True}, 'minimum_tls_version': {'required': True}, } @@ -431,57 +444,56 @@ class CustomHttpsConfiguration(Model): 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, 'protocol_type': {'key': 'protocolType', 'type': 'str'}, 'minimum_tls_version': {'key': 'minimumTlsVersion', 'type': 'str'}, + 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, 'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'}, 'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'}, 'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'}, - 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, } - protocol_type = "ServerNameIndication" - - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(CustomHttpsConfiguration, self).__init__(**kwargs) - self.certificate_source = kwargs.get('certificate_source', None) - self.minimum_tls_version = kwargs.get('minimum_tls_version', None) + self.certificate_source = kwargs['certificate_source'] + self.protocol_type = kwargs['protocol_type'] + self.minimum_tls_version = kwargs['minimum_tls_version'] + self.certificate_type = kwargs.get('certificate_type', None) self.vault = kwargs.get('vault', None) self.secret_name = kwargs.get('secret_name', None) self.secret_version = kwargs.get('secret_version', None) - self.certificate_type = kwargs.get('certificate_type', None) -class CustomRule(Model): +class CustomRule(msrest.serialization.Model): """Defines contents of a web application rule. All required parameters must be populated in order to send to Azure. :param name: Describes the name of the rule. :type name: str - :param priority: Required. Describes priority of the rule. Rules with a - lower value will be evaluated before rules with a higher value. + :param priority: Required. Describes priority of the rule. Rules with a lower value will be + evaluated before rules with a higher value. :type priority: int - :param enabled_state: Describes if the custom rule is in enabled or - disabled state. Defaults to Enabled if not specified. Possible values - include: 'Disabled', 'Enabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.CustomRuleEnabledState - :param rule_type: Required. Describes type of rule. Possible values - include: 'MatchRule', 'RateLimitRule' + :param enabled_state: Describes if the custom rule is in enabled or disabled state. Defaults to + Enabled if not specified. Possible values include: "Disabled", "Enabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.CustomRuleEnabledState + :param rule_type: Required. Describes type of rule. Possible values include: "MatchRule", + "RateLimitRule". :type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType - :param rate_limit_duration_in_minutes: Time window for resetting the rate - limit count. Default is 1 minute. + :param rate_limit_duration_in_minutes: Time window for resetting the rate limit count. Default + is 1 minute. :type rate_limit_duration_in_minutes: int - :param rate_limit_threshold: Number of allowed requests per client within - the time window. + :param rate_limit_threshold: Number of allowed requests per client within the time window. :type rate_limit_threshold: int :param match_conditions: Required. List of match conditions. :type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition] - :param action: Required. Describes what action to be applied when rule - matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :param action: Required. Describes what action to be applied when rule matches. Possible values + include: "Allow", "Block", "Log", "Redirect". :type action: str or ~azure.mgmt.frontdoor.models.ActionType """ _validation = { - 'name': {'max_length': 128}, + 'name': {'max_length': 128, 'min_length': 0}, 'priority': {'required': True}, 'rule_type': {'required': True}, 'rate_limit_duration_in_minutes': {'maximum': 5, 'minimum': 0}, @@ -501,22 +513,25 @@ class CustomRule(Model): 'action': {'key': 'action', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(CustomRule, self).__init__(**kwargs) self.name = kwargs.get('name', None) - self.priority = kwargs.get('priority', None) + self.priority = kwargs['priority'] self.enabled_state = kwargs.get('enabled_state', None) - self.rule_type = kwargs.get('rule_type', None) + self.rule_type = kwargs['rule_type'] self.rate_limit_duration_in_minutes = kwargs.get('rate_limit_duration_in_minutes', None) self.rate_limit_threshold = kwargs.get('rate_limit_threshold', None) - self.match_conditions = kwargs.get('match_conditions', None) - self.action = kwargs.get('action', None) + self.match_conditions = kwargs['match_conditions'] + self.action = kwargs['action'] -class CustomRuleList(Model): +class CustomRuleList(msrest.serialization.Model): """Defines contents of custom rules. - :param rules: List of rules + :param rules: List of rules. :type rules: list[~azure.mgmt.frontdoor.models.CustomRule] """ @@ -524,17 +539,20 @@ class CustomRuleList(Model): 'rules': {'key': 'rules', 'type': '[CustomRule]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(CustomRuleList, self).__init__(**kwargs) self.rules = kwargs.get('rules', None) -class Endpoint(Model): +class Endpoint(msrest.serialization.Model): """Defines the endpoint properties. - :param name: The name of the endpoint + :param name: The name of the endpoint. :type name: str - :param endpoint: The endpoint URL + :param endpoint: The endpoint URL. :type endpoint: str """ @@ -543,13 +561,16 @@ class Endpoint(Model): 'endpoint': {'key': 'endpoint', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Endpoint, self).__init__(**kwargs) self.name = kwargs.get('name', None) self.endpoint = kwargs.get('endpoint', None) -class Error(Model): +class Error(msrest.serialization.Model): """Error. :param code: @@ -572,7 +593,10 @@ class Error(Model): 'inner_error': {'key': 'innerError', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Error, self).__init__(**kwargs) self.code = kwargs.get('code', None) self.message = kwargs.get('message', None) @@ -581,7 +605,7 @@ def __init__(self, **kwargs): self.inner_error = kwargs.get('inner_error', None) -class ErrorDetails(Model): +class ErrorDetails(msrest.serialization.Model): """ErrorDetails. :param code: @@ -598,19 +622,20 @@ class ErrorDetails(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ErrorDetails, self).__init__(**kwargs) self.code = kwargs.get('code', None) self.target = kwargs.get('target', None) self.message = kwargs.get('message', None) -class ErrorResponse(Model): - """Error response indicates Front Door service is not able to process the - incoming request. The reason is provided in the error message. +class ErrorResponse(msrest.serialization.Model): + """Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar code: Error code. :vartype code: str @@ -628,29 +653,19 @@ class ErrorResponse(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ErrorResponse, self).__init__(**kwargs) self.code = None self.message = None -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) - - -class Resource(Model): +class Resource(msrest.serialization.Model): """Common resource representation. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -660,7 +675,7 @@ class Resource(Model): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] """ @@ -678,7 +693,10 @@ class Resource(Model): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Resource, self).__init__(**kwargs) self.id = None self.name = None @@ -690,8 +708,7 @@ def __init__(self, **kwargs): class Experiment(Resource): """Defines the properties of an Experiment. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -701,25 +718,23 @@ class Experiment(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param description: The description of the details or intents of the - Experiment + :param description: The description of the details or intents of the Experiment. :type description: str - :param endpoint_a: The endpoint A of an experiment + :param endpoint_a: The endpoint A of an experiment. :type endpoint_a: ~azure.mgmt.frontdoor.models.Endpoint - :param endpoint_b: The endpoint B of an experiment + :param endpoint_b: The endpoint B of an experiment. :type endpoint_b: ~azure.mgmt.frontdoor.models.Endpoint - :param enabled_state: The state of the Experiment. Possible values - include: 'Enabled', 'Disabled' + :param enabled_state: The state of the Experiment. Possible values include: "Enabled", + "Disabled". :type enabled_state: str or ~azure.mgmt.frontdoor.models.State - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState - :ivar status: The description of Experiment status from the server side + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :ivar status: The description of Experiment status from the server side. :vartype status: str - :ivar script_file_uri: The uri to the Script used in the Experiment + :ivar script_file_uri: The uri to the Script used in the Experiment. :vartype script_file_uri: str """ @@ -727,6 +742,7 @@ class Experiment(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, 'status': {'readonly': True}, 'script_file_uri': {'readonly': True}, } @@ -746,27 +762,58 @@ class Experiment(Resource): 'script_file_uri': {'key': 'properties.scriptFileUri', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Experiment, self).__init__(**kwargs) self.description = kwargs.get('description', None) self.endpoint_a = kwargs.get('endpoint_a', None) self.endpoint_b = kwargs.get('endpoint_b', None) self.enabled_state = kwargs.get('enabled_state', None) - self.resource_state = kwargs.get('resource_state', None) + self.resource_state = None self.status = None self.script_file_uri = None -class ExperimentUpdateModel(Model): +class ExperimentList(msrest.serialization.Model): + """Defines a list of Experiments. It contains a list of Experiment objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Experiments within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.Experiment] + :param next_link: URL to get the next set of Experiment objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Experiment]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ExperimentList, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class ExperimentUpdateModel(msrest.serialization.Model): """Defines modifiable attributes of an Experiment. - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param description: The description of the intent or details of the - Experiment + :param description: The description of the intent or details of the Experiment. :type description: str - :param enabled_state: The state of the Experiment. Possible values - include: 'Enabled', 'Disabled' + :param enabled_state: The state of the Experiment. Possible values include: "Enabled", + "Disabled". :type enabled_state: str or ~azure.mgmt.frontdoor.models.State """ @@ -776,40 +823,46 @@ class ExperimentUpdateModel(Model): 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ExperimentUpdateModel, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) self.description = kwargs.get('description', None) self.enabled_state = kwargs.get('enabled_state', None) -class RouteConfiguration(Model): +class RouteConfiguration(msrest.serialization.Model): """Base class for all types of Route. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ForwardingConfiguration, RedirectConfiguration + sub-classes are: ForwardingConfiguration, RedirectConfiguration. All required parameters must be populated in order to send to Azure. - :param odatatype: Required. Constant filled by server. - :type odatatype: str + :param odata_type: Required. Constant filled by server. + :type odata_type: str """ _validation = { - 'odatatype': {'required': True}, + 'odata_type': {'required': True}, } _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, } _subtype_map = { - 'odatatype': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} + 'odata_type': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RouteConfiguration, self).__init__(**kwargs) - self.odatatype = None + self.odata_type = None # type: Optional[str] class ForwardingConfiguration(RouteConfiguration): @@ -817,51 +870,48 @@ class ForwardingConfiguration(RouteConfiguration): All required parameters must be populated in order to send to Azure. - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. + :param odata_type: Required. Constant filled by server. + :type odata_type: str + :param custom_forwarding_path: A custom path used to rewrite resource paths matched by this + rule. Leave empty to use incoming path. :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. + :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. + Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". + :type forwarding_protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol + :param cache_configuration: The caching configuration associated with this rule. :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. + :param backend_pool: A reference to the BackendPool which this rule routes to. :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource """ _validation = { - 'odatatype': {'required': True}, + 'odata_type': {'required': True}, } _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ForwardingConfiguration, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' # type: str self.custom_forwarding_path = kwargs.get('custom_forwarding_path', None) self.forwarding_protocol = kwargs.get('forwarding_protocol', None) self.cache_configuration = kwargs.get('cache_configuration', None) self.backend_pool = kwargs.get('backend_pool', None) - self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' class FrontDoor(Resource): - """Front Door represents a collection of backend endpoints to route traffic to - along with rules that specify how traffic is sent there. + """Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic is sent there. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -871,46 +921,36 @@ class FrontDoor(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param friendly_name: A friendly name for the frontDoor + :param friendly_name: A friendly name for the frontDoor. :type friendly_name: str :param routing_rules: Routing rules associated with this Front Door. :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param load_balancing_settings: Load balancing settings associated with this Front Door + instance. + :type load_balancing_settings: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this Front Door instance. + :type health_probe_settings: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] :param backend_pools: Backend pools available to routing rules. :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param backend_pools_settings: Settings for all backendPools - :type backend_pools_settings: - ~azure.mgmt.frontdoor.models.BackendPoolsSettings - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param resource_state: Resource status of the Front Door. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools. + :type backend_pools_settings: ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. Permitted values are + 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :ivar resource_state: Resource status of the Front Door. Possible values include: "Creating", + "Enabling", "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState :ivar provisioning_state: Provisioning state of the Front Door. :vartype provisioning_state: str :ivar cname: The host that each frontendEndpoint must CNAME to. :vartype cname: str :ivar frontdoor_id: The Id of the frontdoor. :vartype frontdoor_id: str - :ivar rules_engines: Rules Engine Configurations available to routing - rules. + :ivar rules_engines: Rules Engine Configurations available to routing rules. :vartype rules_engines: list[~azure.mgmt.frontdoor.models.RulesEngine] """ @@ -918,6 +958,7 @@ class FrontDoor(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'cname': {'readonly': True}, 'frontdoor_id': {'readonly': True}, @@ -945,7 +986,10 @@ class FrontDoor(Resource): 'rules_engines': {'key': 'properties.rulesEngines', 'type': '[RulesEngine]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(FrontDoor, self).__init__(**kwargs) self.friendly_name = kwargs.get('friendly_name', None) self.routing_rules = kwargs.get('routing_rules', None) @@ -955,41 +999,63 @@ def __init__(self, **kwargs): self.frontend_endpoints = kwargs.get('frontend_endpoints', None) self.backend_pools_settings = kwargs.get('backend_pools_settings', None) self.enabled_state = kwargs.get('enabled_state', None) - self.resource_state = kwargs.get('resource_state', None) + self.resource_state = None self.provisioning_state = None self.cname = None self.frontdoor_id = None self.rules_engines = None -class FrontDoorUpdateParameters(Model): +class FrontDoorListResult(msrest.serialization.Model): + """Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Front Doors within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.FrontDoor] + :param next_link: URL to get the next set of Front Door objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[FrontDoor]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(FrontDoorListResult, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class FrontDoorUpdateParameters(msrest.serialization.Model): """The properties needed to update a Front Door. - :param friendly_name: A friendly name for the frontDoor + :param friendly_name: A friendly name for the frontDoor. :type friendly_name: str :param routing_rules: Routing rules associated with this Front Door. :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param load_balancing_settings: Load balancing settings associated with this Front Door + instance. + :type load_balancing_settings: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this Front Door instance. + :type health_probe_settings: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] :param backend_pools: Backend pools available to routing rules. :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param backend_pools_settings: Settings for all backendPools - :type backend_pools_settings: - ~azure.mgmt.frontdoor.models.BackendPoolsSettings - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools. + :type backend_pools_settings: ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. Permitted values are + 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.FrontDoorEnabledState """ _attribute_map = { @@ -1003,7 +1069,10 @@ class FrontDoorUpdateParameters(Model): 'enabled_state': {'key': 'enabledState', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(FrontDoorUpdateParameters, self).__init__(**kwargs) self.friendly_name = kwargs.get('friendly_name', None) self.routing_rules = kwargs.get('routing_rules', None) @@ -1015,68 +1084,134 @@ def __init__(self, **kwargs): self.enabled_state = kwargs.get('enabled_state', None) +class FrontDoorProperties(FrontDoorUpdateParameters): + """The JSON object that contains the properties required to create an endpoint. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param friendly_name: A friendly name for the frontDoor. + :type friendly_name: str + :param routing_rules: Routing rules associated with this Front Door. + :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param load_balancing_settings: Load balancing settings associated with this Front Door + instance. + :type load_balancing_settings: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this Front Door instance. + :type health_probe_settings: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param backend_pools: Backend pools available to routing rules. + :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] + :param frontend_endpoints: Frontend endpoints available to routing rules. + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools. + :type backend_pools_settings: ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. Permitted values are + 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :ivar resource_state: Resource status of the Front Door. Possible values include: "Creating", + "Enabling", "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar provisioning_state: Provisioning state of the Front Door. + :vartype provisioning_state: str + :ivar cname: The host that each frontendEndpoint must CNAME to. + :vartype cname: str + :ivar frontdoor_id: The Id of the frontdoor. + :vartype frontdoor_id: str + :ivar rules_engines: Rules Engine Configurations available to routing rules. + :vartype rules_engines: list[~azure.mgmt.frontdoor.models.RulesEngine] + """ + + _validation = { + 'resource_state': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'cname': {'readonly': True}, + 'frontdoor_id': {'readonly': True}, + 'rules_engines': {'readonly': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, + 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'backendPoolsSettings', 'type': 'BackendPoolsSettings'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'cname': {'key': 'cname', 'type': 'str'}, + 'frontdoor_id': {'key': 'frontdoorId', 'type': 'str'}, + 'rules_engines': {'key': 'rulesEngines', 'type': '[RulesEngine]'}, + } + + def __init__( + self, + **kwargs + ): + super(FrontDoorProperties, self).__init__(**kwargs) + self.resource_state = None + self.provisioning_state = None + self.cname = None + self.frontdoor_id = None + self.rules_engines = None + + class FrontendEndpoint(SubResource): """A frontend endpoint used for routing. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + :param host_name: The host name of the frontendEndpoint. Must be a domain name. :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' + :param session_affinity_enabled_state: Whether to allow session affinity on this host. Valid + options are 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". :type session_affinity_enabled_state: str or ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. The TTL to use in + seconds for session affinity, if applicable. :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each host (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :ivar custom_https_provisioning_state: Provisioning status of Custom Https - of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', - 'Disabling', 'Disabled', 'Failed' + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar custom_https_provisioning_state: Provisioning status of Custom Https of the + frontendEndpoint. Possible values include: "Enabling", "Enabled", "Disabling", "Disabled", + "Failed". :vartype custom_https_provisioning_state: str or ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState - :ivar custom_https_provisioning_substate: Provisioning substate shows the - progress of custom HTTPS enabling/disabling process step by step. Possible - values include: 'SubmittingDomainControlValidationRequest', - 'PendingDomainControlValidationREquestApproval', - 'DomainControlValidationRequestApproved', - 'DomainControlValidationRequestRejected', - 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', - 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', - 'CertificateDeleted' + :ivar custom_https_provisioning_substate: Provisioning substate shows the progress of custom + HTTPS enabling/disabling process step by step. Possible values include: + "SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", + "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", + "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", + "CertificateDeployed", "DeletingCertificate", "CertificateDeleted". :vartype custom_https_provisioning_substate: str or ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate - :ivar custom_https_configuration: The configuration specifying how to - enable HTTPS - :vartype custom_https_configuration: - ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str + :ivar custom_https_configuration: The configuration specifying how to enable HTTPS. + :vartype custom_https_configuration: ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration """ _validation = { + 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, 'custom_https_provisioning_state': {'readonly': True}, 'custom_https_provisioning_substate': {'readonly': True}, 'custom_https_configuration': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'host_name': {'key': 'properties.hostName', 'type': 'str'}, 'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'}, 'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'}, @@ -1085,25 +1220,26 @@ class FrontendEndpoint(SubResource): 'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'}, 'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'}, 'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(FrontendEndpoint, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = None self.host_name = kwargs.get('host_name', None) self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None) self.session_affinity_ttl_seconds = kwargs.get('session_affinity_ttl_seconds', None) self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) - self.resource_state = kwargs.get('resource_state', None) + self.resource_state = None self.custom_https_provisioning_state = None self.custom_https_provisioning_substate = None self.custom_https_configuration = None - self.name = kwargs.get('name', None) - self.type = None -class FrontendEndpointLink(Model): +class FrontendEndpointLink(msrest.serialization.Model): """Defines the Resource ID for a Frontend Endpoint. :param id: Resource ID. @@ -1114,27 +1250,28 @@ class FrontendEndpointLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(FrontendEndpointLink, self).__init__(**kwargs) self.id = kwargs.get('id', None) -class FrontendEndpointUpdateParameters(Model): +class FrontendEndpointUpdateParameters(msrest.serialization.Model): """Frontend endpoint used in routing rule. - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. + :param host_name: The host name of the frontendEndpoint. Must be a domain name. :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' + :param session_affinity_enabled_state: Whether to allow session affinity on this host. Valid + options are 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". :type session_affinity_enabled_state: str or ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. The TTL to use in + seconds for session affinity, if applicable. :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each host (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink """ @@ -1146,7 +1283,10 @@ class FrontendEndpointUpdateParameters(Model): 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(FrontendEndpointUpdateParameters, self).__init__(**kwargs) self.host_name = kwargs.get('host_name', None) self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None) @@ -1154,7 +1294,103 @@ def __init__(self, **kwargs): self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) -class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): +class FrontendEndpointProperties(FrontendEndpointUpdateParameters): + """The JSON object that contains the properties required to create a frontend endpoint. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param host_name: The host name of the frontendEndpoint. Must be a domain name. + :type host_name: str + :param session_affinity_enabled_state: Whether to allow session affinity on this host. Valid + options are 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type session_affinity_enabled_state: str or + ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. The TTL to use in + seconds for session affinity, if applicable. + :type session_affinity_ttl_seconds: int + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each host (if applicable). + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar custom_https_provisioning_state: Provisioning status of Custom Https of the + frontendEndpoint. Possible values include: "Enabling", "Enabled", "Disabling", "Disabled", + "Failed". + :vartype custom_https_provisioning_state: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState + :ivar custom_https_provisioning_substate: Provisioning substate shows the progress of custom + HTTPS enabling/disabling process step by step. Possible values include: + "SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", + "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", + "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", + "CertificateDeployed", "DeletingCertificate", "CertificateDeleted". + :vartype custom_https_provisioning_substate: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate + :ivar custom_https_configuration: The configuration specifying how to enable HTTPS. + :vartype custom_https_configuration: ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration + """ + + _validation = { + 'resource_state': {'readonly': True}, + 'custom_https_provisioning_state': {'readonly': True}, + 'custom_https_provisioning_substate': {'readonly': True}, + 'custom_https_configuration': {'readonly': True}, + } + + _attribute_map = { + 'host_name': {'key': 'hostName', 'type': 'str'}, + 'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'}, + 'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'}, + 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + 'custom_https_provisioning_state': {'key': 'customHttpsProvisioningState', 'type': 'str'}, + 'custom_https_provisioning_substate': {'key': 'customHttpsProvisioningSubstate', 'type': 'str'}, + 'custom_https_configuration': {'key': 'customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, + } + + def __init__( + self, + **kwargs + ): + super(FrontendEndpointProperties, self).__init__(**kwargs) + self.resource_state = None + self.custom_https_provisioning_state = None + self.custom_https_provisioning_substate = None + self.custom_https_configuration = None + + +class FrontendEndpointsListResult(msrest.serialization.Model): + """Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Frontend endpoints within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param next_link: URL to get the next set of frontend endpoints if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[FrontendEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(FrontendEndpointsListResult, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(msrest.serialization.Model): """Defines the Web Application Firewall policy for each host (if applicable). :param id: Resource ID. @@ -1165,25 +1401,26 @@ class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) self.id = kwargs.get('id', None) -class HeaderAction(Model): +class HeaderAction(msrest.serialization.Model): """An action that can manipulate an http header. All required parameters must be populated in order to send to Azure. - :param header_action_type: Required. Which type of manipulation to apply - to the header. Possible values include: 'Append', 'Delete', 'Overwrite' - :type header_action_type: str or - ~azure.mgmt.frontdoor.models.HeaderActionType - :param header_name: Required. The name of the header this action will - apply to. + :param header_action_type: Required. Which type of manipulation to apply to the header. + Possible values include: "Append", "Delete", "Overwrite". + :type header_action_type: str or ~azure.mgmt.frontdoor.models.HeaderActionType + :param header_name: Required. The name of the header this action will apply to. :type header_name: str - :param value: The value to update the given header name with. This value - is not used if the actionType is Delete. + :param value: The value to update the given header name with. This value is not used if the + actionType is Delete. :type value: str """ @@ -1198,25 +1435,24 @@ class HeaderAction(Model): 'value': {'key': 'value', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(HeaderAction, self).__init__(**kwargs) - self.header_action_type = kwargs.get('header_action_type', None) - self.header_name = kwargs.get('header_name', None) + self.header_action_type = kwargs['header_action_type'] + self.header_name = kwargs['header_name'] self.value = kwargs.get('value', None) -class HealthProbeSettingsListResult(Model): - """Result of the request to list HealthProbeSettings. It contains a list of - HealthProbeSettings objects and a URL link to get the next set of results. +class HealthProbeSettingsListResult(msrest.serialization.Model): + """Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of HealthProbeSettings within a Front Door. - :vartype value: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - :param next_link: URL to get the next set of HealthProbeSettings objects - if there are any. + :vartype value: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param next_link: URL to get the next set of HealthProbeSettings objects if there are any. :type next_link: str """ @@ -1229,7 +1465,10 @@ class HealthProbeSettingsListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(HealthProbeSettingsListResult, self).__init__(**kwargs) self.value = None self.next_link = kwargs.get('next_link', None) @@ -1238,88 +1477,82 @@ def __init__(self, **kwargs): class HealthProbeSettingsModel(SubResource): """Load balancing settings for a backend pool. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param path: The path to use for the health probe. Default is / - :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' - :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol - :param interval_in_seconds: The number of seconds between health probes. - :type interval_in_seconds: int - :param health_probe_method: Configures which HTTP method to use to probe - the backends defined under backendPools. Possible values include: 'GET', - 'HEAD'. Default value: "HEAD" . - :type health_probe_method: str or - ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod - :param enabled_state: Whether to enable health probes to be made against - backends defined under backendPools. Health probes can only be disabled if - there is a single enabled backend in single enabled backend pool. Possible - values include: 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.HealthProbeEnabled - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :param name: Resource name. :type name: str :ivar type: Resource type. :vartype type: str + :param path: The path to use for the health probe. Default is /. + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values include: "Http", + "Https". + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe the backends defined + under backendPools. Possible values include: "GET", "HEAD". Default value: "HEAD". + :type health_probe_method: str or ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against backends defined under + backendPools. Health probes can only be disabled if there is a single enabled backend in single + enabled backend pool. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, 'protocol': {'key': 'properties.protocol', 'type': 'str'}, 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, 'health_probe_method': {'key': 'properties.healthProbeMethod', 'type': 'str'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(HealthProbeSettingsModel, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = None self.path = kwargs.get('path', None) self.protocol = kwargs.get('protocol', None) self.interval_in_seconds = kwargs.get('interval_in_seconds', None) self.health_probe_method = kwargs.get('health_probe_method', "HEAD") self.enabled_state = kwargs.get('enabled_state', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None + self.resource_state = None -class HealthProbeSettingsUpdateParameters(Model): +class HealthProbeSettingsUpdateParameters(msrest.serialization.Model): """L7 health probe settings for a backend pool. - :param path: The path to use for the health probe. Default is / + :param path: The path to use for the health probe. Default is /. :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' + :param protocol: Protocol scheme to use for this probe. Possible values include: "Http", + "Https". :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol :param interval_in_seconds: The number of seconds between health probes. :type interval_in_seconds: int - :param health_probe_method: Configures which HTTP method to use to probe - the backends defined under backendPools. Possible values include: 'GET', - 'HEAD'. Default value: "HEAD" . - :type health_probe_method: str or - ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod - :param enabled_state: Whether to enable health probes to be made against - backends defined under backendPools. Health probes can only be disabled if - there is a single enabled backend in single enabled backend pool. Possible - values include: 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :param health_probe_method: Configures which HTTP method to use to probe the backends defined + under backendPools. Possible values include: "GET", "HEAD". Default value: "HEAD". + :type health_probe_method: str or ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against backends defined under + backendPools. Health probes can only be disabled if there is a single enabled backend in single + enabled backend pool. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.HealthProbeEnabled """ _attribute_map = { @@ -1330,7 +1563,10 @@ class HealthProbeSettingsUpdateParameters(Model): 'enabled_state': {'key': 'enabledState', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs) self.path = kwargs.get('path', None) self.protocol = kwargs.get('protocol', None) @@ -1339,7 +1575,52 @@ def __init__(self, **kwargs): self.enabled_state = kwargs.get('enabled_state', None) -class KeyVaultCertificateSourceParametersVault(Model): +class HealthProbeSettingsProperties(HealthProbeSettingsUpdateParameters): + """The JSON object that contains the properties required to create a health probe settings. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param path: The path to use for the health probe. Default is /. + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values include: "Http", + "Https". + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe the backends defined + under backendPools. Possible values include: "GET", "HEAD". Default value: "HEAD". + :type health_probe_method: str or ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against backends defined under + backendPools. Health probes can only be disabled if there is a single enabled backend in single + enabled backend pool. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + """ + + _validation = { + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, + 'health_probe_method': {'key': 'healthProbeMethod', 'type': 'str'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(HealthProbeSettingsProperties, self).__init__(**kwargs) + self.resource_state = None + + +class KeyVaultCertificateSourceParametersVault(msrest.serialization.Model): """The Key Vault containing the SSL certificate. :param id: Resource ID. @@ -1350,40 +1631,38 @@ class KeyVaultCertificateSourceParametersVault(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs) self.id = kwargs.get('id', None) -class LatencyMetric(Model): +class LatencyMetric(msrest.serialization.Model): """Defines the properties of a latency metric used in the latency scorecard. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The name of the Latency Metric + :ivar name: The name of the Latency Metric. :vartype name: str - :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC. :vartype end_date_time_utc: str - :ivar a_value: The metric value of the A endpoint + :ivar a_value: The metric value of the A endpoint. :vartype a_value: float - :ivar b_value: The metric value of the B endpoint + :ivar b_value: The metric value of the B endpoint. :vartype b_value: float - :ivar delta: The difference in value between endpoint A and B + :ivar delta: The difference in value between endpoint A and B. :vartype delta: float - :ivar delta_percent: The percent difference between endpoint A and B + :ivar delta_percent: The percent difference between endpoint A and B. :vartype delta_percent: float - :ivar a_clower95_ci: The lower end of the 95% confidence interval for - endpoint A - :vartype a_clower95_ci: float - :ivar a_hupper95_ci: The upper end of the 95% confidence interval for - endpoint A - :vartype a_hupper95_ci: float - :ivar b_clower95_ci: The lower end of the 95% confidence interval for - endpoint B - :vartype b_clower95_ci: float - :ivar b_upper95_ci: The upper end of the 95% confidence interval for - endpoint B + :ivar a_c_lower95_ci: The lower end of the 95% confidence interval for endpoint A. + :vartype a_c_lower95_ci: float + :ivar a_h_upper95_ci: The upper end of the 95% confidence interval for endpoint A. + :vartype a_h_upper95_ci: float + :ivar b_c_lower95_ci: The lower end of the 95% confidence interval for endpoint B. + :vartype b_c_lower95_ci: float + :ivar b_upper95_ci: The upper end of the 95% confidence interval for endpoint B. :vartype b_upper95_ci: float """ @@ -1394,9 +1673,9 @@ class LatencyMetric(Model): 'b_value': {'readonly': True}, 'delta': {'readonly': True}, 'delta_percent': {'readonly': True}, - 'a_clower95_ci': {'readonly': True}, - 'a_hupper95_ci': {'readonly': True}, - 'b_clower95_ci': {'readonly': True}, + 'a_c_lower95_ci': {'readonly': True}, + 'a_h_upper95_ci': {'readonly': True}, + 'b_c_lower95_ci': {'readonly': True}, 'b_upper95_ci': {'readonly': True}, } @@ -1407,13 +1686,16 @@ class LatencyMetric(Model): 'b_value': {'key': 'bValue', 'type': 'float'}, 'delta': {'key': 'delta', 'type': 'float'}, 'delta_percent': {'key': 'deltaPercent', 'type': 'float'}, - 'a_clower95_ci': {'key': 'aCLower95CI', 'type': 'float'}, - 'a_hupper95_ci': {'key': 'aHUpper95CI', 'type': 'float'}, - 'b_clower95_ci': {'key': 'bCLower95CI', 'type': 'float'}, + 'a_c_lower95_ci': {'key': 'aCLower95CI', 'type': 'float'}, + 'a_h_upper95_ci': {'key': 'aHUpper95CI', 'type': 'float'}, + 'b_c_lower95_ci': {'key': 'bCLower95CI', 'type': 'float'}, 'b_upper95_ci': {'key': 'bUpper95CI', 'type': 'float'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(LatencyMetric, self).__init__(**kwargs) self.name = None self.end_date_time_utc = None @@ -1421,17 +1703,16 @@ def __init__(self, **kwargs): self.b_value = None self.delta = None self.delta_percent = None - self.a_clower95_ci = None - self.a_hupper95_ci = None - self.b_clower95_ci = None + self.a_c_lower95_ci = None + self.a_h_upper95_ci = None + self.b_c_lower95_ci = None self.b_upper95_ci = None class LatencyScorecard(Resource): """Defines the LatencyScorecard. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -1441,27 +1722,26 @@ class LatencyScorecard(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar latency_scorecard_id: The unique identifier of the Latency Scorecard - :vartype latency_scorecard_id: str - :ivar latency_scorecard_name: The name of the Latency Scorecard - :vartype latency_scorecard_name: str - :ivar description: The description of the Latency Scorecard + :ivar id_properties_id: The unique identifier of the Latency Scorecard. + :vartype id_properties_id: str + :ivar name_properties_name: The name of the Latency Scorecard. + :vartype name_properties_name: str + :ivar description: The description of the Latency Scorecard. :vartype description: str - :ivar endpoint_a: The A endpoint in the scorecard + :ivar endpoint_a: The A endpoint in the scorecard. :vartype endpoint_a: str - :ivar endpoint_b: The B endpoint in the scorecard + :ivar endpoint_b: The B endpoint in the scorecard. :vartype endpoint_b: str - :ivar start_date_time_utc: The start time of the Latency Scorecard in UTC - :vartype start_date_time_utc: datetime - :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC - :vartype end_date_time_utc: datetime - :ivar country: The country associated with the Latency Scorecard. Values - are country ISO codes as specified here- - https://www.iso.org/iso-3166-country-codes.html + :ivar start_date_time_utc: The start time of the Latency Scorecard in UTC. + :vartype start_date_time_utc: ~datetime.datetime + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC. + :vartype end_date_time_utc: ~datetime.datetime + :ivar country: The country associated with the Latency Scorecard. Values are country ISO codes + as specified here- https://www.iso.org/iso-3166-country-codes.html. :vartype country: str - :param latency_metrics: The latency metrics of the Latency Scorecard + :param latency_metrics: The latency metrics of the Latency Scorecard. :type latency_metrics: list[~azure.mgmt.frontdoor.models.LatencyMetric] """ @@ -1469,8 +1749,8 @@ class LatencyScorecard(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'latency_scorecard_id': {'readonly': True}, - 'latency_scorecard_name': {'readonly': True}, + 'id_properties_id': {'readonly': True}, + 'name_properties_name': {'readonly': True}, 'description': {'readonly': True}, 'endpoint_a': {'readonly': True}, 'endpoint_b': {'readonly': True}, @@ -1485,8 +1765,8 @@ class LatencyScorecard(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'latency_scorecard_id': {'key': 'properties.id', 'type': 'str'}, - 'latency_scorecard_name': {'key': 'properties.name', 'type': 'str'}, + 'id_properties_id': {'key': 'properties.id', 'type': 'str'}, + 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'endpoint_a': {'key': 'properties.endpointA', 'type': 'str'}, 'endpoint_b': {'key': 'properties.endpointB', 'type': 'str'}, @@ -1496,10 +1776,13 @@ class LatencyScorecard(Resource): 'latency_metrics': {'key': 'properties.latencyMetrics', 'type': '[LatencyMetric]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(LatencyScorecard, self).__init__(**kwargs) - self.latency_scorecard_id = None - self.latency_scorecard_name = None + self.id_properties_id = None + self.name_properties_name = None self.description = None self.endpoint_a = None self.endpoint_b = None @@ -1509,19 +1792,14 @@ def __init__(self, **kwargs): self.latency_metrics = kwargs.get('latency_metrics', None) -class LoadBalancingSettingsListResult(Model): - """Result of the request to list load balancing settings. It contains a list - of load balancing settings objects and a URL link to get the next set of - results. +class LoadBalancingSettingsListResult(msrest.serialization.Model): + """Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Backend Pools within a Front Door. - :vartype value: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param next_link: URL to get the next set of LoadBalancingSettings objects - if there are any. + :vartype value: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param next_link: URL to get the next set of LoadBalancingSettings objects if there are any. :type next_link: str """ @@ -1534,7 +1812,10 @@ class LoadBalancingSettingsListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(LoadBalancingSettingsListResult, self).__init__(**kwargs) self.value = None self.next_link = kwargs.get('next_link', None) @@ -1543,65 +1824,65 @@ def __init__(self, **kwargs): class LoadBalancingSettingsModel(SubResource): """Load balancing settings for a backend pool. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param sample_size: The number of samples to consider for load balancing - decisions - :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed - :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket - :type additional_latency_milliseconds: int - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :param name: Resource name. :type name: str :ivar type: Resource type. :vartype type: str + :param sample_size: The number of samples to consider for load balancing decisions. + :type sample_size: int + :param successful_samples_required: The number of samples within the sample period that must + succeed. + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in milliseconds for probes to + fall into the lowest latency bucket. + :type additional_latency_milliseconds: int + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'sample_size': {'key': 'properties.sampleSize', 'type': 'int'}, 'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'}, 'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(LoadBalancingSettingsModel, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = None self.sample_size = kwargs.get('sample_size', None) self.successful_samples_required = kwargs.get('successful_samples_required', None) self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None + self.resource_state = None -class LoadBalancingSettingsUpdateParameters(Model): +class LoadBalancingSettingsUpdateParameters(msrest.serialization.Model): """Round-Robin load balancing settings for a backend pool. - :param sample_size: The number of samples to consider for load balancing - decisions + :param sample_size: The number of samples to consider for load balancing decisions. :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed + :param successful_samples_required: The number of samples within the sample period that must + succeed. :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket + :param additional_latency_milliseconds: The additional latency in milliseconds for probes to + fall into the lowest latency bucket. :type additional_latency_milliseconds: int """ @@ -1611,28 +1892,65 @@ class LoadBalancingSettingsUpdateParameters(Model): 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs) self.sample_size = kwargs.get('sample_size', None) self.successful_samples_required = kwargs.get('successful_samples_required', None) self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None) -class ManagedRuleDefinition(Model): +class LoadBalancingSettingsProperties(LoadBalancingSettingsUpdateParameters): + """The JSON object that contains the properties required to create load balancing settings. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param sample_size: The number of samples to consider for load balancing decisions. + :type sample_size: int + :param successful_samples_required: The number of samples within the sample period that must + succeed. + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in milliseconds for probes to + fall into the lowest latency bucket. + :type additional_latency_milliseconds: int + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + """ + + _validation = { + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'sample_size': {'key': 'sampleSize', 'type': 'int'}, + 'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'}, + 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LoadBalancingSettingsProperties, self).__init__(**kwargs) + self.resource_state = None + + +class ManagedRuleDefinition(msrest.serialization.Model): """Describes a managed rule definition. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar rule_id: Identifier for the managed rule. :vartype rule_id: str - :ivar default_state: Describes the default state for the managed rule. - Possible values include: 'Disabled', 'Enabled' - :vartype default_state: str or - ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState - :ivar default_action: Describes the default action to be applied when the - managed rule matches. Possible values include: 'Allow', 'Block', 'Log', - 'Redirect' + :ivar default_state: Describes the default state for the managed rule. Possible values include: + "Disabled", "Enabled". + :vartype default_state: str or ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :ivar default_action: Describes the default action to be applied when the managed rule matches. + Possible values include: "Allow", "Block", "Log", "Redirect". :vartype default_action: str or ~azure.mgmt.frontdoor.models.ActionType :ivar description: Describes the functionality of the managed rule. :vartype description: str @@ -1652,7 +1970,10 @@ class ManagedRuleDefinition(Model): 'description': {'key': 'description', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleDefinition, self).__init__(**kwargs) self.rule_id = None self.default_state = None @@ -1660,25 +1981,22 @@ def __init__(self, **kwargs): self.description = None -class ManagedRuleExclusion(Model): +class ManagedRuleExclusion(msrest.serialization.Model): """Exclude variables from managed rule evaluation. All required parameters must be populated in order to send to Azure. - :param match_variable: Required. The variable type to be excluded. - Possible values include: 'RequestHeaderNames', 'RequestCookieNames', - 'QueryStringArgNames', 'RequestBodyPostArgNames', - 'RequestBodyJsonArgNames' - :type match_variable: str or - ~azure.mgmt.frontdoor.models.ManagedRuleExclusionMatchVariable - :param selector_match_operator: Required. Comparison operator to apply to - the selector when specifying which elements in the collection this - exclusion applies to. Possible values include: 'Equals', 'Contains', - 'StartsWith', 'EndsWith', 'EqualsAny' + :param match_variable: Required. The variable type to be excluded. Possible values include: + "RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", + "RequestBodyJsonArgNames". + :type match_variable: str or ~azure.mgmt.frontdoor.models.ManagedRuleExclusionMatchVariable + :param selector_match_operator: Required. Comparison operator to apply to the selector when + specifying which elements in the collection this exclusion applies to. Possible values include: + "Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny". :type selector_match_operator: str or ~azure.mgmt.frontdoor.models.ManagedRuleExclusionSelectorMatchOperator - :param selector: Required. Selector value for which elements in the - collection this exclusion applies to. + :param selector: Required. Selector value for which elements in the collection this exclusion + applies to. :type selector: str """ @@ -1694,18 +2012,20 @@ class ManagedRuleExclusion(Model): 'selector': {'key': 'selector', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleExclusion, self).__init__(**kwargs) - self.match_variable = kwargs.get('match_variable', None) - self.selector_match_operator = kwargs.get('selector_match_operator', None) - self.selector = kwargs.get('selector', None) + self.match_variable = kwargs['match_variable'] + self.selector_match_operator = kwargs['selector_match_operator'] + self.selector = kwargs['selector'] -class ManagedRuleGroupDefinition(Model): +class ManagedRuleGroupDefinition(msrest.serialization.Model): """Describes a managed rule group. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar rule_group_name: Name of the managed rule group. :vartype rule_group_name: str @@ -1727,26 +2047,27 @@ class ManagedRuleGroupDefinition(Model): 'rules': {'key': 'rules', 'type': '[ManagedRuleDefinition]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleGroupDefinition, self).__init__(**kwargs) self.rule_group_name = None self.description = None self.rules = None -class ManagedRuleGroupOverride(Model): +class ManagedRuleGroupOverride(msrest.serialization.Model): """Defines a managed rule group override setting. All required parameters must be populated in order to send to Azure. - :param rule_group_name: Required. Describes the managed rule group to - override. + :param rule_group_name: Required. Describes the managed rule group to override. :type rule_group_name: str - :param exclusions: Describes the exclusions that are applied to all rules - in the group. + :param exclusions: Describes the exclusions that are applied to all rules in the group. :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] - :param rules: List of rules that will be disabled. If none specified, all - rules in the group will be disabled. + :param rules: List of rules that will be disabled. If none specified, all rules in the group + will be disabled. :type rules: list[~azure.mgmt.frontdoor.models.ManagedRuleOverride] """ @@ -1760,30 +2081,30 @@ class ManagedRuleGroupOverride(Model): 'rules': {'key': 'rules', 'type': '[ManagedRuleOverride]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleGroupOverride, self).__init__(**kwargs) - self.rule_group_name = kwargs.get('rule_group_name', None) + self.rule_group_name = kwargs['rule_group_name'] self.exclusions = kwargs.get('exclusions', None) self.rules = kwargs.get('rules', None) -class ManagedRuleOverride(Model): +class ManagedRuleOverride(msrest.serialization.Model): """Defines a managed rule group override setting. All required parameters must be populated in order to send to Azure. :param rule_id: Required. Identifier for the managed rule. :type rule_id: str - :param enabled_state: Describes if the managed rule is in enabled or - disabled state. Defaults to Disabled if not specified. Possible values - include: 'Disabled', 'Enabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState - :param action: Describes the override action to be applied when rule - matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :param enabled_state: Describes if the managed rule is in enabled or disabled state. Defaults + to Disabled if not specified. Possible values include: "Disabled", "Enabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :param action: Describes the override action to be applied when rule matches. Possible values + include: "Allow", "Block", "Log", "Redirect". :type action: str or ~azure.mgmt.frontdoor.models.ActionType - :param exclusions: Describes the exclusions that are applied to this - specific rule. + :param exclusions: Describes the exclusions that are applied to this specific rule. :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] """ @@ -1798,35 +2119,33 @@ class ManagedRuleOverride(Model): 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleOverride, self).__init__(**kwargs) - self.rule_id = kwargs.get('rule_id', None) + self.rule_id = kwargs['rule_id'] self.enabled_state = kwargs.get('enabled_state', None) self.action = kwargs.get('action', None) self.exclusions = kwargs.get('exclusions', None) -class ManagedRuleSet(Model): +class ManagedRuleSet(msrest.serialization.Model): """Defines a managed rule set. All required parameters must be populated in order to send to Azure. :param rule_set_type: Required. Defines the rule set type to use. :type rule_set_type: str - :param rule_set_version: Required. Defines the version of the rule set to - use. + :param rule_set_version: Required. Defines the version of the rule set to use. :type rule_set_version: str - :param rule_set_action: Possible values include: 'Block', 'Log', - 'Redirect' - :type rule_set_action: str or - ~azure.mgmt.frontdoor.models.ManagedRuleSetActionType - :param exclusions: Describes the exclusions that are applied to all rules - in the set. + :param rule_set_action: Defines the action to take when a managed rule set score threshold is + met. Possible values include: "Block", "Log", "Redirect". + :type rule_set_action: str or ~azure.mgmt.frontdoor.models.ManagedRuleSetActionType + :param exclusions: Describes the exclusions that are applied to all rules in the set. :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] - :param rule_group_overrides: Defines the rule group overrides to apply to - the rule set. - :type rule_group_overrides: - list[~azure.mgmt.frontdoor.models.ManagedRuleGroupOverride] + :param rule_group_overrides: Defines the rule group overrides to apply to the rule set. + :type rule_group_overrides: list[~azure.mgmt.frontdoor.models.ManagedRuleGroupOverride] """ _validation = { @@ -1842,10 +2161,13 @@ class ManagedRuleSet(Model): 'rule_group_overrides': {'key': 'ruleGroupOverrides', 'type': '[ManagedRuleGroupOverride]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleSet, self).__init__(**kwargs) - self.rule_set_type = kwargs.get('rule_set_type', None) - self.rule_set_version = kwargs.get('rule_set_version', None) + self.rule_set_type = kwargs['rule_set_type'] + self.rule_set_version = kwargs['rule_set_version'] self.rule_set_action = kwargs.get('rule_set_action', None) self.exclusions = kwargs.get('exclusions', None) self.rule_group_overrides = kwargs.get('rule_group_overrides', None) @@ -1854,8 +2176,7 @@ def __init__(self, **kwargs): class ManagedRuleSetDefinition(Resource): """Describes the a managed rule set definition. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -1865,7 +2186,7 @@ class ManagedRuleSetDefinition(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :ivar provisioning_state: Provisioning state of the managed rule set. :vartype provisioning_state: str @@ -1876,8 +2197,7 @@ class ManagedRuleSetDefinition(Resource): :ivar rule_set_version: Version of the managed rule set type. :vartype rule_set_version: str :ivar rule_groups: Rule groups of the managed rule set. - :vartype rule_groups: - list[~azure.mgmt.frontdoor.models.ManagedRuleGroupDefinition] + :vartype rule_groups: list[~azure.mgmt.frontdoor.models.ManagedRuleGroupDefinition] """ _validation = { @@ -1904,7 +2224,10 @@ class ManagedRuleSetDefinition(Resource): 'rule_groups': {'key': 'properties.ruleGroups', 'type': '[ManagedRuleGroupDefinition]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleSetDefinition, self).__init__(**kwargs) self.provisioning_state = None self.rule_set_id = None @@ -1913,7 +2236,36 @@ def __init__(self, **kwargs): self.rule_groups = None -class ManagedRuleSetList(Model): +class ManagedRuleSetDefinitionList(msrest.serialization.Model): + """List of managed rule set definitions available for use in a policy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of managed rule set definitions. + :vartype value: list[~azure.mgmt.frontdoor.models.ManagedRuleSetDefinition] + :param next_link: URL to retrieve next set of managed rule set definitions. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ManagedRuleSetDefinition]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ManagedRuleSetDefinitionList, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class ManagedRuleSetList(msrest.serialization.Model): """Defines the list of managed rule sets for the policy. :param managed_rule_sets: List of rule sets. @@ -1924,31 +2276,31 @@ class ManagedRuleSetList(Model): 'managed_rule_sets': {'key': 'managedRuleSets', 'type': '[ManagedRuleSet]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ManagedRuleSetList, self).__init__(**kwargs) self.managed_rule_sets = kwargs.get('managed_rule_sets', None) -class MatchCondition(Model): +class MatchCondition(msrest.serialization.Model): """Define a match condition. All required parameters must be populated in order to send to Azure. - :param match_variable: Required. Request variable to compare with. - Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', - 'PostArgs', 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', - 'SocketAddr' + :param match_variable: Required. Request variable to compare with. Possible values include: + "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", + "RequestBody", "Cookies", "SocketAddr". :type match_variable: str or ~azure.mgmt.frontdoor.models.MatchVariable - :param selector: Match against a specific key from the QueryString, - PostArgs, RequestHeader or Cookies variables. Default is null. + :param selector: Match against a specific key from the QueryString, PostArgs, RequestHeader or + Cookies variables. Default is null. :type selector: str - :param operator: Required. Comparison type to use for matching with the - variable value. Possible values include: 'Any', 'IPMatch', 'GeoMatch', - 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', - 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx' + :param operator: Required. Comparison type to use for matching with the variable value. + Possible values include: "Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", + "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx". :type operator: str or ~azure.mgmt.frontdoor.models.Operator - :param negate_condition: Describes if the result of this condition should - be negated. + :param negate_condition: Describes if the result of this condition should be negated. :type negate_condition: bool :param match_value: Required. List of possible match values. :type match_value: list[str] @@ -1971,41 +2323,40 @@ class MatchCondition(Model): 'transforms': {'key': 'transforms', 'type': '[str]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(MatchCondition, self).__init__(**kwargs) - self.match_variable = kwargs.get('match_variable', None) + self.match_variable = kwargs['match_variable'] self.selector = kwargs.get('selector', None) - self.operator = kwargs.get('operator', None) + self.operator = kwargs['operator'] self.negate_condition = kwargs.get('negate_condition', None) - self.match_value = kwargs.get('match_value', None) + self.match_value = kwargs['match_value'] self.transforms = kwargs.get('transforms', None) -class PolicySettings(Model): +class PolicySettings(msrest.serialization.Model): """Defines top-level WebApplicationFirewallPolicy configuration settings. - :param enabled_state: Describes if the policy is in enabled or disabled - state. Defaults to Enabled if not specified. Possible values include: - 'Disabled', 'Enabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.PolicyEnabledState - :param mode: Describes if it is in detection mode or prevention mode at - policy level. Possible values include: 'Prevention', 'Detection' + :param enabled_state: Describes if the policy is in enabled or disabled state. Defaults to + Enabled if not specified. Possible values include: "Disabled", "Enabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.PolicyEnabledState + :param mode: Describes if it is in detection mode or prevention mode at policy level. Possible + values include: "Prevention", "Detection". :type mode: str or ~azure.mgmt.frontdoor.models.PolicyMode - :param redirect_url: If action type is redirect, this field represents - redirect URL for the client. + :param redirect_url: If action type is redirect, this field represents redirect URL for the + client. :type redirect_url: str - :param custom_block_response_status_code: If the action type is block, - customer can override the response status code. + :param custom_block_response_status_code: If the action type is block, customer can override + the response status code. :type custom_block_response_status_code: int - :param custom_block_response_body: If the action type is block, customer - can override the response body. The body must be specified in base64 - encoding. + :param custom_block_response_body: If the action type is block, customer can override the + response body. The body must be specified in base64 encoding. :type custom_block_response_body: str - :param request_body_check: Describes if policy managed rules will inspect - the request body content. Possible values include: 'Disabled', 'Enabled' - :type request_body_check: str or - ~azure.mgmt.frontdoor.models.PolicyRequestBodyCheck + :param request_body_check: Describes if policy managed rules will inspect the request body + content. Possible values include: "Disabled", "Enabled". + :type request_body_check: str or ~azure.mgmt.frontdoor.models.PolicyRequestBodyCheck """ _validation = { @@ -2021,7 +2372,10 @@ class PolicySettings(Model): 'request_body_check': {'key': 'requestBodyCheck', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(PolicySettings, self).__init__(**kwargs) self.enabled_state = kwargs.get('enabled_state', None) self.mode = kwargs.get('mode', None) @@ -2034,8 +2388,7 @@ def __init__(self, **kwargs): class PreconfiguredEndpoint(Resource): """Defines the properties of a preconfigured endpoint. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2045,16 +2398,16 @@ class PreconfiguredEndpoint(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param description: The description of the endpoint + :param description: The description of the endpoint. :type description: str - :param endpoint: The endpoint that is preconfigured + :param endpoint: The endpoint that is preconfigured. :type endpoint: str - :param endpoint_type: The type of endpoint. Possible values include: - 'AFD', 'AzureRegion', 'CDN', 'ATM' + :param endpoint_type: The type of endpoint. Possible values include: "AFD", "AzureRegion", + "CDN", "ATM". :type endpoint_type: str or ~azure.mgmt.frontdoor.models.EndpointType - :param backend: The preconfigured endpoint backend + :param backend: The preconfigured endpoint backend. :type backend: str """ @@ -2076,7 +2429,10 @@ class PreconfiguredEndpoint(Resource): 'backend': {'key': 'properties.backend', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(PreconfiguredEndpoint, self).__init__(**kwargs) self.description = kwargs.get('description', None) self.endpoint = kwargs.get('endpoint', None) @@ -2084,11 +2440,39 @@ def __init__(self, **kwargs): self.backend = kwargs.get('backend', None) +class PreconfiguredEndpointList(msrest.serialization.Model): + """Defines a list of preconfigured endpoints. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of PreconfiguredEndpoints supported by NetworkExperiment. + :vartype value: list[~azure.mgmt.frontdoor.models.PreconfiguredEndpoint] + :param next_link: URL to get the next set of PreconfiguredEndpoints if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PreconfiguredEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PreconfiguredEndpointList, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + class Profile(Resource): """Defines an Network Experiment Profile and lists of Experiments. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2098,24 +2482,23 @@ class Profile(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState - :param enabled_state: The state of the Experiment. Possible values - include: 'Enabled', 'Disabled' - :type enabled_state: str or ~azure.mgmt.frontdoor.models.State - :param etag: Gets a unique read-only string that changes whenever the - resource is updated. + :param etag: Gets a unique read-only string that changes whenever the resource is updated. :type etag: str + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :param enabled_state: The state of the Experiment. Possible values include: "Enabled", + "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { @@ -2124,46 +2507,81 @@ class Profile(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Profile, self).__init__(**kwargs) - self.resource_state = kwargs.get('resource_state', None) - self.enabled_state = kwargs.get('enabled_state', None) self.etag = kwargs.get('etag', None) + self.resource_state = None + self.enabled_state = kwargs.get('enabled_state', None) + + +class ProfileList(msrest.serialization.Model): + """Defines a list of Profiles. It contains a list of Profile objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Profiles within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.Profile] + :param next_link: URL to get the next set of Profile objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Profile]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProfileList, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) -class ProfileUpdateModel(Model): +class ProfileUpdateModel(msrest.serialization.Model): """Defines modifiable attributes of a Profile. - :param enabled_state: The enabled state of the Profile. Possible values - include: 'Enabled', 'Disabled' - :type enabled_state: str or ~azure.mgmt.frontdoor.models.State - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param enabled_state: The enabled state of the Profile. Possible values include: "Enabled", + "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State """ _attribute_map = { - 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ProfileUpdateModel, self).__init__(**kwargs) - self.enabled_state = kwargs.get('enabled_state', None) self.tags = kwargs.get('tags', None) + self.enabled_state = kwargs.get('enabled_state', None) -class PurgeParameters(Model): +class PurgeParameters(msrest.serialization.Model): """Parameters required for content purge. All required parameters must be populated in order to send to Azure. - :param content_paths: Required. The path to the content to be purged. Can - describe a file path or a wild card directory. + :param content_paths: Required. The path to the content to be purged. Can describe a file path + or a wild card directory. :type content_paths: list[str] """ @@ -2175,9 +2593,12 @@ class PurgeParameters(Model): 'content_paths': {'key': 'contentPaths', 'type': '[str]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(PurgeParameters, self).__init__(**kwargs) - self.content_paths = kwargs.get('content_paths', None) + self.content_paths = kwargs['content_paths'] class RedirectConfiguration(RouteConfiguration): @@ -2185,43 +2606,37 @@ class RedirectConfiguration(RouteConfiguration): All required parameters must be populated in order to send to Azure. - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param redirect_type: The redirect type the rule will use when redirecting - traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', - 'PermanentRedirect' - :type redirect_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorRedirectType - :param redirect_protocol: The protocol of the destination to where the - traffic is redirected. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type redirect_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol - :param custom_host: Host to redirect. Leave empty to use the incoming host - as the destination host. + :param odata_type: Required. Constant filled by server. + :type odata_type: str + :param redirect_type: The redirect type the rule will use when redirecting traffic. Possible + values include: "Moved", "Found", "TemporaryRedirect", "PermanentRedirect". + :type redirect_type: str or ~azure.mgmt.frontdoor.models.FrontDoorRedirectType + :param redirect_protocol: The protocol of the destination to where the traffic is redirected. + Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". + :type redirect_protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol + :param custom_host: Host to redirect. Leave empty to use the incoming host as the destination + host. :type custom_host: str - :param custom_path: The full path to redirect. Path cannot be empty and - must start with /. Leave empty to use the incoming path as destination - path. + :param custom_path: The full path to redirect. Path cannot be empty and must start with /. + Leave empty to use the incoming path as destination path. :type custom_path: str - :param custom_fragment: Fragment to add to the redirect URL. Fragment is - the part of the URL that comes after #. Do not include the #. + :param custom_fragment: Fragment to add to the redirect URL. Fragment is the part of the URL + that comes after #. Do not include the #. :type custom_fragment: str - :param custom_query_string: The set of query strings to be placed in the - redirect URL. Setting this value would replace any existing query string; - leave empty to preserve the incoming query string. Query string must be in - = format. The first ? and & will be added automatically so do - not include them in the front, but do separate multiple query strings with - &. + :param custom_query_string: The set of query strings to be placed in the redirect URL. Setting + this value would replace any existing query string; leave empty to preserve the incoming query + string. Query string must be in :code:``=:code:`` format. The first ? and & will be + added automatically so do not include them in the front, but do separate multiple query strings + with &. :type custom_query_string: str """ _validation = { - 'odatatype': {'required': True}, + 'odata_type': {'required': True}, } _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, 'redirect_type': {'key': 'redirectType', 'type': 'str'}, 'redirect_protocol': {'key': 'redirectProtocol', 'type': 'str'}, 'custom_host': {'key': 'customHost', 'type': 'str'}, @@ -2230,63 +2645,63 @@ class RedirectConfiguration(RouteConfiguration): 'custom_query_string': {'key': 'customQueryString', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RedirectConfiguration, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' # type: str self.redirect_type = kwargs.get('redirect_type', None) self.redirect_protocol = kwargs.get('redirect_protocol', None) self.custom_host = kwargs.get('custom_host', None) self.custom_path = kwargs.get('custom_path', None) self.custom_fragment = kwargs.get('custom_fragment', None) self.custom_query_string = kwargs.get('custom_query_string', None) - self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' class RoutingRule(SubResource): - """A routing rule represents a specification for traffic to treat and where to - send it, along with health probe information. + """A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param frontend_endpoints: Frontend endpoints associated with this rule + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + :param frontend_endpoints: Frontend endpoints associated with this rule. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param accepted_protocols: Protocol schemes to match for this rule. + :type accepted_protocols: list[str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState :param route_configuration: A reference to the routing configuration. :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration - :param rules_engine: A reference to a specific Rules Engine Configuration - to apply to this route. + :param rules_engine: A reference to a specific Rules Engine Configuration to apply to this + route. :type rules_engine: ~azure.mgmt.frontdoor.models.SubResource - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each routing rule (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each routing rule (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, @@ -2295,12 +2710,15 @@ class RoutingRule(SubResource): 'rules_engine': {'key': 'properties.rulesEngine', 'type': 'SubResource'}, 'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RoutingRule, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = None self.frontend_endpoints = kwargs.get('frontend_endpoints', None) self.accepted_protocols = kwargs.get('accepted_protocols', None) self.patterns_to_match = kwargs.get('patterns_to_match', None) @@ -2308,12 +2726,10 @@ def __init__(self, **kwargs): self.route_configuration = kwargs.get('route_configuration', None) self.rules_engine = kwargs.get('rules_engine', None) self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) - self.resource_state = kwargs.get('resource_state', None) - self.name = kwargs.get('name', None) - self.type = None + self.resource_state = None -class RoutingRuleLink(Model): +class RoutingRuleLink(msrest.serialization.Model): """Defines the Resource ID for a Routing Rule. :param id: Resource ID. @@ -2324,22 +2740,22 @@ class RoutingRuleLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RoutingRuleLink, self).__init__(**kwargs) self.id = kwargs.get('id', None) -class RoutingRuleListResult(Model): - """Result of the request to list Routing Rules. It contains a list of Routing - Rule objects and a URL link to get the next set of results. +class RoutingRuleListResult(msrest.serialization.Model): + """Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Routing Rules within a Front Door. :vartype value: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param next_link: URL to get the next set of RoutingRule objects if there - are any. + :param next_link: URL to get the next set of RoutingRule objects if there are any. :type next_link: str """ @@ -2352,34 +2768,34 @@ class RoutingRuleListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RoutingRuleListResult, self).__init__(**kwargs) self.value = None self.next_link = kwargs.get('next_link', None) -class RoutingRuleUpdateParameters(Model): +class RoutingRuleUpdateParameters(msrest.serialization.Model): """Routing rules to apply to an endpoint. - :param frontend_endpoints: Frontend endpoints associated with this rule + :param frontend_endpoints: Frontend endpoints associated with this rule. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param accepted_protocols: Protocol schemes to match for this rule. + :type accepted_protocols: list[str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState :param route_configuration: A reference to the routing configuration. :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration - :param rules_engine: A reference to a specific Rules Engine Configuration - to apply to this route. + :param rules_engine: A reference to a specific Rules Engine Configuration to apply to this + route. :type rules_engine: ~azure.mgmt.frontdoor.models.SubResource - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each routing rule (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each routing rule (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink """ @@ -2394,7 +2810,10 @@ class RoutingRuleUpdateParameters(Model): 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RoutingRuleUpdateParameters, self).__init__(**kwargs) self.frontend_endpoints = kwargs.get('frontend_endpoints', None) self.accepted_protocols = kwargs.get('accepted_protocols', None) @@ -2405,9 +2824,59 @@ def __init__(self, **kwargs): self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None) -class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(Model): - """Defines the Web Application Firewall policy for each routing rule (if - applicable). +class RoutingRuleProperties(RoutingRuleUpdateParameters): + """The JSON object that contains the properties required to create a routing rule. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param frontend_endpoints: Frontend endpoints associated with this rule. + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] + :param accepted_protocols: Protocol schemes to match for this rule. + :type accepted_protocols: list[str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param patterns_to_match: The route patterns of the rule. + :type patterns_to_match: list[str] + :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration + :param rules_engine: A reference to a specific Rules Engine Configuration to apply to this + route. + :type rules_engine: ~azure.mgmt.frontdoor.models.SubResource + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each routing rule (if applicable). + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + """ + + _validation = { + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, + 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, + 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'routeConfiguration', 'type': 'RouteConfiguration'}, + 'rules_engine': {'key': 'rulesEngine', 'type': 'SubResource'}, + 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RoutingRuleProperties, self).__init__(**kwargs) + self.resource_state = None + + +class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(msrest.serialization.Model): + """Defines the Web Application Firewall policy for each routing rule (if applicable). :param id: Resource ID. :type id: str @@ -2417,71 +2886,70 @@ class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) self.id = kwargs.get('id', None) -class RulesEngine(Model): - """A rules engine configuration containing a list of rules that will run to - modify the runtime behavior of the request and response. +class RulesEngine(msrest.serialization.Model): + """A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and response. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :param rules: A list of rules that define a particular Rules Engine - Configuration. - :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :ivar id: Resource ID. :vartype id: str + :param rules: A list of rules that define a particular Rules Engine Configuration. + :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'id': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { - 'rules': {'key': 'properties.rules', 'type': '[RulesEngineRule]'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'rules': {'key': 'properties.rules', 'type': '[RulesEngineRule]'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RulesEngine, self).__init__(**kwargs) - self.rules = kwargs.get('rules', None) - self.resource_state = kwargs.get('resource_state', None) self.name = None self.type = None self.id = None + self.rules = kwargs.get('rules', None) + self.resource_state = None -class RulesEngineAction(Model): - """One or more actions that will execute, modifying the request and/or - response. +class RulesEngineAction(msrest.serialization.Model): + """One or more actions that will execute, modifying the request and/or response. - :param request_header_actions: A list of header actions to apply from the - request from AFD to the origin. - :type request_header_actions: - list[~azure.mgmt.frontdoor.models.HeaderAction] - :param response_header_actions: A list of header actions to apply from the - response from AFD to the client. - :type response_header_actions: - list[~azure.mgmt.frontdoor.models.HeaderAction] + :param request_header_actions: A list of header actions to apply from the request from AFD to + the origin. + :type request_header_actions: list[~azure.mgmt.frontdoor.models.HeaderAction] + :param response_header_actions: A list of header actions to apply from the response from AFD to + the client. + :type response_header_actions: list[~azure.mgmt.frontdoor.models.HeaderAction] :param route_configuration_override: Override the route configuration. - :type route_configuration_override: - ~azure.mgmt.frontdoor.models.RouteConfiguration + :type route_configuration_override: ~azure.mgmt.frontdoor.models.RouteConfiguration """ _attribute_map = { @@ -2490,42 +2958,68 @@ class RulesEngineAction(Model): 'route_configuration_override': {'key': 'routeConfigurationOverride', 'type': 'RouteConfiguration'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RulesEngineAction, self).__init__(**kwargs) self.request_header_actions = kwargs.get('request_header_actions', None) self.response_header_actions = kwargs.get('response_header_actions', None) self.route_configuration_override = kwargs.get('route_configuration_override', None) -class RulesEngineMatchCondition(Model): +class RulesEngineListResult(msrest.serialization.Model): + """Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of rulesEngines within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.RulesEngine] + :param next_link: URL to get the next set of RulesEngine objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RulesEngine]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RulesEngineListResult, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) + + +class RulesEngineMatchCondition(msrest.serialization.Model): """Define a match condition. All required parameters must be populated in order to send to Azure. - :param rules_engine_match_variable: Required. Match Variable. Possible - values include: 'IsMobile', 'RemoteAddr', 'RequestMethod', 'QueryString', - 'PostArgs', 'RequestUri', 'RequestPath', 'RequestFilename', - 'RequestFilenameExtension', 'RequestHeader', 'RequestBody', - 'RequestScheme' - :type rules_engine_match_variable: str or - ~azure.mgmt.frontdoor.models.RulesEngineMatchVariable - :param selector: Name of selector in RequestHeader or RequestBody to be - matched + :param rules_engine_match_variable: Required. Match Variable. Possible values include: + "IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", + "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", + "RequestScheme". + :type rules_engine_match_variable: str or ~azure.mgmt.frontdoor.models.RulesEngineMatchVariable + :param selector: Name of selector in RequestHeader or RequestBody to be matched. :type selector: str - :param rules_engine_operator: Required. Describes operator to apply to the - match condition. Possible values include: 'Any', 'IPMatch', 'GeoMatch', - 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', - 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith' - :type rules_engine_operator: str or - ~azure.mgmt.frontdoor.models.RulesEngineOperator - :param negate_condition: Describes if this is negate condition or not + :param rules_engine_operator: Required. Describes operator to apply to the match condition. + Possible values include: "Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", + "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith". + :type rules_engine_operator: str or ~azure.mgmt.frontdoor.models.RulesEngineOperator + :param negate_condition: Describes if this is negate condition or not. :type negate_condition: bool - :param rules_engine_match_value: Required. Match values to match against. - The operator will apply to each value in here with OR semantics. If any of - them match the variable with the given operator this match condition is - considered a match. + :param rules_engine_match_value: Required. Match values to match against. The operator will + apply to each value in here with OR semantics. If any of them match the variable with the given + operator this match condition is considered a match. :type rules_engine_match_value: list[str] - :param transforms: List of transforms + :param transforms: List of transforms. :type transforms: list[str or ~azure.mgmt.frontdoor.models.Transform] """ @@ -2544,21 +3038,69 @@ class RulesEngineMatchCondition(Model): 'transforms': {'key': 'transforms', 'type': '[str]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RulesEngineMatchCondition, self).__init__(**kwargs) - self.rules_engine_match_variable = kwargs.get('rules_engine_match_variable', None) + self.rules_engine_match_variable = kwargs['rules_engine_match_variable'] self.selector = kwargs.get('selector', None) - self.rules_engine_operator = kwargs.get('rules_engine_operator', None) + self.rules_engine_operator = kwargs['rules_engine_operator'] self.negate_condition = kwargs.get('negate_condition', None) - self.rules_engine_match_value = kwargs.get('rules_engine_match_value', None) + self.rules_engine_match_value = kwargs['rules_engine_match_value'] self.transforms = kwargs.get('transforms', None) -class RulesEngineRule(Model): - """Contains a list of match conditions, and an action on how to modify the - request/response. If multiple rules match, the actions from one rule that - conflict with a previous rule overwrite for a singular action, or append in - the case of headers manipulation. +class RulesEngineUpdateParameters(msrest.serialization.Model): + """Rules Engine Configuration to apply to a Routing Rule. + + :param rules: A list of rules that define a particular Rules Engine Configuration. + :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] + """ + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[RulesEngineRule]'}, + } + + def __init__( + self, + **kwargs + ): + super(RulesEngineUpdateParameters, self).__init__(**kwargs) + self.rules = kwargs.get('rules', None) + + +class RulesEngineProperties(RulesEngineUpdateParameters): + """The JSON object that contains the properties required to create a Rules Engine Configuration. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param rules: A list of rules that define a particular Rules Engine Configuration. + :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + """ + + _validation = { + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[RulesEngineRule]'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RulesEngineProperties, self).__init__(**kwargs) + self.resource_state = None + + +class RulesEngineRule(msrest.serialization.Model): + """Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation. All required parameters must be populated in order to send to Azure. @@ -2566,19 +3108,16 @@ class RulesEngineRule(Model): :type name: str :param priority: Required. A priority assigned to this rule. :type priority: int - :param action: Required. Actions to perform on the request and response if - all of the match conditions are met. + :param action: Required. Actions to perform on the request and response if all of the match + conditions are met. :type action: ~azure.mgmt.frontdoor.models.RulesEngineAction - :param match_conditions: A list of match conditions that must meet in - order for the actions of this rule to run. Having no match conditions - means the actions will always run. - :type match_conditions: - list[~azure.mgmt.frontdoor.models.RulesEngineMatchCondition] - :param match_processing_behavior: If this rule is a match should the rules - engine continue running the remaining rules or stop. If not present, - defaults to Continue. Possible values include: 'Continue', 'Stop' - :type match_processing_behavior: str or - ~azure.mgmt.frontdoor.models.MatchProcessingBehavior + :param match_conditions: A list of match conditions that must meet in order for the actions of + this rule to run. Having no match conditions means the actions will always run. + :type match_conditions: list[~azure.mgmt.frontdoor.models.RulesEngineMatchCondition] + :param match_processing_behavior: If this rule is a match should the rules engine continue + running the remaining rules or stop. If not present, defaults to Continue. Possible values + include: "Continue", "Stop". + :type match_processing_behavior: str or ~azure.mgmt.frontdoor.models.MatchProcessingBehavior """ _validation = { @@ -2595,33 +3134,19 @@ class RulesEngineRule(Model): 'match_processing_behavior': {'key': 'matchProcessingBehavior', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(RulesEngineRule, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.priority = kwargs.get('priority', None) - self.action = kwargs.get('action', None) + self.name = kwargs['name'] + self.priority = kwargs['priority'] + self.action = kwargs['action'] self.match_conditions = kwargs.get('match_conditions', None) self.match_processing_behavior = kwargs.get('match_processing_behavior', None) -class RulesEngineUpdateParameters(Model): - """Rules Engine Configuration to apply to a Routing Rule. - - :param rules: A list of rules that define a particular Rules Engine - Configuration. - :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] - """ - - _attribute_map = { - 'rules': {'key': 'rules', 'type': '[RulesEngineRule]'}, - } - - def __init__(self, **kwargs): - super(RulesEngineUpdateParameters, self).__init__(**kwargs) - self.rules = kwargs.get('rules', None) - - -class SecurityPolicyLink(Model): +class SecurityPolicyLink(msrest.serialization.Model): """Defines the Resource ID for a Security Policy. :param id: Resource ID. @@ -2632,17 +3157,19 @@ class SecurityPolicyLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(SecurityPolicyLink, self).__init__(**kwargs) self.id = kwargs.get('id', None) -class Sku(Model): +class Sku(msrest.serialization.Model): """The pricing tier of the web application firewall policy. - :param name: Name of the pricing tier. Possible values include: - 'Classic_AzureFrontDoor', 'Standard_AzureFrontDoor', - 'Premium_AzureFrontDoor' + :param name: Name of the pricing tier. Possible values include: "Classic_AzureFrontDoor", + "Standard_AzureFrontDoor", "Premium_AzureFrontDoor". :type name: str or ~azure.mgmt.frontdoor.models.SkuName """ @@ -2650,15 +3177,18 @@ class Sku(Model): 'name': {'key': 'name', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Sku, self).__init__(**kwargs) self.name = kwargs.get('name', None) -class TagsObject(Model): +class TagsObject(msrest.serialization.Model): """Tags object for patch operations. - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] """ @@ -2666,7 +3196,10 @@ class TagsObject(Model): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(TagsObject, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) @@ -2674,8 +3207,7 @@ def __init__(self, **kwargs): class Timeseries(Resource): """Defines the Timeseries. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2685,28 +3217,25 @@ class Timeseries(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param endpoint: The endpoint associated with the Timeseries data point + :param endpoint: The endpoint associated with the Timeseries data point. :type endpoint: str - :param start_date_time_utc: The start DateTime of the Timeseries in UTC + :param start_date_time_utc: The start DateTime of the Timeseries in UTC. :type start_date_time_utc: str - :param end_date_time_utc: The end DateTime of the Timeseries in UTC + :param end_date_time_utc: The end DateTime of the Timeseries in UTC. :type end_date_time_utc: str - :param aggregation_interval: The aggregation interval of the Timeseries. - Possible values include: 'Hourly', 'Daily' - :type aggregation_interval: str or - ~azure.mgmt.frontdoor.models.AggregationInterval - :param timeseries_type: The type of Timeseries. Possible values include: - 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + :param aggregation_interval: The aggregation interval of the Timeseries. Possible values + include: "Hourly", "Daily". + :type aggregation_interval: str or ~azure.mgmt.frontdoor.models.AggregationInterval + :param timeseries_type: The type of Timeseries. Possible values include: "MeasurementCounts", + "LatencyP50", "LatencyP75", "LatencyP95". :type timeseries_type: str or ~azure.mgmt.frontdoor.models.TimeseriesType - :param country: The country associated with the Timeseries. Values are - country ISO codes as specified here- - https://www.iso.org/iso-3166-country-codes.html + :param country: The country associated with the Timeseries. Values are country ISO codes as + specified here- https://www.iso.org/iso-3166-country-codes.html. :type country: str - :param timeseries_data: The set of data points for the timeseries - :type timeseries_data: - list[~azure.mgmt.frontdoor.models.TimeseriesDataPoint] + :param timeseries_data: The set of data points for the timeseries. + :type timeseries_data: list[~azure.mgmt.frontdoor.models.TimeseriesDataPoint] """ _validation = { @@ -2730,7 +3259,10 @@ class Timeseries(Resource): 'timeseries_data': {'key': 'properties.timeseriesData', 'type': '[TimeseriesDataPoint]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(Timeseries, self).__init__(**kwargs) self.endpoint = kwargs.get('endpoint', None) self.start_date_time_utc = kwargs.get('start_date_time_utc', None) @@ -2741,12 +3273,12 @@ def __init__(self, **kwargs): self.timeseries_data = kwargs.get('timeseries_data', None) -class TimeseriesDataPoint(Model): +class TimeseriesDataPoint(msrest.serialization.Model): """Defines a timeseries datapoint used in a timeseries. - :param date_time_utc: The DateTime of the Timeseries data point in UTC + :param date_time_utc: The DateTime of the Timeseries data point in UTC. :type date_time_utc: str - :param value: The Value of the Timeseries data point + :param value: The Value of the Timeseries data point. :type value: float """ @@ -2755,19 +3287,21 @@ class TimeseriesDataPoint(Model): 'value': {'key': 'value', 'type': 'float'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(TimeseriesDataPoint, self).__init__(**kwargs) self.date_time_utc = kwargs.get('date_time_utc', None) self.value = kwargs.get('value', None) -class ValidateCustomDomainInput(Model): +class ValidateCustomDomainInput(msrest.serialization.Model): """Input of the custom domain to be validated for DNS mapping. All required parameters must be populated in order to send to Azure. - :param host_name: Required. The host name of the custom domain. Must be a - domain name. + :param host_name: Required. The host name of the custom domain. Must be a domain name. :type host_name: str """ @@ -2779,24 +3313,24 @@ class ValidateCustomDomainInput(Model): 'host_name': {'key': 'hostName', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ValidateCustomDomainInput, self).__init__(**kwargs) - self.host_name = kwargs.get('host_name', None) + self.host_name = kwargs['host_name'] -class ValidateCustomDomainOutput(Model): +class ValidateCustomDomainOutput(msrest.serialization.Model): """Output of custom domain validation. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar custom_domain_validated: Indicates whether the custom domain is - valid or not. + :ivar custom_domain_validated: Indicates whether the custom domain is valid or not. :vartype custom_domain_validated: bool :ivar reason: The reason why the custom domain is not valid. :vartype reason: str - :ivar message: Error message describing why the custom domain is not - valid. + :ivar message: Error message describing why the custom domain is not valid. :vartype message: str """ @@ -2812,7 +3346,10 @@ class ValidateCustomDomainOutput(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ValidateCustomDomainOutput, self).__init__(**kwargs) self.custom_domain_validated = None self.reason = None @@ -2822,8 +3359,7 @@ def __init__(self, **kwargs): class WebApplicationFirewallPolicy(Resource): """Defines web application firewall policy. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2833,39 +3369,33 @@ class WebApplicationFirewallPolicy(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param etag: Gets a unique read-only string that changes whenever the resource is updated. + :type etag: str + :param sku: The pricing tier of web application firewall policy. Defaults to + Classic_AzureFrontDoor if not specified. + :type sku: ~azure.mgmt.frontdoor.models.Sku :param policy_settings: Describes settings for the policy. :type policy_settings: ~azure.mgmt.frontdoor.models.PolicySettings :param custom_rules: Describes custom rules inside the policy. :type custom_rules: ~azure.mgmt.frontdoor.models.CustomRuleList :param managed_rules: Describes managed rules inside the policy. :type managed_rules: ~azure.mgmt.frontdoor.models.ManagedRuleSetList - :ivar frontend_endpoint_links: Describes Frontend Endpoints associated - with this Web Application Firewall policy. - :vartype frontend_endpoint_links: - list[~azure.mgmt.frontdoor.models.FrontendEndpointLink] - :ivar routing_rule_links: Describes Routing Rules associated with this Web + :ivar frontend_endpoint_links: Describes Frontend Endpoints associated with this Web Application Firewall policy. - :vartype routing_rule_links: - list[~azure.mgmt.frontdoor.models.RoutingRuleLink] - :ivar security_policy_links: Describes Security Policy associated with - this Web Application Firewall policy. - :vartype security_policy_links: - list[~azure.mgmt.frontdoor.models.SecurityPolicyLink] + :vartype frontend_endpoint_links: list[~azure.mgmt.frontdoor.models.FrontendEndpointLink] + :ivar routing_rule_links: Describes Routing Rules associated with this Web Application Firewall + policy. + :vartype routing_rule_links: list[~azure.mgmt.frontdoor.models.RoutingRuleLink] + :ivar security_policy_links: Describes Security Policy associated with this Web Application + Firewall policy. + :vartype security_policy_links: list[~azure.mgmt.frontdoor.models.SecurityPolicyLink] :ivar provisioning_state: Provisioning state of the policy. :vartype provisioning_state: str - :ivar resource_state: Resource status of the policy. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.frontdoor.models.PolicyResourceState - :param etag: Gets a unique read-only string that changes whenever the - resource is updated. - :type etag: str - :param sku: The pricing tier of web application firewall policy. Defaults - to Classic_AzureFrontDoor if not specified. - :type sku: ~azure.mgmt.frontdoor.models.Sku + :ivar resource_state: Resource status of the policy. Possible values include: "Creating", + "Enabling", "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.PolicyResourceState """ _validation = { @@ -2885,6 +3415,8 @@ class WebApplicationFirewallPolicy(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, 'custom_rules': {'key': 'properties.customRules', 'type': 'CustomRuleList'}, 'managed_rules': {'key': 'properties.managedRules', 'type': 'ManagedRuleSetList'}, @@ -2893,12 +3425,15 @@ class WebApplicationFirewallPolicy(Resource): 'security_policy_links': {'key': 'properties.securityPolicyLinks', 'type': '[SecurityPolicyLink]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(WebApplicationFirewallPolicy, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.sku = kwargs.get('sku', None) self.policy_settings = kwargs.get('policy_settings', None) self.custom_rules = kwargs.get('custom_rules', None) self.managed_rules = kwargs.get('managed_rules', None) @@ -2907,5 +3442,33 @@ def __init__(self, **kwargs): self.security_policy_links = None self.provisioning_state = None self.resource_state = None - self.etag = kwargs.get('etag', None) - self.sku = kwargs.get('sku', None) + + +class WebApplicationFirewallPolicyList(msrest.serialization.Model): + """Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of WebApplicationFirewallPolicies within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] + :param next_link: URL to get the next set of WebApplicationFirewallPolicy objects if there are + any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WebApplicationFirewallPolicy]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WebApplicationFirewallPolicyList, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) diff --git a/src/front-door/azext_front_door/vendored_sdks/models/_models_py3.py b/src/front-door/azext_front_door/vendored_sdks/models/_models_py3.py index b07879a9b06..6b92523bcb4 100644 --- a/src/front-door/azext_front_door/vendored_sdks/models/_models_py3.py +++ b/src/front-door/azext_front_door/vendored_sdks/models/_models_py3.py @@ -1,31 +1,25 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError +import datetime +from typing import Dict, List, Optional, Union +from azure.core.exceptions import HttpResponseError +import msrest.serialization -class AzureAsyncOperationResult(Model): - """The response body contains the status of the specified asynchronous - operation, indicating whether it has succeeded, is in progress, or has - failed. Note that this status is distinct from the HTTP status code - returned for the Get Operation Status operation itself. If the asynchronous - operation succeeded, the response body includes the HTTP status code for - the successful request. If the asynchronous operation failed, the response - body includes the HTTP status code for the failed request and error - information regarding the failure. +from ._front_door_management_client_enums import * - :param status: Status of the Azure async operation. Possible values are: - 'InProgress', 'Succeeded', and 'Failed'. Possible values include: - 'InProgress', 'Succeeded', 'Failed' + +class AzureAsyncOperationResult(msrest.serialization.Model): + """The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure. + + :param status: Status of the Azure async operation. Possible values are: 'InProgress', + 'Succeeded', and 'Failed'. Possible values include: "InProgress", "Succeeded", "Failed". :type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus :param error: :type error: ~azure.mgmt.frontdoor.models.Error @@ -36,55 +30,54 @@ class AzureAsyncOperationResult(Model): 'error': {'key': 'error', 'type': 'Error'}, } - def __init__(self, *, status=None, error=None, **kwargs) -> None: + def __init__( + self, + *, + status: Optional[Union[str, "NetworkOperationStatus"]] = None, + error: Optional["Error"] = None, + **kwargs + ): super(AzureAsyncOperationResult, self).__init__(**kwargs) self.status = status self.error = error -class Backend(Model): +class Backend(msrest.serialization.Model): """Backend address of a frontDoor load balancer. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :param address: Location of the backend (IP address or FQDN) + :param address: Location of the backend (IP address or FQDN). :type address: str - :param private_link_alias: The Alias of the Private Link resource. - Populating this optional field indicates that this backend is 'Private' + :param private_link_alias: The Alias of the Private Link resource. Populating this optional + field indicates that this backend is 'Private'. :type private_link_alias: str - :param private_link_resource_id: The Resource Id of the Private Link - resource. Populating this optional field indicates that this backend is - 'Private' + :param private_link_resource_id: The Resource Id of the Private Link resource. Populating this + optional field indicates that this backend is 'Private'. :type private_link_resource_id: str - :param private_link_location: The location of the Private Link resource. - Required only if 'privateLinkResourceId' is populated + :param private_link_location: The location of the Private Link resource. Required only if + 'privateLinkResourceId' is populated. :type private_link_location: str - :ivar private_endpoint_status: The Approval status for the connection to - the Private Link. Possible values include: 'Pending', 'Approved', - 'Rejected', 'Disconnected', 'Timeout' - :vartype private_endpoint_status: str or - ~azure.mgmt.frontdoor.models.PrivateEndpointStatus - :param private_link_approval_message: A custom message to be included in - the approval request to connect to the Private Link + :ivar private_endpoint_status: The Approval status for the connection to the Private Link. + Possible values include: "Pending", "Approved", "Rejected", "Disconnected", "Timeout". + :vartype private_endpoint_status: str or ~azure.mgmt.frontdoor.models.PrivateEndpointStatus + :param private_link_approval_message: A custom message to be included in the approval request + to connect to the Private Link. :type private_link_approval_message: str :param http_port: The HTTP TCP port number. Must be between 1 and 65535. :type http_port: int :param https_port: The HTTPS TCP port number. Must be between 1 and 65535. :type https_port: int - :param enabled_state: Whether to enable use of this backend. Permitted - values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.BackendEnabledState - :param priority: Priority to use for load balancing. Higher priorities - will not be used for load balancing if any lower priority backend is - healthy. + :param enabled_state: Whether to enable use of this backend. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.BackendEnabledState + :param priority: Priority to use for load balancing. Higher priorities will not be used for + load balancing if any lower priority backend is healthy. :type priority: int :param weight: Weight of this endpoint for load balancing purposes. :type weight: int - :param backend_host_header: The value to use as the host header sent to - the backend. If blank or unspecified, this defaults to the incoming host. + :param backend_host_header: The value to use as the host header sent to the backend. If blank + or unspecified, this defaults to the incoming host. :type backend_host_header: str """ @@ -111,7 +104,22 @@ class Backend(Model): 'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'}, } - def __init__(self, *, address: str=None, private_link_alias: str=None, private_link_resource_id: str=None, private_link_location: str=None, private_link_approval_message: str=None, http_port: int=None, https_port: int=None, enabled_state=None, priority: int=None, weight: int=None, backend_host_header: str=None, **kwargs) -> None: + def __init__( + self, + *, + address: Optional[str] = None, + private_link_alias: Optional[str] = None, + private_link_resource_id: Optional[str] = None, + private_link_location: Optional[str] = None, + private_link_approval_message: Optional[str] = None, + http_port: Optional[int] = None, + https_port: Optional[int] = None, + enabled_state: Optional[Union[str, "BackendEnabledState"]] = None, + priority: Optional[int] = None, + weight: Optional[int] = None, + backend_host_header: Optional[str] = None, + **kwargs + ): super(Backend, self).__init__(**kwargs) self.address = address self.private_link_alias = private_link_alias @@ -127,7 +135,7 @@ def __init__(self, *, address: str=None, private_link_alias: str=None, private_l self.backend_host_header = backend_host_header -class SubResource(Model): +class SubResource(msrest.serialization.Model): """Reference to another subresource. :param id: Resource ID. @@ -138,7 +146,12 @@ class SubResource(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, *, id: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): super(SubResource, self).__init__(**kwargs) self.id = id @@ -146,62 +159,67 @@ def __init__(self, *, id: str=None, **kwargs) -> None: class BackendPool(SubResource): """A backend pool is a collection of backends that can be routed to. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param backends: The set of backends for this pool - :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool - :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool - :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :param name: Resource name. :type name: str :ivar type: Resource type. :vartype type: str + :param backends: The set of backends for this pool. + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool. + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool. + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'backends': {'key': 'properties.backends', 'type': '[Backend]'}, 'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'}, 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, id: str=None, backends=None, load_balancing_settings=None, health_probe_settings=None, resource_state=None, name: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + name: Optional[str] = None, + backends: Optional[List["Backend"]] = None, + load_balancing_settings: Optional["SubResource"] = None, + health_probe_settings: Optional["SubResource"] = None, + **kwargs + ): super(BackendPool, self).__init__(id=id, **kwargs) + self.name = name + self.type = None self.backends = backends self.load_balancing_settings = load_balancing_settings self.health_probe_settings = health_probe_settings - self.resource_state = resource_state - self.name = name - self.type = None + self.resource_state = None -class BackendPoolListResult(Model): - """Result of the request to list Backend Pools. It contains a list of Backend - Pools objects and a URL link to get the next set of results. +class BackendPoolListResult(msrest.serialization.Model): + """Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Backend Pools within a Front Door. :vartype value: list[~azure.mgmt.frontdoor.models.BackendPool] - :param next_link: URL to get the next set of BackendPool objects if there - are any. + :param next_link: URL to get the next set of BackendPool objects if there are any. :type next_link: str """ @@ -214,87 +232,136 @@ class BackendPoolListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, *, next_link: str=None, **kwargs) -> None: + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): super(BackendPoolListResult, self).__init__(**kwargs) self.value = None self.next_link = next_link -class BackendPoolsSettings(Model): - """Settings that apply to all backend pools. +class BackendPoolUpdateParameters(msrest.serialization.Model): + """A collection of backends that can be routed to. - :param enforce_certificate_name_check: Whether to enforce certificate name - check on HTTPS requests to all backend pools. No effect on non-HTTPS - requests. Possible values include: 'Enabled', 'Disabled'. Default value: - "Enabled" . - :type enforce_certificate_name_check: str or - ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState - :param send_recv_timeout_seconds: Send and receive timeout on forwarding - request to the backend. When timeout is reached, the request fails and - returns. - :type send_recv_timeout_seconds: int + :param backends: The set of backends for this pool. + :type backends: list[~azure.mgmt.frontdoor.models.Backend] + :param load_balancing_settings: Load balancing settings for a backend pool. + :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource + :param health_probe_settings: L7 health probe settings for a backend pool. + :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource """ - _validation = { - 'send_recv_timeout_seconds': {'minimum': 16}, - } - _attribute_map = { - 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, - 'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'}, + 'backends': {'key': 'backends', 'type': '[Backend]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, } - def __init__(self, *, enforce_certificate_name_check="Enabled", send_recv_timeout_seconds: int=None, **kwargs) -> None: - super(BackendPoolsSettings, self).__init__(**kwargs) - self.enforce_certificate_name_check = enforce_certificate_name_check - self.send_recv_timeout_seconds = send_recv_timeout_seconds + def __init__( + self, + *, + backends: Optional[List["Backend"]] = None, + load_balancing_settings: Optional["SubResource"] = None, + health_probe_settings: Optional["SubResource"] = None, + **kwargs + ): + super(BackendPoolUpdateParameters, self).__init__(**kwargs) + self.backends = backends + self.load_balancing_settings = load_balancing_settings + self.health_probe_settings = health_probe_settings -class BackendPoolUpdateParameters(Model): - """A collection of backends that can be routed to. +class BackendPoolProperties(BackendPoolUpdateParameters): + """The JSON object that contains the properties required to create a Backend Pool. - :param backends: The set of backends for this pool + Variables are only populated by the server, and will be ignored when sending a request. + + :param backends: The set of backends for this pool. :type backends: list[~azure.mgmt.frontdoor.models.Backend] - :param load_balancing_settings: Load balancing settings for a backend pool + :param load_balancing_settings: Load balancing settings for a backend pool. :type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource - :param health_probe_settings: L7 health probe settings for a backend pool + :param health_probe_settings: L7 health probe settings for a backend pool. :type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ + _validation = { + 'resource_state': {'readonly': True}, + } + _attribute_map = { 'backends': {'key': 'backends', 'type': '[Backend]'}, 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'}, 'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + *, + backends: Optional[List["Backend"]] = None, + load_balancing_settings: Optional["SubResource"] = None, + health_probe_settings: Optional["SubResource"] = None, + **kwargs + ): + super(BackendPoolProperties, self).__init__(backends=backends, load_balancing_settings=load_balancing_settings, health_probe_settings=health_probe_settings, **kwargs) + self.resource_state = None + + +class BackendPoolsSettings(msrest.serialization.Model): + """Settings that apply to all backend pools. + + :param enforce_certificate_name_check: Whether to enforce certificate name check on HTTPS + requests to all backend pools. No effect on non-HTTPS requests. Possible values include: + "Enabled", "Disabled". Default value: "Enabled". + :type enforce_certificate_name_check: str or + ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState + :param send_recv_timeout_seconds: Send and receive timeout on forwarding request to the + backend. When timeout is reached, the request fails and returns. + :type send_recv_timeout_seconds: int + """ + + _validation = { + 'send_recv_timeout_seconds': {'minimum': 16}, } - def __init__(self, *, backends=None, load_balancing_settings=None, health_probe_settings=None, **kwargs) -> None: - super(BackendPoolUpdateParameters, self).__init__(**kwargs) - self.backends = backends - self.load_balancing_settings = load_balancing_settings - self.health_probe_settings = health_probe_settings + _attribute_map = { + 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, + 'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'}, + } + def __init__( + self, + *, + enforce_certificate_name_check: Optional[Union[str, "EnforceCertificateNameCheckEnabledState"]] = "Enabled", + send_recv_timeout_seconds: Optional[int] = None, + **kwargs + ): + super(BackendPoolsSettings, self).__init__(**kwargs) + self.enforce_certificate_name_check = enforce_certificate_name_check + self.send_recv_timeout_seconds = send_recv_timeout_seconds -class CacheConfiguration(Model): - """Caching settings for a caching-type route. To disable caching, do not - provide a cacheConfiguration object. - :param query_parameter_strip_directive: Treatment of URL query terms when - forming the cache key. Possible values include: 'StripNone', 'StripAll', - 'StripOnly', 'StripAllExcept' - :type query_parameter_strip_directive: str or - ~azure.mgmt.frontdoor.models.FrontDoorQuery - :param query_parameters: query parameters to include or exclude (comma - separated). +class CacheConfiguration(msrest.serialization.Model): + """Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object. + + :param query_parameter_strip_directive: Treatment of URL query terms when forming the cache + key. Possible values include: "StripNone", "StripAll", "StripOnly", "StripAllExcept". + :type query_parameter_strip_directive: str or ~azure.mgmt.frontdoor.models.FrontDoorQuery + :param query_parameters: query parameters to include or exclude (comma separated). :type query_parameters: str - :param dynamic_compression: Whether to use dynamic compression for cached - content. Possible values include: 'Enabled', 'Disabled' - :type dynamic_compression: str or - ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled - :param cache_duration: The duration for which the content needs to be - cached. Allowed format is in ISO 8601 format - (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value - to be no more than a year - :type cache_duration: timedelta + :param dynamic_compression: Whether to use dynamic compression for cached content. Possible + values include: "Enabled", "Disabled". + :type dynamic_compression: str or ~azure.mgmt.frontdoor.models.DynamicCompressionEnabled + :param cache_duration: The duration for which the content needs to be cached. Allowed format is + in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value + to be no more than a year. + :type cache_duration: ~datetime.timedelta """ _attribute_map = { @@ -304,7 +371,15 @@ class CacheConfiguration(Model): 'cache_duration': {'key': 'cacheDuration', 'type': 'duration'}, } - def __init__(self, *, query_parameter_strip_directive=None, query_parameters: str=None, dynamic_compression=None, cache_duration=None, **kwargs) -> None: + def __init__( + self, + *, + query_parameter_strip_directive: Optional[Union[str, "FrontDoorQuery"]] = None, + query_parameters: Optional[str] = None, + dynamic_compression: Optional[Union[str, "DynamicCompressionEnabled"]] = None, + cache_duration: Optional[datetime.timedelta] = None, + **kwargs + ): super(CacheConfiguration, self).__init__(**kwargs) self.query_parameter_strip_directive = query_parameter_strip_directive self.query_parameters = query_parameters @@ -312,16 +387,15 @@ def __init__(self, *, query_parameter_strip_directive=None, query_parameters: st self.cache_duration = cache_duration -class CheckNameAvailabilityInput(Model): +class CheckNameAvailabilityInput(msrest.serialization.Model): """Input of CheckNameAvailability API. All required parameters must be populated in order to send to Azure. :param name: Required. The resource name to validate. :type name: str - :param type: Required. The type of the resource whose name is to be - validated. Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' + :param type: Required. The type of the resource whose name is to be validated. Possible values + include: "Microsoft.Network/frontDoors", "Microsoft.Network/frontDoors/frontendEndpoints". :type type: str or ~azure.mgmt.frontdoor.models.ResourceType """ @@ -332,29 +406,32 @@ class CheckNameAvailabilityInput(Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceType'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, name: str, type, **kwargs) -> None: + def __init__( + self, + *, + name: str, + type: Union[str, "ResourceType"], + **kwargs + ): super(CheckNameAvailabilityInput, self).__init__(**kwargs) self.name = name self.type = type -class CheckNameAvailabilityOutput(Model): +class CheckNameAvailabilityOutput(msrest.serialization.Model): """Output of check name availability API. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name_availability: Indicates whether the name is available. Possible - values include: 'Available', 'Unavailable' - :vartype name_availability: str or - ~azure.mgmt.frontdoor.models.Availability + :ivar name_availability: Indicates whether the name is available. Possible values include: + "Available", "Unavailable". + :vartype name_availability: str or ~azure.mgmt.frontdoor.models.Availability :ivar reason: The reason why the name is not available. :vartype reason: str - :ivar message: The detailed error message describing why the name is not - available. + :ivar message: The detailed error message describing why the name is not available. :vartype message: str """ @@ -370,60 +447,45 @@ class CheckNameAvailabilityOutput(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(CheckNameAvailabilityOutput, self).__init__(**kwargs) self.name_availability = None self.reason = None self.message = None -class CloudError(Model): - """CloudError. - """ - - _attribute_map = { - } - - -class CustomHttpsConfiguration(Model): +class CustomHttpsConfiguration(msrest.serialization.Model): """Https settings for a domain. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. - :param certificate_source: Required. Defines the source of the SSL - certificate. Possible values include: 'AzureKeyVault', 'FrontDoor' - :type certificate_source: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource - :ivar protocol_type: Required. Defines the TLS extension protocol that is - used for secure delivery. Default value: "ServerNameIndication" . - :vartype protocol_type: str - :param minimum_tls_version: Required. The minimum TLS version required - from the clients to establish an SSL handshake with Front Door. Possible - values include: '1.0', '1.2' - :type minimum_tls_version: str or - ~azure.mgmt.frontdoor.models.MinimumTLSVersion - :param vault: The Key Vault containing the SSL certificate - :type vault: - ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault - :param secret_name: The name of the Key Vault secret representing the full - certificate PFX + :param certificate_source: Required. Defines the source of the SSL certificate. Possible values + include: "AzureKeyVault", "FrontDoor". + :type certificate_source: str or ~azure.mgmt.frontdoor.models.FrontDoorCertificateSource + :param protocol_type: Required. Defines the TLS extension protocol that is used for secure + delivery. Possible values include: "ServerNameIndication". + :type protocol_type: str or ~azure.mgmt.frontdoor.models.FrontDoorTlsProtocolType + :param minimum_tls_version: Required. The minimum TLS version required from the clients to + establish an SSL handshake with Front Door. Possible values include: "1.0", "1.2". + :type minimum_tls_version: str or ~azure.mgmt.frontdoor.models.MinimumTLSVersion + :param certificate_type: Defines the type of the certificate used for secure connections to a + frontendEndpoint. Possible values include: "Dedicated". + :type certificate_type: str or ~azure.mgmt.frontdoor.models.FrontDoorCertificateType + :param vault: The Key Vault containing the SSL certificate. + :type vault: ~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault + :param secret_name: The name of the Key Vault secret representing the full certificate PFX. :type secret_name: str - :param secret_version: The version of the Key Vault secret representing - the full certificate PFX + :param secret_version: The version of the Key Vault secret representing the full certificate + PFX. :type secret_version: str - :param certificate_type: Defines the type of the certificate used for - secure connections to a frontendEndpoint. Possible values include: - 'Dedicated' - :type certificate_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorCertificateType """ _validation = { 'certificate_source': {'required': True}, - 'protocol_type': {'required': True, 'constant': True}, + 'protocol_type': {'required': True}, 'minimum_tls_version': {'required': True}, } @@ -431,57 +493,64 @@ class CustomHttpsConfiguration(Model): 'certificate_source': {'key': 'certificateSource', 'type': 'str'}, 'protocol_type': {'key': 'protocolType', 'type': 'str'}, 'minimum_tls_version': {'key': 'minimumTlsVersion', 'type': 'str'}, + 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, 'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'}, 'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'}, 'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'}, - 'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'}, } - protocol_type = "ServerNameIndication" - - def __init__(self, *, certificate_source, minimum_tls_version, vault=None, secret_name: str=None, secret_version: str=None, certificate_type=None, **kwargs) -> None: + def __init__( + self, + *, + certificate_source: Union[str, "FrontDoorCertificateSource"], + protocol_type: Union[str, "FrontDoorTlsProtocolType"], + minimum_tls_version: Union[str, "MinimumTLSVersion"], + certificate_type: Optional[Union[str, "FrontDoorCertificateType"]] = None, + vault: Optional["KeyVaultCertificateSourceParametersVault"] = None, + secret_name: Optional[str] = None, + secret_version: Optional[str] = None, + **kwargs + ): super(CustomHttpsConfiguration, self).__init__(**kwargs) self.certificate_source = certificate_source + self.protocol_type = protocol_type self.minimum_tls_version = minimum_tls_version + self.certificate_type = certificate_type self.vault = vault self.secret_name = secret_name self.secret_version = secret_version - self.certificate_type = certificate_type -class CustomRule(Model): +class CustomRule(msrest.serialization.Model): """Defines contents of a web application rule. All required parameters must be populated in order to send to Azure. :param name: Describes the name of the rule. :type name: str - :param priority: Required. Describes priority of the rule. Rules with a - lower value will be evaluated before rules with a higher value. + :param priority: Required. Describes priority of the rule. Rules with a lower value will be + evaluated before rules with a higher value. :type priority: int - :param enabled_state: Describes if the custom rule is in enabled or - disabled state. Defaults to Enabled if not specified. Possible values - include: 'Disabled', 'Enabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.CustomRuleEnabledState - :param rule_type: Required. Describes type of rule. Possible values - include: 'MatchRule', 'RateLimitRule' + :param enabled_state: Describes if the custom rule is in enabled or disabled state. Defaults to + Enabled if not specified. Possible values include: "Disabled", "Enabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.CustomRuleEnabledState + :param rule_type: Required. Describes type of rule. Possible values include: "MatchRule", + "RateLimitRule". :type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType - :param rate_limit_duration_in_minutes: Time window for resetting the rate - limit count. Default is 1 minute. + :param rate_limit_duration_in_minutes: Time window for resetting the rate limit count. Default + is 1 minute. :type rate_limit_duration_in_minutes: int - :param rate_limit_threshold: Number of allowed requests per client within - the time window. + :param rate_limit_threshold: Number of allowed requests per client within the time window. :type rate_limit_threshold: int :param match_conditions: Required. List of match conditions. :type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition] - :param action: Required. Describes what action to be applied when rule - matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :param action: Required. Describes what action to be applied when rule matches. Possible values + include: "Allow", "Block", "Log", "Redirect". :type action: str or ~azure.mgmt.frontdoor.models.ActionType """ _validation = { - 'name': {'max_length': 128}, + 'name': {'max_length': 128, 'min_length': 0}, 'priority': {'required': True}, 'rule_type': {'required': True}, 'rate_limit_duration_in_minutes': {'maximum': 5, 'minimum': 0}, @@ -501,7 +570,19 @@ class CustomRule(Model): 'action': {'key': 'action', 'type': 'str'}, } - def __init__(self, *, priority: int, rule_type, match_conditions, action, name: str=None, enabled_state=None, rate_limit_duration_in_minutes: int=None, rate_limit_threshold: int=None, **kwargs) -> None: + def __init__( + self, + *, + priority: int, + rule_type: Union[str, "RuleType"], + match_conditions: List["MatchCondition"], + action: Union[str, "ActionType"], + name: Optional[str] = None, + enabled_state: Optional[Union[str, "CustomRuleEnabledState"]] = None, + rate_limit_duration_in_minutes: Optional[int] = None, + rate_limit_threshold: Optional[int] = None, + **kwargs + ): super(CustomRule, self).__init__(**kwargs) self.name = name self.priority = priority @@ -513,10 +594,10 @@ def __init__(self, *, priority: int, rule_type, match_conditions, action, name: self.action = action -class CustomRuleList(Model): +class CustomRuleList(msrest.serialization.Model): """Defines contents of custom rules. - :param rules: List of rules + :param rules: List of rules. :type rules: list[~azure.mgmt.frontdoor.models.CustomRule] """ @@ -524,17 +605,22 @@ class CustomRuleList(Model): 'rules': {'key': 'rules', 'type': '[CustomRule]'}, } - def __init__(self, *, rules=None, **kwargs) -> None: + def __init__( + self, + *, + rules: Optional[List["CustomRule"]] = None, + **kwargs + ): super(CustomRuleList, self).__init__(**kwargs) self.rules = rules -class Endpoint(Model): +class Endpoint(msrest.serialization.Model): """Defines the endpoint properties. - :param name: The name of the endpoint + :param name: The name of the endpoint. :type name: str - :param endpoint: The endpoint URL + :param endpoint: The endpoint URL. :type endpoint: str """ @@ -543,13 +629,19 @@ class Endpoint(Model): 'endpoint': {'key': 'endpoint', 'type': 'str'}, } - def __init__(self, *, name: str=None, endpoint: str=None, **kwargs) -> None: + def __init__( + self, + *, + name: Optional[str] = None, + endpoint: Optional[str] = None, + **kwargs + ): super(Endpoint, self).__init__(**kwargs) self.name = name self.endpoint = endpoint -class Error(Model): +class Error(msrest.serialization.Model): """Error. :param code: @@ -572,7 +664,16 @@ class Error(Model): 'inner_error': {'key': 'innerError', 'type': 'str'}, } - def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, inner_error: str=None, **kwargs) -> None: + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + target: Optional[str] = None, + details: Optional[List["ErrorDetails"]] = None, + inner_error: Optional[str] = None, + **kwargs + ): super(Error, self).__init__(**kwargs) self.code = code self.message = message @@ -581,7 +682,7 @@ def __init__(self, *, code: str=None, message: str=None, target: str=None, detai self.inner_error = inner_error -class ErrorDetails(Model): +class ErrorDetails(msrest.serialization.Model): """ErrorDetails. :param code: @@ -598,19 +699,24 @@ class ErrorDetails(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, *, code: str=None, target: str=None, message: str=None, **kwargs) -> None: + def __init__( + self, + *, + code: Optional[str] = None, + target: Optional[str] = None, + message: Optional[str] = None, + **kwargs + ): super(ErrorDetails, self).__init__(**kwargs) self.code = code self.target = target self.message = message -class ErrorResponse(Model): - """Error response indicates Front Door service is not able to process the - incoming request. The reason is provided in the error message. +class ErrorResponse(msrest.serialization.Model): + """Error response indicates Front Door service is not able to process the incoming request. The reason is provided in the error message. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar code: Error code. :vartype code: str @@ -628,29 +734,19 @@ class ErrorResponse(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(ErrorResponse, self).__init__(**kwargs) self.code = None self.message = None -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) - - -class Resource(Model): +class Resource(msrest.serialization.Model): """Common resource representation. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -660,7 +756,7 @@ class Resource(Model): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] """ @@ -678,7 +774,13 @@ class Resource(Model): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): super(Resource, self).__init__(**kwargs) self.id = None self.name = None @@ -690,8 +792,7 @@ def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: class Experiment(Resource): """Defines the properties of an Experiment. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -701,25 +802,23 @@ class Experiment(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param description: The description of the details or intents of the - Experiment + :param description: The description of the details or intents of the Experiment. :type description: str - :param endpoint_a: The endpoint A of an experiment + :param endpoint_a: The endpoint A of an experiment. :type endpoint_a: ~azure.mgmt.frontdoor.models.Endpoint - :param endpoint_b: The endpoint B of an experiment + :param endpoint_b: The endpoint B of an experiment. :type endpoint_b: ~azure.mgmt.frontdoor.models.Endpoint - :param enabled_state: The state of the Experiment. Possible values - include: 'Enabled', 'Disabled' + :param enabled_state: The state of the Experiment. Possible values include: "Enabled", + "Disabled". :type enabled_state: str or ~azure.mgmt.frontdoor.models.State - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState - :ivar status: The description of Experiment status from the server side + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :ivar status: The description of Experiment status from the server side. :vartype status: str - :ivar script_file_uri: The uri to the Script used in the Experiment + :ivar script_file_uri: The uri to the Script used in the Experiment. :vartype script_file_uri: str """ @@ -727,6 +826,7 @@ class Experiment(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, 'status': {'readonly': True}, 'script_file_uri': {'readonly': True}, } @@ -746,27 +846,67 @@ class Experiment(Resource): 'script_file_uri': {'key': 'properties.scriptFileUri', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, description: str=None, endpoint_a=None, endpoint_b=None, enabled_state=None, resource_state=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + description: Optional[str] = None, + endpoint_a: Optional["Endpoint"] = None, + endpoint_b: Optional["Endpoint"] = None, + enabled_state: Optional[Union[str, "State"]] = None, + **kwargs + ): super(Experiment, self).__init__(location=location, tags=tags, **kwargs) self.description = description self.endpoint_a = endpoint_a self.endpoint_b = endpoint_b self.enabled_state = enabled_state - self.resource_state = resource_state + self.resource_state = None self.status = None self.script_file_uri = None -class ExperimentUpdateModel(Model): +class ExperimentList(msrest.serialization.Model): + """Defines a list of Experiments. It contains a list of Experiment objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Experiments within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.Experiment] + :param next_link: URL to get the next set of Experiment objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Experiment]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(ExperimentList, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class ExperimentUpdateModel(msrest.serialization.Model): """Defines modifiable attributes of an Experiment. - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param description: The description of the intent or details of the - Experiment + :param description: The description of the intent or details of the Experiment. :type description: str - :param enabled_state: The state of the Experiment. Possible values - include: 'Enabled', 'Disabled' + :param enabled_state: The state of the Experiment. Possible values include: "Enabled", + "Disabled". :type enabled_state: str or ~azure.mgmt.frontdoor.models.State """ @@ -776,40 +916,50 @@ class ExperimentUpdateModel(Model): 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, } - def __init__(self, *, tags=None, description: str=None, enabled_state=None, **kwargs) -> None: + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + description: Optional[str] = None, + enabled_state: Optional[Union[str, "State"]] = None, + **kwargs + ): super(ExperimentUpdateModel, self).__init__(**kwargs) self.tags = tags self.description = description self.enabled_state = enabled_state -class RouteConfiguration(Model): +class RouteConfiguration(msrest.serialization.Model): """Base class for all types of Route. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ForwardingConfiguration, RedirectConfiguration + sub-classes are: ForwardingConfiguration, RedirectConfiguration. All required parameters must be populated in order to send to Azure. - :param odatatype: Required. Constant filled by server. - :type odatatype: str + :param odata_type: Required. Constant filled by server. + :type odata_type: str """ _validation = { - 'odatatype': {'required': True}, + 'odata_type': {'required': True}, } _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, } _subtype_map = { - 'odatatype': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} + 'odata_type': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(RouteConfiguration, self).__init__(**kwargs) - self.odatatype = None + self.odata_type = None # type: Optional[str] class ForwardingConfiguration(RouteConfiguration): @@ -817,51 +967,53 @@ class ForwardingConfiguration(RouteConfiguration): All required parameters must be populated in order to send to Azure. - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. + :param odata_type: Required. Constant filled by server. + :type odata_type: str + :param custom_forwarding_path: A custom path used to rewrite resource paths matched by this + rule. Leave empty to use incoming path. :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. + :param forwarding_protocol: Protocol this rule will use when forwarding traffic to backends. + Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". + :type forwarding_protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol + :param cache_configuration: The caching configuration associated with this rule. :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. + :param backend_pool: A reference to the BackendPool which this rule routes to. :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource """ _validation = { - 'odatatype': {'required': True}, + 'odata_type': {'required': True}, } _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, } - def __init__(self, *, custom_forwarding_path: str=None, forwarding_protocol=None, cache_configuration=None, backend_pool=None, **kwargs) -> None: + def __init__( + self, + *, + custom_forwarding_path: Optional[str] = None, + forwarding_protocol: Optional[Union[str, "FrontDoorForwardingProtocol"]] = None, + cache_configuration: Optional["CacheConfiguration"] = None, + backend_pool: Optional["SubResource"] = None, + **kwargs + ): super(ForwardingConfiguration, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' # type: str self.custom_forwarding_path = custom_forwarding_path self.forwarding_protocol = forwarding_protocol self.cache_configuration = cache_configuration self.backend_pool = backend_pool - self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' class FrontDoor(Resource): - """Front Door represents a collection of backend endpoints to route traffic to - along with rules that specify how traffic is sent there. + """Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic is sent there. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -871,46 +1023,36 @@ class FrontDoor(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param friendly_name: A friendly name for the frontDoor + :param friendly_name: A friendly name for the frontDoor. :type friendly_name: str :param routing_rules: Routing rules associated with this Front Door. :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param load_balancing_settings: Load balancing settings associated with this Front Door + instance. + :type load_balancing_settings: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this Front Door instance. + :type health_probe_settings: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] :param backend_pools: Backend pools available to routing rules. :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param backend_pools_settings: Settings for all backendPools - :type backend_pools_settings: - ~azure.mgmt.frontdoor.models.BackendPoolsSettings - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState - :param resource_state: Resource status of the Front Door. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools. + :type backend_pools_settings: ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. Permitted values are + 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :ivar resource_state: Resource status of the Front Door. Possible values include: "Creating", + "Enabling", "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState :ivar provisioning_state: Provisioning state of the Front Door. :vartype provisioning_state: str :ivar cname: The host that each frontendEndpoint must CNAME to. :vartype cname: str :ivar frontdoor_id: The Id of the frontdoor. :vartype frontdoor_id: str - :ivar rules_engines: Rules Engine Configurations available to routing - rules. + :ivar rules_engines: Rules Engine Configurations available to routing rules. :vartype rules_engines: list[~azure.mgmt.frontdoor.models.RulesEngine] """ @@ -918,6 +1060,7 @@ class FrontDoor(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'cname': {'readonly': True}, 'frontdoor_id': {'readonly': True}, @@ -945,7 +1088,21 @@ class FrontDoor(Resource): 'rules_engines': {'key': 'properties.rulesEngines', 'type': '[RulesEngine]'}, } - def __init__(self, *, location: str=None, tags=None, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, backend_pools_settings=None, enabled_state=None, resource_state=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + friendly_name: Optional[str] = None, + routing_rules: Optional[List["RoutingRule"]] = None, + load_balancing_settings: Optional[List["LoadBalancingSettingsModel"]] = None, + health_probe_settings: Optional[List["HealthProbeSettingsModel"]] = None, + backend_pools: Optional[List["BackendPool"]] = None, + frontend_endpoints: Optional[List["FrontendEndpoint"]] = None, + backend_pools_settings: Optional["BackendPoolsSettings"] = None, + enabled_state: Optional[Union[str, "FrontDoorEnabledState"]] = None, + **kwargs + ): super(FrontDoor, self).__init__(location=location, tags=tags, **kwargs) self.friendly_name = friendly_name self.routing_rules = routing_rules @@ -955,41 +1112,65 @@ def __init__(self, *, location: str=None, tags=None, friendly_name: str=None, ro self.frontend_endpoints = frontend_endpoints self.backend_pools_settings = backend_pools_settings self.enabled_state = enabled_state - self.resource_state = resource_state + self.resource_state = None self.provisioning_state = None self.cname = None self.frontdoor_id = None self.rules_engines = None -class FrontDoorUpdateParameters(Model): +class FrontDoorListResult(msrest.serialization.Model): + """Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Front Doors within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.FrontDoor] + :param next_link: URL to get the next set of Front Door objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[FrontDoor]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(FrontDoorListResult, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class FrontDoorUpdateParameters(msrest.serialization.Model): """The properties needed to update a Front Door. - :param friendly_name: A friendly name for the frontDoor + :param friendly_name: A friendly name for the frontDoor. :type friendly_name: str :param routing_rules: Routing rules associated with this Front Door. :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param load_balancing_settings: Load balancing settings associated with - this Front Door instance. - :type load_balancing_settings: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param health_probe_settings: Health probe settings associated with this - Front Door instance. - :type health_probe_settings: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param load_balancing_settings: Load balancing settings associated with this Front Door + instance. + :type load_balancing_settings: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this Front Door instance. + :type health_probe_settings: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] :param backend_pools: Backend pools available to routing rules. :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] :param frontend_endpoints: Frontend endpoints available to routing rules. - :type frontend_endpoints: - list[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :param backend_pools_settings: Settings for all backendPools - :type backend_pools_settings: - ~azure.mgmt.frontdoor.models.BackendPoolsSettings - :param enabled_state: Operational status of the Front Door load balancer. - Permitted values are 'Enabled' or 'Disabled'. Possible values include: - 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools. + :type backend_pools_settings: ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. Permitted values are + 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.FrontDoorEnabledState """ _attribute_map = { @@ -1003,7 +1184,19 @@ class FrontDoorUpdateParameters(Model): 'enabled_state': {'key': 'enabledState', 'type': 'str'}, } - def __init__(self, *, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, backend_pools_settings=None, enabled_state=None, **kwargs) -> None: + def __init__( + self, + *, + friendly_name: Optional[str] = None, + routing_rules: Optional[List["RoutingRule"]] = None, + load_balancing_settings: Optional[List["LoadBalancingSettingsModel"]] = None, + health_probe_settings: Optional[List["HealthProbeSettingsModel"]] = None, + backend_pools: Optional[List["BackendPool"]] = None, + frontend_endpoints: Optional[List["FrontendEndpoint"]] = None, + backend_pools_settings: Optional["BackendPoolsSettings"] = None, + enabled_state: Optional[Union[str, "FrontDoorEnabledState"]] = None, + **kwargs + ): super(FrontDoorUpdateParameters, self).__init__(**kwargs) self.friendly_name = friendly_name self.routing_rules = routing_rules @@ -1015,68 +1208,143 @@ def __init__(self, *, friendly_name: str=None, routing_rules=None, load_balancin self.enabled_state = enabled_state +class FrontDoorProperties(FrontDoorUpdateParameters): + """The JSON object that contains the properties required to create an endpoint. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param friendly_name: A friendly name for the frontDoor. + :type friendly_name: str + :param routing_rules: Routing rules associated with this Front Door. + :type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule] + :param load_balancing_settings: Load balancing settings associated with this Front Door + instance. + :type load_balancing_settings: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param health_probe_settings: Health probe settings associated with this Front Door instance. + :type health_probe_settings: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param backend_pools: Backend pools available to routing rules. + :type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool] + :param frontend_endpoints: Frontend endpoints available to routing rules. + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools. + :type backend_pools_settings: ~azure.mgmt.frontdoor.models.BackendPoolsSettings + :param enabled_state: Operational status of the Front Door load balancer. Permitted values are + 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + :ivar resource_state: Resource status of the Front Door. Possible values include: "Creating", + "Enabling", "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar provisioning_state: Provisioning state of the Front Door. + :vartype provisioning_state: str + :ivar cname: The host that each frontendEndpoint must CNAME to. + :vartype cname: str + :ivar frontdoor_id: The Id of the frontdoor. + :vartype frontdoor_id: str + :ivar rules_engines: Rules Engine Configurations available to routing rules. + :vartype rules_engines: list[~azure.mgmt.frontdoor.models.RulesEngine] + """ + + _validation = { + 'resource_state': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'cname': {'readonly': True}, + 'frontdoor_id': {'readonly': True}, + 'rules_engines': {'readonly': True}, + } + + _attribute_map = { + 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, + 'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'}, + 'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'}, + 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, + 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'backendPoolsSettings', 'type': 'BackendPoolsSettings'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'cname': {'key': 'cname', 'type': 'str'}, + 'frontdoor_id': {'key': 'frontdoorId', 'type': 'str'}, + 'rules_engines': {'key': 'rulesEngines', 'type': '[RulesEngine]'}, + } + + def __init__( + self, + *, + friendly_name: Optional[str] = None, + routing_rules: Optional[List["RoutingRule"]] = None, + load_balancing_settings: Optional[List["LoadBalancingSettingsModel"]] = None, + health_probe_settings: Optional[List["HealthProbeSettingsModel"]] = None, + backend_pools: Optional[List["BackendPool"]] = None, + frontend_endpoints: Optional[List["FrontendEndpoint"]] = None, + backend_pools_settings: Optional["BackendPoolsSettings"] = None, + enabled_state: Optional[Union[str, "FrontDoorEnabledState"]] = None, + **kwargs + ): + super(FrontDoorProperties, self).__init__(friendly_name=friendly_name, routing_rules=routing_rules, load_balancing_settings=load_balancing_settings, health_probe_settings=health_probe_settings, backend_pools=backend_pools, frontend_endpoints=frontend_endpoints, backend_pools_settings=backend_pools_settings, enabled_state=enabled_state, **kwargs) + self.resource_state = None + self.provisioning_state = None + self.cname = None + self.frontdoor_id = None + self.rules_engines = None + + class FrontendEndpoint(SubResource): """A frontend endpoint used for routing. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + :param host_name: The host name of the frontendEndpoint. Must be a domain name. :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' + :param session_affinity_enabled_state: Whether to allow session affinity on this host. Valid + options are 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". :type session_affinity_enabled_state: str or ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. The TTL to use in + seconds for session affinity, if applicable. :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each host (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :ivar custom_https_provisioning_state: Provisioning status of Custom Https - of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled', - 'Disabling', 'Disabled', 'Failed' + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar custom_https_provisioning_state: Provisioning status of Custom Https of the + frontendEndpoint. Possible values include: "Enabling", "Enabled", "Disabling", "Disabled", + "Failed". :vartype custom_https_provisioning_state: str or ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState - :ivar custom_https_provisioning_substate: Provisioning substate shows the - progress of custom HTTPS enabling/disabling process step by step. Possible - values include: 'SubmittingDomainControlValidationRequest', - 'PendingDomainControlValidationREquestApproval', - 'DomainControlValidationRequestApproved', - 'DomainControlValidationRequestRejected', - 'DomainControlValidationRequestTimedOut', 'IssuingCertificate', - 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate', - 'CertificateDeleted' + :ivar custom_https_provisioning_substate: Provisioning substate shows the progress of custom + HTTPS enabling/disabling process step by step. Possible values include: + "SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", + "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", + "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", + "CertificateDeployed", "DeletingCertificate", "CertificateDeleted". :vartype custom_https_provisioning_substate: str or ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate - :ivar custom_https_configuration: The configuration specifying how to - enable HTTPS - :vartype custom_https_configuration: - ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str + :ivar custom_https_configuration: The configuration specifying how to enable HTTPS. + :vartype custom_https_configuration: ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration """ _validation = { + 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, 'custom_https_provisioning_state': {'readonly': True}, 'custom_https_provisioning_substate': {'readonly': True}, 'custom_https_configuration': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'host_name': {'key': 'properties.hostName', 'type': 'str'}, 'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'}, 'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'}, @@ -1085,25 +1353,33 @@ class FrontendEndpoint(SubResource): 'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'}, 'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'}, 'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, id: str=None, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, resource_state=None, name: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + name: Optional[str] = None, + host_name: Optional[str] = None, + session_affinity_enabled_state: Optional[Union[str, "SessionAffinityEnabledState"]] = None, + session_affinity_ttl_seconds: Optional[int] = None, + web_application_firewall_policy_link: Optional["FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink"] = None, + **kwargs + ): super(FrontendEndpoint, self).__init__(id=id, **kwargs) + self.name = name + self.type = None self.host_name = host_name self.session_affinity_enabled_state = session_affinity_enabled_state self.session_affinity_ttl_seconds = session_affinity_ttl_seconds self.web_application_firewall_policy_link = web_application_firewall_policy_link - self.resource_state = resource_state + self.resource_state = None self.custom_https_provisioning_state = None self.custom_https_provisioning_substate = None self.custom_https_configuration = None - self.name = name - self.type = None -class FrontendEndpointLink(Model): +class FrontendEndpointLink(msrest.serialization.Model): """Defines the Resource ID for a Frontend Endpoint. :param id: Resource ID. @@ -1114,27 +1390,30 @@ class FrontendEndpointLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, *, id: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): super(FrontendEndpointLink, self).__init__(**kwargs) self.id = id -class FrontendEndpointUpdateParameters(Model): +class FrontendEndpointUpdateParameters(msrest.serialization.Model): """Frontend endpoint used in routing rule. - :param host_name: The host name of the frontendEndpoint. Must be a domain - name. + :param host_name: The host name of the frontendEndpoint. Must be a domain name. :type host_name: str - :param session_affinity_enabled_state: Whether to allow session affinity - on this host. Valid options are 'Enabled' or 'Disabled'. Possible values - include: 'Enabled', 'Disabled' + :param session_affinity_enabled_state: Whether to allow session affinity on this host. Valid + options are 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". :type session_affinity_enabled_state: str or ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState - :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. - The TTL to use in seconds for session affinity, if applicable. + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. The TTL to use in + seconds for session affinity, if applicable. :type session_affinity_ttl_seconds: int - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each host (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each host (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink """ @@ -1146,7 +1425,15 @@ class FrontendEndpointUpdateParameters(Model): 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, } - def __init__(self, *, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, **kwargs) -> None: + def __init__( + self, + *, + host_name: Optional[str] = None, + session_affinity_enabled_state: Optional[Union[str, "SessionAffinityEnabledState"]] = None, + session_affinity_ttl_seconds: Optional[int] = None, + web_application_firewall_policy_link: Optional["FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink"] = None, + **kwargs + ): super(FrontendEndpointUpdateParameters, self).__init__(**kwargs) self.host_name = host_name self.session_affinity_enabled_state = session_affinity_enabled_state @@ -1154,7 +1441,110 @@ def __init__(self, *, host_name: str=None, session_affinity_enabled_state=None, self.web_application_firewall_policy_link = web_application_firewall_policy_link -class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): +class FrontendEndpointProperties(FrontendEndpointUpdateParameters): + """The JSON object that contains the properties required to create a frontend endpoint. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param host_name: The host name of the frontendEndpoint. Must be a domain name. + :type host_name: str + :param session_affinity_enabled_state: Whether to allow session affinity on this host. Valid + options are 'Enabled' or 'Disabled'. Possible values include: "Enabled", "Disabled". + :type session_affinity_enabled_state: str or + ~azure.mgmt.frontdoor.models.SessionAffinityEnabledState + :param session_affinity_ttl_seconds: UNUSED. This field will be ignored. The TTL to use in + seconds for session affinity, if applicable. + :type session_affinity_ttl_seconds: int + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each host (if applicable). + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + :ivar custom_https_provisioning_state: Provisioning status of Custom Https of the + frontendEndpoint. Possible values include: "Enabling", "Enabled", "Disabling", "Disabled", + "Failed". + :vartype custom_https_provisioning_state: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState + :ivar custom_https_provisioning_substate: Provisioning substate shows the progress of custom + HTTPS enabling/disabling process step by step. Possible values include: + "SubmittingDomainControlValidationRequest", "PendingDomainControlValidationREquestApproval", + "DomainControlValidationRequestApproved", "DomainControlValidationRequestRejected", + "DomainControlValidationRequestTimedOut", "IssuingCertificate", "DeployingCertificate", + "CertificateDeployed", "DeletingCertificate", "CertificateDeleted". + :vartype custom_https_provisioning_substate: str or + ~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate + :ivar custom_https_configuration: The configuration specifying how to enable HTTPS. + :vartype custom_https_configuration: ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration + """ + + _validation = { + 'resource_state': {'readonly': True}, + 'custom_https_provisioning_state': {'readonly': True}, + 'custom_https_provisioning_substate': {'readonly': True}, + 'custom_https_configuration': {'readonly': True}, + } + + _attribute_map = { + 'host_name': {'key': 'hostName', 'type': 'str'}, + 'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'}, + 'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'}, + 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + 'custom_https_provisioning_state': {'key': 'customHttpsProvisioningState', 'type': 'str'}, + 'custom_https_provisioning_substate': {'key': 'customHttpsProvisioningSubstate', 'type': 'str'}, + 'custom_https_configuration': {'key': 'customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'}, + } + + def __init__( + self, + *, + host_name: Optional[str] = None, + session_affinity_enabled_state: Optional[Union[str, "SessionAffinityEnabledState"]] = None, + session_affinity_ttl_seconds: Optional[int] = None, + web_application_firewall_policy_link: Optional["FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink"] = None, + **kwargs + ): + super(FrontendEndpointProperties, self).__init__(host_name=host_name, session_affinity_enabled_state=session_affinity_enabled_state, session_affinity_ttl_seconds=session_affinity_ttl_seconds, web_application_firewall_policy_link=web_application_firewall_policy_link, **kwargs) + self.resource_state = None + self.custom_https_provisioning_state = None + self.custom_https_provisioning_substate = None + self.custom_https_configuration = None + + +class FrontendEndpointsListResult(msrest.serialization.Model): + """Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Frontend endpoints within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param next_link: URL to get the next set of frontend endpoints if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[FrontendEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(FrontendEndpointsListResult, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(msrest.serialization.Model): """Defines the Web Application Firewall policy for each host (if applicable). :param id: Resource ID. @@ -1165,25 +1555,28 @@ class FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, *, id: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) self.id = id -class HeaderAction(Model): +class HeaderAction(msrest.serialization.Model): """An action that can manipulate an http header. All required parameters must be populated in order to send to Azure. - :param header_action_type: Required. Which type of manipulation to apply - to the header. Possible values include: 'Append', 'Delete', 'Overwrite' - :type header_action_type: str or - ~azure.mgmt.frontdoor.models.HeaderActionType - :param header_name: Required. The name of the header this action will - apply to. + :param header_action_type: Required. Which type of manipulation to apply to the header. + Possible values include: "Append", "Delete", "Overwrite". + :type header_action_type: str or ~azure.mgmt.frontdoor.models.HeaderActionType + :param header_name: Required. The name of the header this action will apply to. :type header_name: str - :param value: The value to update the given header name with. This value - is not used if the actionType is Delete. + :param value: The value to update the given header name with. This value is not used if the + actionType is Delete. :type value: str """ @@ -1198,25 +1591,28 @@ class HeaderAction(Model): 'value': {'key': 'value', 'type': 'str'}, } - def __init__(self, *, header_action_type, header_name: str, value: str=None, **kwargs) -> None: + def __init__( + self, + *, + header_action_type: Union[str, "HeaderActionType"], + header_name: str, + value: Optional[str] = None, + **kwargs + ): super(HeaderAction, self).__init__(**kwargs) self.header_action_type = header_action_type self.header_name = header_name self.value = value -class HealthProbeSettingsListResult(Model): - """Result of the request to list HealthProbeSettings. It contains a list of - HealthProbeSettings objects and a URL link to get the next set of results. +class HealthProbeSettingsListResult(msrest.serialization.Model): + """Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of HealthProbeSettings within a Front Door. - :vartype value: - list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] - :param next_link: URL to get the next set of HealthProbeSettings objects - if there are any. + :vartype value: list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel] + :param next_link: URL to get the next set of HealthProbeSettings objects if there are any. :type next_link: str """ @@ -1229,7 +1625,12 @@ class HealthProbeSettingsListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, *, next_link: str=None, **kwargs) -> None: + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): super(HealthProbeSettingsListResult, self).__init__(**kwargs) self.value = None self.next_link = next_link @@ -1238,108 +1639,170 @@ def __init__(self, *, next_link: str=None, **kwargs) -> None: class HealthProbeSettingsModel(SubResource): """Load balancing settings for a backend pool. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param path: The path to use for the health probe. Default is / - :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' - :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol - :param interval_in_seconds: The number of seconds between health probes. - :type interval_in_seconds: int - :param health_probe_method: Configures which HTTP method to use to probe - the backends defined under backendPools. Possible values include: 'GET', - 'HEAD'. Default value: "HEAD" . - :type health_probe_method: str or - ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod - :param enabled_state: Whether to enable health probes to be made against - backends defined under backendPools. Health probes can only be disabled if - there is a single enabled backend in single enabled backend pool. Possible - values include: 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.HealthProbeEnabled - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :param name: Resource name. :type name: str :ivar type: Resource type. :vartype type: str + :param path: The path to use for the health probe. Default is /. + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values include: "Http", + "Https". + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe the backends defined + under backendPools. Possible values include: "GET", "HEAD". Default value: "HEAD". + :type health_probe_method: str or ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against backends defined under + backendPools. Health probes can only be disabled if there is a single enabled backend in single + enabled backend pool. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'path': {'key': 'properties.path', 'type': 'str'}, 'protocol': {'key': 'properties.protocol', 'type': 'str'}, 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, 'health_probe_method': {'key': 'properties.healthProbeMethod', 'type': 'str'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, id: str=None, path: str=None, protocol=None, interval_in_seconds: int=None, health_probe_method="HEAD", enabled_state=None, resource_state=None, name: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + name: Optional[str] = None, + path: Optional[str] = None, + protocol: Optional[Union[str, "FrontDoorProtocol"]] = None, + interval_in_seconds: Optional[int] = None, + health_probe_method: Optional[Union[str, "FrontDoorHealthProbeMethod"]] = "HEAD", + enabled_state: Optional[Union[str, "HealthProbeEnabled"]] = None, + **kwargs + ): super(HealthProbeSettingsModel, self).__init__(id=id, **kwargs) + self.name = name + self.type = None self.path = path self.protocol = protocol self.interval_in_seconds = interval_in_seconds self.health_probe_method = health_probe_method self.enabled_state = enabled_state - self.resource_state = resource_state - self.name = name - self.type = None + self.resource_state = None -class HealthProbeSettingsUpdateParameters(Model): +class HealthProbeSettingsUpdateParameters(msrest.serialization.Model): """L7 health probe settings for a backend pool. - :param path: The path to use for the health probe. Default is / + :param path: The path to use for the health probe. Default is /. + :type path: str + :param protocol: Protocol scheme to use for this probe. Possible values include: "Http", + "Https". + :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol + :param interval_in_seconds: The number of seconds between health probes. + :type interval_in_seconds: int + :param health_probe_method: Configures which HTTP method to use to probe the backends defined + under backendPools. Possible values include: "GET", "HEAD". Default value: "HEAD". + :type health_probe_method: str or ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against backends defined under + backendPools. Health probes can only be disabled if there is a single enabled backend in single + enabled backend pool. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.HealthProbeEnabled + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, + 'health_probe_method': {'key': 'healthProbeMethod', 'type': 'str'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + } + + def __init__( + self, + *, + path: Optional[str] = None, + protocol: Optional[Union[str, "FrontDoorProtocol"]] = None, + interval_in_seconds: Optional[int] = None, + health_probe_method: Optional[Union[str, "FrontDoorHealthProbeMethod"]] = "HEAD", + enabled_state: Optional[Union[str, "HealthProbeEnabled"]] = None, + **kwargs + ): + super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs) + self.path = path + self.protocol = protocol + self.interval_in_seconds = interval_in_seconds + self.health_probe_method = health_probe_method + self.enabled_state = enabled_state + + +class HealthProbeSettingsProperties(HealthProbeSettingsUpdateParameters): + """The JSON object that contains the properties required to create a health probe settings. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param path: The path to use for the health probe. Default is /. :type path: str - :param protocol: Protocol scheme to use for this probe. Possible values - include: 'Http', 'Https' + :param protocol: Protocol scheme to use for this probe. Possible values include: "Http", + "Https". :type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol :param interval_in_seconds: The number of seconds between health probes. :type interval_in_seconds: int - :param health_probe_method: Configures which HTTP method to use to probe - the backends defined under backendPools. Possible values include: 'GET', - 'HEAD'. Default value: "HEAD" . - :type health_probe_method: str or - ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod - :param enabled_state: Whether to enable health probes to be made against - backends defined under backendPools. Health probes can only be disabled if - there is a single enabled backend in single enabled backend pool. Possible - values include: 'Enabled', 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :param health_probe_method: Configures which HTTP method to use to probe the backends defined + under backendPools. Possible values include: "GET", "HEAD". Default value: "HEAD". + :type health_probe_method: str or ~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod + :param enabled_state: Whether to enable health probes to be made against backends defined under + backendPools. Health probes can only be disabled if there is a single enabled backend in single + enabled backend pool. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.HealthProbeEnabled + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ + _validation = { + 'resource_state': {'readonly': True}, + } + _attribute_map = { 'path': {'key': 'path', 'type': 'str'}, 'protocol': {'key': 'protocol', 'type': 'str'}, 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, 'health_probe_method': {'key': 'healthProbeMethod', 'type': 'str'}, 'enabled_state': {'key': 'enabledState', 'type': 'str'}, - } - - def __init__(self, *, path: str=None, protocol=None, interval_in_seconds: int=None, health_probe_method="HEAD", enabled_state=None, **kwargs) -> None: - super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs) - self.path = path - self.protocol = protocol - self.interval_in_seconds = interval_in_seconds - self.health_probe_method = health_probe_method - self.enabled_state = enabled_state + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + *, + path: Optional[str] = None, + protocol: Optional[Union[str, "FrontDoorProtocol"]] = None, + interval_in_seconds: Optional[int] = None, + health_probe_method: Optional[Union[str, "FrontDoorHealthProbeMethod"]] = "HEAD", + enabled_state: Optional[Union[str, "HealthProbeEnabled"]] = None, + **kwargs + ): + super(HealthProbeSettingsProperties, self).__init__(path=path, protocol=protocol, interval_in_seconds=interval_in_seconds, health_probe_method=health_probe_method, enabled_state=enabled_state, **kwargs) + self.resource_state = None -class KeyVaultCertificateSourceParametersVault(Model): +class KeyVaultCertificateSourceParametersVault(msrest.serialization.Model): """The Key Vault containing the SSL certificate. :param id: Resource ID. @@ -1350,40 +1813,40 @@ class KeyVaultCertificateSourceParametersVault(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, *, id: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs) self.id = id -class LatencyMetric(Model): +class LatencyMetric(msrest.serialization.Model): """Defines the properties of a latency metric used in the latency scorecard. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The name of the Latency Metric + :ivar name: The name of the Latency Metric. :vartype name: str - :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC. :vartype end_date_time_utc: str - :ivar a_value: The metric value of the A endpoint + :ivar a_value: The metric value of the A endpoint. :vartype a_value: float - :ivar b_value: The metric value of the B endpoint + :ivar b_value: The metric value of the B endpoint. :vartype b_value: float - :ivar delta: The difference in value between endpoint A and B + :ivar delta: The difference in value between endpoint A and B. :vartype delta: float - :ivar delta_percent: The percent difference between endpoint A and B + :ivar delta_percent: The percent difference between endpoint A and B. :vartype delta_percent: float - :ivar a_clower95_ci: The lower end of the 95% confidence interval for - endpoint A - :vartype a_clower95_ci: float - :ivar a_hupper95_ci: The upper end of the 95% confidence interval for - endpoint A - :vartype a_hupper95_ci: float - :ivar b_clower95_ci: The lower end of the 95% confidence interval for - endpoint B - :vartype b_clower95_ci: float - :ivar b_upper95_ci: The upper end of the 95% confidence interval for - endpoint B + :ivar a_c_lower95_ci: The lower end of the 95% confidence interval for endpoint A. + :vartype a_c_lower95_ci: float + :ivar a_h_upper95_ci: The upper end of the 95% confidence interval for endpoint A. + :vartype a_h_upper95_ci: float + :ivar b_c_lower95_ci: The lower end of the 95% confidence interval for endpoint B. + :vartype b_c_lower95_ci: float + :ivar b_upper95_ci: The upper end of the 95% confidence interval for endpoint B. :vartype b_upper95_ci: float """ @@ -1394,9 +1857,9 @@ class LatencyMetric(Model): 'b_value': {'readonly': True}, 'delta': {'readonly': True}, 'delta_percent': {'readonly': True}, - 'a_clower95_ci': {'readonly': True}, - 'a_hupper95_ci': {'readonly': True}, - 'b_clower95_ci': {'readonly': True}, + 'a_c_lower95_ci': {'readonly': True}, + 'a_h_upper95_ci': {'readonly': True}, + 'b_c_lower95_ci': {'readonly': True}, 'b_upper95_ci': {'readonly': True}, } @@ -1407,13 +1870,16 @@ class LatencyMetric(Model): 'b_value': {'key': 'bValue', 'type': 'float'}, 'delta': {'key': 'delta', 'type': 'float'}, 'delta_percent': {'key': 'deltaPercent', 'type': 'float'}, - 'a_clower95_ci': {'key': 'aCLower95CI', 'type': 'float'}, - 'a_hupper95_ci': {'key': 'aHUpper95CI', 'type': 'float'}, - 'b_clower95_ci': {'key': 'bCLower95CI', 'type': 'float'}, + 'a_c_lower95_ci': {'key': 'aCLower95CI', 'type': 'float'}, + 'a_h_upper95_ci': {'key': 'aHUpper95CI', 'type': 'float'}, + 'b_c_lower95_ci': {'key': 'bCLower95CI', 'type': 'float'}, 'b_upper95_ci': {'key': 'bUpper95CI', 'type': 'float'}, } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(LatencyMetric, self).__init__(**kwargs) self.name = None self.end_date_time_utc = None @@ -1421,17 +1887,16 @@ def __init__(self, **kwargs) -> None: self.b_value = None self.delta = None self.delta_percent = None - self.a_clower95_ci = None - self.a_hupper95_ci = None - self.b_clower95_ci = None + self.a_c_lower95_ci = None + self.a_h_upper95_ci = None + self.b_c_lower95_ci = None self.b_upper95_ci = None class LatencyScorecard(Resource): """Defines the LatencyScorecard. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -1441,27 +1906,26 @@ class LatencyScorecard(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :ivar latency_scorecard_id: The unique identifier of the Latency Scorecard - :vartype latency_scorecard_id: str - :ivar latency_scorecard_name: The name of the Latency Scorecard - :vartype latency_scorecard_name: str - :ivar description: The description of the Latency Scorecard + :ivar id_properties_id: The unique identifier of the Latency Scorecard. + :vartype id_properties_id: str + :ivar name_properties_name: The name of the Latency Scorecard. + :vartype name_properties_name: str + :ivar description: The description of the Latency Scorecard. :vartype description: str - :ivar endpoint_a: The A endpoint in the scorecard + :ivar endpoint_a: The A endpoint in the scorecard. :vartype endpoint_a: str - :ivar endpoint_b: The B endpoint in the scorecard + :ivar endpoint_b: The B endpoint in the scorecard. :vartype endpoint_b: str - :ivar start_date_time_utc: The start time of the Latency Scorecard in UTC - :vartype start_date_time_utc: datetime - :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC - :vartype end_date_time_utc: datetime - :ivar country: The country associated with the Latency Scorecard. Values - are country ISO codes as specified here- - https://www.iso.org/iso-3166-country-codes.html + :ivar start_date_time_utc: The start time of the Latency Scorecard in UTC. + :vartype start_date_time_utc: ~datetime.datetime + :ivar end_date_time_utc: The end time of the Latency Scorecard in UTC. + :vartype end_date_time_utc: ~datetime.datetime + :ivar country: The country associated with the Latency Scorecard. Values are country ISO codes + as specified here- https://www.iso.org/iso-3166-country-codes.html. :vartype country: str - :param latency_metrics: The latency metrics of the Latency Scorecard + :param latency_metrics: The latency metrics of the Latency Scorecard. :type latency_metrics: list[~azure.mgmt.frontdoor.models.LatencyMetric] """ @@ -1469,8 +1933,8 @@ class LatencyScorecard(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'latency_scorecard_id': {'readonly': True}, - 'latency_scorecard_name': {'readonly': True}, + 'id_properties_id': {'readonly': True}, + 'name_properties_name': {'readonly': True}, 'description': {'readonly': True}, 'endpoint_a': {'readonly': True}, 'endpoint_b': {'readonly': True}, @@ -1485,8 +1949,8 @@ class LatencyScorecard(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'latency_scorecard_id': {'key': 'properties.id', 'type': 'str'}, - 'latency_scorecard_name': {'key': 'properties.name', 'type': 'str'}, + 'id_properties_id': {'key': 'properties.id', 'type': 'str'}, + 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'endpoint_a': {'key': 'properties.endpointA', 'type': 'str'}, 'endpoint_b': {'key': 'properties.endpointB', 'type': 'str'}, @@ -1496,10 +1960,17 @@ class LatencyScorecard(Resource): 'latency_metrics': {'key': 'properties.latencyMetrics', 'type': '[LatencyMetric]'}, } - def __init__(self, *, location: str=None, tags=None, latency_metrics=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + latency_metrics: Optional[List["LatencyMetric"]] = None, + **kwargs + ): super(LatencyScorecard, self).__init__(location=location, tags=tags, **kwargs) - self.latency_scorecard_id = None - self.latency_scorecard_name = None + self.id_properties_id = None + self.name_properties_name = None self.description = None self.endpoint_a = None self.endpoint_b = None @@ -1509,19 +1980,14 @@ def __init__(self, *, location: str=None, tags=None, latency_metrics=None, **kwa self.latency_metrics = latency_metrics -class LoadBalancingSettingsListResult(Model): - """Result of the request to list load balancing settings. It contains a list - of load balancing settings objects and a URL link to get the next set of - results. +class LoadBalancingSettingsListResult(msrest.serialization.Model): + """Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Backend Pools within a Front Door. - :vartype value: - list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] - :param next_link: URL to get the next set of LoadBalancingSettings objects - if there are any. + :vartype value: list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel] + :param next_link: URL to get the next set of LoadBalancingSettings objects if there are any. :type next_link: str """ @@ -1534,7 +2000,12 @@ class LoadBalancingSettingsListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, *, next_link: str=None, **kwargs) -> None: + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): super(LoadBalancingSettingsListResult, self).__init__(**kwargs) self.value = None self.next_link = next_link @@ -1543,65 +2014,71 @@ def __init__(self, *, next_link: str=None, **kwargs) -> None: class LoadBalancingSettingsModel(SubResource): """Load balancing settings for a backend pool. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param sample_size: The number of samples to consider for load balancing - decisions - :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed - :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket - :type additional_latency_milliseconds: int - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :param name: Resource name. :type name: str :ivar type: Resource type. :vartype type: str + :param sample_size: The number of samples to consider for load balancing decisions. + :type sample_size: int + :param successful_samples_required: The number of samples within the sample period that must + succeed. + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in milliseconds for probes to + fall into the lowest latency bucket. + :type additional_latency_milliseconds: int + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'sample_size': {'key': 'properties.sampleSize', 'type': 'int'}, 'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'}, 'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, id: str=None, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, resource_state=None, name: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + name: Optional[str] = None, + sample_size: Optional[int] = None, + successful_samples_required: Optional[int] = None, + additional_latency_milliseconds: Optional[int] = None, + **kwargs + ): super(LoadBalancingSettingsModel, self).__init__(id=id, **kwargs) + self.name = name + self.type = None self.sample_size = sample_size self.successful_samples_required = successful_samples_required self.additional_latency_milliseconds = additional_latency_milliseconds - self.resource_state = resource_state - self.name = name - self.type = None + self.resource_state = None -class LoadBalancingSettingsUpdateParameters(Model): +class LoadBalancingSettingsUpdateParameters(msrest.serialization.Model): """Round-Robin load balancing settings for a backend pool. - :param sample_size: The number of samples to consider for load balancing - decisions + :param sample_size: The number of samples to consider for load balancing decisions. :type sample_size: int - :param successful_samples_required: The number of samples within the - sample period that must succeed + :param successful_samples_required: The number of samples within the sample period that must + succeed. :type successful_samples_required: int - :param additional_latency_milliseconds: The additional latency in - milliseconds for probes to fall into the lowest latency bucket + :param additional_latency_milliseconds: The additional latency in milliseconds for probes to + fall into the lowest latency bucket. :type additional_latency_milliseconds: int """ @@ -1611,28 +2088,73 @@ class LoadBalancingSettingsUpdateParameters(Model): 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, } - def __init__(self, *, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, **kwargs) -> None: + def __init__( + self, + *, + sample_size: Optional[int] = None, + successful_samples_required: Optional[int] = None, + additional_latency_milliseconds: Optional[int] = None, + **kwargs + ): super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs) self.sample_size = sample_size self.successful_samples_required = successful_samples_required self.additional_latency_milliseconds = additional_latency_milliseconds -class ManagedRuleDefinition(Model): +class LoadBalancingSettingsProperties(LoadBalancingSettingsUpdateParameters): + """The JSON object that contains the properties required to create load balancing settings. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param sample_size: The number of samples to consider for load balancing decisions. + :type sample_size: int + :param successful_samples_required: The number of samples within the sample period that must + succeed. + :type successful_samples_required: int + :param additional_latency_milliseconds: The additional latency in milliseconds for probes to + fall into the lowest latency bucket. + :type additional_latency_milliseconds: int + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + """ + + _validation = { + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'sample_size': {'key': 'sampleSize', 'type': 'int'}, + 'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'}, + 'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + *, + sample_size: Optional[int] = None, + successful_samples_required: Optional[int] = None, + additional_latency_milliseconds: Optional[int] = None, + **kwargs + ): + super(LoadBalancingSettingsProperties, self).__init__(sample_size=sample_size, successful_samples_required=successful_samples_required, additional_latency_milliseconds=additional_latency_milliseconds, **kwargs) + self.resource_state = None + + +class ManagedRuleDefinition(msrest.serialization.Model): """Describes a managed rule definition. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar rule_id: Identifier for the managed rule. :vartype rule_id: str - :ivar default_state: Describes the default state for the managed rule. - Possible values include: 'Disabled', 'Enabled' - :vartype default_state: str or - ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState - :ivar default_action: Describes the default action to be applied when the - managed rule matches. Possible values include: 'Allow', 'Block', 'Log', - 'Redirect' + :ivar default_state: Describes the default state for the managed rule. Possible values include: + "Disabled", "Enabled". + :vartype default_state: str or ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :ivar default_action: Describes the default action to be applied when the managed rule matches. + Possible values include: "Allow", "Block", "Log", "Redirect". :vartype default_action: str or ~azure.mgmt.frontdoor.models.ActionType :ivar description: Describes the functionality of the managed rule. :vartype description: str @@ -1652,7 +2174,10 @@ class ManagedRuleDefinition(Model): 'description': {'key': 'description', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(ManagedRuleDefinition, self).__init__(**kwargs) self.rule_id = None self.default_state = None @@ -1660,25 +2185,22 @@ def __init__(self, **kwargs) -> None: self.description = None -class ManagedRuleExclusion(Model): +class ManagedRuleExclusion(msrest.serialization.Model): """Exclude variables from managed rule evaluation. All required parameters must be populated in order to send to Azure. - :param match_variable: Required. The variable type to be excluded. - Possible values include: 'RequestHeaderNames', 'RequestCookieNames', - 'QueryStringArgNames', 'RequestBodyPostArgNames', - 'RequestBodyJsonArgNames' - :type match_variable: str or - ~azure.mgmt.frontdoor.models.ManagedRuleExclusionMatchVariable - :param selector_match_operator: Required. Comparison operator to apply to - the selector when specifying which elements in the collection this - exclusion applies to. Possible values include: 'Equals', 'Contains', - 'StartsWith', 'EndsWith', 'EqualsAny' + :param match_variable: Required. The variable type to be excluded. Possible values include: + "RequestHeaderNames", "RequestCookieNames", "QueryStringArgNames", "RequestBodyPostArgNames", + "RequestBodyJsonArgNames". + :type match_variable: str or ~azure.mgmt.frontdoor.models.ManagedRuleExclusionMatchVariable + :param selector_match_operator: Required. Comparison operator to apply to the selector when + specifying which elements in the collection this exclusion applies to. Possible values include: + "Equals", "Contains", "StartsWith", "EndsWith", "EqualsAny". :type selector_match_operator: str or ~azure.mgmt.frontdoor.models.ManagedRuleExclusionSelectorMatchOperator - :param selector: Required. Selector value for which elements in the - collection this exclusion applies to. + :param selector: Required. Selector value for which elements in the collection this exclusion + applies to. :type selector: str """ @@ -1694,18 +2216,24 @@ class ManagedRuleExclusion(Model): 'selector': {'key': 'selector', 'type': 'str'}, } - def __init__(self, *, match_variable, selector_match_operator, selector: str, **kwargs) -> None: + def __init__( + self, + *, + match_variable: Union[str, "ManagedRuleExclusionMatchVariable"], + selector_match_operator: Union[str, "ManagedRuleExclusionSelectorMatchOperator"], + selector: str, + **kwargs + ): super(ManagedRuleExclusion, self).__init__(**kwargs) self.match_variable = match_variable self.selector_match_operator = selector_match_operator self.selector = selector -class ManagedRuleGroupDefinition(Model): +class ManagedRuleGroupDefinition(msrest.serialization.Model): """Describes a managed rule group. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar rule_group_name: Name of the managed rule group. :vartype rule_group_name: str @@ -1727,26 +2255,27 @@ class ManagedRuleGroupDefinition(Model): 'rules': {'key': 'rules', 'type': '[ManagedRuleDefinition]'}, } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(ManagedRuleGroupDefinition, self).__init__(**kwargs) self.rule_group_name = None self.description = None self.rules = None -class ManagedRuleGroupOverride(Model): +class ManagedRuleGroupOverride(msrest.serialization.Model): """Defines a managed rule group override setting. All required parameters must be populated in order to send to Azure. - :param rule_group_name: Required. Describes the managed rule group to - override. + :param rule_group_name: Required. Describes the managed rule group to override. :type rule_group_name: str - :param exclusions: Describes the exclusions that are applied to all rules - in the group. + :param exclusions: Describes the exclusions that are applied to all rules in the group. :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] - :param rules: List of rules that will be disabled. If none specified, all - rules in the group will be disabled. + :param rules: List of rules that will be disabled. If none specified, all rules in the group + will be disabled. :type rules: list[~azure.mgmt.frontdoor.models.ManagedRuleOverride] """ @@ -1760,30 +2289,34 @@ class ManagedRuleGroupOverride(Model): 'rules': {'key': 'rules', 'type': '[ManagedRuleOverride]'}, } - def __init__(self, *, rule_group_name: str, exclusions=None, rules=None, **kwargs) -> None: + def __init__( + self, + *, + rule_group_name: str, + exclusions: Optional[List["ManagedRuleExclusion"]] = None, + rules: Optional[List["ManagedRuleOverride"]] = None, + **kwargs + ): super(ManagedRuleGroupOverride, self).__init__(**kwargs) self.rule_group_name = rule_group_name self.exclusions = exclusions self.rules = rules -class ManagedRuleOverride(Model): +class ManagedRuleOverride(msrest.serialization.Model): """Defines a managed rule group override setting. All required parameters must be populated in order to send to Azure. :param rule_id: Required. Identifier for the managed rule. :type rule_id: str - :param enabled_state: Describes if the managed rule is in enabled or - disabled state. Defaults to Disabled if not specified. Possible values - include: 'Disabled', 'Enabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState - :param action: Describes the override action to be applied when rule - matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect' + :param enabled_state: Describes if the managed rule is in enabled or disabled state. Defaults + to Disabled if not specified. Possible values include: "Disabled", "Enabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.ManagedRuleEnabledState + :param action: Describes the override action to be applied when rule matches. Possible values + include: "Allow", "Block", "Log", "Redirect". :type action: str or ~azure.mgmt.frontdoor.models.ActionType - :param exclusions: Describes the exclusions that are applied to this - specific rule. + :param exclusions: Describes the exclusions that are applied to this specific rule. :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] """ @@ -1798,7 +2331,15 @@ class ManagedRuleOverride(Model): 'exclusions': {'key': 'exclusions', 'type': '[ManagedRuleExclusion]'}, } - def __init__(self, *, rule_id: str, enabled_state=None, action=None, exclusions=None, **kwargs) -> None: + def __init__( + self, + *, + rule_id: str, + enabled_state: Optional[Union[str, "ManagedRuleEnabledState"]] = None, + action: Optional[Union[str, "ActionType"]] = None, + exclusions: Optional[List["ManagedRuleExclusion"]] = None, + **kwargs + ): super(ManagedRuleOverride, self).__init__(**kwargs) self.rule_id = rule_id self.enabled_state = enabled_state @@ -1806,27 +2347,22 @@ def __init__(self, *, rule_id: str, enabled_state=None, action=None, exclusions= self.exclusions = exclusions -class ManagedRuleSet(Model): +class ManagedRuleSet(msrest.serialization.Model): """Defines a managed rule set. All required parameters must be populated in order to send to Azure. :param rule_set_type: Required. Defines the rule set type to use. :type rule_set_type: str - :param rule_set_version: Required. Defines the version of the rule set to - use. + :param rule_set_version: Required. Defines the version of the rule set to use. :type rule_set_version: str - :param rule_set_action: Possible values include: 'Block', 'Log', - 'Redirect' - :type rule_set_action: str or - ~azure.mgmt.frontdoor.models.ManagedRuleSetActionType - :param exclusions: Describes the exclusions that are applied to all rules - in the set. + :param rule_set_action: Defines the action to take when a managed rule set score threshold is + met. Possible values include: "Block", "Log", "Redirect". + :type rule_set_action: str or ~azure.mgmt.frontdoor.models.ManagedRuleSetActionType + :param exclusions: Describes the exclusions that are applied to all rules in the set. :type exclusions: list[~azure.mgmt.frontdoor.models.ManagedRuleExclusion] - :param rule_group_overrides: Defines the rule group overrides to apply to - the rule set. - :type rule_group_overrides: - list[~azure.mgmt.frontdoor.models.ManagedRuleGroupOverride] + :param rule_group_overrides: Defines the rule group overrides to apply to the rule set. + :type rule_group_overrides: list[~azure.mgmt.frontdoor.models.ManagedRuleGroupOverride] """ _validation = { @@ -1842,7 +2378,16 @@ class ManagedRuleSet(Model): 'rule_group_overrides': {'key': 'ruleGroupOverrides', 'type': '[ManagedRuleGroupOverride]'}, } - def __init__(self, *, rule_set_type: str, rule_set_version: str, rule_set_action=None, exclusions=None, rule_group_overrides=None, **kwargs) -> None: + def __init__( + self, + *, + rule_set_type: str, + rule_set_version: str, + rule_set_action: Optional[Union[str, "ManagedRuleSetActionType"]] = None, + exclusions: Optional[List["ManagedRuleExclusion"]] = None, + rule_group_overrides: Optional[List["ManagedRuleGroupOverride"]] = None, + **kwargs + ): super(ManagedRuleSet, self).__init__(**kwargs) self.rule_set_type = rule_set_type self.rule_set_version = rule_set_version @@ -1854,8 +2399,7 @@ def __init__(self, *, rule_set_type: str, rule_set_version: str, rule_set_action class ManagedRuleSetDefinition(Resource): """Describes the a managed rule set definition. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -1865,7 +2409,7 @@ class ManagedRuleSetDefinition(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] :ivar provisioning_state: Provisioning state of the managed rule set. :vartype provisioning_state: str @@ -1876,8 +2420,7 @@ class ManagedRuleSetDefinition(Resource): :ivar rule_set_version: Version of the managed rule set type. :vartype rule_set_version: str :ivar rule_groups: Rule groups of the managed rule set. - :vartype rule_groups: - list[~azure.mgmt.frontdoor.models.ManagedRuleGroupDefinition] + :vartype rule_groups: list[~azure.mgmt.frontdoor.models.ManagedRuleGroupDefinition] """ _validation = { @@ -1904,7 +2447,13 @@ class ManagedRuleSetDefinition(Resource): 'rule_groups': {'key': 'properties.ruleGroups', 'type': '[ManagedRuleGroupDefinition]'}, } - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): super(ManagedRuleSetDefinition, self).__init__(location=location, tags=tags, **kwargs) self.provisioning_state = None self.rule_set_id = None @@ -1913,7 +2462,38 @@ def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: self.rule_groups = None -class ManagedRuleSetList(Model): +class ManagedRuleSetDefinitionList(msrest.serialization.Model): + """List of managed rule set definitions available for use in a policy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of managed rule set definitions. + :vartype value: list[~azure.mgmt.frontdoor.models.ManagedRuleSetDefinition] + :param next_link: URL to retrieve next set of managed rule set definitions. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ManagedRuleSetDefinition]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(ManagedRuleSetDefinitionList, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class ManagedRuleSetList(msrest.serialization.Model): """Defines the list of managed rule sets for the policy. :param managed_rule_sets: List of rule sets. @@ -1924,31 +2504,33 @@ class ManagedRuleSetList(Model): 'managed_rule_sets': {'key': 'managedRuleSets', 'type': '[ManagedRuleSet]'}, } - def __init__(self, *, managed_rule_sets=None, **kwargs) -> None: + def __init__( + self, + *, + managed_rule_sets: Optional[List["ManagedRuleSet"]] = None, + **kwargs + ): super(ManagedRuleSetList, self).__init__(**kwargs) self.managed_rule_sets = managed_rule_sets -class MatchCondition(Model): +class MatchCondition(msrest.serialization.Model): """Define a match condition. All required parameters must be populated in order to send to Azure. - :param match_variable: Required. Request variable to compare with. - Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', - 'PostArgs', 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies', - 'SocketAddr' + :param match_variable: Required. Request variable to compare with. Possible values include: + "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", "RequestHeader", + "RequestBody", "Cookies", "SocketAddr". :type match_variable: str or ~azure.mgmt.frontdoor.models.MatchVariable - :param selector: Match against a specific key from the QueryString, - PostArgs, RequestHeader or Cookies variables. Default is null. + :param selector: Match against a specific key from the QueryString, PostArgs, RequestHeader or + Cookies variables. Default is null. :type selector: str - :param operator: Required. Comparison type to use for matching with the - variable value. Possible values include: 'Any', 'IPMatch', 'GeoMatch', - 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', - 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx' + :param operator: Required. Comparison type to use for matching with the variable value. + Possible values include: "Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", + "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx". :type operator: str or ~azure.mgmt.frontdoor.models.Operator - :param negate_condition: Describes if the result of this condition should - be negated. + :param negate_condition: Describes if the result of this condition should be negated. :type negate_condition: bool :param match_value: Required. List of possible match values. :type match_value: list[str] @@ -1971,7 +2553,17 @@ class MatchCondition(Model): 'transforms': {'key': 'transforms', 'type': '[str]'}, } - def __init__(self, *, match_variable, operator, match_value, selector: str=None, negate_condition: bool=None, transforms=None, **kwargs) -> None: + def __init__( + self, + *, + match_variable: Union[str, "MatchVariable"], + operator: Union[str, "Operator"], + match_value: List[str], + selector: Optional[str] = None, + negate_condition: Optional[bool] = None, + transforms: Optional[List[Union[str, "TransformType"]]] = None, + **kwargs + ): super(MatchCondition, self).__init__(**kwargs) self.match_variable = match_variable self.selector = selector @@ -1981,31 +2573,27 @@ def __init__(self, *, match_variable, operator, match_value, selector: str=None, self.transforms = transforms -class PolicySettings(Model): +class PolicySettings(msrest.serialization.Model): """Defines top-level WebApplicationFirewallPolicy configuration settings. - :param enabled_state: Describes if the policy is in enabled or disabled - state. Defaults to Enabled if not specified. Possible values include: - 'Disabled', 'Enabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.PolicyEnabledState - :param mode: Describes if it is in detection mode or prevention mode at - policy level. Possible values include: 'Prevention', 'Detection' + :param enabled_state: Describes if the policy is in enabled or disabled state. Defaults to + Enabled if not specified. Possible values include: "Disabled", "Enabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.PolicyEnabledState + :param mode: Describes if it is in detection mode or prevention mode at policy level. Possible + values include: "Prevention", "Detection". :type mode: str or ~azure.mgmt.frontdoor.models.PolicyMode - :param redirect_url: If action type is redirect, this field represents - redirect URL for the client. + :param redirect_url: If action type is redirect, this field represents redirect URL for the + client. :type redirect_url: str - :param custom_block_response_status_code: If the action type is block, - customer can override the response status code. + :param custom_block_response_status_code: If the action type is block, customer can override + the response status code. :type custom_block_response_status_code: int - :param custom_block_response_body: If the action type is block, customer - can override the response body. The body must be specified in base64 - encoding. + :param custom_block_response_body: If the action type is block, customer can override the + response body. The body must be specified in base64 encoding. :type custom_block_response_body: str - :param request_body_check: Describes if policy managed rules will inspect - the request body content. Possible values include: 'Disabled', 'Enabled' - :type request_body_check: str or - ~azure.mgmt.frontdoor.models.PolicyRequestBodyCheck + :param request_body_check: Describes if policy managed rules will inspect the request body + content. Possible values include: "Disabled", "Enabled". + :type request_body_check: str or ~azure.mgmt.frontdoor.models.PolicyRequestBodyCheck """ _validation = { @@ -2021,7 +2609,17 @@ class PolicySettings(Model): 'request_body_check': {'key': 'requestBodyCheck', 'type': 'str'}, } - def __init__(self, *, enabled_state=None, mode=None, redirect_url: str=None, custom_block_response_status_code: int=None, custom_block_response_body: str=None, request_body_check=None, **kwargs) -> None: + def __init__( + self, + *, + enabled_state: Optional[Union[str, "PolicyEnabledState"]] = None, + mode: Optional[Union[str, "PolicyMode"]] = None, + redirect_url: Optional[str] = None, + custom_block_response_status_code: Optional[int] = None, + custom_block_response_body: Optional[str] = None, + request_body_check: Optional[Union[str, "PolicyRequestBodyCheck"]] = None, + **kwargs + ): super(PolicySettings, self).__init__(**kwargs) self.enabled_state = enabled_state self.mode = mode @@ -2034,8 +2632,7 @@ def __init__(self, *, enabled_state=None, mode=None, redirect_url: str=None, cus class PreconfiguredEndpoint(Resource): """Defines the properties of a preconfigured endpoint. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2045,16 +2642,16 @@ class PreconfiguredEndpoint(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param description: The description of the endpoint + :param description: The description of the endpoint. :type description: str - :param endpoint: The endpoint that is preconfigured + :param endpoint: The endpoint that is preconfigured. :type endpoint: str - :param endpoint_type: The type of endpoint. Possible values include: - 'AFD', 'AzureRegion', 'CDN', 'ATM' + :param endpoint_type: The type of endpoint. Possible values include: "AFD", "AzureRegion", + "CDN", "ATM". :type endpoint_type: str or ~azure.mgmt.frontdoor.models.EndpointType - :param backend: The preconfigured endpoint backend + :param backend: The preconfigured endpoint backend. :type backend: str """ @@ -2076,7 +2673,17 @@ class PreconfiguredEndpoint(Resource): 'backend': {'key': 'properties.backend', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, description: str=None, endpoint: str=None, endpoint_type=None, backend: str=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + description: Optional[str] = None, + endpoint: Optional[str] = None, + endpoint_type: Optional[Union[str, "EndpointType"]] = None, + backend: Optional[str] = None, + **kwargs + ): super(PreconfiguredEndpoint, self).__init__(location=location, tags=tags, **kwargs) self.description = description self.endpoint = endpoint @@ -2084,11 +2691,41 @@ def __init__(self, *, location: str=None, tags=None, description: str=None, endp self.backend = backend +class PreconfiguredEndpointList(msrest.serialization.Model): + """Defines a list of preconfigured endpoints. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of PreconfiguredEndpoints supported by NetworkExperiment. + :vartype value: list[~azure.mgmt.frontdoor.models.PreconfiguredEndpoint] + :param next_link: URL to get the next set of PreconfiguredEndpoints if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PreconfiguredEndpoint]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(PreconfiguredEndpointList, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + class Profile(Resource): """Defines an Network Experiment Profile and lists of Experiments. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2098,24 +2735,23 @@ class Profile(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState - :param enabled_state: The state of the Experiment. Possible values - include: 'Enabled', 'Disabled' - :type enabled_state: str or ~azure.mgmt.frontdoor.models.State - :param etag: Gets a unique read-only string that changes whenever the - resource is updated. + :param etag: Gets a unique read-only string that changes whenever the resource is updated. :type etag: str + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.NetworkExperimentResourceState + :param enabled_state: The state of the Experiment. Possible values include: "Enabled", + "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { @@ -2124,46 +2760,91 @@ class Profile(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, resource_state=None, enabled_state=None, etag: str=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + etag: Optional[str] = None, + enabled_state: Optional[Union[str, "State"]] = None, + **kwargs + ): super(Profile, self).__init__(location=location, tags=tags, **kwargs) - self.resource_state = resource_state - self.enabled_state = enabled_state self.etag = etag + self.resource_state = None + self.enabled_state = enabled_state + + +class ProfileList(msrest.serialization.Model): + """Defines a list of Profiles. It contains a list of Profile objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Profiles within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.Profile] + :param next_link: URL to get the next set of Profile objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Profile]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(ProfileList, self).__init__(**kwargs) + self.value = None + self.next_link = next_link -class ProfileUpdateModel(Model): +class ProfileUpdateModel(msrest.serialization.Model): """Defines modifiable attributes of a Profile. - :param enabled_state: The enabled state of the Profile. Possible values - include: 'Enabled', 'Disabled' - :type enabled_state: str or ~azure.mgmt.frontdoor.models.State - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param enabled_state: The enabled state of the Profile. Possible values include: "Enabled", + "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.State """ _attribute_map = { - 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, } - def __init__(self, *, enabled_state=None, tags=None, **kwargs) -> None: + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + enabled_state: Optional[Union[str, "State"]] = None, + **kwargs + ): super(ProfileUpdateModel, self).__init__(**kwargs) - self.enabled_state = enabled_state self.tags = tags + self.enabled_state = enabled_state -class PurgeParameters(Model): +class PurgeParameters(msrest.serialization.Model): """Parameters required for content purge. All required parameters must be populated in order to send to Azure. - :param content_paths: Required. The path to the content to be purged. Can - describe a file path or a wild card directory. + :param content_paths: Required. The path to the content to be purged. Can describe a file path + or a wild card directory. :type content_paths: list[str] """ @@ -2175,7 +2856,12 @@ class PurgeParameters(Model): 'content_paths': {'key': 'contentPaths', 'type': '[str]'}, } - def __init__(self, *, content_paths, **kwargs) -> None: + def __init__( + self, + *, + content_paths: List[str], + **kwargs + ): super(PurgeParameters, self).__init__(**kwargs) self.content_paths = content_paths @@ -2185,43 +2871,37 @@ class RedirectConfiguration(RouteConfiguration): All required parameters must be populated in order to send to Azure. - :param odatatype: Required. Constant filled by server. - :type odatatype: str - :param redirect_type: The redirect type the rule will use when redirecting - traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', - 'PermanentRedirect' - :type redirect_type: str or - ~azure.mgmt.frontdoor.models.FrontDoorRedirectType - :param redirect_protocol: The protocol of the destination to where the - traffic is redirected. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type redirect_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol - :param custom_host: Host to redirect. Leave empty to use the incoming host - as the destination host. + :param odata_type: Required. Constant filled by server. + :type odata_type: str + :param redirect_type: The redirect type the rule will use when redirecting traffic. Possible + values include: "Moved", "Found", "TemporaryRedirect", "PermanentRedirect". + :type redirect_type: str or ~azure.mgmt.frontdoor.models.FrontDoorRedirectType + :param redirect_protocol: The protocol of the destination to where the traffic is redirected. + Possible values include: "HttpOnly", "HttpsOnly", "MatchRequest". + :type redirect_protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol + :param custom_host: Host to redirect. Leave empty to use the incoming host as the destination + host. :type custom_host: str - :param custom_path: The full path to redirect. Path cannot be empty and - must start with /. Leave empty to use the incoming path as destination - path. + :param custom_path: The full path to redirect. Path cannot be empty and must start with /. + Leave empty to use the incoming path as destination path. :type custom_path: str - :param custom_fragment: Fragment to add to the redirect URL. Fragment is - the part of the URL that comes after #. Do not include the #. + :param custom_fragment: Fragment to add to the redirect URL. Fragment is the part of the URL + that comes after #. Do not include the #. :type custom_fragment: str - :param custom_query_string: The set of query strings to be placed in the - redirect URL. Setting this value would replace any existing query string; - leave empty to preserve the incoming query string. Query string must be in - = format. The first ? and & will be added automatically so do - not include them in the front, but do separate multiple query strings with - &. + :param custom_query_string: The set of query strings to be placed in the redirect URL. Setting + this value would replace any existing query string; leave empty to preserve the incoming query + string. Query string must be in :code:``=:code:`` format. The first ? and & will be + added automatically so do not include them in the front, but do separate multiple query strings + with &. :type custom_query_string: str """ _validation = { - 'odatatype': {'required': True}, + 'odata_type': {'required': True}, } _attribute_map = { - 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, 'redirect_type': {'key': 'redirectType', 'type': 'str'}, 'redirect_protocol': {'key': 'redirectProtocol', 'type': 'str'}, 'custom_host': {'key': 'customHost', 'type': 'str'}, @@ -2230,63 +2910,70 @@ class RedirectConfiguration(RouteConfiguration): 'custom_query_string': {'key': 'customQueryString', 'type': 'str'}, } - def __init__(self, *, redirect_type=None, redirect_protocol=None, custom_host: str=None, custom_path: str=None, custom_fragment: str=None, custom_query_string: str=None, **kwargs) -> None: + def __init__( + self, + *, + redirect_type: Optional[Union[str, "FrontDoorRedirectType"]] = None, + redirect_protocol: Optional[Union[str, "FrontDoorRedirectProtocol"]] = None, + custom_host: Optional[str] = None, + custom_path: Optional[str] = None, + custom_fragment: Optional[str] = None, + custom_query_string: Optional[str] = None, + **kwargs + ): super(RedirectConfiguration, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' # type: str self.redirect_type = redirect_type self.redirect_protocol = redirect_protocol self.custom_host = custom_host self.custom_path = custom_path self.custom_fragment = custom_fragment self.custom_query_string = custom_query_string - self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' class RoutingRule(SubResource): - """A routing rule represents a specification for traffic to treat and where to - send it, along with health probe information. + """A routing rule represents a specification for traffic to treat and where to send it, along with health probe information. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str - :param frontend_endpoints: Frontend endpoints associated with this rule + :param name: Resource name. + :type name: str + :ivar type: Resource type. + :vartype type: str + :param frontend_endpoints: Frontend endpoints associated with this rule. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param accepted_protocols: Protocol schemes to match for this rule. + :type accepted_protocols: list[str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState :param route_configuration: A reference to the routing configuration. :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration - :param rules_engine: A reference to a specific Rules Engine Configuration - to apply to this route. + :param rules_engine: A reference to a specific Rules Engine Configuration to apply to this + route. :type rules_engine: ~azure.mgmt.frontdoor.models.SubResource - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each routing rule (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each routing rule (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param name: Resource name. - :type name: str - :ivar type: Resource type. - :vartype type: str + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'type': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, @@ -2295,12 +2982,25 @@ class RoutingRule(SubResource): 'rules_engine': {'key': 'properties.rulesEngine', 'type': 'SubResource'}, 'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, id: str=None, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, enabled_state=None, route_configuration=None, rules_engine=None, web_application_firewall_policy_link=None, resource_state=None, name: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + name: Optional[str] = None, + frontend_endpoints: Optional[List["SubResource"]] = None, + accepted_protocols: Optional[List[Union[str, "FrontDoorProtocol"]]] = None, + patterns_to_match: Optional[List[str]] = None, + enabled_state: Optional[Union[str, "RoutingRuleEnabledState"]] = None, + route_configuration: Optional["RouteConfiguration"] = None, + rules_engine: Optional["SubResource"] = None, + web_application_firewall_policy_link: Optional["RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink"] = None, + **kwargs + ): super(RoutingRule, self).__init__(id=id, **kwargs) + self.name = name + self.type = None self.frontend_endpoints = frontend_endpoints self.accepted_protocols = accepted_protocols self.patterns_to_match = patterns_to_match @@ -2308,12 +3008,10 @@ def __init__(self, *, id: str=None, frontend_endpoints=None, accepted_protocols= self.route_configuration = route_configuration self.rules_engine = rules_engine self.web_application_firewall_policy_link = web_application_firewall_policy_link - self.resource_state = resource_state - self.name = name - self.type = None + self.resource_state = None -class RoutingRuleLink(Model): +class RoutingRuleLink(msrest.serialization.Model): """Defines the Resource ID for a Routing Rule. :param id: Resource ID. @@ -2324,22 +3022,24 @@ class RoutingRuleLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, *, id: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): super(RoutingRuleLink, self).__init__(**kwargs) self.id = id -class RoutingRuleListResult(Model): - """Result of the request to list Routing Rules. It contains a list of Routing - Rule objects and a URL link to get the next set of results. +class RoutingRuleListResult(msrest.serialization.Model): + """Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the next set of results. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of Routing Rules within a Front Door. :vartype value: list[~azure.mgmt.frontdoor.models.RoutingRule] - :param next_link: URL to get the next set of RoutingRule objects if there - are any. + :param next_link: URL to get the next set of RoutingRule objects if there are any. :type next_link: str """ @@ -2352,34 +3052,36 @@ class RoutingRuleListResult(Model): 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, *, next_link: str=None, **kwargs) -> None: + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): super(RoutingRuleListResult, self).__init__(**kwargs) self.value = None self.next_link = next_link -class RoutingRuleUpdateParameters(Model): +class RoutingRuleUpdateParameters(msrest.serialization.Model): """Routing rules to apply to an endpoint. - :param frontend_endpoints: Frontend endpoints associated with this rule + :param frontend_endpoints: Frontend endpoints associated with this rule. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] - :param accepted_protocols: Protocol schemes to match for this rule - :type accepted_protocols: list[str or - ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param accepted_protocols: Protocol schemes to match for this rule. + :type accepted_protocols: list[str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param enabled_state: Whether to enable use of this rule. Permitted values - are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', - 'Disabled' - :type enabled_state: str or - ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState :param route_configuration: A reference to the routing configuration. :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration - :param rules_engine: A reference to a specific Rules Engine Configuration - to apply to this route. + :param rules_engine: A reference to a specific Rules Engine Configuration to apply to this + route. :type rules_engine: ~azure.mgmt.frontdoor.models.SubResource - :param web_application_firewall_policy_link: Defines the Web Application - Firewall policy for each routing rule (if applicable) + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each routing rule (if applicable). :type web_application_firewall_policy_link: ~azure.mgmt.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink """ @@ -2394,7 +3096,18 @@ class RoutingRuleUpdateParameters(Model): 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink'}, } - def __init__(self, *, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, enabled_state=None, route_configuration=None, rules_engine=None, web_application_firewall_policy_link=None, **kwargs) -> None: + def __init__( + self, + *, + frontend_endpoints: Optional[List["SubResource"]] = None, + accepted_protocols: Optional[List[Union[str, "FrontDoorProtocol"]]] = None, + patterns_to_match: Optional[List[str]] = None, + enabled_state: Optional[Union[str, "RoutingRuleEnabledState"]] = None, + route_configuration: Optional["RouteConfiguration"] = None, + rules_engine: Optional["SubResource"] = None, + web_application_firewall_policy_link: Optional["RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink"] = None, + **kwargs + ): super(RoutingRuleUpdateParameters, self).__init__(**kwargs) self.frontend_endpoints = frontend_endpoints self.accepted_protocols = accepted_protocols @@ -2405,9 +3118,67 @@ def __init__(self, *, frontend_endpoints=None, accepted_protocols=None, patterns self.web_application_firewall_policy_link = web_application_firewall_policy_link -class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(Model): - """Defines the Web Application Firewall policy for each routing rule (if - applicable). +class RoutingRuleProperties(RoutingRuleUpdateParameters): + """The JSON object that contains the properties required to create a routing rule. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param frontend_endpoints: Frontend endpoints associated with this rule. + :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.SubResource] + :param accepted_protocols: Protocol schemes to match for this rule. + :type accepted_protocols: list[str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol] + :param patterns_to_match: The route patterns of the rule. + :type patterns_to_match: list[str] + :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or + 'Disabled'. Possible values include: "Enabled", "Disabled". + :type enabled_state: str or ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration + :param rules_engine: A reference to a specific Rules Engine Configuration to apply to this + route. + :type rules_engine: ~azure.mgmt.frontdoor.models.SubResource + :param web_application_firewall_policy_link: Defines the Web Application Firewall policy for + each routing rule (if applicable). + :type web_application_firewall_policy_link: + ~azure.mgmt.frontdoor.models.RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + """ + + _validation = { + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, + 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, + 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, + 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'routeConfiguration', 'type': 'RouteConfiguration'}, + 'rules_engine': {'key': 'rulesEngine', 'type': 'SubResource'}, + 'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + *, + frontend_endpoints: Optional[List["SubResource"]] = None, + accepted_protocols: Optional[List[Union[str, "FrontDoorProtocol"]]] = None, + patterns_to_match: Optional[List[str]] = None, + enabled_state: Optional[Union[str, "RoutingRuleEnabledState"]] = None, + route_configuration: Optional["RouteConfiguration"] = None, + rules_engine: Optional["SubResource"] = None, + web_application_firewall_policy_link: Optional["RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink"] = None, + **kwargs + ): + super(RoutingRuleProperties, self).__init__(frontend_endpoints=frontend_endpoints, accepted_protocols=accepted_protocols, patterns_to_match=patterns_to_match, enabled_state=enabled_state, route_configuration=route_configuration, rules_engine=rules_engine, web_application_firewall_policy_link=web_application_firewall_policy_link, **kwargs) + self.resource_state = None + + +class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(msrest.serialization.Model): + """Defines the Web Application Firewall policy for each routing rule (if applicable). :param id: Resource ID. :type id: str @@ -2417,71 +3188,74 @@ class RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, *, id: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): super(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs) self.id = id -class RulesEngine(Model): - """A rules engine configuration containing a list of rules that will run to - modify the runtime behavior of the request and response. +class RulesEngine(msrest.serialization.Model): + """A rules engine configuration containing a list of rules that will run to modify the runtime behavior of the request and response. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :param rules: A list of rules that define a particular Rules Engine - Configuration. - :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :ivar id: Resource ID. :vartype id: str + :param rules: A list of rules that define a particular Rules Engine Configuration. + :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState """ _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'id': {'readonly': True}, + 'resource_state': {'readonly': True}, } _attribute_map = { - 'rules': {'key': 'properties.rules', 'type': '[RulesEngineRule]'}, - 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, + 'rules': {'key': 'properties.rules', 'type': '[RulesEngineRule]'}, + 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, } - def __init__(self, *, rules=None, resource_state=None, **kwargs) -> None: + def __init__( + self, + *, + rules: Optional[List["RulesEngineRule"]] = None, + **kwargs + ): super(RulesEngine, self).__init__(**kwargs) - self.rules = rules - self.resource_state = resource_state self.name = None self.type = None self.id = None + self.rules = rules + self.resource_state = None -class RulesEngineAction(Model): - """One or more actions that will execute, modifying the request and/or - response. +class RulesEngineAction(msrest.serialization.Model): + """One or more actions that will execute, modifying the request and/or response. - :param request_header_actions: A list of header actions to apply from the - request from AFD to the origin. - :type request_header_actions: - list[~azure.mgmt.frontdoor.models.HeaderAction] - :param response_header_actions: A list of header actions to apply from the - response from AFD to the client. - :type response_header_actions: - list[~azure.mgmt.frontdoor.models.HeaderAction] + :param request_header_actions: A list of header actions to apply from the request from AFD to + the origin. + :type request_header_actions: list[~azure.mgmt.frontdoor.models.HeaderAction] + :param response_header_actions: A list of header actions to apply from the response from AFD to + the client. + :type response_header_actions: list[~azure.mgmt.frontdoor.models.HeaderAction] :param route_configuration_override: Override the route configuration. - :type route_configuration_override: - ~azure.mgmt.frontdoor.models.RouteConfiguration + :type route_configuration_override: ~azure.mgmt.frontdoor.models.RouteConfiguration """ _attribute_map = { @@ -2490,42 +3264,74 @@ class RulesEngineAction(Model): 'route_configuration_override': {'key': 'routeConfigurationOverride', 'type': 'RouteConfiguration'}, } - def __init__(self, *, request_header_actions=None, response_header_actions=None, route_configuration_override=None, **kwargs) -> None: + def __init__( + self, + *, + request_header_actions: Optional[List["HeaderAction"]] = None, + response_header_actions: Optional[List["HeaderAction"]] = None, + route_configuration_override: Optional["RouteConfiguration"] = None, + **kwargs + ): super(RulesEngineAction, self).__init__(**kwargs) self.request_header_actions = request_header_actions self.response_header_actions = response_header_actions self.route_configuration_override = route_configuration_override -class RulesEngineMatchCondition(Model): +class RulesEngineListResult(msrest.serialization.Model): + """Result of the request to list Rules Engine Configurations. It contains a list of RulesEngine objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of rulesEngines within a Front Door. + :vartype value: list[~azure.mgmt.frontdoor.models.RulesEngine] + :param next_link: URL to get the next set of RulesEngine objects if there are any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RulesEngine]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(RulesEngineListResult, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class RulesEngineMatchCondition(msrest.serialization.Model): """Define a match condition. All required parameters must be populated in order to send to Azure. - :param rules_engine_match_variable: Required. Match Variable. Possible - values include: 'IsMobile', 'RemoteAddr', 'RequestMethod', 'QueryString', - 'PostArgs', 'RequestUri', 'RequestPath', 'RequestFilename', - 'RequestFilenameExtension', 'RequestHeader', 'RequestBody', - 'RequestScheme' - :type rules_engine_match_variable: str or - ~azure.mgmt.frontdoor.models.RulesEngineMatchVariable - :param selector: Name of selector in RequestHeader or RequestBody to be - matched + :param rules_engine_match_variable: Required. Match Variable. Possible values include: + "IsMobile", "RemoteAddr", "RequestMethod", "QueryString", "PostArgs", "RequestUri", + "RequestPath", "RequestFilename", "RequestFilenameExtension", "RequestHeader", "RequestBody", + "RequestScheme". + :type rules_engine_match_variable: str or ~azure.mgmt.frontdoor.models.RulesEngineMatchVariable + :param selector: Name of selector in RequestHeader or RequestBody to be matched. :type selector: str - :param rules_engine_operator: Required. Describes operator to apply to the - match condition. Possible values include: 'Any', 'IPMatch', 'GeoMatch', - 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', - 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith' - :type rules_engine_operator: str or - ~azure.mgmt.frontdoor.models.RulesEngineOperator - :param negate_condition: Describes if this is negate condition or not + :param rules_engine_operator: Required. Describes operator to apply to the match condition. + Possible values include: "Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", + "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith". + :type rules_engine_operator: str or ~azure.mgmt.frontdoor.models.RulesEngineOperator + :param negate_condition: Describes if this is negate condition or not. :type negate_condition: bool - :param rules_engine_match_value: Required. Match values to match against. - The operator will apply to each value in here with OR semantics. If any of - them match the variable with the given operator this match condition is - considered a match. + :param rules_engine_match_value: Required. Match values to match against. The operator will + apply to each value in here with OR semantics. If any of them match the variable with the given + operator this match condition is considered a match. :type rules_engine_match_value: list[str] - :param transforms: List of transforms + :param transforms: List of transforms. :type transforms: list[str or ~azure.mgmt.frontdoor.models.Transform] """ @@ -2544,7 +3350,17 @@ class RulesEngineMatchCondition(Model): 'transforms': {'key': 'transforms', 'type': '[str]'}, } - def __init__(self, *, rules_engine_match_variable, rules_engine_operator, rules_engine_match_value, selector: str=None, negate_condition: bool=None, transforms=None, **kwargs) -> None: + def __init__( + self, + *, + rules_engine_match_variable: Union[str, "RulesEngineMatchVariable"], + rules_engine_operator: Union[str, "RulesEngineOperator"], + rules_engine_match_value: List[str], + selector: Optional[str] = None, + negate_condition: Optional[bool] = None, + transforms: Optional[List[Union[str, "Transform"]]] = None, + **kwargs + ): super(RulesEngineMatchCondition, self).__init__(**kwargs) self.rules_engine_match_variable = rules_engine_match_variable self.selector = selector @@ -2554,11 +3370,60 @@ def __init__(self, *, rules_engine_match_variable, rules_engine_operator, rules_ self.transforms = transforms -class RulesEngineRule(Model): - """Contains a list of match conditions, and an action on how to modify the - request/response. If multiple rules match, the actions from one rule that - conflict with a previous rule overwrite for a singular action, or append in - the case of headers manipulation. +class RulesEngineUpdateParameters(msrest.serialization.Model): + """Rules Engine Configuration to apply to a Routing Rule. + + :param rules: A list of rules that define a particular Rules Engine Configuration. + :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] + """ + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[RulesEngineRule]'}, + } + + def __init__( + self, + *, + rules: Optional[List["RulesEngineRule"]] = None, + **kwargs + ): + super(RulesEngineUpdateParameters, self).__init__(**kwargs) + self.rules = rules + + +class RulesEngineProperties(RulesEngineUpdateParameters): + """The JSON object that contains the properties required to create a Rules Engine Configuration. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param rules: A list of rules that define a particular Rules Engine Configuration. + :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] + :ivar resource_state: Resource status. Possible values include: "Creating", "Enabling", + "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.FrontDoorResourceState + """ + + _validation = { + 'resource_state': {'readonly': True}, + } + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[RulesEngineRule]'}, + 'resource_state': {'key': 'resourceState', 'type': 'str'}, + } + + def __init__( + self, + *, + rules: Optional[List["RulesEngineRule"]] = None, + **kwargs + ): + super(RulesEngineProperties, self).__init__(rules=rules, **kwargs) + self.resource_state = None + + +class RulesEngineRule(msrest.serialization.Model): + """Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation. All required parameters must be populated in order to send to Azure. @@ -2566,19 +3431,16 @@ class RulesEngineRule(Model): :type name: str :param priority: Required. A priority assigned to this rule. :type priority: int - :param action: Required. Actions to perform on the request and response if - all of the match conditions are met. + :param action: Required. Actions to perform on the request and response if all of the match + conditions are met. :type action: ~azure.mgmt.frontdoor.models.RulesEngineAction - :param match_conditions: A list of match conditions that must meet in - order for the actions of this rule to run. Having no match conditions - means the actions will always run. - :type match_conditions: - list[~azure.mgmt.frontdoor.models.RulesEngineMatchCondition] - :param match_processing_behavior: If this rule is a match should the rules - engine continue running the remaining rules or stop. If not present, - defaults to Continue. Possible values include: 'Continue', 'Stop' - :type match_processing_behavior: str or - ~azure.mgmt.frontdoor.models.MatchProcessingBehavior + :param match_conditions: A list of match conditions that must meet in order for the actions of + this rule to run. Having no match conditions means the actions will always run. + :type match_conditions: list[~azure.mgmt.frontdoor.models.RulesEngineMatchCondition] + :param match_processing_behavior: If this rule is a match should the rules engine continue + running the remaining rules or stop. If not present, defaults to Continue. Possible values + include: "Continue", "Stop". + :type match_processing_behavior: str or ~azure.mgmt.frontdoor.models.MatchProcessingBehavior """ _validation = { @@ -2595,7 +3457,16 @@ class RulesEngineRule(Model): 'match_processing_behavior': {'key': 'matchProcessingBehavior', 'type': 'str'}, } - def __init__(self, *, name: str, priority: int, action, match_conditions=None, match_processing_behavior=None, **kwargs) -> None: + def __init__( + self, + *, + name: str, + priority: int, + action: "RulesEngineAction", + match_conditions: Optional[List["RulesEngineMatchCondition"]] = None, + match_processing_behavior: Optional[Union[str, "MatchProcessingBehavior"]] = None, + **kwargs + ): super(RulesEngineRule, self).__init__(**kwargs) self.name = name self.priority = priority @@ -2604,24 +3475,7 @@ def __init__(self, *, name: str, priority: int, action, match_conditions=None, m self.match_processing_behavior = match_processing_behavior -class RulesEngineUpdateParameters(Model): - """Rules Engine Configuration to apply to a Routing Rule. - - :param rules: A list of rules that define a particular Rules Engine - Configuration. - :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] - """ - - _attribute_map = { - 'rules': {'key': 'rules', 'type': '[RulesEngineRule]'}, - } - - def __init__(self, *, rules=None, **kwargs) -> None: - super(RulesEngineUpdateParameters, self).__init__(**kwargs) - self.rules = rules - - -class SecurityPolicyLink(Model): +class SecurityPolicyLink(msrest.serialization.Model): """Defines the Resource ID for a Security Policy. :param id: Resource ID. @@ -2632,17 +3486,21 @@ class SecurityPolicyLink(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, *, id: str=None, **kwargs) -> None: + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): super(SecurityPolicyLink, self).__init__(**kwargs) self.id = id -class Sku(Model): +class Sku(msrest.serialization.Model): """The pricing tier of the web application firewall policy. - :param name: Name of the pricing tier. Possible values include: - 'Classic_AzureFrontDoor', 'Standard_AzureFrontDoor', - 'Premium_AzureFrontDoor' + :param name: Name of the pricing tier. Possible values include: "Classic_AzureFrontDoor", + "Standard_AzureFrontDoor", "Premium_AzureFrontDoor". :type name: str or ~azure.mgmt.frontdoor.models.SkuName """ @@ -2650,15 +3508,20 @@ class Sku(Model): 'name': {'key': 'name', 'type': 'str'}, } - def __init__(self, *, name=None, **kwargs) -> None: + def __init__( + self, + *, + name: Optional[Union[str, "SkuName"]] = None, + **kwargs + ): super(Sku, self).__init__(**kwargs) self.name = name -class TagsObject(Model): +class TagsObject(msrest.serialization.Model): """Tags object for patch operations. - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] """ @@ -2666,7 +3529,12 @@ class TagsObject(Model): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, tags=None, **kwargs) -> None: + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): super(TagsObject, self).__init__(**kwargs) self.tags = tags @@ -2674,8 +3542,7 @@ def __init__(self, *, tags=None, **kwargs) -> None: class Timeseries(Resource): """Defines the Timeseries. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2685,28 +3552,25 @@ class Timeseries(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param endpoint: The endpoint associated with the Timeseries data point + :param endpoint: The endpoint associated with the Timeseries data point. :type endpoint: str - :param start_date_time_utc: The start DateTime of the Timeseries in UTC + :param start_date_time_utc: The start DateTime of the Timeseries in UTC. :type start_date_time_utc: str - :param end_date_time_utc: The end DateTime of the Timeseries in UTC + :param end_date_time_utc: The end DateTime of the Timeseries in UTC. :type end_date_time_utc: str - :param aggregation_interval: The aggregation interval of the Timeseries. - Possible values include: 'Hourly', 'Daily' - :type aggregation_interval: str or - ~azure.mgmt.frontdoor.models.AggregationInterval - :param timeseries_type: The type of Timeseries. Possible values include: - 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' + :param aggregation_interval: The aggregation interval of the Timeseries. Possible values + include: "Hourly", "Daily". + :type aggregation_interval: str or ~azure.mgmt.frontdoor.models.AggregationInterval + :param timeseries_type: The type of Timeseries. Possible values include: "MeasurementCounts", + "LatencyP50", "LatencyP75", "LatencyP95". :type timeseries_type: str or ~azure.mgmt.frontdoor.models.TimeseriesType - :param country: The country associated with the Timeseries. Values are - country ISO codes as specified here- - https://www.iso.org/iso-3166-country-codes.html + :param country: The country associated with the Timeseries. Values are country ISO codes as + specified here- https://www.iso.org/iso-3166-country-codes.html. :type country: str - :param timeseries_data: The set of data points for the timeseries - :type timeseries_data: - list[~azure.mgmt.frontdoor.models.TimeseriesDataPoint] + :param timeseries_data: The set of data points for the timeseries. + :type timeseries_data: list[~azure.mgmt.frontdoor.models.TimeseriesDataPoint] """ _validation = { @@ -2730,7 +3594,20 @@ class Timeseries(Resource): 'timeseries_data': {'key': 'properties.timeseriesData', 'type': '[TimeseriesDataPoint]'}, } - def __init__(self, *, location: str=None, tags=None, endpoint: str=None, start_date_time_utc: str=None, end_date_time_utc: str=None, aggregation_interval=None, timeseries_type=None, country: str=None, timeseries_data=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + endpoint: Optional[str] = None, + start_date_time_utc: Optional[str] = None, + end_date_time_utc: Optional[str] = None, + aggregation_interval: Optional[Union[str, "AggregationInterval"]] = None, + timeseries_type: Optional[Union[str, "TimeseriesType"]] = None, + country: Optional[str] = None, + timeseries_data: Optional[List["TimeseriesDataPoint"]] = None, + **kwargs + ): super(Timeseries, self).__init__(location=location, tags=tags, **kwargs) self.endpoint = endpoint self.start_date_time_utc = start_date_time_utc @@ -2741,12 +3618,12 @@ def __init__(self, *, location: str=None, tags=None, endpoint: str=None, start_d self.timeseries_data = timeseries_data -class TimeseriesDataPoint(Model): +class TimeseriesDataPoint(msrest.serialization.Model): """Defines a timeseries datapoint used in a timeseries. - :param date_time_utc: The DateTime of the Timeseries data point in UTC + :param date_time_utc: The DateTime of the Timeseries data point in UTC. :type date_time_utc: str - :param value: The Value of the Timeseries data point + :param value: The Value of the Timeseries data point. :type value: float """ @@ -2755,19 +3632,24 @@ class TimeseriesDataPoint(Model): 'value': {'key': 'value', 'type': 'float'}, } - def __init__(self, *, date_time_utc: str=None, value: float=None, **kwargs) -> None: + def __init__( + self, + *, + date_time_utc: Optional[str] = None, + value: Optional[float] = None, + **kwargs + ): super(TimeseriesDataPoint, self).__init__(**kwargs) self.date_time_utc = date_time_utc self.value = value -class ValidateCustomDomainInput(Model): +class ValidateCustomDomainInput(msrest.serialization.Model): """Input of the custom domain to be validated for DNS mapping. All required parameters must be populated in order to send to Azure. - :param host_name: Required. The host name of the custom domain. Must be a - domain name. + :param host_name: Required. The host name of the custom domain. Must be a domain name. :type host_name: str """ @@ -2779,24 +3661,26 @@ class ValidateCustomDomainInput(Model): 'host_name': {'key': 'hostName', 'type': 'str'}, } - def __init__(self, *, host_name: str, **kwargs) -> None: + def __init__( + self, + *, + host_name: str, + **kwargs + ): super(ValidateCustomDomainInput, self).__init__(**kwargs) self.host_name = host_name -class ValidateCustomDomainOutput(Model): +class ValidateCustomDomainOutput(msrest.serialization.Model): """Output of custom domain validation. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar custom_domain_validated: Indicates whether the custom domain is - valid or not. + :ivar custom_domain_validated: Indicates whether the custom domain is valid or not. :vartype custom_domain_validated: bool :ivar reason: The reason why the custom domain is not valid. :vartype reason: str - :ivar message: Error message describing why the custom domain is not - valid. + :ivar message: Error message describing why the custom domain is not valid. :vartype message: str """ @@ -2812,7 +3696,10 @@ class ValidateCustomDomainOutput(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(ValidateCustomDomainOutput, self).__init__(**kwargs) self.custom_domain_validated = None self.reason = None @@ -2822,8 +3709,7 @@ def __init__(self, **kwargs) -> None: class WebApplicationFirewallPolicy(Resource): """Defines web application firewall policy. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource ID. :vartype id: str @@ -2833,39 +3719,33 @@ class WebApplicationFirewallPolicy(Resource): :vartype type: str :param location: Resource location. :type location: str - :param tags: Resource tags. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param etag: Gets a unique read-only string that changes whenever the resource is updated. + :type etag: str + :param sku: The pricing tier of web application firewall policy. Defaults to + Classic_AzureFrontDoor if not specified. + :type sku: ~azure.mgmt.frontdoor.models.Sku :param policy_settings: Describes settings for the policy. :type policy_settings: ~azure.mgmt.frontdoor.models.PolicySettings :param custom_rules: Describes custom rules inside the policy. :type custom_rules: ~azure.mgmt.frontdoor.models.CustomRuleList :param managed_rules: Describes managed rules inside the policy. :type managed_rules: ~azure.mgmt.frontdoor.models.ManagedRuleSetList - :ivar frontend_endpoint_links: Describes Frontend Endpoints associated - with this Web Application Firewall policy. - :vartype frontend_endpoint_links: - list[~azure.mgmt.frontdoor.models.FrontendEndpointLink] - :ivar routing_rule_links: Describes Routing Rules associated with this Web + :ivar frontend_endpoint_links: Describes Frontend Endpoints associated with this Web Application Firewall policy. - :vartype routing_rule_links: - list[~azure.mgmt.frontdoor.models.RoutingRuleLink] - :ivar security_policy_links: Describes Security Policy associated with - this Web Application Firewall policy. - :vartype security_policy_links: - list[~azure.mgmt.frontdoor.models.SecurityPolicyLink] + :vartype frontend_endpoint_links: list[~azure.mgmt.frontdoor.models.FrontendEndpointLink] + :ivar routing_rule_links: Describes Routing Rules associated with this Web Application Firewall + policy. + :vartype routing_rule_links: list[~azure.mgmt.frontdoor.models.RoutingRuleLink] + :ivar security_policy_links: Describes Security Policy associated with this Web Application + Firewall policy. + :vartype security_policy_links: list[~azure.mgmt.frontdoor.models.SecurityPolicyLink] :ivar provisioning_state: Provisioning state of the policy. :vartype provisioning_state: str - :ivar resource_state: Resource status of the policy. Possible values - include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', - 'Deleting' - :vartype resource_state: str or - ~azure.mgmt.frontdoor.models.PolicyResourceState - :param etag: Gets a unique read-only string that changes whenever the - resource is updated. - :type etag: str - :param sku: The pricing tier of web application firewall policy. Defaults - to Classic_AzureFrontDoor if not specified. - :type sku: ~azure.mgmt.frontdoor.models.Sku + :ivar resource_state: Resource status of the policy. Possible values include: "Creating", + "Enabling", "Enabled", "Disabling", "Disabled", "Deleting". + :vartype resource_state: str or ~azure.mgmt.frontdoor.models.PolicyResourceState """ _validation = { @@ -2885,6 +3765,8 @@ class WebApplicationFirewallPolicy(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, 'policy_settings': {'key': 'properties.policySettings', 'type': 'PolicySettings'}, 'custom_rules': {'key': 'properties.customRules', 'type': 'CustomRuleList'}, 'managed_rules': {'key': 'properties.managedRules', 'type': 'ManagedRuleSetList'}, @@ -2893,12 +3775,23 @@ class WebApplicationFirewallPolicy(Resource): 'security_policy_links': {'key': 'properties.securityPolicyLinks', 'type': '[SecurityPolicyLink]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, } - def __init__(self, *, location: str=None, tags=None, policy_settings=None, custom_rules=None, managed_rules=None, etag: str=None, sku=None, **kwargs) -> None: + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + etag: Optional[str] = None, + sku: Optional["Sku"] = None, + policy_settings: Optional["PolicySettings"] = None, + custom_rules: Optional["CustomRuleList"] = None, + managed_rules: Optional["ManagedRuleSetList"] = None, + **kwargs + ): super(WebApplicationFirewallPolicy, self).__init__(location=location, tags=tags, **kwargs) + self.etag = etag + self.sku = sku self.policy_settings = policy_settings self.custom_rules = custom_rules self.managed_rules = managed_rules @@ -2907,5 +3800,35 @@ def __init__(self, *, location: str=None, tags=None, policy_settings=None, custo self.security_policy_links = None self.provisioning_state = None self.resource_state = None - self.etag = etag - self.sku = sku + + +class WebApplicationFirewallPolicyList(msrest.serialization.Model): + """Defines a list of WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of WebApplicationFirewallPolicies within a resource group. + :vartype value: list[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] + :param next_link: URL to get the next set of WebApplicationFirewallPolicy objects if there are + any. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[WebApplicationFirewallPolicy]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(WebApplicationFirewallPolicyList, self).__init__(**kwargs) + self.value = None + self.next_link = next_link diff --git a/src/front-door/azext_front_door/vendored_sdks/models/_paged_models.py b/src/front-door/azext_front_door/vendored_sdks/models/_paged_models.py deleted file mode 100644 index 1696d3d710c..00000000000 --- a/src/front-door/azext_front_door/vendored_sdks/models/_paged_models.py +++ /dev/null @@ -1,118 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProfilePaged(Paged): - """ - A paging container for iterating over a list of :class:`Profile ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Profile]'} - } - - def __init__(self, *args, **kwargs): - - super(ProfilePaged, self).__init__(*args, **kwargs) -class PreconfiguredEndpointPaged(Paged): - """ - A paging container for iterating over a list of :class:`PreconfiguredEndpoint ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PreconfiguredEndpoint]'} - } - - def __init__(self, *args, **kwargs): - - super(PreconfiguredEndpointPaged, self).__init__(*args, **kwargs) -class ExperimentPaged(Paged): - """ - A paging container for iterating over a list of :class:`Experiment ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Experiment]'} - } - - def __init__(self, *args, **kwargs): - - super(ExperimentPaged, self).__init__(*args, **kwargs) -class FrontDoorPaged(Paged): - """ - A paging container for iterating over a list of :class:`FrontDoor ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[FrontDoor]'} - } - - def __init__(self, *args, **kwargs): - - super(FrontDoorPaged, self).__init__(*args, **kwargs) -class FrontendEndpointPaged(Paged): - """ - A paging container for iterating over a list of :class:`FrontendEndpoint ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[FrontendEndpoint]'} - } - - def __init__(self, *args, **kwargs): - - super(FrontendEndpointPaged, self).__init__(*args, **kwargs) -class RulesEnginePaged(Paged): - """ - A paging container for iterating over a list of :class:`RulesEngine ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RulesEngine]'} - } - - def __init__(self, *args, **kwargs): - - super(RulesEnginePaged, self).__init__(*args, **kwargs) -class WebApplicationFirewallPolicyPaged(Paged): - """ - A paging container for iterating over a list of :class:`WebApplicationFirewallPolicy ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[WebApplicationFirewallPolicy]'} - } - - def __init__(self, *args, **kwargs): - - super(WebApplicationFirewallPolicyPaged, self).__init__(*args, **kwargs) -class ManagedRuleSetDefinitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`ManagedRuleSetDefinition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ManagedRuleSetDefinition]'} - } - - def __init__(self, *args, **kwargs): - - super(ManagedRuleSetDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/__init__.py b/src/front-door/azext_front_door/vendored_sdks/operations/__init__.py index 14b69c8467c..e7a8086b356 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/__init__.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/__init__.py @@ -1,12 +1,9 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from ._network_experiment_profiles_operations import NetworkExperimentProfilesOperations diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_endpoints_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_endpoints_operations.py index c0c27651b2f..6c9c81ef1f2 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_endpoints_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_endpoints_operations.py @@ -1,131 +1,170 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class EndpointsOperations(object): """EndpointsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-05-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" - - self.config = config - + self._config = config def _purge_content_initial( - self, resource_group_name, front_door_name, content_paths, custom_headers=None, raw=False, **operation_config): - content_file_paths = models.PurgeParameters(content_paths=content_paths) + self, + resource_group_name, # type: str + front_door_name, # type: str + content_file_paths, # type: "_models.PurgeParameters" + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.purge_content.metadata['url'] + url = self._purge_content_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(content_file_paths, 'PurgeParameters') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(content_file_paths, 'PurgeParameters') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def purge_content( - self, resource_group_name, front_door_name, content_paths, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _purge_content_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge'} # type: ignore + + def begin_purge_content( + self, + resource_group_name, # type: str + front_door_name, # type: str + content_file_paths, # type: "_models.PurgeParameters" + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Removes a content from Front Door. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param content_paths: The path to the content to be purged. Can - describe a file path or a wild card directory. - :type content_paths: list[str] - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :param content_file_paths: The path to the content to be purged. Path can be a full URL, e.g. + '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. + '/pictures/*' which removes all folders and files in the directory. + :type content_file_paths: ~azure.mgmt.frontdoor.models.PurgeParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._purge_content_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - content_paths=content_paths, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._purge_content_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + content_file_paths=content_file_paths, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - purge_content.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_purge_content.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_experiments_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_experiments_operations.py index 5a6ac2b63da..1c53b3924b0 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_experiments_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_experiments_operations.py @@ -1,485 +1,595 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class ExperimentsOperations(object): """ExperimentsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2019-11-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" - - self.config = config + self._config = config def list_by_profile( - self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ExperimentList"] """Gets a list of Experiments. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Gets a list of Experiments. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Experiment - :rtype: - ~azure.mgmt.frontdoor.models.ExperimentPaged[~azure.mgmt.frontdoor.models.Experiment] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ExperimentList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.ExperimentList] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ExperimentList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list_by_profile.metadata['url'] + url = self.list_by_profile.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('ExperimentList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ExperimentPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list_by_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments'} + return ItemPaged( + get_next, extract_data + ) + list_by_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments'} # type: ignore def get( - self, resource_group_name, profile_name, experiment_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.Experiment" """Gets an Experiment by ExperimentName. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Gets an Experiment by ExperimentName. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param experiment_name: The Experiment identifier associated with the - Experiment + :param experiment_name: The Experiment identifier associated with the Experiment. :type experiment_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: Experiment or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.Experiment or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Experiment, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.Experiment + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('Experiment', response) + deserialized = self._deserialize('Experiment', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore def _create_or_update_initial( - self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + parameters, # type: "_models.Experiment" + **kwargs # type: Any + ): + # type: (...) -> "_models.Experiment" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.create_or_update.metadata['url'] + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'Experiment') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'Experiment') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('Experiment', response) + deserialized = self._deserialize('Experiment', pipeline_response) + if response.status_code == 201: - deserialized = self._deserialize('Experiment', response) + deserialized = self._deserialize('Experiment', pipeline_response) + if response.status_code == 202: - deserialized = self._deserialize('Experiment', response) + deserialized = self._deserialize('Experiment', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def create_or_update( - self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + parameters, # type: "_models.Experiment" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Experiment"] """Creates or updates an Experiment. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Creates or updates an Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param experiment_name: The Experiment identifier associated with the - Experiment + :param experiment_name: The Experiment identifier associated with the Experiment. :type experiment_name: str - :param parameters: The Experiment resource + :param parameters: The Experiment resource. :type parameters: ~azure.mgmt.frontdoor.models.Experiment - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns Experiment or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Experiment] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Experiment]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Experiment or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.frontdoor.models.Experiment] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - profile_name=profile_name, - experiment_name=experiment_name, - parameters=parameters, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('Experiment', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Experiment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore def _update_initial( - self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + parameters, # type: "_models.ExperimentUpdateModel" + **kwargs # type: Any + ): + # type: (...) -> "_models.Experiment" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.update.metadata['url'] + url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ExperimentUpdateModel') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ExperimentUpdateModel') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('Experiment', response) + deserialized = self._deserialize('Experiment', pipeline_response) + if response.status_code == 202: - deserialized = self._deserialize('Experiment', response) + deserialized = self._deserialize('Experiment', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def update( - self, resource_group_name, profile_name, experiment_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + parameters, # type: "_models.ExperimentUpdateModel" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Experiment"] """Updates an Experiment by Experiment id. Updates an Experiment. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param experiment_name: The Experiment identifier associated with the - Experiment + :param experiment_name: The Experiment identifier associated with the Experiment. :type experiment_name: str - :param parameters: The Experiment Update Model + :param parameters: The Experiment Update Model. :type parameters: ~azure.mgmt.frontdoor.models.ExperimentUpdateModel - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns Experiment or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Experiment] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Experiment]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Experiment or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.frontdoor.models.Experiment] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - profile_name=profile_name, - experiment_name=experiment_name, - parameters=parameters, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Experiment"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('Experiment', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Experiment', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore def _delete_initial( - self, resource_group_name, profile_name, experiment_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + # Construct URL - url = self.delete.metadata['url'] + url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, profile_name, experiment_name, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Deletes an Experiment. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Deletes an Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param experiment_name: The Experiment identifier associated with the - Experiment + :param experiment_name: The Experiment identifier associated with the Experiment. :type experiment_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - profile_name=profile_name, - experiment_name=experiment_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + experiment_name=experiment_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_operations.py index e37ce4dcc46..658a9606429 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_operations.py @@ -1,101 +1,101 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class FrontDoorNameAvailabilityOperations(object): """FrontDoorNameAvailabilityOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-05-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" - - self.config = config + self._config = config def check( - self, name, type, custom_headers=None, raw=False, **operation_config): + self, + check_front_door_name_availability_input, # type: "_models.CheckNameAvailabilityInput" + **kwargs # type: Any + ): + # type: (...) -> "_models.CheckNameAvailabilityOutput" """Check the availability of a Front Door resource name. - :param name: The resource name to validate. - :type name: str - :param type: The type of the resource whose name is to be validated. - Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' - :type type: str or ~azure.mgmt.frontdoor.models.ResourceType - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: CheckNameAvailabilityOutput or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :param check_front_door_name_availability_input: Input to check. + :type check_front_door_name_availability_input: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CheckNameAvailabilityOutput, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput + :raises: ~azure.core.exceptions.HttpResponseError """ - check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityOutput"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.check.metadata['url'] + url = self.check.metadata['url'] # type: ignore # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('CheckNameAvailabilityOutput', response) + deserialized = self._deserialize('CheckNameAvailabilityOutput', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - check.metadata = {'url': '/providers/Microsoft.Network/checkFrontDoorNameAvailability'} + check.metadata = {'url': '/providers/Microsoft.Network/checkFrontDoorNameAvailability'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_with_subscription_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_with_subscription_operations.py index cdd13a30f66..6d8417932a5 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_with_subscription_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_front_door_name_availability_with_subscription_operations.py @@ -1,105 +1,105 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class FrontDoorNameAvailabilityWithSubscriptionOperations(object): """FrontDoorNameAvailabilityWithSubscriptionOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-05-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" - - self.config = config + self._config = config def check( - self, name, type, custom_headers=None, raw=False, **operation_config): + self, + check_front_door_name_availability_input, # type: "_models.CheckNameAvailabilityInput" + **kwargs # type: Any + ): + # type: (...) -> "_models.CheckNameAvailabilityOutput" """Check the availability of a Front Door subdomain. - :param name: The resource name to validate. - :type name: str - :param type: The type of the resource whose name is to be validated. - Possible values include: 'Microsoft.Network/frontDoors', - 'Microsoft.Network/frontDoors/frontendEndpoints' - :type type: str or ~azure.mgmt.frontdoor.models.ResourceType - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: CheckNameAvailabilityOutput or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :param check_front_door_name_availability_input: Input to check. + :type check_front_door_name_availability_input: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CheckNameAvailabilityOutput, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.CheckNameAvailabilityOutput + :raises: ~azure.core.exceptions.HttpResponseError """ - check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityOutput"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.check.metadata['url'] + url = self.check.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(check_front_door_name_availability_input, 'CheckNameAvailabilityInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('CheckNameAvailabilityOutput', response) + deserialized = self._deserialize('CheckNameAvailabilityOutput', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - check.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability'} + check.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_front_doors_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_front_doors_operations.py index d8753006b9b..a83d3b3d52d 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_front_doors_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_front_doors_operations.py @@ -1,498 +1,564 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class FrontDoorsOperations(object): """FrontDoorsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-05-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" - - self.config = config + self._config = config def list( - self, custom_headers=None, raw=False, **operation_config): + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.FrontDoorListResult"] """Lists all of the Front Doors within an Azure subscription. - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of FrontDoor - :rtype: - ~azure.mgmt.frontdoor.models.FrontDoorPaged[~azure.mgmt.frontdoor.models.FrontDoor] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FrontDoorListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.FrontDoorListResult] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoorListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('FrontDoorListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'} + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors'} # type: ignore def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Lists all of the Front Doors within a resource group under a - subscription. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.FrontDoorListResult"] + """Lists all of the Front Doors within a resource group under a subscription. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of FrontDoor - :rtype: - ~azure.mgmt.frontdoor.models.FrontDoorPaged[~azure.mgmt.frontdoor.models.FrontDoor] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FrontDoorListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.FrontDoorListResult] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoorListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list_by_resource_group.metadata['url'] + url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('FrontDoorListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.FrontDoorPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'} + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors'} # type: ignore def get( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): - """Gets a Front Door with the specified Front Door name under the - specified subscription and resource group. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + self, + resource_group_name, # type: str + front_door_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.FrontDoor" + """Gets a Front Door with the specified Front Door name under the specified subscription and + resource group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: FrontDoor or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.FrontDoor or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: FrontDoor, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.FrontDoor + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoor"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('FrontDoor', response) + deserialized = self._deserialize('FrontDoor', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore def _create_or_update_initial( - self, resource_group_name, front_door_name, front_door_parameters, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + front_door_name, # type: str + front_door_parameters, # type: "_models.FrontDoor" + **kwargs # type: Any + ): + # type: (...) -> "_models.FrontDoor" + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoor"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.create_or_update.metadata['url'] + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(front_door_parameters, 'FrontDoor') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(front_door_parameters, 'FrontDoor') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('FrontDoor', response) + deserialized = self._deserialize('FrontDoor', pipeline_response) + if response.status_code == 201: - deserialized = self._deserialize('FrontDoor', response) + deserialized = self._deserialize('FrontDoor', pipeline_response) + if response.status_code == 202: - deserialized = self._deserialize('FrontDoor', response) + deserialized = self._deserialize('FrontDoor', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def create_or_update( - self, resource_group_name, front_door_name, front_door_parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new Front Door with a Front Door name under the specified - subscription and resource group. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + front_door_name, # type: str + front_door_parameters, # type: "_models.FrontDoor" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.FrontDoor"] + """Creates a new Front Door with a Front Door name under the specified subscription and resource + group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param front_door_parameters: Front Door properties needed to create a - new Front Door. + :param front_door_parameters: Front Door properties needed to create a new Front Door. :type front_door_parameters: ~azure.mgmt.frontdoor.models.FrontDoor - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns FrontDoor or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.FrontDoor] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.FrontDoor]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either FrontDoor or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.frontdoor.models.FrontDoor] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - front_door_parameters=front_door_parameters, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontDoor"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('FrontDoor', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + front_door_parameters=front_door_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('FrontDoor', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore def _delete_initial( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + front_door_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + # Construct URL - url = self.delete.metadata['url'] + url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + front_door_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Deletes an existing Front Door with the specified parameters. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}'} # type: ignore def validate_custom_domain( - self, resource_group_name, front_door_name, host_name, custom_headers=None, raw=False, **operation_config): - """Validates the custom domain mapping to ensure it maps to the correct - Front Door endpoint in DNS. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + self, + resource_group_name, # type: str + front_door_name, # type: str + custom_domain_properties, # type: "_models.ValidateCustomDomainInput" + **kwargs # type: Any + ): + # type: (...) -> "_models.ValidateCustomDomainOutput" + """Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in + DNS. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param host_name: The host name of the custom domain. Must be a domain - name. - :type host_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ValidateCustomDomainOutput or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.ValidateCustomDomainOutput or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :param custom_domain_properties: Custom domain to be validated. + :type custom_domain_properties: ~azure.mgmt.frontdoor.models.ValidateCustomDomainInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ValidateCustomDomainOutput, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.ValidateCustomDomainOutput + :raises: ~azure.core.exceptions.HttpResponseError """ - custom_domain_properties = models.ValidateCustomDomainInput(host_name=host_name) + cls = kwargs.pop('cls', None) # type: ClsType["_models.ValidateCustomDomainOutput"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.validate_custom_domain.metadata['url'] + url = self.validate_custom_domain.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(custom_domain_properties, 'ValidateCustomDomainInput') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(custom_domain_properties, 'ValidateCustomDomainInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ValidateCustomDomainOutput', response) + deserialized = self._deserialize('ValidateCustomDomainOutput', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - validate_custom_domain.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain'} + validate_custom_domain.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_frontend_endpoints_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_frontend_endpoints_operations.py index f933ca1969c..367d61b90c6 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_frontend_endpoints_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_frontend_endpoints_operations.py @@ -1,360 +1,437 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class FrontendEndpointsOperations(object): """FrontendEndpointsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-05-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" - - self.config = config + self._config = config def list_by_front_door( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + front_door_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.FrontendEndpointsListResult"] """Lists all of the frontend endpoints within a Front Door. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of FrontendEndpoint - :rtype: - ~azure.mgmt.frontdoor.models.FrontendEndpointPaged[~azure.mgmt.frontdoor.models.FrontendEndpoint] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FrontendEndpointsListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.FrontendEndpointsListResult] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontendEndpointsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list_by_front_door.metadata['url'] + url = self.list_by_front_door.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('FrontendEndpointsListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.FrontendEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'} + return ItemPaged( + get_next, extract_data + ) + list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints'} # type: ignore def get( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, **operation_config): - """Gets a Frontend endpoint with the specified name within the specified - Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + self, + resource_group_name, # type: str + front_door_name, # type: str + frontend_endpoint_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.FrontendEndpoint" + """Gets a Frontend endpoint with the specified name within the specified Front Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. + :param frontend_endpoint_name: Name of the Frontend endpoint which is unique within the Front + Door. :type frontend_endpoint_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: FrontendEndpoint or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.FrontendEndpoint or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: FrontendEndpoint, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.FrontendEndpoint + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.FrontendEndpoint"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('FrontendEndpoint', response) + deserialized = self._deserialize('FrontendEndpoint', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}'} # type: ignore def _enable_https_initial( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_https_configuration, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + front_door_name, # type: str + frontend_endpoint_name, # type: str + custom_https_configuration, # type: "_models.CustomHttpsConfiguration" + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.enable_https.metadata['url'] + url = self._enable_https_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(custom_https_configuration, 'CustomHttpsConfiguration') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(custom_https_configuration, 'CustomHttpsConfiguration') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def enable_https( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_https_configuration, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _enable_https_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps'} # type: ignore + + def begin_enable_https( + self, + resource_group_name, # type: str + front_door_name, # type: str + frontend_endpoint_name, # type: str + custom_https_configuration, # type: "_models.CustomHttpsConfiguration" + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Enables a frontendEndpoint for HTTPS traffic. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. + :param frontend_endpoint_name: Name of the Frontend endpoint which is unique within the Front + Door. :type frontend_endpoint_name: str - :param custom_https_configuration: The configuration specifying how to - enable HTTPS - :type custom_https_configuration: - ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :param custom_https_configuration: The configuration specifying how to enable HTTPS. + :type custom_https_configuration: ~azure.mgmt.frontdoor.models.CustomHttpsConfiguration + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._enable_https_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - frontend_endpoint_name=frontend_endpoint_name, - custom_https_configuration=custom_https_configuration, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._enable_https_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + frontend_endpoint_name=frontend_endpoint_name, + custom_https_configuration=custom_https_configuration, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - enable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_enable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps'} # type: ignore def _disable_https_initial( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + front_door_name, # type: str + frontend_endpoint_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + # Construct URL - url = self.disable_https.metadata['url'] + url = self._disable_https_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def disable_https( - self, resource_group_name, front_door_name, frontend_endpoint_name, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _disable_https_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps'} # type: ignore + + def begin_disable_https( + self, + resource_group_name, # type: str + front_door_name, # type: str + frontend_endpoint_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Disables a frontendEndpoint for HTTPS traffic. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param frontend_endpoint_name: Name of the Frontend endpoint which is - unique within the Front Door. + :param frontend_endpoint_name: Name of the Frontend endpoint which is unique within the Front + Door. :type frontend_endpoint_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._disable_https_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - frontend_endpoint_name=frontend_endpoint_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._disable_https_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + frontend_endpoint_name=frontend_endpoint_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'frontendEndpointName': self._serialize.url("frontend_endpoint_name", frontend_endpoint_name, 'str', max_length=255, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - disable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_disable_https.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_managed_rule_sets_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_managed_rule_sets_operations.py index 0bfade8e4cf..fe870cfb392 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_managed_rule_sets_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_managed_rule_sets_operations.py @@ -1,104 +1,114 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class ManagedRuleSetsOperations(object): """ManagedRuleSetsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-11-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-11-01" - - self.config = config + self._config = config def list( - self, custom_headers=None, raw=False, **operation_config): + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ManagedRuleSetDefinitionList"] """Lists all available managed rule sets. - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ManagedRuleSetDefinition - :rtype: - ~azure.mgmt.frontdoor.models.ManagedRuleSetDefinitionPaged[~azure.mgmt.frontdoor.models.ManagedRuleSetDefinition] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ManagedRuleSetDefinitionList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.ManagedRuleSetDefinitionList] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedRuleSetDefinitionList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('ManagedRuleSetDefinitionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ManagedRuleSetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'} + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_network_experiment_profiles_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_network_experiment_profiles_operations.py index f327e312a32..2fc4c792de3 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_network_experiment_profiles_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_network_experiment_profiles_operations.py @@ -1,534 +1,636 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class NetworkExperimentProfilesOperations(object): """NetworkExperimentProfilesOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2019-11-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" - - self.config = config + self._config = config def list( - self, custom_headers=None, raw=False, **operation_config): + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ProfileList"] """Gets a list of Network Experiment Profiles under a subscription. - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Profile - :rtype: - ~azure.mgmt.frontdoor.models.ProfilePaged[~azure.mgmt.frontdoor.models.Profile] - :raises: - :class:`ErrorResponseException` + Gets a list of Network Experiment Profiles under a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProfileList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.ProfileList] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProfileList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('ProfileList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProfilePaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/NetworkExperimentProfiles'} + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/NetworkExperimentProfiles'} # type: ignore def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Gets a list of Network Experiment Profiles within a resource group - under a subscription. + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ProfileList"] + """Gets a list of Network Experiment Profiles within a resource group under a subscription. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Gets a list of Network Experiment Profiles within a resource group under a subscription. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Profile - :rtype: - ~azure.mgmt.frontdoor.models.ProfilePaged[~azure.mgmt.frontdoor.models.Profile] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProfileList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.ProfileList] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProfileList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list_by_resource_group.metadata['url'] + url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('ProfileList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProfilePaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles'} + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles'} # type: ignore def get( - self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.Profile" """Gets an NetworkExperiment Profile by ProfileName. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Gets an NetworkExperiment Profile by ProfileName. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: Profile or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.Profile or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Profile, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.Profile + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('Profile', response) + deserialized = self._deserialize('Profile', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore def _create_or_update_initial( - self, profile_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): + self, + profile_name, # type: str + resource_group_name, # type: str + parameters, # type: "_models.Profile" + **kwargs # type: Any + ): + # type: (...) -> "_models.Profile" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.create_or_update.metadata['url'] + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'Profile') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'Profile') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('Profile', response) + deserialized = self._deserialize('Profile', pipeline_response) + if response.status_code == 201: - deserialized = self._deserialize('Profile', response) + deserialized = self._deserialize('Profile', pipeline_response) + if response.status_code == 202: - deserialized = self._deserialize('Profile', response) + deserialized = self._deserialize('Profile', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def create_or_update( - self, profile_name, resource_group_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + def begin_create_or_update( + self, + profile_name, # type: str + resource_group_name, # type: str + parameters, # type: "_models.Profile" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Profile"] """Creates an NetworkExperiment Profile. - :param profile_name: The Profile identifier associated with the Tenant - and Partner + Creates an NetworkExperiment Profile. + + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param parameters: An Network Experiment Profile + :param parameters: An Network Experiment Profile. :type parameters: ~azure.mgmt.frontdoor.models.Profile - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns Profile or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Profile] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Profile]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Profile or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.frontdoor.models.Profile] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._create_or_update_initial( - profile_name=profile_name, - resource_group_name=resource_group_name, - parameters=parameters, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('Profile', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + profile_name=profile_name, + resource_group_name=resource_group_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Profile', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore def _update_initial( - self, resource_group_name, profile_name, enabled_state=None, tags=None, custom_headers=None, raw=False, **operation_config): - parameters = models.ProfileUpdateModel(enabled_state=enabled_state, tags=tags) + self, + resource_group_name, # type: str + profile_name, # type: str + parameters, # type: "_models.ProfileUpdateModel" + **kwargs # type: Any + ): + # type: (...) -> "_models.Profile" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.update.metadata['url'] + url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ProfileUpdateModel') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ProfileUpdateModel') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('Profile', response) + deserialized = self._deserialize('Profile', pipeline_response) + if response.status_code == 202: - deserialized = self._deserialize('Profile', response) + deserialized = self._deserialize('Profile', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def update( - self, resource_group_name, profile_name, enabled_state=None, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + profile_name, # type: str + parameters, # type: "_models.ProfileUpdateModel" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Profile"] """Updates an NetworkExperimentProfiles by NetworkExperimentProfile name. Updates an NetworkExperimentProfiles. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param enabled_state: The enabled state of the Profile. Possible - values include: 'Enabled', 'Disabled' - :type enabled_state: str or ~azure.mgmt.frontdoor.models.State - :param tags: Resource tags. - :type tags: dict[str, str] - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :param parameters: The Profile Update Model. + :type parameters: ~azure.mgmt.frontdoor.models.ProfileUpdateModel + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns Profile or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.Profile] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.Profile]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Profile or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.frontdoor.models.Profile] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - profile_name=profile_name, - enabled_state=enabled_state, - tags=tags, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Profile"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('Profile', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Profile', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore def _delete_initial( - self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + # Construct URL - url = self.delete.metadata['url'] + url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, profile_name, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + profile_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Deletes an NetworkExperiment Profile by ProfileName. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Deletes an NetworkExperiment Profile by ProfileName. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - profile_name=profile_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + profile_name=profile_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_policies_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_policies_operations.py index c8e04aa59a9..1491aa3dd09 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_policies_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_policies_operations.py @@ -1,359 +1,422 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class PoliciesOperations(object): """PoliciesOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-11-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-11-01" - - self.config = config + self._config = config def list( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.WebApplicationFirewallPolicyList"] """Lists all of the protection policies within a resource group. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of WebApplicationFirewallPolicy - :rtype: - ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicyPaged[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WebApplicationFirewallPolicyList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicyList] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicyList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('WebApplicationFirewallPolicyList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - return response + return pipeline_response - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.WebApplicationFirewallPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'} + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies'} # type: ignore def get( - self, resource_group_name, policy_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + policy_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.WebApplicationFirewallPolicy" """Retrieve protection policy with specified name within a resource group. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str :param policy_name: The name of the Web Application Firewall Policy. :type policy_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: WebApplicationFirewallPolicy or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: WebApplicationFirewallPolicy, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('WebApplicationFirewallPolicy', response) + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore def _create_or_update_initial( - self, resource_group_name, policy_name, parameters, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + policy_name, # type: str + parameters, # type: "_models.WebApplicationFirewallPolicy" + **kwargs # type: Any + ): + # type: (...) -> "_models.WebApplicationFirewallPolicy" + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.create_or_update.metadata['url'] + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'WebApplicationFirewallPolicy') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'WebApplicationFirewallPolicy') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('WebApplicationFirewallPolicy', response) + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + if response.status_code == 201: - deserialized = self._deserialize('WebApplicationFirewallPolicy', response) + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + if response.status_code == 202: - deserialized = self._deserialize('WebApplicationFirewallPolicy', response) + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def create_or_update( - self, resource_group_name, policy_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Create or update policy with specified rule set name within a resource - group. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + policy_name, # type: str + parameters, # type: "_models.WebApplicationFirewallPolicy" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.WebApplicationFirewallPolicy"] + """Create or update policy with specified rule set name within a resource group. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str :param policy_name: The name of the Web Application Firewall Policy. :type policy_name: str :param parameters: Policy to be created. - :type parameters: - ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :type parameters: ~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns - WebApplicationFirewallPolicy or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either WebApplicationFirewallPolicy or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - policy_name=policy_name, - parameters=parameters, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WebApplicationFirewallPolicy"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('WebApplicationFirewallPolicy', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + policy_name=policy_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('WebApplicationFirewallPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore def _delete_initial( - self, resource_group_name, policy_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + policy_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01" + # Construct URL - url = self.delete.metadata['url'] + url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore - def delete( - self, resource_group_name, policy_name, custom_headers=None, raw=False, polling=True, **operation_config): + def begin_delete( + self, + resource_group_name, # type: str + policy_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Deletes Policy. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str :param policy_name: The name of the Web Application Firewall Policy. :type policy_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: :class:`CloudError` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - policy_name=policy_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + policy_name=policy_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'policyName': self._serialize.url("policy_name", policy_name, 'str', max_length=128, min_length=0), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_preconfigured_endpoints_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_preconfigured_endpoints_operations.py index cff8cab32cc..041c2326a18 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_preconfigured_endpoints_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_preconfigured_endpoints_operations.py @@ -1,112 +1,124 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class PreconfiguredEndpointsOperations(object): """PreconfiguredEndpointsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2019-11-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" - - self.config = config + self._config = config def list( - self, resource_group_name, profile_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.PreconfiguredEndpointList"] """Gets a list of Preconfigured Endpoints. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Gets a list of Preconfigured Endpoints. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of PreconfiguredEndpoint - :rtype: - ~azure.mgmt.frontdoor.models.PreconfiguredEndpointPaged[~azure.mgmt.frontdoor.models.PreconfiguredEndpoint] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PreconfiguredEndpointList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.PreconfiguredEndpointList] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.PreconfiguredEndpointList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('PreconfiguredEndpointList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.PreconfiguredEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/PreconfiguredEndpoints'} + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/PreconfiguredEndpoints'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_reports_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_reports_operations.py index 70c135c51d4..ac9090bb137 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_reports_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_reports_operations.py @@ -1,91 +1,104 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import datetime +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class ReportsOperations(object): """ReportsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2019-11-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2019-11-01" - - self.config = config + self._config = config def get_latency_scorecards( - self, resource_group_name, profile_name, experiment_name, aggregation_interval, end_date_time_utc=None, country=None, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + aggregation_interval, # type: Union[str, "_models.LatencyScorecardAggregationInterval"] + end_date_time_utc=None, # type: Optional[str] + country=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.LatencyScorecard" """Gets a Latency Scorecard for a given Experiment. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Gets a Latency Scorecard for a given Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param experiment_name: The Experiment identifier associated with the - Experiment + :param experiment_name: The Experiment identifier associated with the Experiment. :type experiment_name: str - :param aggregation_interval: The aggregation interval of the Latency - Scorecard. Possible values include: 'Daily', 'Weekly', 'Monthly' - :type aggregation_interval: str or - ~azure.mgmt.frontdoor.models.LatencyScorecardAggregationInterval - :param end_date_time_utc: The end DateTime of the Latency Scorecard in - UTC + :param aggregation_interval: The aggregation interval of the Latency Scorecard. + :type aggregation_interval: str or ~azure.mgmt.frontdoor.models.LatencyScorecardAggregationInterval + :param end_date_time_utc: The end DateTime of the Latency Scorecard in UTC. :type end_date_time_utc: str - :param country: The country associated with the Latency Scorecard. - Values are country ISO codes as specified here- - https://www.iso.org/iso-3166-country-codes.html + :param country: The country associated with the Latency Scorecard. Values are country ISO codes + as specified here- https://www.iso.org/iso-3166-country-codes.html. :type country: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: LatencyScorecard or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.LatencyScorecard or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: LatencyScorecard, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.LatencyScorecard + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.LatencyScorecard"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + # Construct URL - url = self.get_latency_scorecards.metadata['url'] + url = self.get_latency_scorecards.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if end_date_time_utc is not None: query_parameters['endDateTimeUTC'] = self._serialize.query("end_date_time_utc", end_date_time_utc, 'str') if country is not None: @@ -93,89 +106,89 @@ def get_latency_scorecards( query_parameters['aggregationInterval'] = self._serialize.query("aggregation_interval", aggregation_interval, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('LatencyScorecard', response) + deserialized = self._deserialize('LatencyScorecard', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get_latency_scorecards.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard'} + get_latency_scorecards.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/LatencyScorecard'} # type: ignore def get_timeseries( - self, resource_group_name, profile_name, experiment_name, start_date_time_utc, end_date_time_utc, aggregation_interval, timeseries_type, endpoint=None, country=None, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + profile_name, # type: str + experiment_name, # type: str + start_date_time_utc, # type: datetime.datetime + end_date_time_utc, # type: datetime.datetime + aggregation_interval, # type: Union[str, "_models.TimeseriesAggregationInterval"] + timeseries_type, # type: Union[str, "_models.TimeseriesType"] + endpoint=None, # type: Optional[str] + country=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.Timeseries" """Gets a Timeseries for a given Experiment. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + Gets a Timeseries for a given Experiment. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param profile_name: The Profile identifier associated with the Tenant - and Partner + :param profile_name: The Profile identifier associated with the Tenant and Partner. :type profile_name: str - :param experiment_name: The Experiment identifier associated with the - Experiment + :param experiment_name: The Experiment identifier associated with the Experiment. :type experiment_name: str - :param start_date_time_utc: The start DateTime of the Timeseries in - UTC - :type start_date_time_utc: datetime - :param end_date_time_utc: The end DateTime of the Timeseries in UTC - :type end_date_time_utc: datetime - :param aggregation_interval: The aggregation interval of the - Timeseries. Possible values include: 'Hourly', 'Daily' - :type aggregation_interval: str or - ~azure.mgmt.frontdoor.models.TimeseriesAggregationInterval - :param timeseries_type: The type of Timeseries. Possible values - include: 'MeasurementCounts', 'LatencyP50', 'LatencyP75', 'LatencyP95' - :type timeseries_type: str or - ~azure.mgmt.frontdoor.models.TimeseriesType - :param endpoint: The specific endpoint + :param start_date_time_utc: The start DateTime of the Timeseries in UTC. + :type start_date_time_utc: ~datetime.datetime + :param end_date_time_utc: The end DateTime of the Timeseries in UTC. + :type end_date_time_utc: ~datetime.datetime + :param aggregation_interval: The aggregation interval of the Timeseries. + :type aggregation_interval: str or ~azure.mgmt.frontdoor.models.TimeseriesAggregationInterval + :param timeseries_type: The type of Timeseries. + :type timeseries_type: str or ~azure.mgmt.frontdoor.models.TimeseriesType + :param endpoint: The specific endpoint. :type endpoint: str - :param country: The country associated with the Timeseries. Values are - country ISO codes as specified here- - https://www.iso.org/iso-3166-country-codes.html + :param country: The country associated with the Timeseries. Values are country ISO codes as + specified here- https://www.iso.org/iso-3166-country-codes.html. :type country: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: Timeseries or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.Timeseries or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Timeseries, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.Timeseries + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Timeseries"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2019-11-01" + accept = "application/json" + # Construct URL - url = self.get_timeseries.metadata['url'] + url = self.get_timeseries.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'profileName': self._serialize.url("profile_name", profile_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$') + 'experimentName': self._serialize.url("experiment_name", experiment_name, 'str', pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') query_parameters['startDateTimeUTC'] = self._serialize.query("start_date_time_utc", start_date_time_utc, 'iso-8601') query_parameters['endDateTimeUTC'] = self._serialize.query("end_date_time_utc", end_date_time_utc, 'iso-8601') query_parameters['aggregationInterval'] = self._serialize.query("aggregation_interval", aggregation_interval, 'str') @@ -186,29 +199,22 @@ def get_timeseries( query_parameters['country'] = self._serialize.query("country", country, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('Timeseries', response) + deserialized = self._deserialize('Timeseries', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get_timeseries.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries'} + get_timeseries.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}/Timeseries'} # type: ignore diff --git a/src/front-door/azext_front_door/vendored_sdks/operations/_rules_engines_operations.py b/src/front-door/azext_front_door/vendored_sdks/operations/_rules_engines_operations.py index 5646cb4dc19..a2371619b13 100644 --- a/src/front-door/azext_front_door/vendored_sdks/operations/_rules_engines_operations.py +++ b/src/front-door/azext_front_door/vendored_sdks/operations/_rules_engines_operations.py @@ -1,386 +1,449 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class RulesEnginesOperations(object): """RulesEnginesOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.frontdoor.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2020-05-01". """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-05-01" - - self.config = config + self._config = config def list_by_front_door( - self, resource_group_name, front_door_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + front_door_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.RulesEngineListResult"] """Lists all of the Rules Engine Configurations within a Front Door. - :param resource_group_name: Name of the Resource group within the - Azure subscription. + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of RulesEngine - :rtype: - ~azure.mgmt.frontdoor.models.RulesEnginePaged[~azure.mgmt.frontdoor.models.RulesEngine] - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RulesEngineListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.frontdoor.models.RulesEngineListResult] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list_by_front_door.metadata['url'] + url = self.list_by_front_door.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), - 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$') + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('RulesEngineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response + error = self._deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.RulesEnginePaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines'} + return ItemPaged( + get_next, extract_data + ) + list_by_front_door.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines'} # type: ignore def get( - self, resource_group_name, front_door_name, rules_engine_name, custom_headers=None, raw=False, **operation_config): - """Gets a Rules Engine Configuration with the specified name within the - specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + self, + resource_group_name, # type: str + front_door_name, # type: str + rules_engine_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.RulesEngine" + """Gets a Rules Engine Configuration with the specified name within the specified Front Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param rules_engine_name: Name of the Rules Engine which is unique - within the Front Door. + :param rules_engine_name: Name of the Rules Engine which is unique within the Front Door. :type rules_engine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: RulesEngine or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.frontdoor.models.RulesEngine or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RulesEngine, or the result of cls(response) + :rtype: ~azure.mgmt.frontdoor.models.RulesEngine + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('RulesEngine', response) + deserialized = self._deserialize('RulesEngine', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore def _create_or_update_initial( - self, resource_group_name, front_door_name, rules_engine_name, rules=None, resource_state=None, custom_headers=None, raw=False, **operation_config): - rules_engine_parameters = models.RulesEngine(rules=rules, resource_state=resource_state) + self, + resource_group_name, # type: str + front_door_name, # type: str + rules_engine_name, # type: str + rules_engine_parameters, # type: "_models.RulesEngine" + **kwargs # type: Any + ): + # type: (...) -> "_models.RulesEngine" + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.create_or_update.metadata['url'] + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(rules_engine_parameters, 'RulesEngine') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(rules_engine_parameters, 'RulesEngine') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('RulesEngine', response) + deserialized = self._deserialize('RulesEngine', pipeline_response) + if response.status_code == 201: - deserialized = self._deserialize('RulesEngine', response) + deserialized = self._deserialize('RulesEngine', pipeline_response) + if response.status_code == 202: - deserialized = self._deserialize('RulesEngine', response) + deserialized = self._deserialize('RulesEngine', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def create_or_update( - self, resource_group_name, front_door_name, rules_engine_name, rules=None, resource_state=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Creates a new Rules Engine Configuration with the specified name within - the specified Front Door. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + front_door_name, # type: str + rules_engine_name, # type: str + rules_engine_parameters, # type: "_models.RulesEngine" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.RulesEngine"] + """Creates a new Rules Engine Configuration with the specified name within the specified Front + Door. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param rules_engine_name: Name of the Rules Engine which is unique - within the Front Door. + :param rules_engine_name: Name of the Rules Engine which is unique within the Front Door. :type rules_engine_name: str - :param rules: A list of rules that define a particular Rules Engine - Configuration. - :type rules: list[~azure.mgmt.frontdoor.models.RulesEngineRule] - :param resource_state: Resource status. Possible values include: - 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' - :type resource_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorResourceState - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :param rules_engine_parameters: Rules Engine Configuration properties needed to create a new + Rules Engine Configuration. + :type rules_engine_parameters: ~azure.mgmt.frontdoor.models.RulesEngine + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns RulesEngine or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.frontdoor.models.RulesEngine] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.frontdoor.models.RulesEngine]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either RulesEngine or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.frontdoor.models.RulesEngine] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - rules_engine_name=rules_engine_name, - rules=rules, - resource_state=resource_state, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RulesEngine"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('RulesEngine', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + rules_engine_name=rules_engine_name, + rules_engine_parameters=rules_engine_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RulesEngine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore def _delete_initial( - self, resource_group_name, front_door_name, rules_engine_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + front_door_name, # type: str + rules_engine_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-05-01" + accept = "application/json" + # Construct URL - url = self.delete.metadata['url'] + url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), - 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$') + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, front_door_name, rules_engine_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Deletes an existing Rules Engine Configuration with the specified - parameters. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + front_door_name, # type: str + rules_engine_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an existing Rules Engine Configuration with the specified parameters. + + :param resource_group_name: Name of the Resource group within the Azure subscription. :type resource_group_name: str - :param front_door_name: Name of the Front Door which is globally - unique. + :param front_door_name: Name of the Front Door which is globally unique. :type front_door_name: str - :param rules_engine_name: Name of the Rules Engine which is unique - within the Front Door. + :param rules_engine_name: Name of the Rules Engine which is unique within the Front Door. :type rules_engine_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorResponseException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - front_door_name=front_door_name, - rules_engine_name=rules_engine_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + front_door_name=front_door_name, + rules_engine_name=rules_engine_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=80, min_length=1, pattern=r'^[a-zA-Z0-9_\-\(\)\.]*[^\.]$'), + 'frontDoorName': self._serialize.url("front_door_name", front_door_name, 'str', max_length=64, min_length=5, pattern=r'^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$'), + 'rulesEngineName': self._serialize.url("rules_engine_name", rules_engine_name, 'str', max_length=90, min_length=1, pattern=r'^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/rulesEngines/{rulesEngineName}'} # type: ignore diff --git a/src/front-door/setup.py b/src/front-door/setup.py index ff023268a3b..ee8f949dea0 100644 --- a/src/front-door/setup.py +++ b/src/front-door/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "1.0.13" +VERSION = "1.0.14" CLASSIFIERS = [ 'Development Status :: 4 - Beta', @@ -24,6 +24,11 @@ DEPENDENCIES = [] +with open('readme.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + setup( name='front-door', version=VERSION, @@ -32,6 +37,7 @@ author='Microsoft Corporation', author_email='azpycli@microsoft.com', url='https://github.com/Azure/azure-cli-extensions/tree/master/src/front-door', + long_description=README + '\n\n' + HISTORY, classifiers=CLASSIFIERS, package_data={'azext_front_door': ['azext_metadata.json']}, packages=find_packages(),