diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_help.py b/src/azure-cli/azure/cli/command_modules/cdn/_help.py index 262efec2a97..cb34b08f6c2 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_help.py @@ -229,6 +229,11 @@ helps['cdn endpoint rule add'] = """ type: command short-summary: Add a delivery rule to a CDN endpoint. +parameters: + - name: --rule-name + type: string + short-summary: > + Name of the rule, only required for Microsoft SKU. examples: - name: Create a global rule to disable caching. text: > @@ -248,6 +253,9 @@ - name: Remove the global rule. text: > az cdn endpoint rule remove -g group -n endpoint --profile-name profile --rule-name Global + - name: Remove the rule with the order 4. + text: > + az cdn endpoint rule remove -g group -n endpoint --profile-name profile --order 4 """ helps['cdn endpoint rule show'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_params.py b/src/azure-cli/azure/cli/command_modules/cdn/_params.py index c8819f66855..be17968e585 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_params.py @@ -125,7 +125,9 @@ def load_arguments(self, _): help='The secret name of the KeyVault certificate') c.argument('user_cert_secret_version', arg_group='Bring Your Own Certificate', - help='The secret version of the KeyVault certificate') + help='The secret version of the KeyVault certificate, If not specified, the "Latest" version will ' + 'always been used and the deployed certificate will be automatically rotated to the latest ' + 'version when a newer version of the certificate is available.') # Origin # with self.argument_context('cdn origin') as c: @@ -501,8 +503,11 @@ def configure_log_analytic_common_parameters(c): # pylint: disable=protected-access def configure_rule_parameters(c): c.argument('rule_name', help='Name of the rule.') - c.argument('order', help='The order of the rule. The order number must start from 0 and consecutive. ' - "Rule with higher order will be applied later.") + c.argument('order', type=int, + help='The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. ' + 'A rule with a lower order will be applied before one with a higher order. ' + 'Rule with order 0 is a special rule. ' + 'It does not require any condition and actions listed in it will always be applied.') c.argument('match_variable', arg_group="Match Condition", help='Name of the match condition.', arg_type=get_enum_type(DeliveryRuleCondition._subtype_map["name"].keys())) c.argument('operator', arg_group="Match Condition", help='Operator of the match condition.') diff --git a/src/azure-cli/azure/cli/command_modules/cdn/custom/custom.py b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom.py index 984d1f767d9..fedc7ae373b 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom/custom.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom.py @@ -64,6 +64,19 @@ def _update_mapper(existing, new, keys): setattr(new, key, new_value if new_value is not None else existing_value) +def _convert_to_unified_delivery_rules(policy): + for existing_rule in policy.rules: + if existing_rule.conditions: + for con in existing_rule.conditions: + if con.parameters.operator is None and con.parameters.match_values is None: + if con.parameters.odata_type == UrlPathMatchConditionParameters.odata_type: + con.parameters.operator = con.parameters.additional_properties["matchType"] + con.parameters.match_values = con.parameters.additional_properties["path"].split(',') + if con.parameters.odata_type == UrlFileExtensionMatchConditionParameters.odata_type: + con.parameters.operator = "Any" + con.parameters.match_values = con.parameters.additional_properties["extensions"] + + # region Custom Commands def list_profiles(client, resource_group_name=None): profiles = client.profiles @@ -339,20 +352,29 @@ def create_action(action_name, cache_behavior=None, cache_duration=None, header_ # pylint: disable=too-many-locals def add_rule(client, resource_group_name, profile_name, endpoint_name, - order, rule_name, action_name, match_variable=None, operator=None, + order, action_name, match_variable=None, operator=None, match_values=None, selector=None, negate_condition=None, transform=None, cache_behavior=None, cache_duration=None, header_action=None, header_name=None, header_value=None, query_string_behavior=None, query_parameters=None, redirect_type=None, redirect_protocol=None, custom_hostname=None, custom_path=None, custom_querystring=None, custom_fragment=None, source_pattern=None, - destination=None, preserve_unmatched_path=None): + destination=None, preserve_unmatched_path=None, rule_name=None): + + partner_skus = [SkuName.PREMIUM_VERIZON, SkuName.CUSTOM_VERIZON, SkuName.STANDARD_AKAMAI, SkuName.STANDARD_VERIZON] + profile = client.profiles.get(resource_group_name, profile_name) + if rule_name is None and profile.sku.name not in partner_skus: + raise CLIError("--rule-name is required for Microsoft SKU") + endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) + policy = endpoint.delivery_policy if policy is None: policy = EndpointPropertiesUpdateParametersDeliveryPolicy( description='delivery_policy', rules=[]) + _convert_to_unified_delivery_rules(policy) + conditions = [] condition = create_condition(match_variable, operator, match_values, selector, negate_condition, transform) if condition is not None: @@ -422,14 +444,36 @@ def add_action(client, resource_group_name, profile_name, endpoint_name, return client.endpoints.begin_update(resource_group_name, profile_name, endpoint_name, params) -def remove_rule(client, resource_group_name, profile_name, endpoint_name, rule_name): +def remove_rule(client, resource_group_name, profile_name, endpoint_name, rule_name=None, order: int = None): + + if rule_name is None and order is None: + raise CLIError("Either --rule-name or --order must be specified") + + if order is not None and order < 0: + raise CLIError("Order should be non-negative.") endpoint = client.endpoints.get(resource_group_name, profile_name, endpoint_name) policy = endpoint.delivery_policy if policy is not None: - for rule in policy.rules: - if rule.name == rule_name: - policy.rules.remove(rule) + _convert_to_unified_delivery_rules(policy) + pop_index = -1 + for idx, rule in enumerate(policy.rules): + if rule_name is not None and rule.name == rule_name: + pop_index = idx + break + elif order is not None and rule.order == order: + pop_index = idx + break + + # To guarantee the consecutive rule order, we need to make sure the rule with order larger than the deleted one + # to decrease its order by one. Rule with order 0 is special and no rule order adjustment is required. + if pop_index != -1: + pop_order = policy.rules[pop_index].order + policy.rules.pop(pop_index) + for rule in policy.rules: + if rule.order > pop_order and pop_order != 0: + rule.order -= 1 + else: logger.warning("rule cannot be found. This command will be skipped. Please check the rule name") diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_akamai_delivery_rule.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_akamai_delivery_rule.yaml new file mode 100644 index 00000000000..d55365d13e0 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_akamai_delivery_rule.yaml @@ -0,0 +1,1969 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:52:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "sku": {"name": "Standard_Akamai"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + Content-Length: + - '58' + Content-Type: + - application/json + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/994d946d-f55e-4ab0-a947-3ae31c8da441?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '424' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:52:42 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-resource-requests: + - '24' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/994d946d-f55e-4ab0-a947-3ae31c8da441?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:52:52 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '423' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:52:52 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:52:53 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": + true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": + {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", "httpPort": 80, + "httpsPort": 443}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + Content-Length: + - '260' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6b21fd3c-1ea3-419a-8407-dadd8ae913eb?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1216' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:02 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-resource-requests: + - '99' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/6b21fd3c-1ea3-419a-8407-dadd8ae913eb?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:12 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/6b21fd3c-1ea3-419a-8407-dadd8ae913eb?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:42 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1214' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:43 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '423' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:43 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1214' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:44 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + Content-Length: + - '339' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/55f69950-3470-4690-be8a-6828b56b348f?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/55f69950-3470-4690-be8a-6828b56b348f/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '98' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/55f69950-3470-4690-be8a-6828b56b348f?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:00 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:01 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '423' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:01 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:02 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 1, "conditions": [{"name": "UrlPath", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", "operator": + "Wildcard", "matchValues": ["/test2/*"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + Content-Length: + - '775' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8945a831-8185-45ec-aa29-6ef70786eab0?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8945a831-8185-45ec-aa29-6ef70786eab0/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '98' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/8945a831-8185-45ec-aa29-6ef70786eab0?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:18 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:18 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '423' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:20 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:21 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 1, "conditions": [{"name": "UrlPath", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", "operator": + "Wildcard", "matchValues": ["/test2/*"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 2, "conditions": [{"name": "UrlFileExtension", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters", + "operator": "Any", "matchValues": ["mp4", "mp3"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + Content-Length: + - '1226' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":2,"conditions":[{"name":"UrlFileExtension","parameters":{"extensions":["mp4","mp3"],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07641159-92d3-4f3c-acde-c2c7bc0017fb?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '2333' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07641159-92d3-4f3c-acde-c2c7bc0017fb/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/07641159-92d3-4f3c-acde-c2c7bc0017fb?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:36 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":2,"conditions":[{"name":"UrlFileExtension","parameters":{"extensions":["mp4","mp3"],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2333' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:37 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":2,"conditions":[{"name":"UrlFileExtension","parameters":{"extensions":["mp4","mp3"],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2333' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:38 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 1, "conditions": [{"name": "UrlPath", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", "operator": + "Wildcard", "matchValues": ["/test2/*"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '775' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/29e13c51-5602-4790-9e97-60240e13a18a?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/29e13c51-5602-4790-9e97-60240e13a18a/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/29e13c51-5602-4790-9e97-60240e13a18a?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:54 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:55 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:56 GMT + expires: + - '-1' + 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-resource-requests: + - '46' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '339' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/841137c1-6e7c-40e1-b9ae-bd30b70d6ce7?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:01 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/841137c1-6e7c-40e1-b9ae-bd30b70d6ce7/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '97' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/841137c1-6e7c-40e1-b9ae-bd30b70d6ce7?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:12 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/841137c1-6e7c-40e1-b9ae-bd30b70d6ce7?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:42 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:43 GMT + expires: + - '-1' + 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-resource-requests: + - '45' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:44 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + []}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '83' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6fc97f8b-29b0-4d7f-bbe1-40da88fa98ff?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1254' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6fc97f8b-29b0-4d7f-bbe1-40da88fa98ff/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/6fc97f8b-29b0-4d7f-bbe1-40da88fa98ff?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:00 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1254' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:00 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --profile-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b98bb51a-0266-4b0c-8f11-a78e5bb2fb0c?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 22 Apr 2021 13:56:03 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b98bb51a-0266-4b0c-8f11-a78e5bb2fb0c/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b98bb51a-0266-4b0c-8f11-a78e5bb2fb0c?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:15 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b98bb51a-0266-4b0c-8f11-a78e5bb2fb0c?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:45 GMT + expires: + - '-1' + 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/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml index 8a697e94d7c..c8fec81f930 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml @@ -13,7 +13,7 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints?api-version=2020-09-01 response: @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:41 GMT + - Thu, 22 Apr 2021 13:52:35 GMT expires: - '-1' pragma: @@ -58,14 +58,14 @@ interactions: - -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-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:28:38Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:41 GMT + - Thu, 22 Apr 2021 13:52:35 GMT expires: - '-1' pragma: @@ -106,7 +106,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -114,7 +114,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b83f0f9d-42c6-47a7-a867-4fa6c82c65e9?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ba311193-cae5-4765-95ba-ef537d7847e4?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:47 GMT + - Thu, 22 Apr 2021 13:52:41 GMT expires: - '-1' pragma: @@ -134,7 +134,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '22' + - '23' status: code: 201 message: Created @@ -152,9 +152,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b83f0f9d-42c6-47a7-a867-4fa6c82c65e9?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ba311193-cae5-4765-95ba-ef537d7847e4?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -166,7 +166,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:58 GMT + - Thu, 22 Apr 2021 13:52:52 GMT expires: - '-1' pragma: @@ -198,7 +198,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -212,7 +212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:58 GMT + - Thu, 22 Apr 2021 13:52:52 GMT expires: - '-1' pragma: @@ -246,7 +246,7 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints?api-version=2020-09-01 response: @@ -260,7 +260,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:00 GMT + - Thu, 22 Apr 2021 13:52:53 GMT expires: - '-1' pragma: @@ -276,7 +276,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -295,14 +295,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:28:38Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -311,7 +311,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:59 GMT + - Thu, 22 Apr 2021 13:52:54 GMT expires: - '-1' pragma: @@ -345,7 +345,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -353,7 +353,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1ab364c5-2147-4ebc-ba48-edff7b0b9da7?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/116f732c-d9e2-4ccb-8b4c-896f0e254568?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -361,7 +361,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:09 GMT + - Thu, 22 Apr 2021 13:53:04 GMT expires: - '-1' pragma: @@ -391,9 +391,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/1ab364c5-2147-4ebc-ba48-edff7b0b9da7?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/116f732c-d9e2-4ccb-8b4c-896f0e254568?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -405,7 +405,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:19 GMT + - Thu, 22 Apr 2021 13:53:14 GMT expires: - '-1' pragma: @@ -437,9 +437,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/1ab364c5-2147-4ebc-ba48-edff7b0b9da7?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/116f732c-d9e2-4ccb-8b4c-896f0e254568?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -451,7 +451,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:49 GMT + - Thu, 22 Apr 2021 13:53:44 GMT expires: - '-1' pragma: @@ -483,7 +483,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -497,7 +497,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:50 GMT + - Thu, 22 Apr 2021 13:53:44 GMT expires: - '-1' pragma: @@ -513,7 +513,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -531,7 +531,7 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints?api-version=2020-09-01 response: @@ -545,7 +545,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:51 GMT + - Thu, 22 Apr 2021 13:53:46 GMT expires: - '-1' pragma: @@ -579,7 +579,7 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -593,7 +593,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:52 GMT + - Thu, 22 Apr 2021 13:53:48 GMT expires: - '-1' pragma: @@ -634,7 +634,7 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -642,7 +642,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":["text/plain","text/html","text/css","text/javascript","application/x-javascript","application/javascript","application/json","application/xml"],"isCompressionEnabled":true,"isHttpAllowed":false,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/124dfcd6-e534-487a-9a9b-855264cd84a8?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ed6e336c-7ce9-4808-aaf8-93fded6f0f9f?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -650,11 +650,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:57 GMT + - Thu, 22 Apr 2021 13:53:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/124dfcd6-e534-487a-9a9b-855264cd84a8/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ed6e336c-7ce9-4808-aaf8-93fded6f0f9f/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -682,55 +682,9 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/124dfcd6-e534-487a-9a9b-855264cd84a8?api-version=2020-09-01 - response: - body: - string: '{"status":"InProgress","error":{"code":"None","message":null}}' - headers: - cache-control: - - no-cache - content-length: - - '62' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 02 Apr 2021 10:30:07 GMT - expires: - - '-1' - 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: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint update - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --no-http --enable-compression - User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/124dfcd6-e534-487a-9a9b-855264cd84a8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ed6e336c-7ce9-4808-aaf8-93fded6f0f9f?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -742,7 +696,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:37 GMT + - Thu, 22 Apr 2021 13:54:02 GMT expires: - '-1' pragma: @@ -774,7 +728,7 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -788,7 +742,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:38 GMT + - Thu, 22 Apr 2021 13:54:02 GMT expires: - '-1' pragma: @@ -822,7 +776,7 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -836,7 +790,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:39 GMT + - Thu, 22 Apr 2021 13:54:04 GMT expires: - '-1' pragma: @@ -852,7 +806,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -877,7 +831,7 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -885,7 +839,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":["text/plain","text/html","text/css","text/javascript","application/x-javascript","application/javascript","application/json","application/xml"],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":false,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9803ac6b-679b-4c13-b18a-4e72954d3ec6?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4635394c-5843-41f5-b3a7-7f066d6ec23e?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -893,11 +847,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:42 GMT + - Thu, 22 Apr 2021 13:54:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9803ac6b-679b-4c13-b18a-4e72954d3ec6/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4635394c-5843-41f5-b3a7-7f066d6ec23e/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -907,7 +861,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '98' + - '99' status: code: 202 message: Accepted @@ -925,9 +879,9 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/9803ac6b-679b-4c13-b18a-4e72954d3ec6?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4635394c-5843-41f5-b3a7-7f066d6ec23e?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -939,7 +893,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:52 GMT + - Thu, 22 Apr 2021 13:54:17 GMT expires: - '-1' pragma: @@ -971,7 +925,7 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -985,7 +939,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:53 GMT + - Thu, 22 Apr 2021 13:54:18 GMT expires: - '-1' pragma: @@ -1001,7 +955,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '46' + - '49' status: code: 200 message: OK @@ -1021,7 +975,7 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1029,17 +983,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/79a26bdd-fffb-4dd2-8b6c-4d123a34dbee?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4bcfa65f-04be-441b-bccb-cccbb0a0497f?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 02 Apr 2021 10:30:55 GMT + - Thu, 22 Apr 2021 13:54:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/79a26bdd-fffb-4dd2-8b6c-4d123a34dbee/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4bcfa65f-04be-441b-bccb-cccbb0a0497f/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1067,9 +1021,9 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/79a26bdd-fffb-4dd2-8b6c-4d123a34dbee?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4bcfa65f-04be-441b-bccb-cccbb0a0497f?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1081,7 +1035,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:06 GMT + - Thu, 22 Apr 2021 13:54:32 GMT expires: - '-1' pragma: @@ -1113,9 +1067,9 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/79a26bdd-fffb-4dd2-8b6c-4d123a34dbee?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4bcfa65f-04be-441b-bccb-cccbb0a0497f?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1127,7 +1081,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:37 GMT + - Thu, 22 Apr 2021 13:55:02 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml index 08f49ed6f05..d3426af3418 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml @@ -14,14 +14,14 @@ interactions: - -g -n --sku User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:27:31Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:27:32 GMT + - Thu, 22 Apr 2021 13:52:34 GMT expires: - '-1' pragma: @@ -62,7 +62,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/Standard-Akamai-profile?api-version=2020-09-01 response: @@ -70,7 +70,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile","type":"Microsoft.Cdn/profiles","name":"Standard-Akamai-profile","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9df3355-1bfa-4aea-801d-cb4a4c1feba9?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d7ecdfee-5277-4729-a9b1-f5d242290f09?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -78,7 +78,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:27:38 GMT + - Thu, 22 Apr 2021 13:52:42 GMT expires: - '-1' pragma: @@ -90,7 +90,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '20' + - '23' status: code: 201 message: Created @@ -108,9 +108,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/d9df3355-1bfa-4aea-801d-cb4a4c1feba9?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d7ecdfee-5277-4729-a9b1-f5d242290f09?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:27:48 GMT + - Thu, 22 Apr 2021 13:52:52 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/Standard-Akamai-profile?api-version=2020-09-01 response: @@ -168,7 +168,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:27:48 GMT + - Thu, 22 Apr 2021 13:52:52 GMT expires: - '-1' pragma: @@ -184,7 +184,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -203,14 +203,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:27:31Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -219,7 +219,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:27:48 GMT + - Thu, 22 Apr 2021 13:52:53 GMT expires: - '-1' pragma: @@ -253,7 +253,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -261,7 +261,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/77399e15-8e5f-4cd0-a6bc-ee02b41a6cc6?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6c657104-1242-475c-8f52-b9743db009d8?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -269,7 +269,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:27:57 GMT + - Thu, 22 Apr 2021 13:53:03 GMT expires: - '-1' pragma: @@ -281,7 +281,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '98' + - '99' status: code: 201 message: Created @@ -299,9 +299,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/77399e15-8e5f-4cd0-a6bc-ee02b41a6cc6?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6c657104-1242-475c-8f52-b9743db009d8?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -313,7 +313,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:07 GMT + - Thu, 22 Apr 2021 13:53:13 GMT expires: - '-1' pragma: @@ -345,9 +345,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/77399e15-8e5f-4cd0-a6bc-ee02b41a6cc6?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6c657104-1242-475c-8f52-b9743db009d8?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -359,7 +359,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:38 GMT + - Thu, 22 Apr 2021 13:53:44 GMT expires: - '-1' pragma: @@ -391,7 +391,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -405,7 +405,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:38 GMT + - Thu, 22 Apr 2021 13:53:45 GMT expires: - '-1' pragma: @@ -421,7 +421,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -440,14 +440,14 @@ interactions: - -g -n --sku User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:27:31Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -456,7 +456,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:38 GMT + - Thu, 22 Apr 2021 13:53:45 GMT expires: - '-1' pragma: @@ -488,7 +488,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/Standard-Verizon-profile?api-version=2020-09-01 response: @@ -496,7 +496,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile","type":"Microsoft.Cdn/profiles","name":"Standard-Verizon-profile","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02012b24-01f7-4f5e-ba7b-4ce2559e5353?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c73163a-ea8c-483e-9e75-919533333fe7?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -504,7 +504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:45 GMT + - Thu, 22 Apr 2021 13:53:53 GMT expires: - '-1' pragma: @@ -516,7 +516,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '21' + - '23' status: code: 201 message: Created @@ -534,9 +534,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/02012b24-01f7-4f5e-ba7b-4ce2559e5353?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c73163a-ea8c-483e-9e75-919533333fe7?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -548,7 +548,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:55 GMT + - Thu, 22 Apr 2021 13:54:05 GMT expires: - '-1' pragma: @@ -580,9 +580,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/02012b24-01f7-4f5e-ba7b-4ce2559e5353?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c73163a-ea8c-483e-9e75-919533333fe7?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -594,7 +594,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:26 GMT + - Thu, 22 Apr 2021 13:54:35 GMT expires: - '-1' pragma: @@ -626,9 +626,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/02012b24-01f7-4f5e-ba7b-4ce2559e5353?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c73163a-ea8c-483e-9e75-919533333fe7?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -640,7 +640,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:57 GMT + - Thu, 22 Apr 2021 13:55:05 GMT expires: - '-1' pragma: @@ -672,7 +672,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/Standard-Verizon-profile?api-version=2020-09-01 response: @@ -686,7 +686,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:57 GMT + - Thu, 22 Apr 2021 13:55:05 GMT expires: - '-1' pragma: @@ -702,7 +702,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '47' + - '48' status: code: 200 message: OK @@ -721,14 +721,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:27:31Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -737,7 +737,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:58 GMT + - Thu, 22 Apr 2021 13:55:05 GMT expires: - '-1' pragma: @@ -771,7 +771,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2020-09-01 response: @@ -779,7 +779,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45532ec2-1501-4dca-80b5-3c3fe00688e8?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c679bb3c-e874-42b3-aead-6528f2ab0263?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -787,7 +787,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:07 GMT + - Thu, 22 Apr 2021 13:55:16 GMT expires: - '-1' pragma: @@ -799,7 +799,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 201 message: Created @@ -817,9 +817,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/45532ec2-1501-4dca-80b5-3c3fe00688e8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c679bb3c-e874-42b3-aead-6528f2ab0263?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -831,7 +831,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:19 GMT + - Thu, 22 Apr 2021 13:55:26 GMT expires: - '-1' pragma: @@ -863,9 +863,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/45532ec2-1501-4dca-80b5-3c3fe00688e8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c679bb3c-e874-42b3-aead-6528f2ab0263?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -877,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:49 GMT + - Thu, 22 Apr 2021 13:55:56 GMT expires: - '-1' pragma: @@ -909,7 +909,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2020-09-01 response: @@ -923,7 +923,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:49 GMT + - Thu, 22 Apr 2021 13:55:57 GMT expires: - '-1' pragma: @@ -939,7 +939,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '47' + - '46' status: code: 200 message: OK @@ -958,14 +958,14 @@ interactions: - -g -n --sku User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:27:31Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -974,7 +974,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:49 GMT + - Thu, 22 Apr 2021 13:55:58 GMT expires: - '-1' pragma: @@ -1006,7 +1006,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/Premium-Verizon-profile?api-version=2020-09-01 response: @@ -1014,7 +1014,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile","type":"Microsoft.Cdn/profiles","name":"Premium-Verizon-profile","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Premium_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0edbce47-53d4-425e-b4f6-09ea32c7acb8?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b0c79bde-9fe9-41c3-9a07-cf804d8f6b30?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1022,7 +1022,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:56 GMT + - Thu, 22 Apr 2021 13:56:07 GMT expires: - '-1' pragma: @@ -1034,7 +1034,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '22' status: code: 201 message: Created @@ -1052,9 +1052,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/0edbce47-53d4-425e-b4f6-09ea32c7acb8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b0c79bde-9fe9-41c3-9a07-cf804d8f6b30?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1066,7 +1066,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:06 GMT + - Thu, 22 Apr 2021 13:56:17 GMT expires: - '-1' pragma: @@ -1098,9 +1098,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/0edbce47-53d4-425e-b4f6-09ea32c7acb8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b0c79bde-9fe9-41c3-9a07-cf804d8f6b30?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1112,7 +1112,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:37 GMT + - Thu, 22 Apr 2021 13:56:47 GMT expires: - '-1' pragma: @@ -1144,9 +1144,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/0edbce47-53d4-425e-b4f6-09ea32c7acb8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b0c79bde-9fe9-41c3-9a07-cf804d8f6b30?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1158,7 +1158,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:32:07 GMT + - Thu, 22 Apr 2021 13:57:17 GMT expires: - '-1' pragma: @@ -1190,9 +1190,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/0edbce47-53d4-425e-b4f6-09ea32c7acb8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b0c79bde-9fe9-41c3-9a07-cf804d8f6b30?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1204,7 +1204,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:32:37 GMT + - Thu, 22 Apr 2021 13:57:48 GMT expires: - '-1' pragma: @@ -1236,9 +1236,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/0edbce47-53d4-425e-b4f6-09ea32c7acb8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b0c79bde-9fe9-41c3-9a07-cf804d8f6b30?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1250,7 +1250,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:33:09 GMT + - Thu, 22 Apr 2021 13:58:18 GMT expires: - '-1' pragma: @@ -1282,7 +1282,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/Premium-Verizon-profile?api-version=2020-09-01 response: @@ -1296,7 +1296,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:33:09 GMT + - Thu, 22 Apr 2021 13:58:19 GMT expires: - '-1' pragma: @@ -1312,7 +1312,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -1331,14 +1331,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:27:31Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1347,7 +1347,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:33:10 GMT + - Thu, 22 Apr 2021 13:58:19 GMT expires: - '-1' pragma: @@ -1381,7 +1381,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2020-09-01 response: @@ -1389,7 +1389,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000004","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000004.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"NotSet","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c47e4f6-0c34-4506-99e3-b06a7ef9a00b?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9b896b53-8e12-46d4-84ab-b4444419414f?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1397,7 +1397,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:33:19 GMT + - Thu, 22 Apr 2021 13:58:29 GMT expires: - '-1' pragma: @@ -1409,7 +1409,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 201 message: Created @@ -1427,9 +1427,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/3c47e4f6-0c34-4506-99e3-b06a7ef9a00b?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9b896b53-8e12-46d4-84ab-b4444419414f?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1441,7 +1441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:33:29 GMT + - Thu, 22 Apr 2021 13:58:40 GMT expires: - '-1' pragma: @@ -1473,9 +1473,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/3c47e4f6-0c34-4506-99e3-b06a7ef9a00b?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9b896b53-8e12-46d4-84ab-b4444419414f?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1487,7 +1487,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:00 GMT + - Thu, 22 Apr 2021 13:59:10 GMT expires: - '-1' pragma: @@ -1519,7 +1519,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2020-09-01 response: @@ -1533,7 +1533,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:00 GMT + - Thu, 22 Apr 2021 13:59:10 GMT expires: - '-1' pragma: @@ -1549,7 +1549,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml index 3b6671a001a..3aec0750f45 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml @@ -14,14 +14,14 @@ interactions: - -g -n --sku User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:29:53Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:55 GMT + - Thu, 22 Apr 2021 13:52:35 GMT expires: - '-1' pragma: @@ -62,7 +62,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -70,7 +70,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e5539e34-9c84-47bc-a5ec-e5ed71bca086?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bc88aa2c-da6d-46a0-ab8c-a98aaa1a6c36?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -78,7 +78,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:02 GMT + - Thu, 22 Apr 2021 13:52:43 GMT expires: - '-1' pragma: @@ -90,7 +90,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '23' + - '24' status: code: 201 message: Created @@ -108,9 +108,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/e5539e34-9c84-47bc-a5ec-e5ed71bca086?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bc88aa2c-da6d-46a0-ab8c-a98aaa1a6c36?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:12 GMT + - Thu, 22 Apr 2021 13:52:53 GMT expires: - '-1' pragma: @@ -154,9 +154,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/e5539e34-9c84-47bc-a5ec-e5ed71bca086?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bc88aa2c-da6d-46a0-ab8c-a98aaa1a6c36?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -168,7 +168,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:42 GMT + - Thu, 22 Apr 2021 13:53:24 GMT expires: - '-1' pragma: @@ -200,9 +200,55 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/e5539e34-9c84-47bc-a5ec-e5ed71bca086?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bc88aa2c-da6d-46a0-ab8c-a98aaa1a6c36?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:53:54 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/bc88aa2c-da6d-46a0-ab8c-a98aaa1a6c36?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -214,7 +260,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:12 GMT + - Thu, 22 Apr 2021 13:54:24 GMT expires: - '-1' pragma: @@ -246,7 +292,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -260,7 +306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:13 GMT + - Thu, 22 Apr 2021 13:54:25 GMT expires: - '-1' pragma: @@ -276,7 +322,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -295,14 +341,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:29:53Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -311,7 +357,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:14 GMT + - Thu, 22 Apr 2021 13:54:26 GMT expires: - '-1' pragma: @@ -345,7 +391,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -353,7 +399,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e31fdc38-1f87-4b4c-806b-33333c1534a1?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7f961da2-9674-4089-bcf1-7c03165f215c?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -361,7 +407,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:23 GMT + - Thu, 22 Apr 2021 13:54:34 GMT expires: - '-1' pragma: @@ -373,7 +419,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '97' status: code: 201 message: Created @@ -391,9 +437,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/e31fdc38-1f87-4b4c-806b-33333c1534a1?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7f961da2-9674-4089-bcf1-7c03165f215c?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -405,7 +451,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:31:33 GMT + - Thu, 22 Apr 2021 13:54:46 GMT expires: - '-1' pragma: @@ -437,9 +483,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/e31fdc38-1f87-4b4c-806b-33333c1534a1?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7f961da2-9674-4089-bcf1-7c03165f215c?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -451,7 +497,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:32:03 GMT + - Thu, 22 Apr 2021 13:55:16 GMT expires: - '-1' pragma: @@ -483,7 +529,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -497,7 +543,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:32:03 GMT + - Thu, 22 Apr 2021 13:55:16 GMT expires: - '-1' pragma: @@ -513,7 +559,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -535,7 +581,7 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002/load?api-version=2020-09-01 response: @@ -543,17 +589,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 02 Apr 2021 10:32:07 GMT + - Thu, 22 Apr 2021 13:55:18 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -581,9 +627,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -595,7 +641,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:32:17 GMT + - Thu, 22 Apr 2021 13:55:29 GMT expires: - '-1' pragma: @@ -627,9 +673,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -641,7 +687,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:32:47 GMT + - Thu, 22 Apr 2021 13:56:00 GMT expires: - '-1' pragma: @@ -673,9 +719,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -687,7 +733,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:33:18 GMT + - Thu, 22 Apr 2021 13:56:30 GMT expires: - '-1' pragma: @@ -719,9 +765,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -733,7 +779,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:33:48 GMT + - Thu, 22 Apr 2021 13:56:59 GMT expires: - '-1' pragma: @@ -765,9 +811,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -779,7 +825,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:18 GMT + - Thu, 22 Apr 2021 13:57:30 GMT expires: - '-1' pragma: @@ -811,9 +857,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -825,7 +871,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:49 GMT + - Thu, 22 Apr 2021 13:58:00 GMT expires: - '-1' pragma: @@ -857,9 +903,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -871,7 +917,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:19 GMT + - Thu, 22 Apr 2021 13:58:31 GMT expires: - '-1' pragma: @@ -903,9 +949,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -917,7 +963,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:49 GMT + - Thu, 22 Apr 2021 13:59:01 GMT expires: - '-1' pragma: @@ -949,9 +995,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -963,7 +1009,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:19 GMT + - Thu, 22 Apr 2021 13:59:31 GMT expires: - '-1' pragma: @@ -995,9 +1041,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1009,7 +1055,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:49 GMT + - Thu, 22 Apr 2021 14:00:02 GMT expires: - '-1' pragma: @@ -1041,9 +1087,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1055,7 +1101,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:20 GMT + - Thu, 22 Apr 2021 14:00:33 GMT expires: - '-1' pragma: @@ -1087,9 +1133,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1101,7 +1147,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:50 GMT + - Thu, 22 Apr 2021 14:01:03 GMT expires: - '-1' pragma: @@ -1133,9 +1179,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1147,7 +1193,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:38:20 GMT + - Thu, 22 Apr 2021 14:01:34 GMT expires: - '-1' pragma: @@ -1179,12 +1225,12 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2d255f74-f58c-4865-8229-70a65d7df2d3/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/54fe3dd9-9feb-4dbf-a1a3-c62e5a660d35/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1193,7 +1239,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:38:21 GMT + - Thu, 22 Apr 2021 14:01:35 GMT expires: - '-1' pragma: @@ -1229,7 +1275,7 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002/purge?api-version=2020-09-01 response: @@ -1237,17 +1283,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b6a87d36-9fab-4005-ae08-1e4fdcb01d1e?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 02 Apr 2021 10:38:25 GMT + - Thu, 22 Apr 2021 14:01:36 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b6a87d36-9fab-4005-ae08-1e4fdcb01d1e/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1275,9 +1321,101 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:47 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint purge + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:02:17 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint purge + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --content-paths + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b6a87d36-9fab-4005-ae08-1e4fdcb01d1e?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1289,7 +1427,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:38:36 GMT + - Thu, 22 Apr 2021 14:02:47 GMT expires: - '-1' pragma: @@ -1321,9 +1459,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b6a87d36-9fab-4005-ae08-1e4fdcb01d1e?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1335,7 +1473,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:39:06 GMT + - Thu, 22 Apr 2021 14:03:20 GMT expires: - '-1' pragma: @@ -1367,9 +1505,9 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b6a87d36-9fab-4005-ae08-1e4fdcb01d1e?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1381,7 +1519,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:39:36 GMT + - Thu, 22 Apr 2021 14:03:50 GMT expires: - '-1' pragma: @@ -1413,12 +1551,12 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b6a87d36-9fab-4005-ae08-1e4fdcb01d1e/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b6a87d36-9fab-4005-ae08-1e4fdcb01d1e/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9e07014-4bdb-4262-ae68-d7b54587ed3a/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.contoso.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1427,7 +1565,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:39:37 GMT + - Thu, 22 Apr 2021 14:03:50 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml index d9dab2a2698..ce7a0071e32 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml @@ -14,14 +14,14 @@ interactions: - -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-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:28:17Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:18 GMT + - Thu, 22 Apr 2021 13:52:34 GMT expires: - '-1' pragma: @@ -62,7 +62,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -70,7 +70,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/35f015fc-fc6d-42fb-8aca-99cb6c4dd852?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/61d593b9-f3d7-425e-9e1d-85facff1ba82?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -78,7 +78,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:25 GMT + - Thu, 22 Apr 2021 13:52:42 GMT expires: - '-1' pragma: @@ -90,7 +90,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '23' + - '24' status: code: 201 message: Created @@ -108,9 +108,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/35f015fc-fc6d-42fb-8aca-99cb6c4dd852?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/61d593b9-f3d7-425e-9e1d-85facff1ba82?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:35 GMT + - Thu, 22 Apr 2021 13:52:53 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -168,7 +168,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:35 GMT + - Thu, 22 Apr 2021 13:52:53 GMT expires: - '-1' pragma: @@ -184,7 +184,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -203,14 +203,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:28:17Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -219,7 +219,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:36 GMT + - Thu, 22 Apr 2021 13:52:53 GMT expires: - '-1' pragma: @@ -253,7 +253,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -261,7 +261,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5887f6a9-d89a-444d-a789-34205f15398c?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/19646c8b-8478-4788-afcd-d590359117d4?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -269,7 +269,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:44 GMT + - Thu, 22 Apr 2021 13:53:03 GMT expires: - '-1' pragma: @@ -299,9 +299,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/5887f6a9-d89a-444d-a789-34205f15398c?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/19646c8b-8478-4788-afcd-d590359117d4?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -313,7 +313,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:28:55 GMT + - Thu, 22 Apr 2021 13:53:13 GMT expires: - '-1' pragma: @@ -345,9 +345,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/5887f6a9-d89a-444d-a789-34205f15398c?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/19646c8b-8478-4788-afcd-d590359117d4?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -359,7 +359,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:25 GMT + - Thu, 22 Apr 2021 13:53:44 GMT expires: - '-1' pragma: @@ -391,7 +391,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -405,7 +405,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:26 GMT + - Thu, 22 Apr 2021 13:53:45 GMT expires: - '-1' pragma: @@ -441,7 +441,7 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002/stop?api-version=2020-09-01 response: @@ -449,7 +449,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Stopping","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9cbc4d0a-5785-4762-98f6-9808a6cd11dd?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7b9704ce-405d-4f4f-bd14-4910cde53c8d?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -457,11 +457,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:27 GMT + - Thu, 22 Apr 2021 13:53:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9cbc4d0a-5785-4762-98f6-9808a6cd11dd/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7b9704ce-405d-4f4f-bd14-4910cde53c8d/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -489,9 +489,9 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/9cbc4d0a-5785-4762-98f6-9808a6cd11dd?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7b9704ce-405d-4f4f-bd14-4910cde53c8d?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -503,7 +503,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:38 GMT + - Thu, 22 Apr 2021 13:53:57 GMT expires: - '-1' pragma: @@ -535,9 +535,9 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/9cbc4d0a-5785-4762-98f6-9808a6cd11dd?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7b9704ce-405d-4f4f-bd14-4910cde53c8d?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -549,7 +549,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:09 GMT + - Thu, 22 Apr 2021 13:54:27 GMT expires: - '-1' pragma: @@ -581,12 +581,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/9cbc4d0a-5785-4762-98f6-9808a6cd11dd/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7b9704ce-405d-4f4f-bd14-4910cde53c8d/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9cbc4d0a-5785-4762-98f6-9808a6cd11dd/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Stopped","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7b9704ce-405d-4f4f-bd14-4910cde53c8d/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Stopped","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -595,7 +595,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:09 GMT + - Thu, 22 Apr 2021 13:54:28 GMT expires: - '-1' pragma: @@ -627,7 +627,7 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -641,7 +641,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:11 GMT + - Thu, 22 Apr 2021 13:54:29 GMT expires: - '-1' pragma: @@ -657,7 +657,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '47' + - '48' status: code: 200 message: OK @@ -677,7 +677,7 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002/start?api-version=2020-09-01 response: @@ -685,7 +685,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Starting","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/71d5af3f-1678-4c5d-b650-7c8de0cbb24f?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/785b60d7-d9b8-4951-abf8-ade976c8f642?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -693,11 +693,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:13 GMT + - Thu, 22 Apr 2021 13:54:30 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/71d5af3f-1678-4c5d-b650-7c8de0cbb24f/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/785b60d7-d9b8-4951-abf8-ade976c8f642/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -725,9 +725,55 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/785b60d7-d9b8-4951-abf8-ade976c8f642?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:40 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint start + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/71d5af3f-1678-4c5d-b650-7c8de0cbb24f?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/785b60d7-d9b8-4951-abf8-ade976c8f642?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -739,7 +785,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:23 GMT + - Thu, 22 Apr 2021 13:55:11 GMT expires: - '-1' pragma: @@ -771,12 +817,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/71d5af3f-1678-4c5d-b650-7c8de0cbb24f/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/785b60d7-d9b8-4951-abf8-ade976c8f642/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/71d5af3f-1678-4c5d-b650-7c8de0cbb24f/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/785b60d7-d9b8-4951-abf8-ade976c8f642/profileresults/profile123/endpointresults/endpoint000002","type":"Microsoft.Cdn/operationresults/profileresults/endpointresults","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -785,7 +831,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:23 GMT + - Thu, 22 Apr 2021 13:55:11 GMT expires: - '-1' pragma: @@ -817,7 +863,7 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -831,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:25 GMT + - Thu, 22 Apr 2021 13:55:13 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_private_link.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_private_link.yaml index 06a7df17a1c..b44b82216af 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_private_link.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_private_link.yaml @@ -14,14 +14,14 @@ interactions: - -g -n --sku User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:29:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:26 GMT + - Thu, 22 Apr 2021 13:52:35 GMT expires: - '-1' pragma: @@ -62,7 +62,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -70,7 +70,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b0afdd4d-83d9-4e4f-a83d-6134a24f1cd3?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fe6e7a3e-7470-4dba-bf9e-76686472df2b?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -78,7 +78,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:34 GMT + - Thu, 22 Apr 2021 13:52:42 GMT expires: - '-1' pragma: @@ -90,7 +90,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '22' + - '24' status: code: 201 message: Created @@ -108,9 +108,55 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b0afdd4d-83d9-4e4f-a83d-6134a24f1cd3?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fe6e7a3e-7470-4dba-bf9e-76686472df2b?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:52:52 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/fe6e7a3e-7470-4dba-bf9e-76686472df2b?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -122,7 +168,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:45 GMT + - Thu, 22 Apr 2021 13:53:22 GMT expires: - '-1' pragma: @@ -154,7 +200,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -168,7 +214,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:45 GMT + - Thu, 22 Apr 2021 13:53:23 GMT expires: - '-1' pragma: @@ -184,7 +230,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '47' + - '49' status: code: 200 message: OK @@ -203,14 +249,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:29:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:52:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -219,7 +265,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:46 GMT + - Thu, 22 Apr 2021 13:53:24 GMT expires: - '-1' pragma: @@ -256,7 +302,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -265,7 +311,7 @@ interactions: approve the request"}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a2f8f7f9-85e4-4beb-ac0c-77bf655981bf?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/043c5bf8-849b-468f-bb9d-444494ec3876?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -273,7 +319,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:29:54 GMT + - Thu, 22 Apr 2021 13:53:32 GMT expires: - '-1' pragma: @@ -285,7 +331,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '98' + - '99' status: code: 201 message: Created @@ -303,9 +349,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/a2f8f7f9-85e4-4beb-ac0c-77bf655981bf?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/043c5bf8-849b-468f-bb9d-444494ec3876?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -317,7 +363,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:05 GMT + - Thu, 22 Apr 2021 13:53:42 GMT expires: - '-1' pragma: @@ -349,9 +395,55 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/a2f8f7f9-85e4-4beb-ac0c-77bf655981bf?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/043c5bf8-849b-468f-bb9d-444494ec3876?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:54:12 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/043c5bf8-849b-468f-bb9d-444494ec3876?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -363,7 +455,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:36 GMT + - Thu, 22 Apr 2021 13:54:42 GMT expires: - '-1' pragma: @@ -395,7 +487,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -410,7 +502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:36 GMT + - Thu, 22 Apr 2021 13:54:43 GMT expires: - '-1' pragma: @@ -426,7 +518,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '47' + - '49' status: code: 200 message: OK @@ -444,7 +536,7 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints?api-version=2020-09-01 response: @@ -459,7 +551,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:30:37 GMT + - Thu, 22 Apr 2021 13:54:45 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml index 3ca53555ed2..4e7a733eb64 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_engine_crud.yaml @@ -13,7 +13,7 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints?api-version=2020-09-01 response: @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:07 GMT + - Thu, 22 Apr 2021 13:56:52 GMT expires: - '-1' pragma: @@ -58,14 +58,14 @@ interactions: - -g -n --sku User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:34:05Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:56:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -74,7 +74,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:08 GMT + - Thu, 22 Apr 2021 13:56:53 GMT expires: - '-1' pragma: @@ -106,7 +106,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -114,7 +114,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e9a32ba5-dabd-4d09-92fe-4c61d98aa075?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c9e8fb9-7e7c-44c9-9254-4c6af3d763ca?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -122,7 +122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:15 GMT + - Thu, 22 Apr 2021 13:57:01 GMT expires: - '-1' pragma: @@ -134,7 +134,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '21' + - '24' status: code: 201 message: Created @@ -152,9 +152,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/e9a32ba5-dabd-4d09-92fe-4c61d98aa075?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c9e8fb9-7e7c-44c9-9254-4c6af3d763ca?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -166,7 +166,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:25 GMT + - Thu, 22 Apr 2021 13:57:11 GMT expires: - '-1' pragma: @@ -198,9 +198,9 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/e9a32ba5-dabd-4d09-92fe-4c61d98aa075?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3c9e8fb9-7e7c-44c9-9254-4c6af3d763ca?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -212,7 +212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:55 GMT + - Thu, 22 Apr 2021 13:57:41 GMT expires: - '-1' pragma: @@ -244,7 +244,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 response: @@ -258,7 +258,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:56 GMT + - Thu, 22 Apr 2021 13:57:41 GMT expires: - '-1' pragma: @@ -274,7 +274,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '46' + - '49' status: code: 200 message: OK @@ -292,7 +292,7 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints?api-version=2020-09-01 response: @@ -306,7 +306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:57 GMT + - Thu, 22 Apr 2021 13:57:43 GMT expires: - '-1' pragma: @@ -322,7 +322,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -341,14 +341,14 @@ interactions: - -g -n --profile-name --origin User-Agent: - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.21.0 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-02T10:34:05Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:56:49Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -357,7 +357,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:34:57 GMT + - Thu, 22 Apr 2021 13:57:43 GMT expires: - '-1' pragma: @@ -391,7 +391,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -399,7 +399,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8d81c0e9-98d1-4767-9946-04e93c8155a8?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9a95f9dd-6271-4ba7-a6be-b89c2be86491?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -407,7 +407,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:07 GMT + - Thu, 22 Apr 2021 13:57:59 GMT expires: - '-1' pragma: @@ -419,7 +419,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '96' + - '98' status: code: 201 message: Created @@ -437,9 +437,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/8d81c0e9-98d1-4767-9946-04e93c8155a8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9a95f9dd-6271-4ba7-a6be-b89c2be86491?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -451,7 +451,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:17 GMT + - Thu, 22 Apr 2021 13:58:09 GMT expires: - '-1' pragma: @@ -483,9 +483,9 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/8d81c0e9-98d1-4767-9946-04e93c8155a8?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9a95f9dd-6271-4ba7-a6be-b89c2be86491?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -497,7 +497,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:48 GMT + - Thu, 22 Apr 2021 13:58:39 GMT expires: - '-1' pragma: @@ -529,7 +529,7 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -543,7 +543,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:48 GMT + - Thu, 22 Apr 2021 13:58:40 GMT expires: - '-1' pragma: @@ -559,7 +559,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '45' + - '46' status: code: 200 message: OK @@ -577,7 +577,7 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints?api-version=2020-09-01 response: @@ -591,7 +591,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:49 GMT + - Thu, 22 Apr 2021 13:58:42 GMT expires: - '-1' pragma: @@ -626,7 +626,56 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:43 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -640,7 +689,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:50 GMT + - Thu, 22 Apr 2021 13:58:44 GMT expires: - '-1' pragma: @@ -656,7 +705,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -684,7 +733,7 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -692,7 +741,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f316cdc1-4e48-485f-af1b-041a640cb8ae?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b655eb97-f468-4290-b01a-0d7397dd09eb?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -700,11 +749,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:35:55 GMT + - Thu, 22 Apr 2021 13:58:49 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f316cdc1-4e48-485f-af1b-041a640cb8ae/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b655eb97-f468-4290-b01a-0d7397dd09eb/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -714,7 +763,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '98' + - '99' status: code: 202 message: Accepted @@ -733,9 +782,9 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/f316cdc1-4e48-485f-af1b-041a640cb8ae?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b655eb97-f468-4290-b01a-0d7397dd09eb?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -747,7 +796,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:05 GMT + - Thu, 22 Apr 2021 13:59:00 GMT expires: - '-1' pragma: @@ -780,7 +829,7 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -794,7 +843,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:06 GMT + - Thu, 22 Apr 2021 13:59:00 GMT expires: - '-1' pragma: @@ -810,7 +859,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '47' + - '48' status: code: 200 message: OK @@ -828,7 +877,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -842,7 +891,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:08 GMT + - Thu, 22 Apr 2021 13:59:02 GMT expires: - '-1' pragma: @@ -858,7 +907,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '46' + - '49' status: code: 200 message: OK @@ -887,7 +936,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -895,7 +944,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}},{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eb552aa-b370-4b3a-86c1-aea604b763c7?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dd93c7ab-cf5d-4f96-a524-97c94bee8898?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -903,11 +952,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:13 GMT + - Thu, 22 Apr 2021 13:59:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7eb552aa-b370-4b3a-86c1-aea604b763c7/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dd93c7ab-cf5d-4f96-a524-97c94bee8898/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -935,9 +984,9 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/7eb552aa-b370-4b3a-86c1-aea604b763c7?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/dd93c7ab-cf5d-4f96-a524-97c94bee8898?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -949,7 +998,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:23 GMT + - Thu, 22 Apr 2021 13:59:19 GMT expires: - '-1' pragma: @@ -981,7 +1030,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -995,7 +1044,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:24 GMT + - Thu, 22 Apr 2021 13:59:20 GMT expires: - '-1' pragma: @@ -1011,7 +1060,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '45' + - '48' status: code: 200 message: OK @@ -1029,7 +1078,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1043,7 +1092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:25 GMT + - Thu, 22 Apr 2021 13:59:21 GMT expires: - '-1' pragma: @@ -1059,7 +1108,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '44' + - '48' status: code: 200 message: OK @@ -1091,7 +1140,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1099,7 +1148,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}},{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}},{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/41b65a26-f68c-47b9-b4c7-4970d56a677d?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ed4c97e6-5525-4dd7-adfb-5f9443c628fd?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1107,11 +1156,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:28 GMT + - Thu, 22 Apr 2021 13:59:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/41b65a26-f68c-47b9-b4c7-4970d56a677d/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ed4c97e6-5525-4dd7-adfb-5f9443c628fd/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1121,7 +1170,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '96' + - '98' status: code: 202 message: Accepted @@ -1139,9 +1188,9 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/41b65a26-f68c-47b9-b4c7-4970d56a677d?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ed4c97e6-5525-4dd7-adfb-5f9443c628fd?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1153,7 +1202,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:38 GMT + - Thu, 22 Apr 2021 13:59:37 GMT expires: - '-1' pragma: @@ -1185,7 +1234,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1199,7 +1248,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:39 GMT + - Thu, 22 Apr 2021 13:59:37 GMT expires: - '-1' pragma: @@ -1215,7 +1264,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '43' + - '47' status: code: 200 message: OK @@ -1233,7 +1282,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1247,7 +1296,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:40 GMT + - Thu, 22 Apr 2021 13:59:39 GMT expires: - '-1' pragma: @@ -1293,7 +1342,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1301,7 +1350,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}},{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/005b1bb7-c62d-47cc-af17-b78945788e5f?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c35456d4-ad33-4154-9c5a-7e347f9e17da?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1309,11 +1358,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:46 GMT + - Thu, 22 Apr 2021 13:59:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/005b1bb7-c62d-47cc-af17-b78945788e5f/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c35456d4-ad33-4154-9c5a-7e347f9e17da/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1341,9 +1390,9 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/005b1bb7-c62d-47cc-af17-b78945788e5f?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c35456d4-ad33-4154-9c5a-7e347f9e17da?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1355,7 +1404,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:56 GMT + - Thu, 22 Apr 2021 13:59:55 GMT expires: - '-1' pragma: @@ -1387,7 +1436,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1401,7 +1450,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:56 GMT + - Thu, 22 Apr 2021 13:59:55 GMT expires: - '-1' pragma: @@ -1435,7 +1484,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1449,7 +1498,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:36:58 GMT + - Thu, 22 Apr 2021 13:59:57 GMT expires: - '-1' pragma: @@ -1465,7 +1514,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '46' + - '44' status: code: 200 message: OK @@ -1493,7 +1542,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1501,7 +1550,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8f0e4b62-9a4a-486f-964a-b5ba2f3b9633?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/40c68296-05eb-41b3-90b5-508a600a3125?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1509,11 +1558,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:03 GMT + - Thu, 22 Apr 2021 14:00:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8f0e4b62-9a4a-486f-964a-b5ba2f3b9633/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/40c68296-05eb-41b3-90b5-508a600a3125/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1523,7 +1572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '97' + - '96' status: code: 202 message: Accepted @@ -1541,9 +1590,55 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/40c68296-05eb-41b3-90b5-508a600a3125?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:13 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule action remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name --index + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/8f0e4b62-9a4a-486f-964a-b5ba2f3b9633?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/40c68296-05eb-41b3-90b5-508a600a3125?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1555,7 +1650,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:13 GMT + - Thu, 22 Apr 2021 14:00:43 GMT expires: - '-1' pragma: @@ -1587,7 +1682,7 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1601,7 +1696,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:14 GMT + - Thu, 22 Apr 2021 14:00:43 GMT expires: - '-1' pragma: @@ -1617,7 +1712,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '45' + - '47' status: code: 200 message: OK @@ -1629,13 +1724,63 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule remove + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: - - -g -n --profile-name --rule-name + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:46 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1649,7 +1794,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:15 GMT + - Thu, 22 Apr 2021 14:00:46 GMT expires: - '-1' pragma: @@ -1665,50 +1810,60 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '47' status: code: 200 message: OK - request: body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": - []}}}' + [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH", "US"], + "transforms": []}}], "actions": [{"name": "UrlRewrite", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", "sourcePattern": + "/abc", "destination": "/def"}}]}, {"name": "r2", "order": 2, "conditions": + [{"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "matchValues": ["TH"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "BypassCache", "cacheType": "All"}}]}]}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule remove + - cdn endpoint rule add Connection: - keep-alive Content-Length: - - '83' + - '967' Content-Type: - application/json ParameterSetName: - - -g -n --profile-name --rule-name + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]},{"name":"r2","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b401b765-6f69-4498-bd31-d45bbe83696f?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc1c2adc-9906-46e2-8cf1-fd50af3f8e90?api-version=2020-09-01 cache-control: - no-cache content-length: - - '1209' + - '2131' content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:21 GMT + - Thu, 22 Apr 2021 14:00:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b401b765-6f69-4498-bd31-d45bbe83696f/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc1c2adc-9906-46e2-8cf1-fd50af3f8e90/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1730,15 +1885,16 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule remove + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: - - -g -n --profile-name --rule-name + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/b401b765-6f69-4498-bd31-d45bbe83696f?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc1c2adc-9906-46e2-8cf1-fd50af3f8e90?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1750,7 +1906,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:31 GMT + - Thu, 22 Apr 2021 14:01:01 GMT expires: - '-1' pragma: @@ -1776,27 +1932,28 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint rule remove + - cdn endpoint rule add Connection: - keep-alive ParameterSetName: - - -g -n --profile-name --rule-name + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]},{"name":"r2","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1209' + - '2131' content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:31 GMT + - Thu, 22 Apr 2021 14:01:02 GMT expires: - '-1' pragma: @@ -1812,7 +1969,674 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '47' + - '46' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '398' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:03 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]},{"name":"r2","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2131' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:03 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"name": "r1", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH", "US"], + "transforms": []}}], "actions": [{"name": "UrlRewrite", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", "sourcePattern": + "/abc", "destination": "/def"}}]}, {"name": "r2", "order": 2, "conditions": + [{"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": + "BypassCache", "cacheType": "All"}}]}, {"name": "r3", "order": 3, "conditions": + [{"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "matchValues": ["TH"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "BypassCache", "cacheType": "All"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + Content-Length: + - '1436' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]},{"name":"r2","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":"r3","order":3,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8e7d7d0-f638-423d-b10a-8f07d83cc390?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '2593' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:09 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8e7d7d0-f638-423d-b10a-8f07d83cc390/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/a8e7d7d0-f638-423d-b10a-8f07d83cc390?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:19 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --rule-name --match-variable --operator --match-values + --action-name --cache-behavior + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]},{"name":"r2","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":"r3","order":3,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2593' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:20 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r1","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH","US"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"UrlRewrite","parameters":{"sourcePattern":"/abc","destination":"/def","preserveUnmatchedPath":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters"}}]},{"name":"r2","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":"r3","order":3,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2593' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:21 GMT + expires: + - '-1' + 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-resource-requests: + - '46' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"name": "r2", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": + "BypassCache", "cacheType": "All"}}]}, {"name": "r3", "order": 2, "conditions": + [{"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": + "BypassCache", "cacheType": "All"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '1019' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r2","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":"r3","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d2336400-d158-4428-8122-7573eb458e9e?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '2132' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d2336400-d158-4428-8122-7573eb458e9e/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '96' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/d2336400-d158-4428-8122-7573eb458e9e?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:36 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r2","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":"r3","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2132' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:37 GMT + expires: + - '-1' + 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-resource-requests: + - '45' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r2","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":"r3","order":2,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2132' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:38 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"name": "r2", "order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": + "BypassCache", "cacheType": "All"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '550' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r2","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2049e002-f9af-43d6-a1e3-3f16726948b8?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1670' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2049e002-f9af-43d6-a1e3-3f16726948b8/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/2049e002-f9af-43d6-a1e3-3f16726948b8?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:54 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --rule-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000002","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000002.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":"r2","order":1,"conditions":[{"name":"RemoteAddress","parameters":{"operator":"GeoMatch","negateCondition":false,"matchValues":["TH"],"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"BypassCache","cacheType":"All","cacheDuration":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1670' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:55 GMT + expires: + - '-1' + 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-resource-requests: + - '48' status: code: 200 message: OK @@ -1832,7 +2656,7 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: @@ -1840,17 +2664,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/38c1f7d9-1254-4100-80b9-a7ac5e9ae2dc?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a94d97dd-d398-4e61-a105-b4746e0d2fa0?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 02 Apr 2021 10:37:34 GMT + - Thu, 22 Apr 2021 14:01:58 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/38c1f7d9-1254-4100-80b9-a7ac5e9ae2dc/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a94d97dd-d398-4e61-a105-b4746e0d2fa0/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1860,7 +2684,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14997' + - '14998' status: code: 202 message: Accepted @@ -1878,9 +2702,9 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/38c1f7d9-1254-4100-80b9-a7ac5e9ae2dc?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a94d97dd-d398-4e61-a105-b4746e0d2fa0?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1892,7 +2716,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:37:44 GMT + - Thu, 22 Apr 2021 14:02:09 GMT expires: - '-1' pragma: @@ -1924,9 +2748,9 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - AZURECLI/2.21.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/38c1f7d9-1254-4100-80b9-a7ac5e9ae2dc?api-version=2020-09-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a94d97dd-d398-4e61-a105-b4746e0d2fa0?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1938,7 +2762,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 02 Apr 2021 10:38:14 GMT + - Thu, 22 Apr 2021 14:02:39 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_verizon_delivery_rule.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_verizon_delivery_rule.yaml new file mode 100644 index 00000000000..2fd69d785a7 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_verizon_delivery_rule.yaml @@ -0,0 +1,2293 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:55:07Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "sku": {"name": "Standard_Verizon"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5bd4ac85-23b7-47a1-b50f-d515eb1223df?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '425' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:17 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-resource-requests: + - '23' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/5bd4ac85-23b7-47a1-b50f-d515eb1223df?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:27 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/5bd4ac85-23b7-47a1-b50f-d515eb1223df?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:55:57 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/5bd4ac85-23b7-47a1-b50f-d515eb1223df?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:27 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '424' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:28 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 + azure-mgmt-resource/12.1.0 Azure-SDK-For-Python AZURECLI/2.22.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2020-10-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-04-22T13:55:07Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:29 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"isCompressionEnabled": false, "isHttpAllowed": + true, "isHttpsAllowed": true, "origins": [{"name": "origin-0", "properties": + {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", "httpPort": 80, + "httpsPort": 443}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + Content-Length: + - '260' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":null,"webApplicationFirewallPolicyLink":null,"resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4e8ff0f4-ad38-4638-91c9-f5182bb4adf9?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1216' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:38 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-resource-requests: + - '99' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/4e8ff0f4-ad38-4638-91c9-f5182bb4adf9?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:56:48 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/4e8ff0f4-ad38-4638-91c9-f5182bb4adf9?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:57:19 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --origin + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1214' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:57:20 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '424' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:57:21 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1214' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:57:22 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + Content-Length: + - '339' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f9866f4b-7a34-44af-941b-4468e2610b8e?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:57:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f9866f4b-7a34-44af-941b-4468e2610b8e/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/f9866f4b-7a34-44af-941b-4468e2610b8e?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:57:39 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/f9866f4b-7a34-44af-941b-4468e2610b8e?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:09 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:09 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '424' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:10 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:10 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 1, "conditions": [{"name": "UrlPath", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", "operator": + "Wildcard", "matchValues": ["/test2/*"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + Content-Length: + - '775' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9bc3150c-59ea-431d-b048-420aa3180132?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:17 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9bc3150c-59ea-431d-b048-420aa3180132/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '98' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/9bc3150c-59ea-431d-b048-420aa3180132?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:28 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/9bc3150c-59ea-431d-b048-420aa3180132?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:58 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:58:58 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002","type":"Microsoft.Cdn/profiles","name":"akp000002","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '424' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:00 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:00 GMT + expires: + - '-1' + 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-resource-requests: + - '45' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 1, "conditions": [{"name": "UrlPath", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", "operator": + "Wildcard", "matchValues": ["/test2/*"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 2, "conditions": [{"name": "UrlFileExtension", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters", + "operator": "Any", "matchValues": ["mp4", "mp3"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + Content-Length: + - '1226' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":2,"conditions":[{"name":"UrlFileExtension","parameters":{"extensions":["mp4","mp3"],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0a8c61a5-6cda-4800-b988-cf4c19bda1de?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '2333' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0a8c61a5-6cda-4800-b988-cf4c19bda1de/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '97' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/0a8c61a5-6cda-4800-b988-cf4c19bda1de?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:15 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/0a8c61a5-6cda-4800-b988-cf4c19bda1de?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:45 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule add + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order --action-name --match-variable --operator --match-values + --cache-behavior --cache-duration + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":2,"conditions":[{"name":"UrlFileExtension","parameters":{"extensions":["mp4","mp3"],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2333' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:46 GMT + expires: + - '-1' + 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-resource-requests: + - '44' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":2,"conditions":[{"name":"UrlFileExtension","parameters":{"extensions":["mp4","mp3"],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '2333' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:48 GMT + expires: + - '-1' + 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-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}, + {"order": 1, "conditions": [{"name": "UrlPath", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters", "operator": + "Wildcard", "matchValues": ["/test2/*"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '775' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1a10a22e-e2ac-4416-b784-b0e15325e451?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 13:59:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1a10a22e-e2ac-4416-b784-b0e15325e451/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/1a10a22e-e2ac-4416-b784-b0e15325e451?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:03 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/1a10a22e-e2ac-4416-b784-b0e15325e451?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:35 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:36 GMT + expires: + - '-1' + 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-resource-requests: + - '48' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]},{"name":null,"order":1,"conditions":[{"name":"UrlPath","parameters":{"path":"/test2/*","matchType":"Wildcard","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathConditionParameters"}}],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1918' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:37 GMT + expires: + - '-1' + 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-resource-requests: + - '46' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + [{"order": 0, "conditions": [], "actions": [{"name": "CacheExpiration", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "Override", "cacheType": "All", "cacheDuration": "00:05:00"}}]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '339' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6fd41e58-1e40-4037-9ec6-06778d22f240?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6fd41e58-1e40-4037-9ec6-06778d22f240/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '97' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/6fd41e58-1e40-4037-9ec6-06778d22f240?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:00:53 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/6fd41e58-1e40-4037-9ec6-06778d22f240?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:24 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:24 GMT + expires: + - '-1' + 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-resource-requests: + - '45' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[{"name":null,"order":0,"conditions":[],"actions":[{"name":"CacheExpiration","parameters":{"cacheBehavior":"Override","cacheType":"All","cacheDuration":"00:05:00","@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1507' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:26 GMT + expires: + - '-1' + 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-resource-requests: + - '47' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"deliveryPolicy": {"description": "delivery_policy", "rules": + []}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + Content-Length: + - '83' + Content-Type: + - application/json + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5efc94ea-324d-4bc5-8a54-e122e57ad056?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1254' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5efc94ea-324d-4bc5-8a54-e122e57ad056/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '98' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/5efc94ea-324d-4bc5-8a54-e122e57ad056?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:01:41 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/5efc94ea-324d-4bc5-8a54-e122e57ad056?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:02:12 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint rule remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name --order + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/akp000002/endpoints/endpoint000003","type":"Microsoft.Cdn/profiles/endpoints","name":"endpoint000003","location":"WestUs","tags":{},"properties":{"hostName":"endpoint000003.azureedge.net","originHostHeader":null,"originPath":null,"contentTypesToCompress":[],"isCompressionEnabled":false,"isHttpAllowed":true,"isHttpsAllowed":true,"queryStringCachingBehavior":"IgnoreQueryString","optimizationType":null,"probePath":null,"origins":[{"name":"origin-0","properties":{"hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":null,"priority":null,"weight":null,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":{"description":"delivery_policy","rules":[]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1254' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:02:12 GMT + expires: + - '-1' + 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-resource-requests: + - '46' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n --profile-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.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.Cdn/profiles/akp000002/endpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4c26bc4f-4043-4af4-812f-c616d4d90830?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 22 Apr 2021 14:02:16 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4c26bc4f-4043-4af4-812f-c616d4d90830/profileresults/akp000002/endpointresults/endpoint000003?api-version=2020-09-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/4c26bc4f-4043-4af4-812f-c616d4d90830?api-version=2020-09-01 + response: + body: + string: '{"status":"InProgress","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '62' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:02:26 GMT + expires: + - '-1' + 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: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name + User-Agent: + - AZURECLI/2.22.0 azsdk-python-mgmt-cdn/11.0.0 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.Cdn/operationresults/4c26bc4f-4043-4af4-812f-c616d4d90830?api-version=2020-09-01 + response: + body: + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' + headers: + cache-control: + - no-cache + content-length: + - '61' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 22 Apr 2021 14:02:58 GMT + expires: + - '-1' + 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/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py index ded20f18e53..a1b468c02a3 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/scenario_mixin.py @@ -97,13 +97,15 @@ def endpoint_load_cmd(self, group, name, profile_name, content_paths, checks=Non ' '.join(content_paths)) return self.cmd(command, checks) - def endpoint_add_rule_cmd(self, group, name, profile_name, checks=None): - msg = 'az cdn endpoint rule add -g {} -n {} --profile-name {} --order 1 --rule-name r1\ + def endpoint_add_rule_cmd(self, group, name, profile_name, order, rule_name, checks=None): + msg = 'az cdn endpoint rule add -g {} -n {} --profile-name {} --order {} --rule-name {}\ --match-variable RemoteAddress --operator GeoMatch --match-values "TH"\ --action-name CacheExpiration --cache-behavior BypassCache' command = msg.format(group, name, - profile_name) + profile_name, + order, + rule_name) return self.cmd(command, checks) def endpoint_add_condition_cmd(self, group, name, profile_name, checks=None, options=None): diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py index 0a3681de3dd..cedb011d797 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_endpoint_scenarios.py @@ -204,6 +204,8 @@ def test_rule_engine_crud(self, resource_group): self.endpoint_add_rule_cmd(resource_group, endpoint_name, profile_name, + order=1, + rule_name=rulename, checks=update_checks) update_checks = [JMESPathCheck('name', endpoint_name), @@ -245,12 +247,129 @@ def test_rule_engine_crud(self, resource_group): checks=update_checks, options='--rule-name r1 --index 0') + rulename = 'r2' update_checks = [JMESPathCheck('name', endpoint_name), - JMESPathCheck('length(deliveryPolicy.rules)', 0)] + JMESPathCheck('origins[0].hostName', origin), + JMESPathCheck('isHttpAllowed', True), + JMESPathCheck('isHttpsAllowed', True), + JMESPathCheck('isCompressionEnabled', False), + JMESPathCheck('queryStringCachingBehavior', 'IgnoreQueryString'), + JMESPathCheck('length(deliveryPolicy.rules)', 2), + JMESPathCheck('deliveryPolicy.rules[1].name', rulename)] + self.endpoint_add_rule_cmd(resource_group, + endpoint_name, + profile_name, + order=2, + rule_name=rulename, + checks=update_checks) + + rulename = 'r3' + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('origins[0].hostName', origin), + JMESPathCheck('isHttpAllowed', True), + JMESPathCheck('isHttpsAllowed', True), + JMESPathCheck('isCompressionEnabled', False), + JMESPathCheck('queryStringCachingBehavior', 'IgnoreQueryString'), + JMESPathCheck('length(deliveryPolicy.rules)', 3), + JMESPathCheck('deliveryPolicy.rules[2].name', rulename)] + self.endpoint_add_rule_cmd(resource_group, + endpoint_name, + profile_name, + order=3, + rule_name=rulename, + checks=update_checks) + + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules)', 2)] self.endpoint_remove_rule_cmd(resource_group, endpoint_name, profile_name, checks=update_checks, options='--rule-name r1') + update_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules)', 1)] + self.endpoint_remove_rule_cmd(resource_group, + endpoint_name, + profile_name, + checks=update_checks, + options='--rule-name r3') + + self.endpoint_delete_cmd(resource_group, endpoint_name, profile_name) + + @ResourceGroupPreparer() + def test_akamai_delivery_rule(self, resource_group): + self._test_delivery_rule_internal(resource_group, "akp", "Standard_Akamai") + + @ResourceGroupPreparer() + def test_verizon_delivery_rule(self, resource_group): + self._test_delivery_rule_internal(resource_group, "akp", "Standard_Verizon") + + def _test_delivery_rule_internal(self, resource_group, profile_prefix, sku): + profile_name = self.create_random_name(prefix=profile_prefix, length=24) + self.profile_create_cmd(resource_group, profile_name, options=f'--sku {sku}') + endpoint_name = self.create_random_name(prefix='endpoint', length=24) + origin = 'huaiyiztesthost1.blob.core.chinacloudapi.cn' + checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('origins[0].hostName', origin), + JMESPathCheck('isHttpAllowed', True), + JMESPathCheck('isHttpsAllowed', True), + JMESPathCheck('isCompressionEnabled', False), + JMESPathCheck('queryStringCachingBehavior', 'IgnoreQueryString')] + self.endpoint_create_cmd(resource_group, endpoint_name, profile_name, origin, checks=checks) + + # Add global rule + rule_add_checks = [JMESPathCheck('length(deliveryPolicy.rules)', 1), + JMESPathCheck('deliveryPolicy.rules[0].name', None)] + rule_add_command = f'az cdn endpoint rule add -g {resource_group} -n {endpoint_name} --profile-name {profile_name} --order 0 '\ + '--action-name CacheExpiration --cache-behavior Override --cache-duration 00:05:00' + self.cmd(rule_add_command, rule_add_checks) + + # Add file path rule + rule_add_checks = [JMESPathCheck('length(deliveryPolicy.rules)', 2), + JMESPathCheck('deliveryPolicy.rules[1].name', None), + JMESPathCheck('deliveryPolicy.rules[1].actions[0].name', "CacheExpiration"), + JMESPathCheck('deliveryPolicy.rules[1].conditions[0].name', "UrlPath"), + JMESPathCheck('deliveryPolicy.rules[1].conditions[0].parameters.matchType', "Wildcard"), + JMESPathCheck('deliveryPolicy.rules[1].conditions[0].parameters.path', "/test2/*")] + rule_add_command = f'az cdn endpoint rule add -g {resource_group} -n {endpoint_name} --profile-name {profile_name} --order 1 '\ + '--action-name CacheExpiration --match-variable UrlPath --operator Wildcard --match-values /test2/* '\ + '--cache-behavior Override --cache-duration 00:05:00' + self.cmd(rule_add_command, rule_add_checks) + + # Add file extension rule + rule_add_checks = [JMESPathCheck('length(deliveryPolicy.rules)', 3), + JMESPathCheck('deliveryPolicy.rules[2].name', None), + JMESPathCheck('deliveryPolicy.rules[2].conditions[0].name', "UrlFileExtension"), + JMESPathCheck('deliveryPolicy.rules[2].conditions[0].parameters.extensions[0]', "mp4"), + JMESPathCheck('deliveryPolicy.rules[2].conditions[0].parameters.extensions[1]', "mp3")] + rule_add_command = f'az cdn endpoint rule add -g {resource_group} -n {endpoint_name} --profile-name {profile_name} --order 2 '\ + '--action-name CacheExpiration --match-variable UrlFileExtension --operator Any --match-values mp4 mp3 '\ + '--cache-behavior Override --cache-duration 00:05:00' + self.cmd(rule_add_command, rule_add_checks) + + delete_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules)', 2)] + self.endpoint_remove_rule_cmd(resource_group, + endpoint_name, + profile_name, + checks=delete_checks, + options='--order 2') + + delete_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules)', 1)] + self.endpoint_remove_rule_cmd(resource_group, + endpoint_name, + profile_name, + checks=delete_checks, + options='--order 1') + + delete_checks = [JMESPathCheck('name', endpoint_name), + JMESPathCheck('length(deliveryPolicy.rules)', 0)] + self.endpoint_remove_rule_cmd(resource_group, + endpoint_name, + profile_name, + checks=delete_checks, + options='--order 0') + self.endpoint_delete_cmd(resource_group, endpoint_name, profile_name)