diff --git a/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py b/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py index dc7a80b2b0b..7f28f066496 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_client_factory.py @@ -22,6 +22,10 @@ def cf_profiles(cli_ctx, _): return cf_cdn(cli_ctx).profiles +def cf_afd_profiles(cli_ctx, _): + return cf_cdn(cli_ctx).afd_profiles + + def cf_origins(cli_ctx, _): return cf_cdn(cli_ctx).origins @@ -44,3 +48,43 @@ def cf_waf_policy(cli_ctx, _): def cf_waf_rule_set(cli_ctx, _): return cf_cdn(cli_ctx).managed_rule_sets + + +def cf_afd_endpoints(cli_ctx, _): + return cf_cdn(cli_ctx).afd_endpoints + + +def cf_afd_origin_groups(cli_ctx, _): + return cf_cdn(cli_ctx).afd_origin_groups + + +def cf_afd_origins(cli_ctx, _): + return cf_cdn(cli_ctx).afd_origins + + +def cf_afd_routes(cli_ctx, _): + return cf_cdn(cli_ctx).routes + + +def cf_afd_rule_sets(cli_ctx, _): + return cf_cdn(cli_ctx).rule_sets + + +def cf_afd_rules(cli_ctx, _): + return cf_cdn(cli_ctx).rules + + +def cf_afd_security_policies(cli_ctx, _): + return cf_cdn(cli_ctx).security_policies + + +def cf_afd_custom_domain(cli_ctx, _): + return cf_cdn(cli_ctx).afd_custom_domains + + +def cf_afd_secrets(cli_ctx, _): + return cf_cdn(cli_ctx).secrets + + +def cf_afd_log_analytics(cli_ctx, _): + return cf_cdn(cli_ctx).log_analytics 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 f7ba3050752..0fe2eb759ee 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_help.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_help.py @@ -643,6 +643,15 @@ az cdn profile list -g group """ +helps['cdn profile show'] = """ +type: command +short-summary: Show CDN profile details. +examples: + - name: Show CDN profile details. + text: > + az cdn profile show -g group -n profile +""" + helps['cdn profile update'] = """ type: command short-summary: Update a CDN profile. @@ -987,3 +996,562 @@ text: > az cdn waf policy rate-limit-rule show -g group --policy-name policy -n ratelimitrule """ + +helps['afd profile'] = """ +type: group +short-summary: Manage AFD profiles. +""" + +helps['afd profile create'] = """ +type: command +short-summary: Create a new AFD profile. +examples: + - name: Create an AFD profile using Standard SKU. + text: > + az afd profile create -g group --profile-name profile --sku Standard_AzureFrontDoor +""" + +helps['afd profile delete'] = """ +type: command +short-summary: Delete an AFD profile. +examples: + - name: Delete an AFD profile. + text: > + az afd profile delete -g group --profile-name profile +""" + +helps['afd profile usage'] = """ +type: command +short-summary: List resource usage within the specific AFD profile. +examples: + - name: List resource usage within the specific AFD profile. + text: > + az afd profile usage -g group --profile-name profile +""" + +helps['afd profile show'] = """ +type: command +short-summary: Show details of an AFD profile. +examples: + - name: Show details of an AFD profile. + text: > + az afd profile show -g group --profile-name profile +""" + +helps['afd profile list'] = """ +type: command +short-summary: List AFD profiles. +examples: + - name: List AFD profiles in a resource group. + text: > + az afd profile list -g group +""" + +helps['afd profile update'] = """ +type: command +short-summary: Update an AFD profile. +examples: + - name: Update an AFD profile with tags. + text: az afd profile update --profile-name profile --resource-group MyResourceGroup --tags tag1=value1 +""" + +helps['afd origin-group'] = """ +type: group +short-summary: Manage origin groups under the specified profile. +long-summary: > + An origin group is a set of origins to which Front Door load balances your client requests. +""" + +helps['afd origin-group create'] = """ +type: command +short-summary: Creates a new origin group within the specified profile. +examples: + - name: Creates a new origin group within the specified profile. + text: > + az afd origin-group create -g group --origin-group-name og1 --profile-name profile + --probe-request-type GET --probe-protocol Http --probe-interval-in-seconds 120 --probe-path /test1/azure.txt + --sample-size 4 --successful-samples-required 3 + --additional-latency-in-milliseconds 50 +""" + +helps['afd origin-group update'] = """ +type: command +short-summary: Creates a new origin group within the specified profile. +examples: + - name: Update the probe setting of the specified origin group. + text: > + az afd origin-group update -g group --origin-group-name og1 --profile-name profile + --probe-request-type HEAD --probe-protocol Https --probe-interval-in-seconds 120 --probe-path /test1/azure.txt +""" + +helps['afd origin-group delete'] = """ +type: command +short-summary: Deletes an existing origin group within the specified profile. +examples: + - name: Deletes an existing origin group within a profile. + text: > + az afd origin-group delete -g group --origin-group-name og1 --profile-name profile +""" + +helps['afd origin'] = """ +type: group +short-summary: Manage origins within the specified origin group. +long-summary: > + Origins are the application servers where Front Door will route your client requests. + Utilize any publicly accessible application server, including App Service, Traffic Manager, Private Link, and many others. +""" + +helps['afd origin create'] = """ +type: command +short-summary: Create an AFD origin. +examples: + - name: Create an regular origin + text: > + az afd origin create -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup + --origin-name origin1 --origin-host-header example.contoso.com --priority 1 --weight 500 --enabled-state Enabled + --http-port 80 --https-port 443 + - name: Create a private link origin + text: > + az afd origin create -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup + --origin-name origin1 --origin-host-header example.contoso.com --priority 1 --weight 500 --enabled-state Enabled + --http-port 80 --https-port 443 --private-link-resource + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group/providers/Microsoft.Storage/storageAccounts/plstest + --private-link-location EastUS --private-link-request-message 'Please approve this request' --private-link-sub-resource table +""" + +helps['afd origin update'] = """ +type: command +short-summary: Update the settings of the specified AFD origin. +examples: + - name: Update the host header and priority of the specified origin. + text: > + az afd origin update -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup + --origin-name origin1 --origin-host-header example.contoso.com --priority 3 + - name: Disable private link of the origin. + text: > + az afd origin update -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup + --origin-name origin1 --enable-private-link False +""" + +helps['afd custom-domain'] = """ +type: group +short-summary: Manage custom domains within the specified profile. +""" + +helps['afd custom-domain create'] = """ +type: command +short-summary: Create a custom domain within the specified profile. +long-summary: > + Your need to create a DNS TXT record to prove the custom domain's ownership to make the operation successful. + Suggest to use "--no-wait" if the DNS update take a lot of time. Use "az afd custom-domain show" to obtain the validation token and + create a DNS TXT record for record "_dnsauth.{your custom domain}" with the validation token as its value. +examples: + - name: Create a custom domain that uses AFD managed cerficate for SSL/TLS encryption. + text: > + az afd custom-domain create -g group --custom-domain-name customDomain --profile-name profile --host-name www.contoso.com + --minimum-tls-version TLS12 --certificate-type ManagedCertificate + - name: Create a custom domain that uses your own cerficate for SSL/TLS encryption, the certificate is stored in Azure Key Vault and referenced by an AFD secret. + text: > + az afd custom-domain create -g group --custom-domain-name customDomain --profile-name profile --host-name www.contoso.com + --minimum-tls-version TLS12 --certificate-type CustomerCertificate --secret secretName +""" + +helps['afd custom-domain update'] = """ +type: command +short-summary: Update a custom domain within the specified profile. +examples: + - name: Update the custom domain's supported minimum TLS version. + text: > + az afd custom-domain update -g group --custom-domain-name customDomain --profile-name profile --minimum-tls-version TLS12 + - name: Update the custom domain's certificate type to AFD managed certificate. + text: > + az afd custom-domain update -g group --custom-domain-name customDomain --profile-name profile --certificate-type ManagedCertificate +""" + +helps['afd custom-domain delete'] = """ +type: command +short-summary: Delete a custom domain. +examples: + - name: Delete a custom domain. + text: > + az afd custom-domain delete -g group --profile-name profile --custom-domain-name customDomainName +""" + +helps['afd custom-domain show'] = """ +type: command +short-summary: Show the custom domain details. +examples: + - name: show details of the custom domain within the specified profile. + text: > + az afd custom-domain show -g group --profile-name profile --custom-domain-name customDomainName +""" + +helps['afd custom-domain list'] = """ +type: command +short-summary: List all the custom domains within the specified profile. +examples: + - name: List all the custom domains within the specified profile. + text: > + az afd custom-domain list -g group --profile-name profile +""" + +helps['afd custom-domain wait'] = """ +type: command +short-summary: Place the CLI in a waiting state until a condition of the custom domain is met. +examples: + - name: Wait until a custom domain is created. + text: az afd custom-domain wait -g MyResourceGroup --profile-name MyProfle --custom-domain-name MyCustomDomain --created +""" + +helps['afd endpoint'] = """ +type: group +short-summary: Manage AFD endpoints within the specified profile. +long-summary: > + An endpoint is a logical grouping of domains and their associated configurations. +""" + +helps['afd endpoint create'] = """ +type: command +short-summary: Creates an endpoint within the specified profile. +examples: + - name: Creates an enabled endpoint with origin response timeout set to 60 seconds. + text: > + az afd endpoint create -g group --endpoint-name endpoint1 --profile-name profile --origin-response-timeout-seconds 60 --enabled-state Enabled +""" + +helps['afd endpoint update'] = """ +type: command +short-summary: Update an endpoint within the specified profile. +examples: + - name: Update an endpoint's origin response timeout to 30 seconds. + text: > + az afd endpoint update -g group --endpoint-name endpoint1 --profile-name profile --origin-response-timeout-seconds 30 +""" + +helps['afd endpoint delete'] = """ +type: command +short-summary: Delete an endpoint within the specified profile. +examples: + - name: Delete an endpoint named endpoint1. + text: > + az afd endpoint delete -g group --profile-name profile --endpoint-name endpoint1 +""" + +helps['afd endpoint show'] = """ +type: command +short-summary: Show details of an endpoint within the specified profile. +examples: + - name: show details of the endpoint named endpoint1. + text: > + az afd endpoint show -g group --profile-name profile --endpoint-name endpoint1 +""" + +helps['afd endpoint list'] = """ +type: command +short-summary: List all the endpoints within the specified profile. +examples: + - name: List all the endpoints within the specified profile. + text: > + az afd endpoint list -g group --profile-name profile +""" + +helps['afd route'] = """ +type: group +short-summary: Manage routes under an AFD endpoint. +long-summary: > + A route maps your domains and matching URL path patterns to a specific origin group. +""" + +helps['afd route create'] = """ +type: command +short-summary: Creates a new route within the specified endpoint. +examples: + - name: Creates a route to assoicate the endpoint's default domain with an origin group for all HTTPS requests. + text: > + az afd route create -g group --endpoint-name endpoint1 --profile-name profile --route-name route1 --https-redirect False + --origin-group og001 --supported-protocols Https --link-to-default-domain Enabled --forwarding-protocol MatchRequest + - name: Creates a route to assoicate the endpoint's default domain with an origin group for all requests and use the specified rule sets to customize the route behavior. + text: > + az afd route create -g group --endpoint-name endpoint1 --profile-name profile --route-name route1 --rule-sets ruleset1 rulseset2 + --origin-group og001 --supported-protocols Http Https --link-to-default-domain Enabled --forwarding-protocol MatchRequest --https-redirect False + - name: Creates a route to assoicate the endpoint's default domain and a custom domain with an origin group for all requests with the specified path patterns and redirect all trafic to use Https. + text: > + az afd route create -g group --endpoint-name endpoint1 --profile-name profile --route-name route1 --patterns-to-match /test1/* /tes2/* + --origin-group og001 --supported-protocols Http Https --custom-domains cd001 --forwarding-protocol MatchRequest --https-redirect True --link-to-default-domain Enabled +""" + +helps['afd route update'] = """ +type: command +short-summary: Update an existing route within the specified endpoint. +examples: + - name: Update a route to accept both Http and Https requests and redirect all trafic to use Https. + text: > + az afd route update -g group --endpoint-name endpoint1 --profile-name profile --route-name route1 + --supported-protocols Http Https --https-redirect True + - name: Update a route's rule sets settings to customize the route behavior. + text: > + az afd route update -g group --endpoint-name endpoint1 --profile-name profile --route-name route1 --rule-sets ruleset1 rulseset2 + - name: Update a route's compression settings to enable compression for the specified content types. + text: > + az afd route update -g group --endpoint-name endpoint1 --profile-name profile --route-name route1 --query-string-caching-behavior IgnoreQueryString + --enable-compression true --content-types-to-compress text/javascript text/plain +""" + +helps['afd security-policy'] = """ +type: group +short-summary: Manage security policies within the specified profile. +long-summary: > + Security policies could be used to apply a web application firewall policy to protect your web applications against OWASP top-10 vulnerabilities and + block malicious bots. +""" + +helps['afd security-policy create'] = """ +type: command +short-summary: Creates a new security policy within the specified profile. +examples: + - name: Creates a security policy to apply the specified WAF policy to an endpoint's default domain and a custom domain. + text: > + az afd security-policy create -g group --profile-name profile --security-policy-name sp1 --domains + /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1 + /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Cdn/profiles/profile1/customDomains/customDomain1 + --waf-policy + /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/waf1 +""" + +helps['afd security-policy update'] = """ +type: command +short-summary: Update an existing security policy within the specified profile. +examples: + - name: Update the specified security policy's domain list. + text: > + az afd security-policy update -g group --security-policy-name sp1 --profile-name profile --domains + /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Cdn/profiles/profile1/customDomains/customDomain1 +""" + +helps['afd route delete'] = """ +type: command +short-summary: Delete an existing route within the specified endpoint. +examples: + - name: Delete an route named route1. + text: > + az afd route delete -g group --profile-name profile --endpoint-name endpoint1 --route-name route1 +""" + +helps['afd secret'] = """ +type: group +short-summary: Manage secrets within the specified profile. +long-summary: > + Secrets are used to reference your own certificate stored in Azure Key Vault. + You must specifiy the secret name when creating custom domain if you want to use your own certificate for TLS encryption. +""" + +helps['afd secret create'] = """ +type: command +short-summary: Creates a new secret within the specified profile. +examples: + - name: Creates a secret using the specified certificate version. + text: > + az afd secret create -g group --profile-name profile --secret-name secret1 --secret-version version1 + --secret-source /subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.KeyVault/vaults/vault1/certificates/cert1 +""" + +helps['afd secret update'] = """ +type: command +short-summary: Update an existing secret within the specified profile. +examples: + - name: Update the specified secret to use the certificate's latest version. + text: > + az afd secret update -g group --profile-name profile --secret-name secret1 --use-latest-version +""" + +helps['afd route delete'] = """ +type: command +short-summary: Delete an existing route within the specified endpoint. +examples: + - name: Delete a route named route1. + text: > + az afd route delete -g group --profile-name profile --endpoint-name endpoint1 --route-name route1 +""" + +helps['afd route show'] = """ +type: command +short-summary: Show route details. +examples: + - name: show details of the route named route1. + text: > + az afd route show -g group --profile-name profile --endpoint-name endpoint1 --route-name route1 +""" + +helps['afd route list'] = """ +type: command +short-summary: List all the routes within the specified endpoint. +examples: + - name: List all the routes within the specified endpoint. + text: > + az afd route list -g group --profile-name profile --endpoint-name endpoint1 +""" + +helps['afd rule-set'] = """ +type: group +short-summary: Manage rule set for the specified profile. +long-summary: > + Rules Set allows you to customize how HTTP requests are handled at the edge and provides more controls of the behaviors of your web application. +""" + +helps['afd rule-set create'] = """ +type: command +short-summary: Creates a new rule set under the specified profile. +examples: + - name: Create a new rule set under the specified profile. + text: > + az afd rule-set create -g group --rule-set-name ruleset1 --profile-name profile +""" + +helps['afd rule-set delete'] = """ +type: command +short-summary: Delete the rule set. +examples: + - name: Delete a rule set with the name ruleset1. + text: > + az afd rule-set delete -g group --rule-set-name ruleset1 --profile-name profile +""" + +helps['afd rule'] = """ +type: group +short-summary: Manage delivery rules within the specified rule set. +""" + +helps['afd rule create'] = """ +type: command +short-summary: Creates a new delivery rule within the specified rule set. +examples: + - name: Create a rule to append a response header for requests from Thailand. + text: > + az afd rule create -g group --rule-set-name ruleset1 --profile-name profile --order 2 --match-variable RemoteAddress --operator GeoMatch --match-values TH + --rule-name disablecahing --action-name ModifyResponseHeader --header-action Append --header-name X-CDN --header-value AFDX + - name: Create a rule for http to https redirect + text: > + az afd rule create -g group --rule-set-name ruleset1 --profile-name profile --order 1 + --rule-name "redirect" --match-variable RequestScheme --operator Equal --match-values HTTP + --action-name "UrlRedirect" --redirect-protocol Https --redirect-type Moved +""" + +helps['afd rule delete'] = """ +type: command +short-summary: Remove a delivery rule from rule set. +examples: + - name: Remove a rule with name rule1. + text: > + az afd rule delete -g group --rule-set-name ruleSetName --profile-name profile --rule-name rule1 +""" + +helps['afd rule show'] = """ +type: command +short-summary: Show delivery rule details. +examples: + - name: show details of the delivery rule with name rule1. + text: > + az afd rule show -g group --rule-set-name ruleSetName --profile-name profile --rule-name rule1 +""" + +helps['afd rule condition'] = """ +type: group +short-summary: Manage delivery rule conditions for a rule. +""" + +helps['afd rule condition add'] = """ +type: command +short-summary: Add a condition to a delivery rule. +examples: + - name: Add a remote address condition. + text: > + az afd rule condition add -g group --rule-set-name ruleSetName --profile-name profile --rule-name name + --match-variable RemoteAddress --operator GeoMatch --match-values "TH" +""" + +helps['afd rule condition remove'] = """ +type: command +short-summary: Remove a condition from a delivery rule. +examples: + - name: Remove the first condition. + text: > + az afd rule condition remove -g group --rule-set-name ruleSetName --profile-name profile --rule-name name + --index 0 +""" + +helps['afd rule condition list'] = """ +type: command +short-summary: show condtions asscociated with the rule. +examples: + - name: show condtions asscociated with the rule. + text: > + az afd rule condition list -g group --rule-set-name ruleSetName --profile-name profile --rule-name name +""" + +helps['afd rule action'] = """ +type: group +short-summary: Manage delivery rule actions for a rule. +""" + +helps['afd rule action add'] = """ +type: command +short-summary: Add an action to a delivery rule. +examples: + - name: Add a redirect action. + text: > + az afd rule action add --rule-set-name ruleSetName --profile-name profile --rule-name name + --action-name "UrlRedirect" --redirect-protocol HTTPS --redirect-type Moved + - name: Add a cache expiration action + text: > + az afd rule action add --rule-set-name ruleSetName --profile-name profile --rule-name name + --action-name "CacheExpiration" --cache-behavior BypassCache +""" + +helps['afd rule action remove'] = """ +type: command +short-summary: Remove an action from a delivery rule. +examples: + - name: Remove the first action. + text: > + az afd rule action remove -g group --rule-set-name ruleSetName --profile-name profile --rule-name name + --index 0 +""" + +helps['afd rule action list'] = """ +type: command +short-summary: show actions asscociated with the rule. +examples: + - name: show actions asscociated with the rule. + text: > + az afd rule action list -g group --rule-set-name ruleSetName --profile-name profile --rule-name name +""" + +helps['afd log-analytic location'] = """ +type: group +short-summary: Manage available location names for AFD log analysis. +""" + +helps['afd log-analytic metric'] = """ +type: group +short-summary: Manage metric statistics for AFD profile. +""" + +helps['afd log-analytic ranking'] = """ +type: group +short-summary: Manage ranking statistics for AFD profile. +""" + +helps['afd log-analytic resource'] = """ +type: group +short-summary: Manage endpoints and custom domains available for AFD log analysis. +""" + +helps['afd waf-log-analytic metric'] = """ +type: group +short-summary: Manage WAF related metric statistics for AFD profile. +""" + +helps['afd waf-log-analytic ranking'] = """ +type: group +short-summary: Manage WAF related ranking statistics for AFD profile. +""" 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 fabee3ea98a..68dc2a09df3 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/_params.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/_params.py @@ -4,7 +4,10 @@ # -------------------------------------------------------------------------------------------- from knack.arguments import CLIArgumentType -from azure.mgmt.cdn.models import QueryStringCachingBehavior, SkuName, ActionType +from azure.mgmt.cdn.models import (QueryStringCachingBehavior, SkuName, ActionType, EnabledState, HttpsRedirect, + HealthProbeRequestType, ProbeProtocol, MatchProcessingBehavior, DeliveryRuleAction, + AFDEndpointProtocols, ForwardingProtocol, LinkToDefaultDomain, DeliveryRuleCondition, + AfdCertificateType, AfdMinimumTlsVersion) from azure.cli.core.commands.parameters import get_three_state_flag, tags_type, get_enum_type from azure.cli.core.commands.validators import get_default_location_from_resource_group @@ -18,6 +21,13 @@ def load_arguments(self, _): name_arg_type = CLIArgumentType(options_list=('--name', '-n'), metavar='NAME') endpoint_name_type = CLIArgumentType(options_list=('--endpoint-name'), metavar='ENDPOINT_NAME') + origin_group_name_type = CLIArgumentType(options_list=('--origin-group-name'), metavar='ORIGIN_GROUP_NAME') + rule_set_name_type = CLIArgumentType(options_list=('--rule-set-name'), metavar='RULE_SET_NAME') + route_name_type = CLIArgumentType(options_list=('--route-name'), metavar='ROUTE_NAME') + rule_name_type = CLIArgumentType(options_list=('--rule-name'), metavar='RULE_NAME') + custom_name_arg_type = CLIArgumentType(options_list=('--custom-domain-name'), metavar='CUSTOM_DOMAIN_NAME') + secret_name_arg_type = CLIArgumentType(options_list=('--secret-name'), metavar='SECRET_NAME') + origin_name_type = CLIArgumentType(options_list=('--origin-name'), metavar='ORIGIN_NAME') profile_name_help = 'Name of the CDN profile which is unique within the resource group.' with self.argument_context('cdn') as c: @@ -29,7 +39,10 @@ def load_arguments(self, _): c.argument('profile_name', name_arg_type, id_part='name', help=profile_name_help) with self.argument_context('cdn profile create') as c: - c.argument('sku', arg_type=get_enum_type([item.value for item in list(SkuName)])) + # Remove Stardard/Premium Front Door from old cdn profile's supported SKU list + supported_skus = [item.value for item in list(SkuName) if item.value not in + (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door)] + c.argument('sku', arg_type=get_enum_type(supported_skus)) c.argument('location', validator=get_default_location_from_resource_group) c.argument('name', name_arg_type, id_part='name', help=profile_name_help) @@ -66,58 +79,7 @@ def load_arguments(self, _): c.argument('content_types_to_compress', nargs='+') with self.argument_context('cdn endpoint rule') as c: - c.argument('rule_name', help='Name of the rule.') - c.argument('order', help='The order of the rule. The order number must start from 0 and consecutive.\ - Rule with higher order will be applied later.') - c.argument('match_variable', arg_group="Match Condition", help='Name of the match condition.') - c.argument('operator', arg_group="Match Condition", help='Operator of the match condition.') - c.argument('selector', arg_group="Match Condition", help='Selector of the match condition.') - c.argument('match_values', arg_group="Match Condition", nargs='+', - help='Match values of the match condition (comma separated).') - c.argument('transform', arg_group="Match Condition", arg_type=get_enum_type(['Lowercase', 'Uppercase']), - nargs='+', help='Transform to apply before matching.') - c.argument('negate_condition', arg_group="Match Condition", arg_type=get_three_state_flag(), - help='If true, negates the condition') - c.argument('action_name', arg_group="Action", help='Name of the action.') - c.argument('cache_behavior', arg_group="Action", - arg_type=get_enum_type(['BypassCache', 'Override', 'SetIfMissing']), - help='Caching behavior for the requests.') - c.argument('cache_duration', arg_group="Action", - help='The duration for which the content needs to be cached. \ - Allowed format is [d.]hh:mm:ss.') - c.argument('header_action', arg_group="Action", - arg_type=get_enum_type(['Append', 'Overwrite', 'Delete']), - help='Header action for the requests.') - c.argument('header_name', arg_group="Action", help='Name of the header to modify.') - c.argument('header_value', arg_group="Action", help='Value of the header.') - c.argument('redirect_type', arg_group="Action", - arg_type=get_enum_type(['Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect']), - help='The redirect type the rule will use when redirecting traffic.') - c.argument('redirect_protocol', arg_group="Action", - arg_type=get_enum_type(['MatchRequest', 'Http', 'Https']), - help='Protocol to use for the redirect.') - c.argument('custom_hostname', arg_group="Action", help='Host to redirect. \ - Leave empty to use the incoming host as the destination host.') - c.argument('custom_path', arg_group="Action", - help='The full path to redirect. Path cannot be empty and must start with /. \ - Leave empty to use the incoming path as destination path.') - c.argument('custom_querystring', arg_group="Action", - help='The set of query strings to be placed in the redirect URL. \ - leave empty to preserve the incoming query string.') - c.argument('custom_fragment', arg_group="Action", help='Fragment to add to the redirect URL.') - c.argument('query_string_behavior', arg_group="Action", - arg_type=get_enum_type(['Include', 'IncludeAll', 'Exclude', 'ExcludeAll']), - help='Query string behavior for the requests.') - c.argument('query_parameters', arg_group="Action", - help='Query parameters to include or exclude (comma separated).') - c.argument('source_pattern', arg_group="Action", - help='A request URI pattern that identifies the type of requests that may be rewritten.') - c.argument('destination', help='The destination path to be used in the rewrite.') - c.argument('preserve_unmatched_path', arg_group="Action", - arg_type=get_three_state_flag(), - help='If True, the remaining path after the source \ - pattern will be appended to the new destination path.') - c.argument('index', type=int, help='The index of the condition/action') + configure_rule_parameters(c) with self.argument_context('cdn endpoint create') as c: c.argument('name', name_arg_type, id_part='name', help='Name of the CDN endpoint.') @@ -262,3 +224,333 @@ def load_arguments(self, _): c.argument('action', arg_type=get_enum_type([item.value for item in list(ActionType)])) c.argument('request_threshold', type=int) c.argument('duration', type=int) + + # AFDX + with self.argument_context('afd') as c: + c.argument('tags', tags_type) + + # AFD Profiles + with self.argument_context('afd profile') as c: + c.argument('sku', + arg_type=get_enum_type([SkuName.standard_azure_front_door, SkuName.premium_azure_front_door]), + help="The pricing tier of the AFD profile.") + c.argument('profile_name', help=profile_name_help, id_part='name') + + # AFD endpoint # + with self.argument_context('afd endpoint') as c: + c.argument('origin_response_timeout_seconds', type=int, + options_list=["--origin-response-timeout-seconds"], + help="Send and receive timeout on forwarding request to the origin. " + "When timeout is reached, the request fails and returns.") + c.argument('profile_name', help=profile_name_help, id_part='name') + c.argument('enabled_state', arg_type=get_enum_type(EnabledState), + options_list=["--enabled-state"], + help="Whether to enable this endpoint.") + c.argument('endpoint_name', endpoint_name_type, id_part='child_name_1', + help='Name of the endpoint under the profile which is unique globally.') + c.argument('content_paths', nargs='+', + help="The path to the content to be purged. Can describe a file path or a wildcard directory.") + c.argument('domains', nargs='+', help='List of domains.') + + with self.argument_context('afd endpoint list') as c: + c.argument('profile_name', id_part=None) + + # AFD Origin Group # + with self.argument_context('afd origin-group') as c: + c.argument('origin_group_name', origin_group_name_type, id_part='child_name_1', + help='Name of the origin group.') + c.argument('profile_name', help=profile_name_help, id_part='name') + + # health probe related paramters + c.argument('probe_request_type', arg_type=get_enum_type(HealthProbeRequestType), + help='The type of health probe request that is made.') + c.argument('probe_protocol', arg_type=get_enum_type(ProbeProtocol), + help='Protocol to use for health probe.') + c.argument('probe_interval_in_seconds', type=int, + help='The number of seconds between health probes.') + c.argument('probe_path', + help="The path relative to the origin that is used to determine the health of the origin.") + + # load balancing related parameters + c.argument('load_balancing_sample_size', type=int, + options_list='--sample-size', + arg_group="Load Balancing", + help="The number of samples to consider for load balancing decisions.") + c.argument('load_balancing_successful_samples_required', type=int, + options_list='--successful-samples-required', + arg_group="Load Balancing", + help="The number of samples within the sample period that must succeed.") + c.argument('load_balancing_additional_latency_in_milliseconds', type=int, + options_list='--additional-latency-in-milliseconds', + arg_group="Load Balancing", + help="The additional latency in milliseconds for probes to fall into the lowest latency bucket.") + + with self.argument_context('afd origin-group list') as c: + c.argument('origin_group_name', id_part=None) + c.argument('profile_name', id_part=None) + + # AFD Origin # + with self.argument_context('afd origin') as c: + c.argument('origin_name', origin_name_type, id_part='child_name_2', help='Name of the origin.') + c.argument('profile_name', help=profile_name_help, id_part='name') + c.argument('origin_group_name', origin_group_name_type, id_part='child_name_1', + help='Name of the origin group which is unique within the endpoint.') + c.argument('host_name', + help="The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported." + "This should be unique across all origins in a origin group.") + c.argument('origin_host_header', + help="The Host header to send for requests to this origin. If you leave this blank, " + "the request hostname determines this value. " + "Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services " + "require this host header value to match the origin hostname by default.") + c.argument('http_port', type=int, help="The port used for http requests to the origin.") + c.argument('https_port', type=int, help="The port used for https requests to the origin.") + c.argument('enabled_state', arg_type=get_enum_type(EnabledState), + help="Whether to enable this origin.") + c.argument('priority', type=int, + help="Priority of origin in given origin group for load balancing. Higher priorities will not be " + "used for load balancing if any lower priority origin is healthy. Must be between 1 and 5.") + c.argument('weight', type=int, + help="Weight of the origin in given origin group for load balancing. Must be between 1 and 1000.") + c.argument('enable_private_link', arg_type=get_three_state_flag(invert=False), + help='Indicates whether private link is enanbled on that origin.') + c.argument('private_link_resource', + help="The resource ID of the origin that will be connected to using the private link.") + c.argument('private_link_location', + help="The location of origin that will be connected to using the private link.") + c.argument( + 'private_link_sub_resource_type', + help="The sub-resource type of the origin that will be connected to using the private link." + 'You can use "az network private-link-resource list" to obtain the supported sub-resource types.') + c.argument('private_link_request_message', + help="The message that is shown to the approver of the private link request.") + + with self.argument_context('afd origin list') as c: + c.argument('profile_name', id_part=None) + c.argument('origin_group_name', id_part=None) + + # AFD Route # + with self.argument_context('afd route') as c: + c.argument('route_name', route_name_type, id_part='child_name_2', help='Name of the route.') + c.argument('profile_name', help=profile_name_help, id_part='name') + c.argument('endpoint_name', endpoint_name_type, id_part='child_name_1', help='Name of the endpoint.') + c.argument('origin_group', help='Name or ID of the origin group to be associated with.') + c.argument('patterns_to_match', nargs='+', help='The route patterns of the rule.') + c.argument('origin_path', + help='A directory path on the origin that AFD can use to retrieve content from. E.g, "/img/*"') + c.argument('custom_domains', nargs='*', help='Custom domains referenced by this endpoint.') + c.argument('supported_protocols', nargs='+', + arg_type=get_enum_type(AFDEndpointProtocols), + help="List of supported protocols for this route.") + c.argument('link_to_default_domain', + arg_type=get_enum_type(LinkToDefaultDomain), + help="Whether this route will be linked to the default endpoint domain.") + c.argument('forwarding_protocol', + arg_type=get_enum_type(ForwardingProtocol), + help="Protocol this rule will use when forwarding traffic to backends.") + c.argument('https_redirect', + arg_type=get_enum_type(HttpsRedirect), + help='Whether to automatically redirect HTTP traffic to HTTPS traffic.') + c.argument('rule_sets', nargs='*', help='Collection of ID or name of rule set referenced by the route.') + c.argument('content_types_to_compress', nargs='+', + help='List of content types on which compression applies. The value should be a valid MIME type.') + c.argument('query_string_caching_behavior', + arg_type=get_enum_type(QueryStringCachingBehavior), + help="Defines how CDN caches requests that include query strings. " + "You can ignore any query strings when caching, " + "bypass caching to prevent requests that contain query strings from being cached, " + "or cache every request with a unique URL.") + c.argument( + 'is_compression_enabled', + arg_type=get_three_state_flag(), + options_list='--enable-compression', + help='Indicates whether content compression is enabled on AzureFrontDoor. Default value is false. ' + 'If compression is enabled, content will be served as compressed if user requests for a ' + "compressed version. Content won't be compressed on AzureFrontDoor when requested content is " + 'smaller than 1 byte or larger than 1 MB.') + + with self.argument_context('afd route list') as c: + c.argument('profile_name', id_part=None) + c.argument('endpoint_name', id_part=None) + + # AFD RuleSets # + with self.argument_context('afd rule-set') as c: + c.argument('rule_set_name', rule_set_name_type, id_part='child_name_1', help='Name of the rule set.') + c.argument('profile_name', help=profile_name_help, id_part='name') + + with self.argument_context('afd rule-set list') as c: + c.argument('profile_name', id_part=None) + + # AFD Rules # + with self.argument_context('afd rule') as c: + c.argument('profile_name', help=profile_name_help, id_part='name') + c.argument('rule_set_name', id_part='child_name_1', help='Name of the rule set.') + configure_rule_parameters(c) + c.argument('rule_name', rule_name_type, id_part='child_name_2', help='Name of the rule.') + c.argument('match_processing_behavior', + arg_type=get_enum_type(MatchProcessingBehavior), + help='Indicate whether rules engine should continue to run the remaining rules or stop if matched.' + ' Defaults to Continue.') + + with self.argument_context('afd rule list') as c: + c.argument('profile_name', id_part=None) + c.argument('rule_set_name', id_part=None) + + with self.argument_context('afd rule condition list') as c: + c.argument('profile_name', id_part=None) + c.argument('rule_set_name', id_part=None) + c.argument('rule_name', id_part=None) + + with self.argument_context('afd rule action list') as c: + c.argument('profile_name', id_part=None) + c.argument('rule_set_name', id_part=None) + c.argument('rule_name', id_part=None) + + # AFD Security Policy # + with self.argument_context('afd security-policy') as c: + c.argument('profile_name', help=profile_name_help, id_part='name') + c.argument('security_policy_name', id_part='child_name_1', help='Name of the security policy.') + c.argument('waf_policy', help='The ID of Front Door WAF policy.') + c.argument( + 'domains', + nargs='+', + help='The domains to associate with the WAF policy. Could either be the ID of an endpoint' + ' (default domain will be used in that case) or ID of a custom domain.') + + with self.argument_context('afd security-policy list') as c: + c.argument('profile_name', id_part=None) + c.argument('security_policy_name', id_part=None) + + # AFD Custom Domain # + with self.argument_context('afd custom-domain') as c: + c.argument('profile_name', help=profile_name_help, id_part='name') + c.argument('custom_domain_name', custom_name_arg_type, id_part="child_name_1", + help='Name of the custom domain.') + c.argument('certificate_type', arg_type=get_enum_type(AfdCertificateType), + help='Defines the source of the SSL certificate.') + c.argument('minimum_tls_version', arg_type=get_enum_type(AfdMinimumTlsVersion), + help='TLS protocol version that will be used for Https.') + c.argument('host_name', help='The host name of the domain. Must be a domain name.') + c.argument('azure_dns_zone', help='ID of the Azure DNS zone.') + c.argument('secret', help='ID of the Azure key vault certificate.') + + with self.argument_context('afd custom-domain list') as c: + c.argument('profile_name', id_part=None) + c.argument('custom_domain_name', custom_name_arg_type, id_part=None, help='Name of the custom domain.') + + # AFD Secret # + with self.argument_context('afd secret') as c: + c.argument('profile_name', help=profile_name_help, id_part='name') + c.argument('secret_name', secret_name_arg_type, id_part="child_name_1", help='Name of the custom domain.') + c.argument('use_latest_version', arg_type=get_three_state_flag(), + help="Whether to use the latest version for the certificate.") + c.argument('secret_source', help='ID of the Azure key vault certificate.') + c.argument('secret_version', help='Version of the certificate to be used.') + + with self.argument_context('afd secret list') as c: + c.argument('profile_name', id_part=None) + c.argument('secret_name', id_part=None) + + # AFD Log Analytic # + with self.argument_context('afd log-analytic') as c: + c.argument('group_by', nargs='+', + arg_type=get_enum_type(["httpStatusCode", "protocol", "cacheStatus", "country", "customDomain"]), + help="Aggregate demensions.") + c.argument('continents', nargs='+', help="ISO 3316-1 alpha-2 continent code.") + c.argument('country_or_regions', nargs='+', help="ISO 3316-1 alpha-2 region code.") + c.argument('custom_domains', nargs='+', help="The domains to be included.") + c.argument('protocols', nargs='+', help="The protocols to be included.") + configure_log_analytic_common_parameters(c) + + with self.argument_context('afd log-analytic metric') as c: + c.argument('metrics', nargs='+', + arg_type=get_enum_type(["clientRequestCount", "clientRequestTraffic", "clientRequestBandwidth", + "originRequestTraffic", "originRequestBandwidth", "totalLatency"]), + help="Metric types to include.") + + with self.argument_context('afd log-analytic ranking') as c: + c.argument('metrics', nargs='+', + arg_type=get_enum_type(["clientRequestCount", "clientRequestTraffic", + "hitCount", "missCount", "userErrorCount", "errorCount"]), + help="Metric types to include.") + c.argument('rankings', nargs='+', help="The dimemsions to be included for ranking.", + arg_type=get_enum_type(["url", "referrer", "browser", "userAgent", "countryOrRegion"])) + + with self.argument_context('afd waf-log-analytic') as c: + c.argument('metrics', nargs='+', arg_type=get_enum_type(["clientRequestCount"]), + help="Metric types to be included.") + c.argument('group_by', nargs='+', arg_type=get_enum_type(["httpStatusCode", "customDomain"]), + help="Aggregate demensions.") + c.argument('actions', nargs='+', help="The WAF actions to be included.", + arg_type=get_enum_type(["allow", "block", "log", "redirect"])) + c.argument('rule_types', nargs='+', help="The WAF rule types to be included.", + arg_type=get_enum_type(["managed", "custom", "bot"])) + c.argument('rankings', nargs='+', help="The dimemsions to be included for ranking.", + arg_type=get_enum_type(["action", "ruleGroup", "ruleId", "userAgent", + "clientIp", "url", "country", "ruleType"])) + configure_log_analytic_common_parameters(c) + + +def configure_log_analytic_common_parameters(c): + c.argument('granularity', help="The interval granularity.", arg_type=get_enum_type(["PT5M", "PT1H", "P1D"])) + c.argument('date_time_begin', help="The start datetime.") + c.argument('date_time_end', help="The end datetime.") + c.argument('max_ranking', help="The maximum number of rows to return based on the ranking.") + + +# 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('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.') + c.argument('selector', arg_group="Match Condition", help='Selector of the match condition.') + c.argument('match_values', arg_group="Match Condition", nargs='+', + help='Match values of the match condition (comma separated).') + c.argument('transform', arg_group="Match Condition", arg_type=get_enum_type(['Lowercase', 'Uppercase']), + nargs='+', help='Transform to apply before matching.') + c.argument('negate_condition', arg_group="Match Condition", arg_type=get_three_state_flag(), + help='If true, negates the condition') + actions = ["RequestHeader", "ResponseHeader"].extend(DeliveryRuleAction._subtype_map["name"].keys()) + c.argument('action_name', arg_group="Action", help='Name of the action.', arg_type=get_enum_type(actions)) + c.argument('cache_behavior', arg_group="Action", + arg_type=get_enum_type(['BypassCache', 'Override', 'SetIfMissing']), + help='Caching behavior for the requests.') + c.argument('cache_duration', arg_group="Action", + help='The duration for which the content needs to be cached. \ + Allowed format is [d.]hh:mm:ss.') + c.argument('header_action', arg_group="Action", + arg_type=get_enum_type(['Append', 'Overwrite', 'Delete']), + help='Header action for the requests.') + c.argument('header_name', arg_group="Action", help='Name of the header to modify.') + c.argument('header_value', arg_group="Action", help='Value of the header.') + c.argument('redirect_type', arg_group="Action", + arg_type=get_enum_type(['Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect']), + help='The redirect type the rule will use when redirecting traffic.') + c.argument('redirect_protocol', arg_group="Action", + arg_type=get_enum_type(['MatchRequest', 'Http', 'Https']), + help='Protocol to use for the redirect.') + c.argument('custom_hostname', arg_group="Action", help='Host to redirect. \ + Leave empty to use the incoming host as the destination host.') + c.argument('custom_path', arg_group="Action", + help='The full path to redirect. Path cannot be empty and must start with /. \ + Leave empty to use the incoming path as destination path.') + c.argument('custom_querystring', arg_group="Action", + help='The set of query strings to be placed in the redirect URL. \ + leave empty to preserve the incoming query string.') + c.argument('custom_fragment', arg_group="Action", help='Fragment to add to the redirect URL.') + c.argument('query_string_behavior', arg_group="Action", + arg_type=get_enum_type(['Include', 'IncludeAll', 'Exclude', 'ExcludeAll']), + help='Query string behavior for the requests.') + c.argument('query_parameters', arg_group="Action", + help='Query parameters to include or exclude (comma separated).') + c.argument('source_pattern', arg_group="Action", + help='A request URI pattern that identifies the type of requests that may be rewritten.') + c.argument('destination', help='The destination path to be used in the rewrite.') + c.argument('preserve_unmatched_path', arg_group="Action", + arg_type=get_three_state_flag(), + help='If True, the remaining path after the source \ + pattern will be appended to the new destination path.') + c.argument('index', type=int, help='The index of the condition/action') diff --git a/src/azure-cli/azure/cli/command_modules/cdn/commands.py b/src/azure-cli/azure/cli/command_modules/cdn/commands.py index 0eab3f9a3db..50b2749df53 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/commands.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/commands.py @@ -8,7 +8,10 @@ from azure.cli.core.commands import CliCommandType from ._client_factory import (cf_cdn, cf_custom_domain, cf_endpoints, cf_profiles, cf_origins, cf_resource_usage, - cf_edge_nodes, cf_waf_policy, cf_waf_rule_set, cf_origin_groups) + cf_edge_nodes, cf_waf_policy, cf_waf_rule_set, cf_origin_groups, cf_afd_endpoints, + cf_afd_origins, cf_afd_routes, cf_afd_rule_sets, cf_afd_rules, cf_afd_security_policies, + cf_afd_secrets, cf_afd_log_analytics, cf_afd_origin_groups, cf_afd_custom_domain, + cf_afd_profiles) def _not_found(message): @@ -22,18 +25,33 @@ def _inner_not_found(ex): return _inner_not_found +def get_custom_sdk(client_factory, exception_handler): + return CliCommandType( + operations_tmpl='azure.cli.command_modules.cdn.custom#custom_afdx.{}', + client_factory=client_factory, + exception_handler=exception_handler + ) + + _not_found_msg = "{}(s) not found. Please verify the resource(s), group or it's parent resources " \ "exist." # pylint: disable=too-many-statements +# pylint: disable=too-many-locals def load_command_table(self, _): profile_not_found_msg = _not_found_msg.format('Profile') endpoint_not_found_msg = _not_found_msg.format('Endpoint') cd_not_found_msg = _not_found_msg.format('Custom Domain') origin_not_found_msg = _not_found_msg.format('Origin') - origin_not_found_msg = _not_found_msg.format('Origin Group') + origin_group_not_found_msg = _not_found_msg.format('Origin Group') waf_policy_not_found_msg = _not_found_msg.format('WAF Policy') + route_not_found_msg = _not_found_msg.format('Route') + rule_set_not_found_msg = _not_found_msg.format('Rule Set') + rule_not_found_msg = _not_found_msg.format('Rule') + security_policy_not_found_msg = _not_found_msg.format('Security Policy') + secret_not_found_msg = _not_found_msg.format('Secret') + log_analytic_not_found_msg = _not_found_msg.format('Log Analytic') cdn_sdk = CliCommandType( operations_tmpl='azure.mgmt.cdn#CdnManagementClient.{}', @@ -67,7 +85,7 @@ def load_command_table(self, _): cdn_origin_group_sdk = CliCommandType( operations_tmpl='azure.mgmt.cdn.operations#OriginGroupsOperations.{}', client_factory=cf_origin_groups, - exception_handler=_not_found(origin_not_found_msg) + exception_handler=_not_found(origin_group_not_found_msg) ) cdn_edge_sdk = CliCommandType( @@ -86,6 +104,66 @@ def load_command_table(self, _): exception_handler=_not_found(waf_policy_not_found_msg) ) + cdn_afd_endpoints_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#AFDEndpointsOperations.{}', + client_factory=cf_afd_endpoints, + exception_handler=_not_found(endpoint_not_found_msg) + ) + + cdn_afd_origin_group_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#AFDOriginGroupsOperations.{}', + client_factory=cf_afd_origin_groups, + exception_handler=_not_found(origin_group_not_found_msg) + ) + + cdn_afd_origin_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#AFDOriginsOperations.{}', + client_factory=cf_afd_origins, + exception_handler=_not_found(origin_not_found_msg) + ) + + cdn_afd_route_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#RoutesOperations.{}', + client_factory=cf_afd_routes, + exception_handler=_not_found(route_not_found_msg) + ) + + cdn_afd_rule_set_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#RuleSetsOperations.{}', + client_factory=cf_afd_rule_sets, + exception_handler=_not_found(rule_set_not_found_msg) + ) + + cdn_afd_rule_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#RulesOperations.{}', + client_factory=cf_afd_rules, + exception_handler=_not_found(rule_not_found_msg) + ) + + cdn_afd_security_policy_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#SecurityPoliciesOperations.{}', + client_factory=cf_afd_security_policies, + exception_handler=_not_found(security_policy_not_found_msg) + ) + + cdn_afd_domain_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#AFDCustomDomainsOperations.{}', + client_factory=cf_afd_custom_domain, + exception_handler=_not_found(cd_not_found_msg) + ) + + cdn_afd_secret_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#SecretsOperations.{}', + client_factory=cf_afd_secrets, + exception_handler=_not_found(secret_not_found_msg) + ) + + cdn_afd_log_analytic_sdk = CliCommandType( + operations_tmpl='azure.mgmt.cdn.operations#LogAnalyticsOperations.{}', + client_factory=cf_afd_log_analytics, + exception_handler=_not_found(log_analytic_not_found_msg) + ) + with self.command_group('cdn', cdn_sdk) as g: g.command('name-exists', 'check_name_availability') @@ -135,9 +213,9 @@ def load_command_table(self, _): doc_string_source='azure.mgmt.cdn.models#Endpoint') with self.command_group('cdn profile', cdn_profiles_sdk) as g: - g.show_command('show', 'get') + g.custom_show_command('show', 'get_profile', client_factory=cf_cdn) g.command('usage', 'list_resource_usage') - g.command('delete', 'delete') + g.custom_command('delete', 'delete_profile', client_factory=cf_cdn) g.custom_command('list', 'list_profiles', client_factory=cf_cdn) g.custom_command('create', 'create_profile', client_factory=cf_cdn) g.generic_update_command('update', setter_name='update', custom_func_name='update_profile', @@ -207,3 +285,126 @@ def load_command_table(self, _): g.custom_command('delete', 'delete_waf_rate_limit_rule', client_factory=cf_waf_policy, confirmation=True) g.custom_command('list', 'list_waf_rate_limit_rules', client_factory=cf_waf_policy) g.custom_show_command('show', 'show_waf_rate_limit_rule', client_factory=cf_waf_policy) + + with self.command_group('afd', is_preview=True): + pass + + with self.command_group('afd profile', cdn_profiles_sdk, + custom_command_type=get_custom_sdk(cf_profiles, _not_found(profile_not_found_msg))) as g: + g.custom_show_command('show', 'get_afd_profile') + g.custom_command('delete', 'delete_afd_profile') + g.custom_command('update', 'update_afd_profile') + g.custom_command('list', 'list_afd_profiles') + g.custom_command('create', 'create_afd_profile') + g.custom_command('usage', 'list_resource_usage', client_factory=cf_afd_profiles) + + with self.command_group('afd endpoint', cdn_afd_endpoints_sdk, + client_factory=cf_afd_endpoints) as g: + g.show_command('show', 'get') + g.command('list', 'list_by_profile') + g.command('purge', 'purge_content', supports_no_wait=True) + g.command('delete', 'delete', confirmation=True) + + g.custom_command('update', 'update_afd_endpoint') + g.custom_command('create', 'create_afd_endpoint', + doc_string_source='azure.mgmt.cdn.models#AFDEndpoint') + + with self.command_group('afd origin-group', cdn_afd_origin_group_sdk, + client_factory=cf_afd_origin_groups) as g: + g.show_command('show', 'get') + g.command('list', 'list_by_profile') + g.custom_command('create', 'create_afd_origin_group') + g.custom_command('update', 'update_afd_origin_group') + g.command('delete', 'delete', confirmation=True) + + with self.command_group('afd origin', cdn_afd_origin_sdk, + client_factory=cf_afd_origins) as g: + g.show_command('show', 'get') + g.command('list', 'list_by_origin_group') + g.custom_command('create', 'create_afd_origin') + g.custom_command('update', 'update_afd_origin') + g.command('delete', 'delete', confirmation=True) + + with self.command_group('afd route', cdn_afd_route_sdk, + client_factory=cf_afd_routes) as g: + g.show_command('show', 'get') + g.command('list', 'list_by_endpoint') + g.custom_command('create', 'create_afd_route') + g.custom_command('update', 'update_afd_route') + g.command('delete', 'delete', confirmation=True) + + with self.command_group('afd rule-set', cdn_afd_rule_set_sdk, + client_factory=cf_afd_rule_sets) as g: + g.show_command('show', 'get') + g.command('list', 'list_by_profile') + g.custom_command('create', 'create_afd_rule_set') + g.command('delete', 'delete', confirmation=True) + + with self.command_group('afd rule', cdn_afd_rule_sdk, + client_factory=cf_afd_rules) as g: + g.show_command('show', 'get') + g.command('list', 'list_by_rule_set') + g.custom_command('create', 'create_afd_rule') + g.command('delete', 'delete', confirmation=True) + + with self.command_group('afd rule condition', + cdn_afd_rule_sdk, + custom_command_type=get_custom_sdk(cf_afd_rules, _not_found(rule_not_found_msg))) as g: + g.custom_command('add', 'add_afd_rule_condition', + doc_string_source='azure.mgmt.cdn.models#Rule') + g.custom_command('remove', 'remove_afd_rule_condition', + doc_string_source='azure.mgmt.cdn.models#Rule') + g.custom_command('list', 'list_afd_rule_condition') + + with self.command_group('afd rule action', + cdn_afd_rule_sdk, + custom_command_type=get_custom_sdk(cf_afd_rules, _not_found(rule_not_found_msg))) as g: + g.custom_command('add', 'add_afd_rule_action', + doc_string_source='azure.mgmt.cdn.models#Rule') + g.custom_command('remove', 'remove_afd_rule_action', + doc_string_source='azure.mgmt.cdn.models#Rule') + g.custom_command('list', 'list_afd_rule_action') + + with self.command_group('afd security-policy', cdn_afd_security_policy_sdk, + client_factory=cf_afd_security_policies) as g: + g.show_command('show', 'get') + g.command('list', 'list_by_profile') + g.custom_command('create', 'create_afd_security_policy') + g.custom_command('update', 'update_afd_security_policy') + g.command('delete', 'delete', confirmation=True) + + with self.command_group('afd custom-domain', cdn_afd_domain_sdk, + client_factory=cf_afd_custom_domain) as g: + g.show_command('show', 'get') + g.wait_command('wait') + g.command('delete', 'delete', confirmation=True) + g.command('list', 'list_by_profile') + g.custom_command('create', 'create_afd_custom_domain', + supports_no_wait=True) + g.custom_command('update', 'update_afd_custom_domain') + + with self.command_group('afd secret', cdn_afd_secret_sdk, + client_factory=cf_afd_secrets) as g: + g.show_command('show', 'get') + g.command('delete', 'delete', confirmation=True) + g.command('list', 'list_by_profile') + g.custom_command('create', 'create_afd_secret') + g.custom_command('update', 'update_afd_secret') + + with self.command_group('afd log-analytic metric', cdn_afd_log_analytic_sdk) as g: + g.command('list', 'get_log_analytics_metrics') + + with self.command_group('afd log-analytic ranking', cdn_afd_log_analytic_sdk) as g: + g.command('list', 'get_log_analytics_rankings') + + with self.command_group('afd log-analytic location', cdn_afd_log_analytic_sdk) as g: + g.command('list', 'get_log_analytics_locations') + + with self.command_group('afd log-analytic resource', cdn_afd_log_analytic_sdk) as g: + g.command('list', 'get_log_analytics_resources') + + with self.command_group('afd waf-log-analytic metric', cdn_afd_log_analytic_sdk) as g: + g.command('list', 'get_waf_log_analytics_metrics') + + with self.command_group('afd waf-log-analytic ranking', cdn_afd_log_analytic_sdk) as g: + g.command('list', 'get_waf_log_analytics_rankings') diff --git a/src/azure-cli/azure/cli/command_modules/cdn/custom/__init__.py b/src/azure-cli/azure/cli/command_modules/cdn/custom/__init__.py index 342631e36ea..83b82147905 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/custom/__init__.py +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom/__init__.py @@ -5,6 +5,8 @@ from .custom import default_content_types # pylint: disable=unused-import from .custom import list_profiles # pylint: disable=unused-import +from .custom import get_profile # pylint: disable=unused-import +from .custom import delete_profile # pylint: disable=unused-import from .custom import update_endpoint # pylint: disable=unused-import from .custom import create_condition # pylint: disable=unused-import from .custom import create_action # pylint: disable=unused-import @@ -46,3 +48,32 @@ from .custom_waf import delete_waf_rate_limit_rule # pylint: disable=unused-import from .custom_waf import show_waf_rate_limit_rule # pylint: disable=unused-import from .custom_waf import list_waf_rate_limit_rules # pylint: disable=unused-import + +from .custom_afdx import create_afd_profile # pylint: disable=unused-import +from .custom_afdx import list_afd_profiles # pylint: disable=unused-import +from .custom_afdx import get_afd_profile # pylint: disable=unused-import +from .custom_afdx import update_afd_profile # pylint: disable=unused-import +from .custom_afdx import delete_afd_profile # pylint: disable=unused-import +from .custom_afdx import list_resource_usage # pylint: disable=unused-import +from .custom_afdx import create_afd_endpoint # pylint: disable=unused-import +from .custom_afdx import update_afd_endpoint # pylint: disable=unused-import +from .custom_afdx import create_afd_origin_group # pylint: disable=unused-import +from .custom_afdx import update_afd_origin_group # pylint: disable=unused-import +from .custom_afdx import create_afd_origin # pylint: disable=unused-import +from .custom_afdx import update_afd_origin # pylint: disable=unused-import +from .custom_afdx import create_afd_route # pylint: disable=unused-import +from .custom_afdx import create_afd_rule_set # pylint: disable=unused-import +from .custom_afdx import create_afd_rule # pylint: disable=unused-import +from .custom_afdx import update_afd_route # pylint: disable=unused-import +from .custom_afdx import create_afd_security_policy # pylint: disable=unused-import +from .custom_afdx import update_afd_security_policy # pylint: disable=unused-import +from .custom_afdx import create_afd_secret # pylint: disable=unused-import +from .custom_afdx import update_afd_secret # pylint: disable=unused-import +from .custom_afdx import create_afd_custom_domain # pylint: disable=unused-import +from .custom_afdx import update_afd_custom_domain # pylint: disable=unused-import +from .custom_afdx import add_afd_rule_condition # pylint: disable=unused-import +from .custom_afdx import remove_afd_rule_condition # pylint: disable=unused-import +from .custom_afdx import add_afd_rule_action # pylint: disable=unused-import +from .custom_afdx import remove_afd_rule_action # pylint: disable=unused-import +from .custom_afdx import list_afd_rule_action # pylint: disable=unused-import +from .custom_afdx import list_afd_rule_condition # pylint: disable=unused-import 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 086c335e069..ea4f9f657ce 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 @@ -27,14 +27,18 @@ DeliveryRuleResponseHeaderAction, DeliveryRuleCacheKeyQueryStringAction, CacheKeyQueryStringActionParameters, UrlRedirectAction, DeliveryRuleAction, UrlRedirectActionParameters, - UrlRewriteAction, UrlRewriteActionParameters) + UrlRewriteAction, UrlRewriteActionParameters, ErrorResponseException) from azure.mgmt.cdn.operations import (OriginsOperations, OriginGroupsOperations) from azure.cli.core.util import (sdk_no_wait) +from azure.cli.core.azclierror import (ResourceNotFoundError) + from knack.util import CLIError from knack.log import get_logger +from msrest.polling import LROPoller, NoPolling + logger = get_logger(__name__) @@ -61,7 +65,41 @@ def list_profiles(client, resource_group_name=None): profiles = client.profiles profile_list = profiles.list_by_resource_group(resource_group_name=resource_group_name) \ if resource_group_name else profiles.list() - return list(profile_list) + + return [profile for profile in profile_list if profile.sku.name not in + (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door)] + + +def get_profile(client, resource_group_name, profile_name): + profile = client.profiles.get(resource_group_name, profile_name) + if profile.sku.name in (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door): + # Workaround to make the behavior consist with true "Not Found" + logger.warning('Standard_AzureFrontDoor and Premium_AzureFrontDoor are only supported for AFD profiles') + raise ResourceNotFoundError("Operation returned an invalid status code 'Not Found'") + + return profile + + +def delete_profile(client, resource_group_name, profile_name): + profile = None + try: + profile = client.profiles.get(resource_group_name, profile_name) + except ErrorResponseException as e: + props = getattr(e.inner_exception, 'additional_properties', {}) + if not isinstance(props, dict) or not isinstance(props.get('error'), dict): + raise e + props = props['error'] + if props.get('code') != 'ResourceNotFound': + raise e + + if profile is None or profile.sku.name in (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door): + def get_long_running_output(_): + return None + + logger.warning('Standard_AzureFrontDoor and Premium_AzureFrontDoor are only supported for AFD profiles') + return LROPoller(client, None, get_long_running_output, NoPolling()) + + return client.profiles.delete(resource_group_name, profile_name) def update_endpoint(instance, @@ -237,14 +275,14 @@ def create_action(action_name, cache_behavior=None, cache_duration=None, header_ cache_behavior=cache_behavior, cache_duration=cache_duration )) - if action_name == 'RequestHeader': + if action_name in ('RequestHeader', 'ModifyRequestHeader'): return DeliveryRuleRequestHeaderAction( parameters=HeaderActionParameters( header_action=header_action, header_name=header_name, value=header_value )) - if action_name == 'ResponseHeader': + if action_name in ('ResponseHeader', 'ModifyResponseHeader'): return DeliveryRuleResponseHeaderAction( parameters=HeaderActionParameters( header_action=header_action, @@ -615,6 +653,10 @@ def create_origin(client: OriginsOperations, def update_profile(instance, tags=None): + if instance.sku.name in (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door): + logger.warning('Standard_AzureFrontDoor and Premium_AzureFrontDoor are only supported for AFD profiles') + raise ResourceNotFoundError("Operation returned an invalid status code 'Not Found'") + params = ProfileUpdateParameters(tags=tags) _update_mapper(instance, params, ['tags']) return params diff --git a/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py new file mode 100644 index 00000000000..093464ad937 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/custom/custom_afdx.py @@ -0,0 +1,829 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from typing import (Optional, List) +from azure.mgmt.cdn.models import (AFDEndpoint, HealthProbeRequestType, EnabledState, Route, LinkToDefaultDomain, + ResourceReference, AFDEndpointProtocols, HttpsRedirect, ForwardingProtocol, + QueryStringCachingBehavior, HealthProbeParameters, MatchProcessingBehavior, + AFDOrigin, AFDOriginGroup, SharedPrivateLinkResourceProperties, CompressionSettings, + LoadBalancingSettingsParameters, SecurityPolicyWebApplicationFirewallParameters, + SecurityPolicyWebApplicationFirewallAssociation, CustomerCertificateParameters, + AFDDomain, AFDDomainHttpsParameters, AfdCertificateType, AfdMinimumTlsVersion, + AFDEndpointUpdateParameters, SkuName, ErrorResponseException) + +from azure.mgmt.cdn.operations import (AFDOriginGroupsOperations, AFDOriginsOperations, AFDProfilesOperations, + SecretsOperations, AFDEndpointsOperations, RoutesOperations, RuleSetsOperations, + RulesOperations, SecurityPoliciesOperations, AFDCustomDomainsOperations, + ProfilesOperations) + +from azure.cli.core.util import (sdk_no_wait) +from azure.cli.core.azclierror import (ResourceNotFoundError, InvalidArgumentValueError) + +from knack.log import get_logger +from msrest.polling import LROPoller, NoPolling + +from .custom import _update_mapper + +logger = get_logger(__name__) + + +def default_content_types(): + return ["application/eot", + "application/font", + "application/font-sfnt", + "application/javascript", + "application/json", + "application/opentype", + "application/otf", + "application/pkcs7-mime", + "application/truetype", + "application/ttf", + "application/vnd.ms-fontobject", + "application/xhtml+xml", + "application/xml", + "application/xml+rss", + "application/x-font-opentype", + "application/x-font-truetype", + "application/x-font-ttf", + "application/x-httpd-cgi", + "application/x-javascript", + "application/x-mpegurl", + "application/x-opentype", + "application/x-otf", + "application/x-perl", + "application/x-ttf", + "font/eot", + "font/ttf", + "font/otf", + "font/opentype", + "image/svg+xml", + "text/css", + "text/csv", + "text/html", + "text/javascript", + "text/js", + "text/plain", + "text/richtext", + "text/tab-separated-values", + "text/xml", + "text/x-script", + "text/x-component", + "text/x-java-source"] + + +def create_afd_profile(client: ProfilesOperations, resource_group_name, profile_name, + sku: SkuName, + tags=None): + from azure.mgmt.cdn.models import (Profile, Sku) + + # Force location to global + profile = Profile(location="global", sku=Sku(name=sku), tags=tags) + return client.create(resource_group_name, profile_name, profile) + + +def delete_afd_profile(client: ProfilesOperations, resource_group_name, profile_name): + profile = None + try: + profile = client.get(resource_group_name, profile_name) + except ErrorResponseException as e: + props = getattr(e.inner_exception, 'additional_properties', {}) + if not isinstance(props, dict) or not isinstance(props.get('error'), dict): + raise e + props = props['error'] + if props.get('code') != 'ResourceNotFound': + raise e + + if profile is None or profile.sku.name not in (SkuName.premium_azure_front_door, + SkuName.standard_azure_front_door): + def get_long_running_output(_): + return None + + logger.warning("Unexpected SKU type, only Standard_AzureFrontDoor and Premium_AzureFrontDoor are supported.") + return LROPoller(client, None, get_long_running_output, NoPolling()) + + return client.delete(resource_group_name, profile_name) + + +def update_afd_profile(client: ProfilesOperations, resource_group_name, profile_name, tags): + profile = client.get(resource_group_name, profile_name) + if profile.sku.name not in (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door): + logger.warning('Unexpected SKU type, only Standard_AzureFrontDoor and Premium_AzureFrontDoor are supported') + raise ResourceNotFoundError("Operation returned an invalid status code 'Not Found'") + + return client.update(resource_group_name, profile_name, tags) + + +def list_afd_profiles(client: ProfilesOperations, resource_group_name=None): + profile_list = client.list_by_resource_group(resource_group_name=resource_group_name) \ + if resource_group_name else client.list() + + profile_list = [profile for profile in profile_list if profile.sku.name in + (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door)] + + return list(profile_list) + + +def get_afd_profile(client: ProfilesOperations, resource_group_name, profile_name): + profile = client.get(resource_group_name, profile_name) + if profile.sku.name not in (SkuName.premium_azure_front_door, SkuName.standard_azure_front_door): + # Workaround to make the behavior consist with true "Not Found" + logger.warning('Unexpected SKU type, only Standard_AzureFrontDoor and Premium_AzureFrontDoor are supported') + raise ResourceNotFoundError("Operation returned an invalid status code 'Not Found'") + + return profile + + +def list_resource_usage(client: AFDProfilesOperations, resource_group_name, profile_name): + return client.list_resource_usage(resource_group_name, profile_name) + + +def create_afd_endpoint(client: AFDEndpointsOperations, resource_group_name, profile_name, endpoint_name, + origin_response_timeout_seconds, + enabled_state, tags=None, no_wait=None): + + # Force location to global + endpoint = AFDEndpoint(location="global", + origin_response_timeout_seconds=origin_response_timeout_seconds, + enabled_state=enabled_state, + tags=tags) + + return sdk_no_wait(no_wait, client.create, resource_group_name, profile_name, endpoint_name, endpoint) + + +def update_afd_endpoint(client: AFDEndpointsOperations, resource_group_name, profile_name, endpoint_name, + origin_response_timeout_seconds=None, enabled_state=None, tags=None): + update_properties = AFDEndpointUpdateParameters( + origin_response_timeout_seconds=origin_response_timeout_seconds, + enabled_state=enabled_state, + tags=tags + ) + + return client.update(resource_group_name, profile_name, endpoint_name, update_properties) + + +def create_afd_origin_group(client: AFDOriginGroupsOperations, + resource_group_name: str, + profile_name: str, + origin_group_name: str, + load_balancing_sample_size: int, + load_balancing_successful_samples_required: int, + load_balancing_additional_latency_in_milliseconds: int, + probe_request_type: HealthProbeRequestType, + probe_protocol: str, + probe_path: str, + probe_interval_in_seconds: int = 240): + + # Add response error detection support once RP support it. + health_probe_parameters = HealthProbeParameters(probe_path=probe_path, + probe_request_type=probe_request_type, + probe_protocol=probe_protocol, + probe_interval_in_seconds=probe_interval_in_seconds) + + load_balancing_settings_parameters = LoadBalancingSettingsParameters( + sample_size=load_balancing_sample_size, + successful_samples_required=load_balancing_successful_samples_required, + additional_latency_in_milliseconds=load_balancing_additional_latency_in_milliseconds) + + afd_origin_group = AFDOriginGroup(load_balancing_settings=load_balancing_settings_parameters, + health_probe_settings=health_probe_parameters) + + return client.create(resource_group_name, + profile_name, + origin_group_name, + afd_origin_group).result() + + +def update_afd_origin_group(client: AFDOriginGroupsOperations, + resource_group_name: str, + profile_name: str, + origin_group_name: str, + load_balancing_sample_size: int = None, + load_balancing_successful_samples_required: int = None, + load_balancing_additional_latency_in_milliseconds: int = None, + probe_request_type: HealthProbeRequestType = None, + probe_protocol: str = None, + probe_path: str = None, + probe_interval_in_seconds: int = None): + + # Move these to the parameters list once support is added in RP. + existing = client.get(resource_group_name, profile_name, origin_group_name) + + health_probe_parameters = HealthProbeParameters(probe_path=probe_path, + probe_request_type=probe_request_type, + probe_protocol=probe_protocol, + probe_interval_in_seconds=probe_interval_in_seconds) + + _update_mapper(existing.health_probe_settings, + health_probe_parameters, + ["probe_path", "probe_request_type", "probe_protocol", "probe_interval_in_seconds"]) + + load_balancing_settings_parameters = LoadBalancingSettingsParameters( + sample_size=load_balancing_sample_size, + successful_samples_required=load_balancing_successful_samples_required, + additional_latency_in_milliseconds=load_balancing_additional_latency_in_milliseconds) + _update_mapper(existing.load_balancing_settings, + load_balancing_settings_parameters, + ["sample_size", "successful_samples_required", "additional_latency_in_milliseconds"]) + + afd_origin_group = AFDOriginGroup(load_balancing_settings=load_balancing_settings_parameters, + health_probe_settings=health_probe_parameters) + + return client.create(resource_group_name, + profile_name, + origin_group_name, + afd_origin_group).result() + + +def create_afd_origin(client: AFDOriginsOperations, + resource_group_name: str, + profile_name: str, + origin_group_name: str, + origin_name: str, + host_name: str, + enabled_state: EnabledState, + enable_private_link: bool = None, + private_link_resource: str = None, + private_link_location: str = None, + private_link_sub_resource_type: str = None, + private_link_request_message: str = None, + http_port: int = 80, + https_port: int = 443, + origin_host_header: Optional[str] = None, + priority: int = 1, + weight: int = 1000): + + shared_private_link_resource = None + if enable_private_link: + shared_private_link_resource = SharedPrivateLinkResourceProperties( + private_link=ResourceReference(id=private_link_resource), + private_link_location=private_link_location, + group_id=private_link_sub_resource_type, + request_message=private_link_request_message) + + return client.create(resource_group_name, + profile_name, + origin_group_name, + origin_name, + AFDOrigin( + host_name=host_name, + http_port=http_port, + https_port=https_port, + origin_host_header=origin_host_header, + priority=priority, + weight=weight, + shared_private_link_resource=shared_private_link_resource, + enabled_state=enabled_state)) + + +def update_afd_origin(client: AFDOriginsOperations, + resource_group_name: str, + profile_name: str, + origin_group_name: str, + origin_name: str, + host_name: str = None, + enabled_state: EnabledState = None, + http_port: int = None, + https_port: int = None, + origin_host_header: Optional[str] = None, + priority: int = None, + weight: int = None, + enable_private_link: bool = None, + private_link_resource: str = None, + private_link_location: str = None, + private_link_sub_resource_type: str = None, + private_link_request_message: str = None): + + existing = client.get(resource_group_name, profile_name, origin_group_name, origin_name) + origin = AFDOrigin( + host_name=host_name, + http_port=http_port, + https_port=https_port, + origin_host_header=origin_host_header, + priority=priority, + weight=weight, + enabled_state=enabled_state) + + _update_mapper( + existing, + origin, + ["host_name", "http_port", "https_port", "origin_host_header", "priority", "weight", "enabled_state"]) + + if enable_private_link is not None and not enable_private_link: + origin.shared_private_link_resource = None + elif (private_link_resource is not None or + private_link_location is not None or + private_link_sub_resource_type is not None or + private_link_request_message is not None): + shared_private_link_resource = SharedPrivateLinkResourceProperties( + private_link=ResourceReference(id=private_link_resource) if private_link_resource is not None else None, + private_link_location=private_link_location, + group_id=private_link_sub_resource_type, + request_message=private_link_request_message) + + if existing.shared_private_link_resource is not None: + existing_shared_private_link_resource = SharedPrivateLinkResourceProperties( + private_link=ResourceReference(id=existing.shared_private_link_resource["privateLink"]['id']), + private_link_location=existing.shared_private_link_resource["privateLinkLocation"], + group_id=existing.shared_private_link_resource["groupId"], + request_message=existing.shared_private_link_resource["requestMessage"]) + + _update_mapper( + existing_shared_private_link_resource, + shared_private_link_resource, + ["private_link", "private_link_location", "group_id", "request_message"]) + + origin.shared_private_link_resource = shared_private_link_resource + else: + origin.shared_private_link_resource = existing.shared_private_link_resource + + # client.update does not allow unset field + return client.create(resource_group_name, + profile_name, + origin_group_name, + origin_name, + origin) + + +def create_afd_route(client: RoutesOperations, + resource_group_name: str, + profile_name: str, + endpoint_name: str, + route_name: str, + https_redirect: HttpsRedirect, + supported_protocols: List[AFDEndpointProtocols], + origin_group: str, + forwarding_protocol: ForwardingProtocol, + link_to_default_domain: LinkToDefaultDomain = None, + is_compression_enabled: bool = False, + content_types_to_compress: List[str] = None, + query_string_caching_behavior: QueryStringCachingBehavior = None, + custom_domains: List[str] = None, + origin_path: Optional[str] = None, + patterns_to_match: List[str] = None, + rule_sets: List[str] = None): + + formatted_custom_domains = [] + if custom_domains is not None: + for custom_domain in custom_domains: + if '/customdomains/' not in custom_domain.lower(): + custom_domain = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/customDomains/{custom_domain}' + + # If the origin is not an ID, assume it's a name and format it as an ID. + formatted_custom_domains.append(ResourceReference(id=custom_domain)) + + if '/origingroups/' not in origin_group.lower(): + origin_group = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/originGroups/{origin_group}' + + compression_settings = CompressionSettings( + content_types_to_compress=content_types_to_compress, + is_compression_enabled=is_compression_enabled + ) + + if is_compression_enabled and content_types_to_compress is None: + compression_settings.content_types_to_compress = default_content_types() + + formatted_rule_sets = [] + if rule_sets is not None: + for rule_set in rule_sets: + if '/rulesets/' not in rule_set.lower(): + rule_set = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/ruleSets/{rule_set}' + + formatted_rule_sets.append(ResourceReference(id=rule_set)) + + return client.create(resource_group_name, + profile_name, + endpoint_name, + route_name, + Route( + custom_domains=formatted_custom_domains, + origin_path=origin_path, + patterns_to_match=patterns_to_match if patterns_to_match is not None else ['/*'], + supported_protocols=supported_protocols, + https_redirect=https_redirect, + origin_group=ResourceReference(id=origin_group), + forwarding_protocol=forwarding_protocol, + rule_sets=formatted_rule_sets, + query_string_caching_behavior=query_string_caching_behavior, + compression_settings=compression_settings, + link_to_default_domain=LinkToDefaultDomain.enabled if link_to_default_domain else + LinkToDefaultDomain.disabled)) + + +def update_afd_route(client: RoutesOperations, + resource_group_name: str, + profile_name: str, + endpoint_name: str, + route_name: str, + https_redirect: HttpsRedirect = None, + supported_protocols: List[AFDEndpointProtocols] = None, + origin_group: str = None, + forwarding_protocol: ForwardingProtocol = None, + link_to_default_domain: LinkToDefaultDomain = None, + is_compression_enabled: bool = None, + content_types_to_compress: List[str] = None, + query_string_caching_behavior: QueryStringCachingBehavior = None, + custom_domains: List[str] = None, + origin_path: Optional[str] = None, + patterns_to_match: List[str] = None, + rule_sets: List[str] = None): + + existing = client.get(resource_group_name, profile_name, endpoint_name, route_name) + route = Route( + origin_path=origin_path, + origin_group=existing.origin_group, + patterns_to_match=patterns_to_match, + supported_protocols=supported_protocols, + https_redirect=https_redirect, + forwarding_protocol=forwarding_protocol, + query_string_caching_behavior=query_string_caching_behavior, + link_to_default_domain=link_to_default_domain) + + if custom_domains is not None: + formatted_custom_domains = [] + for custom_domain in custom_domains: + if '/customdomains/' not in custom_domain.lower(): + custom_domain = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/customDomains/{custom_domain}' + + # If the origin is not an ID, assume it's a name and format it as an ID. + formatted_custom_domains.append(ResourceReference(id=custom_domain)) + + route.custom_domains = formatted_custom_domains + + if origin_group is not None: + if '/origingroups/' not in origin_group.lower(): + origin_group = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/originGroups/{origin_group}' + + route.origin_group = origin_group + + if rule_sets is not None: + formatted_rule_sets = [] + for rule_set in rule_sets: + if '/rulesets/' not in rule_set.lower(): + rule_set = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/ruleSets/{rule_set}' + + # If the origin is not an ID, assume it's a name and format it as an ID. + formatted_rule_sets.append(ResourceReference(id=rule_set)) + + route.rule_sets = formatted_rule_sets + + _update_mapper(existing, route, + ["custom_domains", "origin_path", "patterns_to_match", + "supported_protocols", "https_redirect", "origin_group", + "forwarding_protocol", "rule_sets", "query_string_caching_behavior", + "link_to_default_domain", "compression_settings"]) + + if is_compression_enabled: + if existing.compression_settings is None: + route.compression_settings = CompressionSettings( + content_types_to_compress=content_types_to_compress if content_types_to_compress is not None else + default_content_types(), + is_compression_enabled=is_compression_enabled + ) + else: + route.compression_settings = CompressionSettings( + content_types_to_compress=content_types_to_compress if content_types_to_compress is not None else + existing.compression_settings.content_types_to_compress, + is_compression_enabled=is_compression_enabled + ) + elif is_compression_enabled is None: + if content_types_to_compress is not None and existing.compression_settings is not None: + route.compression_settings = CompressionSettings( + content_types_to_compress=content_types_to_compress, + is_compression_enabled=existing.compression_settings["isCompressionEnabled"] + ) + else: + route.compression_settings = None + + return client.create(resource_group_name, + profile_name, + endpoint_name, + route_name, + route) + + +def create_afd_rule_set(client: RuleSetsOperations, + resource_group_name: str, + profile_name: str, + rule_set_name: str): + + return client.create(resource_group_name, profile_name, rule_set_name) + + +# pylint: disable=too-many-locals +def create_afd_rule(client: RulesOperations, resource_group_name, profile_name, rule_set_name, + order, rule_name, action_name, match_variable=None, operator=None, + match_values=None, selector=None, negate_condition=None, transform=None, + cache_behavior=None, cache_duration=None, header_action=None, + header_name=None, header_value=None, query_string_behavior=None, query_parameters=None, + redirect_type=None, redirect_protocol=None, custom_hostname=None, custom_path=None, + custom_querystring=None, custom_fragment=None, source_pattern=None, + destination=None, preserve_unmatched_path=None, + match_processing_behavior: MatchProcessingBehavior = None): + from azure.mgmt.cdn.models import Rule + from .custom import create_condition + from .custom import create_action + + conditions = [] + condition = create_condition(match_variable, operator, match_values, selector, negate_condition, transform) + if condition is not None: + conditions.append(condition) + + actions = [] + action = create_action(action_name, cache_behavior, cache_duration, header_action, header_name, + header_value, query_string_behavior, query_parameters, redirect_type, + redirect_protocol, custom_hostname, custom_path, custom_querystring, + custom_fragment, source_pattern, destination, preserve_unmatched_path) + if action is not None: + actions.append(action) + + rule = Rule( + name=rule_name, + order=order, + conditions=conditions, + actions=actions, + match_processing_behavior=match_processing_behavior + ) + + return client.create(resource_group_name, + profile_name, + rule_set_name, + rule_name, + rule=rule) + + +def add_afd_rule_condition(client: RulesOperations, resource_group_name, profile_name, rule_set_name, + rule_name, match_variable, operator, match_values=None, selector=None, + negate_condition=None, transform=None): + from .custom import create_condition + + existing_rule = client.get(resource_group_name, profile_name, rule_set_name, rule_name) + condition = create_condition(match_variable, operator, match_values, selector, negate_condition, transform) + existing_rule.conditions.append(condition) + + return client.create(resource_group_name, + profile_name, + rule_set_name, + rule_name, + rule=existing_rule) + + +def add_afd_rule_action(client: RulesOperations, resource_group_name, profile_name, rule_set_name, + rule_name, action_name, cache_behavior=None, cache_duration=None, + header_action=None, header_name=None, header_value=None, query_string_behavior=None, + query_parameters=None, redirect_type=None, redirect_protocol=None, custom_hostname=None, + custom_path=None, custom_querystring=None, custom_fragment=None, source_pattern=None, + destination=None, preserve_unmatched_path=None): + from .custom import create_action + + existing_rule = client.get(resource_group_name, profile_name, rule_set_name, rule_name) + action = create_action(action_name, cache_behavior, cache_duration, header_action, header_name, + header_value, query_string_behavior, query_parameters, redirect_type, + redirect_protocol, custom_hostname, custom_path, custom_querystring, + custom_fragment, source_pattern, destination, preserve_unmatched_path) + + existing_rule.actions.append(action) + return client.create(resource_group_name, + profile_name, + rule_set_name, + rule_name, + rule=existing_rule) + + +def remove_afd_rule_condition(client: RulesOperations, resource_group_name, profile_name, + rule_set_name, rule_name, index): + existing_rule = client.get(resource_group_name, profile_name, rule_set_name, rule_name) + if len(existing_rule.conditions) > 1 and index < len(existing_rule.conditions): + existing_rule.conditions.pop(index) + else: + logger.warning("Invalid condition index found. This command will be skipped. Please check the rule.") + + return client.create(resource_group_name, + profile_name, + rule_set_name, + rule_name, + rule=existing_rule) + + +def remove_afd_rule_action(client: RulesOperations, resource_group_name, profile_name, rule_set_name, rule_name, index): + existing_rule = client.get(resource_group_name, profile_name, rule_set_name, rule_name) + if len(existing_rule.actions) > 1 and index < len(existing_rule.actions): + existing_rule.actions.pop(index) + else: + logger.warning("Invalid condition index found. This command will be skipped. Please check the rule.") + + return client.create(resource_group_name, + profile_name, + rule_set_name, + rule_name, + rule=existing_rule) + + +def list_afd_rule_condition(client: RulesOperations, resource_group_name, + profile_name, rule_set_name, + rule_name): + rule = client.get(resource_group_name, profile_name, rule_set_name, rule_name) + return rule.conditions + + +def list_afd_rule_action(client: RulesOperations, resource_group_name, + profile_name, rule_set_name, + rule_name): + rule = client.get(resource_group_name, profile_name, rule_set_name, rule_name) + return rule.actions + + +def create_afd_security_policy(client: SecurityPoliciesOperations, + resource_group_name, + profile_name, + security_policy_name, + domains: List[str], + waf_policy: str): + + if any([("/afdendpoints/" not in domain.lower() and + "/customdomains/" not in domain.lower()) for domain in domains]): + raise InvalidArgumentValueError('Domain should either be endpoint ID or custom domain ID.') + + if "/frontdoorwebapplicationfirewallpolicies/" not in waf_policy.lower(): + raise InvalidArgumentValueError('waf_policy should be valid Front Door WAF policy ID.') + + # Add patterns and multiple domains support in the feature + parameters = SecurityPolicyWebApplicationFirewallParameters( + waf_policy=ResourceReference(id=waf_policy), + associations=[SecurityPolicyWebApplicationFirewallAssociation( + domains=[ResourceReference(id=domain) for domain in domains], + patterns_to_match=["/*"])]) + + return client.create(resource_group_name, + profile_name, + security_policy_name, + parameters=parameters) + + +def update_afd_security_policy(client: SecurityPoliciesOperations, + resource_group_name, + profile_name, + security_policy_name, + domains: List[str] = None, + waf_policy: str = None): + + if domains is not None and any([("/afdendpoints/" not in domain.lower() and + "/customdomains/" not in domain.lower()) for domain in domains]): + raise InvalidArgumentValueError('Domain should be either endpoint ID or custom domain ID.') + + if waf_policy is not None and "/frontdoorwebapplicationfirewallpolicies/" not in waf_policy: + raise InvalidArgumentValueError('waf_policy should be Front Door WAF policy ID.') + + existing = client.get(resource_group_name, profile_name, security_policy_name) + + # Add patterns and multiple domains support in the future + parameters = SecurityPolicyWebApplicationFirewallParameters( + waf_policy=ResourceReference(id=waf_policy) if waf_policy is not None else existing.parameters.waf_policy, + associations=[SecurityPolicyWebApplicationFirewallAssociation( + domains=[ResourceReference(id=domain) for domain in domains], + patterns_to_match=["/*"])] if domains is not None else existing.parameters.associations) + + return client.create(resource_group_name, + profile_name, + security_policy_name, + parameters=parameters) + + +def create_afd_secret(client: SecretsOperations, + resource_group_name, + profile_name, + secret_name, + secret_source, + secret_version: str = None, + use_latest_version: bool = None): + + if "/certificates/" not in secret_source.lower(): + raise InvalidArgumentValueError('secret_source should be valid Azure key vault certificate ID.') + + if secret_version is None and not use_latest_version: + raise InvalidArgumentValueError('Either specify secret_version or enable use_latest_version.') + + # Only support CustomerCertificate for the moment + parameters = None + if use_latest_version: + parameters = CustomerCertificateParameters( + secret_source=ResourceReference(id=secret_source), + secret_version=None, + use_latest_version=True + ) + else: + parameters = CustomerCertificateParameters( + secret_source=ResourceReference(id=f'{secret_source}/{secret_version}'), + secret_version=secret_version, + use_latest_version=False + ) + + return client.create(resource_group_name, + profile_name, + secret_name, + parameters=parameters) + + +def update_afd_secret(client: SecretsOperations, + resource_group_name, + profile_name, + secret_name, + secret_source: str = None, + secret_version: str = None, + use_latest_version: bool = None): + existing = client.get(resource_group_name, profile_name, secret_name) + + secret_source_id = secret_source if secret_source is not None else existing.parameters.secret_source.id + if existing.parameters.secret_version is not None and existing.parameters.secret_version in secret_source_id: + version_start = secret_source_id.lower().rindex(f'/{existing.parameters.secret_version}') + secret_source_id = secret_source_id[0:version_start] + + secret_version = (secret_version if secret_version is not None + else existing.parameters.secret_version) + + use_latest_version = (use_latest_version if use_latest_version is not None + else existing.parameters.use_latest_version) + + return create_afd_secret(client, + resource_group_name, + profile_name, + secret_name, + secret_source_id, + secret_version, + use_latest_version) + + +def create_afd_custom_domain(client: AFDCustomDomainsOperations, + resource_group_name: str, + profile_name: str, + custom_domain_name: str, + host_name: str, + certificate_type: AfdCertificateType, + minimum_tls_version: AfdMinimumTlsVersion, + azure_dns_zone: str = None, + secret: str = None, + no_wait: bool = None): + + if azure_dns_zone is not None and "/dnszones/" not in azure_dns_zone.lower(): + raise InvalidArgumentValueError('azure_dns_zone should be valid Azure dns zone ID.') + + if secret is not None and "/secrets/" not in secret.lower(): + secret = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/secrets/{secret}' + + tls_settings = AFDDomainHttpsParameters(certificate_type=certificate_type, + minimum_tls_version=minimum_tls_version, + secret=ResourceReference(id=secret) if secret is not None else None) + + afd_domain = AFDDomain(host_name=host_name, + tls_settings=tls_settings, + azure_dns_zone=ResourceReference(id=azure_dns_zone) if azure_dns_zone is not None else None) + + return sdk_no_wait(no_wait, client.create, resource_group_name, profile_name, custom_domain_name, afd_domain) + + +def update_afd_custom_domain(client: AFDCustomDomainsOperations, + resource_group_name: str, + profile_name: str, + custom_domain_name: str, + certificate_type: AfdCertificateType = None, + minimum_tls_version: AfdMinimumTlsVersion = None, + azure_dns_zone: str = None, + secret: str = None): + + if azure_dns_zone is not None and "/dnszones/" not in azure_dns_zone.lower(): + raise InvalidArgumentValueError('azure_dns_zone should be valid Azure dns zone ID.') + + if secret is not None and "/secrets/" not in secret.lower(): + secret = f'/subscriptions/{client.config.subscription_id}/resourceGroups/{resource_group_name}' \ + f'/providers/Microsoft.Cdn/profiles/{profile_name}/secrets/{secret}' + + existing = client.get(resource_group_name, profile_name, custom_domain_name) + + tls_settings = AFDDomainHttpsParameters(certificate_type=certificate_type, + minimum_tls_version=minimum_tls_version, + secret=ResourceReference(id=secret) if secret is not None else None) + + _update_mapper(existing.tls_settings, tls_settings, ["certificate_type", "minimum_tls_version", "secret"]) + + if certificate_type == AfdCertificateType.managed_certificate: + tls_settings.secret = None + + afd_domain = AFDDomain( + host_name=existing.host_name, + tls_settings=tls_settings, + azure_dns_zone=ResourceReference(id=azure_dns_zone) if azure_dns_zone is not None else existing.azure_dns_zone) + + return client.create(resource_group_name, + profile_name, + custom_domain_name, + afd_domain).result() + +# endregion diff --git a/src/azure-cli/azure/cli/command_modules/cdn/linter_exclusions.yml b/src/azure-cli/azure/cli/command_modules/cdn/linter_exclusions.yml new file mode 100644 index 00000000000..60de072cd74 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/linter_exclusions.yml @@ -0,0 +1,120 @@ +--- +afd endpoint create: + parameters: + origin_response_timeout_seconds: + rule_exclusions: + - option_length_too_long +afd endpoint update: + parameters: + origin_response_timeout_seconds: + rule_exclusions: + - option_length_too_long +afd origin create: + parameters: + private_link_location: + rule_exclusions: + - option_length_too_long + private_link_sub_resource_type: + rule_exclusions: + - option_length_too_long + private_link_resource: + rule_exclusions: + - option_length_too_long + private_link_request_message: + rule_exclusions: + - option_length_too_long +afd origin update: + parameters: + private_link_location: + rule_exclusions: + - option_length_too_long + private_link_sub_resource_type: + rule_exclusions: + - option_length_too_long + private_link_resource: + rule_exclusions: + - option_length_too_long + private_link_request_message: + rule_exclusions: + - option_length_too_long +afd origin-group create: + parameters: + load_balancing_additional_latency_in_milliseconds: + rule_exclusions: + - option_length_too_long + load_balancing_sample_size: + rule_exclusions: + - option_length_too_long + load_balancing_successful_samples_required: + rule_exclusions: + - option_length_too_long + probe_interval_in_seconds: + rule_exclusions: + - option_length_too_long +afd origin-group update: + parameters: + load_balancing_additional_latency_in_milliseconds: + rule_exclusions: + - option_length_too_long + load_balancing_sample_size: + rule_exclusions: + - option_length_too_long + load_balancing_successful_samples_required: + rule_exclusions: + - option_length_too_long + probe_interval_in_seconds: + rule_exclusions: + - option_length_too_long +afd route create: + parameters: + content_types_to_compress: + rule_exclusions: + - option_length_too_long + link_to_default_domain: + rule_exclusions: + - option_length_too_long + query_string_caching_behavior: + rule_exclusions: + - option_length_too_long +afd route update: + parameters: + content_types_to_compress: + rule_exclusions: + - option_length_too_long + link_to_default_domain: + rule_exclusions: + - option_length_too_long + query_string_caching_behavior: + rule_exclusions: + - option_length_too_long +afd rule create: + parameters: + preserve_unmatched_path: + rule_exclusions: + - option_length_too_long + query_string_behavior: + rule_exclusions: + - option_length_too_long + match_processing_behavior: + rule_exclusions: + - option_length_too_long +afd rule action add: + parameters: + preserve_unmatched_path: + rule_exclusions: + - option_length_too_long + query_string_behavior: + rule_exclusions: + - option_length_too_long +cdn endpoint waf policy set: + parameters: + waf_policy_resource_group_name: + rule_exclusions: + - parameter_should_not_end_in_resource_group +cdn endpoint: + rule_exclusions: + - require_wait_command_if_no_wait +afd endpoint: + rule_exclusions: + - require_wait_command_if_no_wait +... diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/afdx_scenario_mixin.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/afdx_scenario_mixin.py new file mode 100644 index 00000000000..28b5f3b5703 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/afdx_scenario_mixin.py @@ -0,0 +1,396 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +from .scenario_mixin import add_tags + + +def _add_paramter_if_needed(command, paramter_name, parameter_value): + if parameter_value is not None: + return f'{command} --{paramter_name} {parameter_value}' + + return command + + +# pylint: disable=too-many-public-methods +class CdnAfdScenarioMixin: + def afd_profile_create_cmd(self, resource_group_name, profile_name, tags=None, checks=None, options=None, + sku="Standard_AzureFrontDoor", expect_failure=False): + command = f'afd profile create -g {resource_group_name} --profile-name {profile_name} --sku {sku}' + if tags: + command = command + ' --tags {}'.format(tags) + if options: + command = command + ' ' + options + + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_profile_update_cmd(self, group, name, tags=None, checks=None): + command = 'afd profile update -g {} --profile-name {}'.format(group, name) + if tags: + command = command + ' --tags {}'.format(tags) + return self.cmd(command, checks) + + def afd_profile_list_cmd(self, group, checks=None): + command = 'afd profile list -g {}'.format(group) + return self.cmd(command, checks) + + def afd_profile_show_cmd(self, group, name, checks=None): + command = f'afd profile show -g {group} --profile-name {name}' + return self.cmd(command, checks) + + def afd_profile_delete_cmd(self, group, name, checks=None): + command = 'afd profile delete -g {} --profile-name {}'.format(group, name) + return self.cmd(command, checks) + + def afd_endpoint_create_cmd(self, resource_group_name, profile_name, endpoint_name, + origin_response_timeout_seconds, enabled_state, + tags=None, checks=None): + cmd = f'afd endpoint create -g {resource_group_name} --endpoint-name {endpoint_name} ' \ + f'--profile-name {profile_name} --origin-response-timeout-seconds {origin_response_timeout_seconds} ' \ + f'--enabled-state {enabled_state}' + + if tags: + cmd = add_tags(cmd, tags) + + return self.cmd(cmd, checks) + + def afd_endpoint_update_cmd(self, resource_group_name, profile_name, endpoint_name, + origin_response_timeout_seconds=None, + enabled_state=None, tags=None, checks=None, options=None): + command = f'afd endpoint update -g {resource_group_name} --endpoint-name {endpoint_name} ' \ + f'--profile-name {profile_name}' + if tags: + command = add_tags(command, tags) + + command = _add_paramter_if_needed(command, "origin-response-timeout-seconds", origin_response_timeout_seconds) + command = _add_paramter_if_needed(command, "enabled-state", enabled_state) + + if options: + command = command + ' ' + options + + return self.cmd(command, checks) + + def afd_endpoint_show_cmd(self, resource_group_name, profile_name, endpoint_name, checks=None, options=None): + command = f'afd endpoint show -g {resource_group_name} --endpoint-name {endpoint_name} ' \ + f'--profile-name {profile_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_endpoint_purge_cmd(self, resource_group_name, endpoint_name, profile_name, content_paths, + domains=None, checks=None): + command = f'afd endpoint purge -g {resource_group_name} --endpoint-name {endpoint_name} ' \ + f'--profile-name {profile_name} --content-paths {" ".join(content_paths)}' + + if domains: + command = command + ' ' + f'--domains {" ".join(domains)}' + return self.cmd(command, checks) + + def afd_rule_set_add_cmd(self, resource_group_name, rule_set_name, profile_name, checks=None): + command = f'az afd rule-set create -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name}' + + return self.cmd(command, checks) + + def afd_rule_set_delete_cmd(self, resource_group_name, rule_set_name, profile_name, checks=None): + command = f'az afd rule-set delete -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --yes' + + return self.cmd(command, checks) + + def afd_rule_set_list_cmd(self, resource_group_name, profile_name, checks=None, expect_failure=False): + command = f'az afd rule-set list -g {resource_group_name} --profile-name {profile_name}' + + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_rule_set_show_cmd(self, resource_group_name, rule_set_name, profile_name, checks=None, + expect_failure=False): + command = f'az afd rule-set show -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name}' + + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_rule_list_cmd(self, resource_group_name, rule_set_name, profile_name, checks=None, expect_failure=False): + command = f'az afd rule list -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name}' + + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_rule_show_cmd(self, resource_group_name, rule_set_name, rule_name, profile_name, checks=None): + command = f'az afd rule show -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --rule-name {rule_name}' + + return self.cmd(command, checks) + + def afd_rule_add_cmd(self, resource_group_name, rule_set_name, rule_name, profile_name, options=None, checks=None): + command = f'az afd rule create -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --rule-name {rule_name}' + + if options: + command = command + ' ' + options + + return self.cmd(command, checks) + + def afd_rule_add_condition_cmd(self, resource_group_name, rule_set_name, rule_name, profile_name, checks=None, + options=None): + command = f'afd rule condition add -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --rule-name {rule_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_rule_add_action_cmd(self, resource_group_name, rule_set_name, rule_name, profile_name, checks=None, + options=None): + command = f'afd rule action add -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --rule-name {rule_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_rule_delete_cmd(self, resource_group_name, rule_set_name, rule_name, profile_name, checks=None, + options=None): + command = f'afd rule delete -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --rule-name {rule_name} --yes' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_rule_remove_condition_cmd(self, resource_group_name, rule_set_name, rule_name, profile_name, index, + checks=None, options=None): + command = f'afd rule condition remove -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --rule-name {rule_name} --index {index}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_rule_remove_action_cmd(self, resource_group_name, rule_set_name, rule_name, profile_name, index, + checks=None, options=None): + command = f'afd rule action remove -g {resource_group_name} --rule-set-name {rule_set_name} ' \ + f'--profile-name {profile_name} --rule-name {rule_name} --index {index}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_endpoint_list_cmd(self, resource_group_name, profile_name, checks=None, expect_failure=False): + command = f'afd endpoint list -g {resource_group_name} --profile-name {profile_name}' + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_endpoint_delete_cmd(self, resource_group_name, endpoint_name, profile_name, checks=None): + command = f'afd endpoint delete -g {resource_group_name} --endpoint-name {endpoint_name} ' \ + f'--profile-name {profile_name} --yes' + return self.cmd(command, checks) + + def afd_secret_create_cmd(self, resource_group_name, profile_name, secret_name, secret_source, + use_latest_version, secret_version, checks=None): + cmd = f'afd secret create -g {resource_group_name} --profile-name {profile_name} ' \ + f'--secret-name {secret_name} --secret-source {secret_source} --use-latest-version {use_latest_version}' + + if secret_version: + cmd += f' --secret-version={secret_version}' + + return self.cmd(cmd, checks) + + def afd_secret_update_cmd(self, resource_group_name, profile_name, secret_name, secret_source=None, + use_latest_version=None, secret_version=None, checks=None): + cmd = f'afd secret update -g {resource_group_name} --profile-name {profile_name} ' \ + f'--secret-name {secret_name}' + + if secret_version: + cmd += f' --secret-version={secret_version}' + + if use_latest_version: + cmd += f' --use-latest-version {use_latest_version}' + + if secret_source: + cmd += f' --secret-source {secret_source}' + + return self.cmd(cmd, checks) + + def afd_secret_list_cmd(self, resource_group_name, profile_name, checks=None, expect_failure=False): + command = f'afd secret list -g {resource_group_name} --profile-name {profile_name}' + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_secret_show_cmd(self, resource_group_name, profile_name, secret_name, checks=None): + command = f'afd secret show -g {resource_group_name} --profile-name {profile_name} ' \ + f'--secret-name {secret_name}' + return self.cmd(command, checks) + + def afd_secret_delete_cmd(self, resource_group_name, profile_name, secret_name, checks=None): + command = f'afd secret delete -g {resource_group_name} --profile-name {profile_name} ' \ + f'--secret-name {secret_name} --yes' + return self.cmd(command, checks) + + def afd_custom_domain_create_cmd(self, resource_group_name, profile_name, custom_domain_name, + host_name, certificate_type, minimum_tls_version, + azure_dns_zone=None, secret=None, checks=None): + cmd = f'afd custom-domain create -g {resource_group_name} --profile-name {profile_name} ' \ + f'--custom-domain-name {custom_domain_name} --host-name {host_name} ' \ + f'--certificate-type {certificate_type} --minimum-tls-version {minimum_tls_version}' + + if azure_dns_zone: + cmd += f' --azure-dns-zone={azure_dns_zone}' + if secret: + cmd += f' --secret={secret}' + + return self.cmd(cmd, checks) + + def afd_custom_domain_update_cmd(self, resource_group_name, profile_name, custom_domain_name, + certificate_type=None, minimum_tls_version=None, + azure_dns_zone=None, secret=None, checks=None): + cmd = f'afd custom-domain update -g {resource_group_name} --profile-name {profile_name} ' \ + f'--custom-domain-name {custom_domain_name} ' \ + f'--certificate-type {certificate_type} --minimum-tls-version {minimum_tls_version}' + + if azure_dns_zone: + cmd += f' --azure-dns-zone={azure_dns_zone}' + if secret: + cmd += f' --secret={secret}' + + return self.cmd(cmd, checks) + + def afd_custom_domain_list_cmd(self, resource_group_name, profile_name, checks=None, expect_failure=False): + command = f'afd custom-domain list -g {resource_group_name} --profile-name {profile_name}' + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_custom_domain_show_cmd(self, resource_group_name, profile_name, custom_domain_name, checks=None): + command = f'afd custom-domain show -g {resource_group_name} --profile-name {profile_name} ' \ + f'--custom-domain-name {custom_domain_name}' + return self.cmd(command, checks) + + def afd_custom_domain_delete_cmd(self, resource_group_name, profile_name, custom_domain_name, checks=None): + command = f'afd custom-domain delete -g {resource_group_name} --profile-name {profile_name} ' \ + f'--custom-domain-name {custom_domain_name} --yes' + return self.cmd(command, checks) + + def afd_security_policy_create_cmd(self, resource_group_name, profile_name, security_policy_name, domains, + waf_policy, checks=None): + cmd = f'afd security-policy create -g {resource_group_name} --profile-name {profile_name} ' \ + f'--security-policy-name {security_policy_name} --waf-policy {waf_policy}' + if domains: + cmd += " --domains " + " ".join(domains) + + return self.cmd(cmd, checks) + + def afd_security_policy_update_cmd(self, resource_group_name, profile_name, security_policy_name, domains=None, + waf_policy=None, checks=None): + cmd = f'afd security-policy update -g {resource_group_name} --profile-name {profile_name} ' \ + f'--security-policy-name {security_policy_name}' + if domains: + cmd += " --domains " + " ".join(domains) + + if waf_policy: + cmd += f" --waf-policy {waf_policy}" + + return self.cmd(cmd, checks) + + def afd_security_policy_list_cmd(self, resource_group_name, profile_name, checks=None, expect_failure=False): + command = f'afd security-policy list -g {resource_group_name} --profile-name {profile_name}' + return self.cmd(command, checks, expect_failure=expect_failure) + + def afd_security_policy_show_cmd(self, resource_group_name, profile_name, security_policy_name, checks=None): + command = f'afd security-policy show -g {resource_group_name} --profile-name {profile_name} ' \ + f'--security-policy-name {security_policy_name}' + return self.cmd(command, checks) + + def afd_security_policy_delete_cmd(self, resource_group_name, profile_name, security_policy_name, checks=None): + command = f'afd security-policy delete -g {resource_group_name} --profile-name {profile_name} ' \ + f'--security-policy-name {security_policy_name} --yes' + return self.cmd(command, checks) + + def afd_origin_group_list_cmd(self, resource_group_name, profile_name, checks=None): + command = f'afd origin-group list -g {resource_group_name} --profile-name {profile_name}' + return self.cmd(command, checks) + + def afd_origin_group_show_cmd(self, resource_group_name, profile_name, origin_group_name, checks=None): + command = f'afd origin-group show -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name}' + return self.cmd(command, checks) + + def afd_origin_group_delete_cmd(self, resource_group_name, profile_name, origin_group_name, checks=None): + command = f'afd origin-group delete -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name} --yes' + return self.cmd(command, checks) + + def afd_origin_group_create_cmd(self, resource_group_name, profile_name, origin_group_name, + options=None, checks=None): + command = f'afd origin-group create -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_origin_group_update_cmd(self, resource_group_name, profile_name, origin_group_name, + options=None, checks=None): + command = f'afd origin-group update -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_origin_list_cmd(self, resource_group_name, profile_name, origin_group_name, checks=None): + command = f'afd origin list -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name}' + return self.cmd(command, checks) + + def afd_origin_show_cmd(self, resource_group_name, profile_name, origin_group_name, origin_name, checks=None): + command = f'afd origin show -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name} --origin-name {origin_name}' + return self.cmd(command, checks) + + def afd_origin_delete_cmd(self, resource_group_name, profile_name, origin_group_name, origin_name, checks=None): + command = f'afd origin delete -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name} --origin-name {origin_name} --yes' + return self.cmd(command, checks) + + def afd_origin_create_cmd(self, resource_group_name, profile_name, origin_group_name, origin_name, + options=None, checks=None): + command = f'afd origin create -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name} --origin-name {origin_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_origin_update_cmd(self, resource_group_name, profile_name, origin_group_name, origin_name, + options=None, checks=None): + command = f'afd origin update -g {resource_group_name} --profile-name {profile_name} ' \ + f'--origin-group-name {origin_group_name} --origin-name {origin_name}' + + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_route_list_cmd(self, resource_group_name, profile_name, endpoint_name, checks=None): + command = f'afd route list -g {resource_group_name} --profile-name {profile_name} ' \ + f'--endpoint-name {endpoint_name}' + return self.cmd(command, checks) + + def afd_route_show_cmd(self, resource_group_name, profile_name, endpoint_name, route_name, checks=None): + command = f'afd route show -g {resource_group_name} --profile-name {profile_name} ' \ + f'--endpoint-name {endpoint_name} --route-name {route_name}' + return self.cmd(command, checks) + + def afd_route_delete_cmd(self, resource_group_name, profile_name, endpoint_name, route_name, checks=None): + command = f'afd route delete -g {resource_group_name} --profile-name {profile_name} ' \ + f'--endpoint-name {endpoint_name} --route-name {route_name} --yes' + return self.cmd(command, checks) + + def afd_route_create_cmd(self, resource_group_name, profile_name, endpoint_name, route_name, + options=None, checks=None): + command = f'afd route create -g {resource_group_name} --profile-name {profile_name} ' \ + f'--endpoint-name {endpoint_name} --route-name {route_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def afd_route_update_cmd(self, resource_group_name, profile_name, endpoint_name, route_name, + options=None, checks=None): + command = f'afd route update -g {resource_group_name} --profile-name {profile_name}' \ + f' --route-name {route_name} --endpoint-name {endpoint_name}' + if options: + command = command + ' ' + options + return self.cmd(command, checks) + + def is_playback_mode(self): + return self.get_subscription_id() == '00000000-0000-0000-0000-000000000000' diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_custom_domain_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_custom_domain_crud.yaml new file mode 100644 index 00000000000..07a4c84a278 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_custom_domain_crud.yaml @@ -0,0 +1,1478 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains?api-version=2020-09-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''profile000002'' + not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:10:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"34453708-975c-4e37-b8fe-9a8a61a08a6e","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5d89d225-add5-422d-84e9-598c4b1ccb08?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '475' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:10:49 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5d89d225-add5-422d-84e9-598c4b1ccb08?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: + - Fri, 19 Feb 2021 12:10:59 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"34453708-975c-4e37-b8fe-9a8a61a08a6e","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '474' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:11: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: + - afd custom-domain list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:11: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"parameters": {"type": "CustomerCertificate", "secretSource": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-wild"}, + "useLatestVersion": true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + Content-Length: + - '274' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":null,"certificateAuthority":null,"expirationDate":null,"thumbprint":null,"secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-wild"},"secretVersion":null,"useLatestVersion":true,"subjectAlternativeNames":null},"provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0f6fd01e-9a4a-4aea-85d4-212319fec6ee?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '771' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:11:04 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0f6fd01e-9a4a-4aea-85d4-212319fec6ee?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: + - Fri, 19 Feb 2021 12:11: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":"*.localdev.cdn.azure.cn","certificateAuthority":"DigiCert + Basic RSA CN CA G2","expirationDate":"2021-12-08T23:59:59+00:00","thumbprint":"E23BED5CF38497BDA0CF3050BF879C0E6874C205","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-wild"},"secretVersion":"9677c7fac7c94435bd2a909be2804f9e","useLatestVersion":true,"subjectAlternativeNames":["*.localdev.cdn.azure.cn","localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '956' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:11:16 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: '{"properties": {"tlsSettings": {"certificateType": "CustomerCertificate", + "minimumTlsVersion": "TLS12", "secret": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003"}}, + "hostName": "customdomain000004.localdev.cdn.azure.cn"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + Content-Length: + - '414' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains/customdomain000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customdomains/customdomain000004","type":"Microsoft.Cdn/profiles/customdomains","name":"customdomain000004","properties":{"hostName":"customdomain000004.localdev.cdn.azure.cn","tlsSettings":{"certificateType":"CustomerCertificate","minimumTlsVersion":"TLS12","secret":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003"}},"validationProperties":{"validationToken":null,"expirationDate":"01/01/0001 + 00:00:00"},"azureDnsZone":null,"domainValidationState":"Submitting","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '930' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:11:21 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:11:32 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:12: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:12:33 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:13:04 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:13:34 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:14:04 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:14: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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, 19 Feb 2021 12:15:05 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9eae25ef-1918-4a65-aff3-0c6a28ed3295?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: + - Fri, 19 Feb 2021 12:15: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --host-name --certificate-type --minimum-tls-version + --secret + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains/customdomain000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customdomains/customdomain000004","type":"Microsoft.Cdn/profiles/customdomains","name":"customdomain000004","properties":{"hostName":"customdomain000004.localdev.cdn.azure.cn","tlsSettings":{"certificateType":"CustomerCertificate","minimumTlsVersion":"TLS12","secret":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003"}},"validationProperties":{"validationToken":"l8lywlsycnp4hj07jghhfrbfvjl4p2nx","expirationDate":"03/12/2021 + 12:11:59"},"azureDnsZone":null,"domainValidationState":"Approved","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '959' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:15: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains/customdomain000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customdomains/customdomain000004","type":"Microsoft.Cdn/profiles/customdomains","name":"customdomain000004","properties":{"hostName":"customdomain000004.localdev.cdn.azure.cn","tlsSettings":{"certificateType":"CustomerCertificate","minimumTlsVersion":"TLS12","secret":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003"}},"validationProperties":{"validationToken":"l8lywlsycnp4hj07jghhfrbfvjl4p2nx","expirationDate":"03/12/2021 + 12:11:59"},"azureDnsZone":null,"domainValidationState":"Approved","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '959' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:15: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customdomains/customdomain000004","type":"Microsoft.Cdn/profiles/customdomains","name":"customdomain000004","properties":{"hostName":"customdomain000004.localdev.cdn.azure.cn","tlsSettings":{"certificateType":"CustomerCertificate","minimumTlsVersion":"TLS12","secret":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003"}},"validationProperties":{"validationToken":"l8lywlsycnp4hj07jghhfrbfvjl4p2nx","expirationDate":"03/12/2021 + 12:11:59"},"azureDnsZone":null,"domainValidationState":"Approved","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '971' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:15: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --certificate-type --minimum-tls-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains/customdomain000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customdomains/customdomain000004","type":"Microsoft.Cdn/profiles/customdomains","name":"customdomain000004","properties":{"hostName":"customdomain000004.localdev.cdn.azure.cn","tlsSettings":{"certificateType":"CustomerCertificate","minimumTlsVersion":"TLS12","secret":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003"}},"validationProperties":{"validationToken":"l8lywlsycnp4hj07jghhfrbfvjl4p2nx","expirationDate":"03/12/2021 + 12:11:59"},"azureDnsZone":null,"domainValidationState":"Approved","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '959' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:15: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: '{"properties": {"tlsSettings": {"certificateType": "ManagedCertificate", + "minimumTlsVersion": "TLS10"}, "hostName": "customdomain000004.localdev.cdn.azure.cn"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain update + Connection: + - keep-alive + Content-Length: + - '166' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --custom-domain-name --certificate-type --minimum-tls-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains/customdomain000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customdomains/customdomain000004","type":"Microsoft.Cdn/profiles/customdomains","name":"customdomain000004","properties":{"hostName":"customdomain000004.localdev.cdn.azure.cn","tlsSettings":{"certificateType":"ManagedCertificate","minimumTlsVersion":"TLS10","secret":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/Profiles/profile000002/secrets/34453708-975c-4e37-b8fe-9a8a61a08a6e-customdomain000004-localdev-cdn-azure-cn"}},"validationProperties":{"validationToken":"l8lywlsycnp4hj07jghhfrbfvjl4p2nx","expirationDate":"03/12/2021 + 12:11:59"},"azureDnsZone":null,"domainValidationState":"Approved","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2efe7647-aae9-45d8-bea5-f5ff8d5806d9?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1016' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:15:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2efe7647-aae9-45d8-bea5-f5ff8d5806d9/profileresults/profile000002/customdomainresults/customdomain000004?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --certificate-type --minimum-tls-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2efe7647-aae9-45d8-bea5-f5ff8d5806d9?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, 19 Feb 2021 12:15: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --certificate-type --minimum-tls-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2efe7647-aae9-45d8-bea5-f5ff8d5806d9?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: + - Fri, 19 Feb 2021 12:16:23 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --certificate-type --minimum-tls-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains/customdomain000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customdomains/customdomain000004","type":"Microsoft.Cdn/profiles/customdomains","name":"customdomain000004","properties":{"hostName":"customdomain000004.localdev.cdn.azure.cn","tlsSettings":{"certificateType":"ManagedCertificate","minimumTlsVersion":"TLS10","secret":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/Profiles/profile000002/secrets/34453708-975c-4e37-b8fe-9a8a61a08a6e-customdomain000004-localdev-cdn-azure-cn"}},"validationProperties":{"validationToken":"l8lywlsycnp4hj07jghhfrbfvjl4p2nx","expirationDate":"03/12/2021 + 12:11:59"},"azureDnsZone":null,"domainValidationState":"Approved","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1017' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:16:23 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --custom-domain-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains/customdomain000004?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/825ecfe7-7c06-4027-827c-ee191e13c27a?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 12:16:24 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/825ecfe7-7c06-4027-827c-ee191e13c27a/profileresults/profile000002/customdomainresults/customdomain000004?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: + - '14997' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/825ecfe7-7c06-4027-827c-ee191e13c27a?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, 19 Feb 2021 12:16: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --custom-domain-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/825ecfe7-7c06-4027-827c-ee191e13c27a?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: + - Fri, 19 Feb 2021 12:17:06 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd custom-domain list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/customDomains?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 12:17:08 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_afd_endpoint_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_endpoint_crud.yaml new file mode 100644 index 00000000000..1048a636ddc --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_endpoint_crud.yaml @@ -0,0 +1,850 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints?api-version=2020-09-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''profile123'' not + found."}}' + headers: + cache-control: + - no-cache + content-length: + - '151' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"166c044c-ee6b-46f1-a75d-92943c62b16d","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fddbe90d-1f9c-4d83-9724-243b9f75520d?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '463' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:45 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fddbe90d-1f9c-4d83-9724-243b9f75520d?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: + - Fri, 19 Feb 2021 11:46: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + 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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"166c044c-ee6b-46f1-a75d-92943c62b16d","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '462' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46: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 + 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: + - afd endpoint list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:59 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: '{"location": "global", "properties": {"originResponseTimeoutSeconds": 100, + "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + Content-Length: + - '102' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bb79ade5-fdb6-4d31-8824-2956f7246e2d?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '534' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:06 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bb79ade5-fdb6-4d31-8824-2956f7246e2d?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + 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: + - afd endpoint list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '547' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"enabledState": "Disabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint update + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5e21f79c-016a-41a7-84aa-6070f150eeb4?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5e21f79c-016a-41a7-84aa-6070f150eeb4/profileresults/profile123/afdendpointresults/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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint update + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5e21f79c-016a-41a7-84aa-6070f150eeb4?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: + - Fri, 19 Feb 2021 11:47:31 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint update + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:31 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": {"originResponseTimeoutSeconds": 120, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint update + Connection: + - keep-alive + Content-Length: + - '80' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":120,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07060ca8-8aaf-48ee-8419-4cb546e9916e?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:33 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07060ca8-8aaf-48ee-8419-4cb546e9916e/profileresults/profile123/afdendpointresults/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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint update + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07060ca8-8aaf-48ee-8419-4cb546e9916e?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: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint update + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":120,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --endpoint-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?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/3003bb16-5810-46b6-93a4-006c70127b84?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:47:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3003bb16-5810-46b6-93a4-006c70127b84/profileresults/profile123/afdendpointresults/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-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3003bb16-5810-46b6-93a4-006c70127b84?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: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_endpoint_purge.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_endpoint_purge.yaml new file mode 100644 index 00000000000..e9dccb78aaa --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_endpoint_purge.yaml @@ -0,0 +1,548 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"594955b3-e94e-4e1f-b4ce-79dc3f512ef1","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ab061baf-e2a8-45a7-8467-e0e3ff86fe29?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '463' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:44 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: + - '22' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ab061baf-e2a8-45a7-8467-e0e3ff86fe29?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, 19 Feb 2021 11:46: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ab061baf-e2a8-45a7-8467-e0e3ff86fe29?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + 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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"594955b3-e94e-4e1f-b4ce-79dc3f512ef1","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '462' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:25 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: '{"location": "global", "properties": {"originResponseTimeoutSeconds": 100, + "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + Content-Length: + - '102' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5293f5ac-880d-4925-84db-aaca7a90f5ee?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '534' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:32 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: + - '98' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5293f5ac-880d-4925-84db-aaca7a90f5ee?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: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: '{"contentPaths": ["/index.html", "/javascript/*"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint purge + Connection: + - keep-alive + Content-Length: + - '50' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --content-paths + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002/purge?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/a51b6aa9-5ddf-4f5a-88d4-f4c51cf7ba66?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:47:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a51b6aa9-5ddf-4f5a-88d4-f4c51cf7ba66/profileresults/profile123/afdendpointresults/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: + - '499' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint purge + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --content-paths + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a51b6aa9-5ddf-4f5a-88d4-f4c51cf7ba66?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: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: '{"contentPaths": ["/index.html", "/javascript/*"], "domains": ["endpoint000002.z01.azurefd.net"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint purge + Connection: + - keep-alive + Content-Length: + - '107' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --content-paths --domains + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002/purge?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/8a51520d-330a-471f-a67f-e79a43415dbc?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:47:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8a51520d-330a-471f-a67f-e79a43415dbc/profileresults/profile123/afdendpointresults/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: + - '499' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint purge + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --content-paths --domains + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8a51520d-330a-471f-a67f-e79a43415dbc?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: + - Fri, 19 Feb 2021 11:48: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_log_analytic.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_log_analytic.yaml new file mode 100644 index 00000000000..51e62a523ee --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_log_analytic.yaml @@ -0,0 +1,644 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"cfd9643b-6fd0-494b-9043-98f9f819cfb1","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/468dd7af-5d20-4cfd-ab80-65859c58f612?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '463' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46: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: + - '22' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/468dd7af-5d20-4cfd-ab80-65859c58f612?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, 19 Feb 2021 11:46: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/468dd7af-5d20-4cfd-ab80-65859c58f612?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + 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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"cfd9643b-6fd0-494b-9043-98f9f819cfb1","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '462' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:25 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: '{"location": "global", "properties": {"originResponseTimeoutSeconds": 100, + "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + Content-Length: + - '102' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14e1438d-a87e-45bf-8469-b41ff952a534?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '534' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:29 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14e1438d-a87e-45bf-8469-b41ff952a534?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + 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: + - afd log-analytic location list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/getLogAnalyticsLocations?api-version=2020-09-01 + response: + body: + string: '{"continents":[{"id":"africa"},{"id":"antarctica"},{"id":"asia"},{"id":"europe"},{"id":"northAmerica"},{"id":"oceania"},{"id":"southAmerica"}],"countryOrRegions":[{"id":"dz","continentId":"africa"},{"id":"ao","continentId":"africa"},{"id":"bw","continentId":"africa"},{"id":"bi","continentId":"africa"},{"id":"cm","continentId":"africa"},{"id":"cv","continentId":"africa"},{"id":"cf","continentId":"africa"},{"id":"td","continentId":"africa"},{"id":"km","continentId":"africa"},{"id":"yt","continentId":"africa"},{"id":"cg","continentId":"africa"},{"id":"cd","continentId":"africa"},{"id":"bj","continentId":"africa"},{"id":"gq","continentId":"africa"},{"id":"et","continentId":"africa"},{"id":"er","continentId":"africa"},{"id":"dj","continentId":"africa"},{"id":"ga","continentId":"africa"},{"id":"gm","continentId":"africa"},{"id":"gh","continentId":"africa"},{"id":"gn","continentId":"africa"},{"id":"ci","continentId":"africa"},{"id":"ke","continentId":"africa"},{"id":"ls","continentId":"africa"},{"id":"lr","continentId":"africa"},{"id":"ly","continentId":"africa"},{"id":"mg","continentId":"africa"},{"id":"mw","continentId":"africa"},{"id":"ml","continentId":"africa"},{"id":"mr","continentId":"africa"},{"id":"mu","continentId":"africa"},{"id":"ma","continentId":"africa"},{"id":"mz","continentId":"africa"},{"id":"na","continentId":"africa"},{"id":"ne","continentId":"africa"},{"id":"ng","continentId":"africa"},{"id":"gw","continentId":"africa"},{"id":"re","continentId":"africa"},{"id":"rw","continentId":"africa"},{"id":"sh","continentId":"africa"},{"id":"st","continentId":"africa"},{"id":"sn","continentId":"africa"},{"id":"sc","continentId":"africa"},{"id":"sl","continentId":"africa"},{"id":"so","continentId":"africa"},{"id":"za","continentId":"africa"},{"id":"zw","continentId":"africa"},{"id":"ss","continentId":"africa"},{"id":"eh","continentId":"africa"},{"id":"sd","continentId":"africa"},{"id":"sz","continentId":"africa"},{"id":"tg","continentId":"africa"},{"id":"tn","continentId":"africa"},{"id":"ug","continentId":"africa"},{"id":"eg","continentId":"africa"},{"id":"tz","continentId":"africa"},{"id":"bf","continentId":"africa"},{"id":"zm","continentId":"africa"},{"id":"aq","continentId":"antarctica"},{"id":"bv","continentId":"antarctica"},{"id":"gs","continentId":"antarctica"},{"id":"tf","continentId":"antarctica"},{"id":"hm","continentId":"antarctica"},{"id":"af","continentId":"asia"},{"id":"bh","continentId":"asia"},{"id":"bd","continentId":"asia"},{"id":"bt","continentId":"asia"},{"id":"io","continentId":"asia"},{"id":"bn","continentId":"asia"},{"id":"mm","continentId":"asia"},{"id":"kh","continentId":"asia"},{"id":"lk","continentId":"asia"},{"id":"cn","continentId":"asia"},{"id":"tw","continentId":"asia"},{"id":"cx","continentId":"asia"},{"id":"cc","continentId":"asia"},{"id":"cy","continentId":"asia"},{"id":"ps","continentId":"asia"},{"id":"hk","continentId":"asia"},{"id":"in","continentId":"asia"},{"id":"id","continentId":"asia"},{"id":"ir","continentId":"asia"},{"id":"iq","continentId":"asia"},{"id":"il","continentId":"asia"},{"id":"jp","continentId":"asia"},{"id":"kz","continentId":"asia"},{"id":"jo","continentId":"asia"},{"id":"kp","continentId":"asia"},{"id":"kr","continentId":"asia"},{"id":"kw","continentId":"asia"},{"id":"kg","continentId":"asia"},{"id":"la","continentId":"asia"},{"id":"lb","continentId":"asia"},{"id":"mo","continentId":"asia"},{"id":"my","continentId":"asia"},{"id":"mv","continentId":"asia"},{"id":"mn","continentId":"asia"},{"id":"om","continentId":"asia"},{"id":"np","continentId":"asia"},{"id":"pk","continentId":"asia"},{"id":"ph","continentId":"asia"},{"id":"tl","continentId":"asia"},{"id":"qa","continentId":"asia"},{"id":"sa","continentId":"asia"},{"id":"sg","continentId":"asia"},{"id":"vn","continentId":"asia"},{"id":"sy","continentId":"asia"},{"id":"tj","continentId":"asia"},{"id":"th","continentId":"asia"},{"id":"ae","continentId":"asia"},{"id":"tr","continentId":"asia"},{"id":"tm","continentId":"asia"},{"id":"uz","continentId":"asia"},{"id":"ye","continentId":"asia"},{"id":"xe","continentId":"asia"},{"id":"xd","continentId":"asia"},{"id":"xs","continentId":"asia"},{"id":"al","continentId":"europe"},{"id":"ad","continentId":"europe"},{"id":"az","continentId":"europe"},{"id":"at","continentId":"europe"},{"id":"am","continentId":"europe"},{"id":"be","continentId":"europe"},{"id":"ba","continentId":"europe"},{"id":"bg","continentId":"europe"},{"id":"by","continentId":"europe"},{"id":"hr","continentId":"europe"},{"id":"cz","continentId":"europe"},{"id":"dk","continentId":"europe"},{"id":"ee","continentId":"europe"},{"id":"fo","continentId":"europe"},{"id":"fi","continentId":"europe"},{"id":"ax","continentId":"europe"},{"id":"fr","continentId":"europe"},{"id":"ge","continentId":"europe"},{"id":"de","continentId":"europe"},{"id":"gi","continentId":"europe"},{"id":"gr","continentId":"europe"},{"id":"va","continentId":"europe"},{"id":"hu","continentId":"europe"},{"id":"is","continentId":"europe"},{"id":"ie","continentId":"europe"},{"id":"it","continentId":"europe"},{"id":"lv","continentId":"europe"},{"id":"li","continentId":"europe"},{"id":"lt","continentId":"europe"},{"id":"lu","continentId":"europe"},{"id":"mt","continentId":"europe"},{"id":"mc","continentId":"europe"},{"id":"md","continentId":"europe"},{"id":"me","continentId":"europe"},{"id":"nl","continentId":"europe"},{"id":"no","continentId":"europe"},{"id":"pl","continentId":"europe"},{"id":"pt","continentId":"europe"},{"id":"ro","continentId":"europe"},{"id":"ru","continentId":"europe"},{"id":"sm","continentId":"europe"},{"id":"rs","continentId":"europe"},{"id":"sk","continentId":"europe"},{"id":"si","continentId":"europe"},{"id":"es","continentId":"europe"},{"id":"sj","continentId":"europe"},{"id":"se","continentId":"europe"},{"id":"ch","continentId":"europe"},{"id":"ua","continentId":"europe"},{"id":"mk","continentId":"europe"},{"id":"gb","continentId":"europe"},{"id":"gg","continentId":"europe"},{"id":"je","continentId":"europe"},{"id":"im","continentId":"europe"},{"id":"ag","continentId":"northAmerica"},{"id":"bs","continentId":"northAmerica"},{"id":"bb","continentId":"northAmerica"},{"id":"bm","continentId":"northAmerica"},{"id":"bz","continentId":"northAmerica"},{"id":"vg","continentId":"northAmerica"},{"id":"ca","continentId":"northAmerica"},{"id":"ky","continentId":"northAmerica"},{"id":"cr","continentId":"northAmerica"},{"id":"cu","continentId":"northAmerica"},{"id":"dm","continentId":"northAmerica"},{"id":"do","continentId":"northAmerica"},{"id":"sv","continentId":"northAmerica"},{"id":"gl","continentId":"northAmerica"},{"id":"gd","continentId":"northAmerica"},{"id":"gp","continentId":"northAmerica"},{"id":"gt","continentId":"northAmerica"},{"id":"ht","continentId":"northAmerica"},{"id":"hn","continentId":"northAmerica"},{"id":"jm","continentId":"northAmerica"},{"id":"mq","continentId":"northAmerica"},{"id":"mx","continentId":"northAmerica"},{"id":"ms","continentId":"northAmerica"},{"id":"an","continentId":"northAmerica"},{"id":"cw","continentId":"northAmerica"},{"id":"aw","continentId":"northAmerica"},{"id":"sx","continentId":"northAmerica"},{"id":"bq","continentId":"northAmerica"},{"id":"ni","continentId":"northAmerica"},{"id":"um","continentId":"northAmerica"},{"id":"pa","continentId":"northAmerica"},{"id":"pr","continentId":"northAmerica"},{"id":"bl","continentId":"northAmerica"},{"id":"kn","continentId":"northAmerica"},{"id":"ai","continentId":"northAmerica"},{"id":"lc","continentId":"northAmerica"},{"id":"mf","continentId":"northAmerica"},{"id":"pm","continentId":"northAmerica"},{"id":"vc","continentId":"northAmerica"},{"id":"tt","continentId":"northAmerica"},{"id":"tc","continentId":"northAmerica"},{"id":"us","continentId":"northAmerica"},{"id":"vi","continentId":"northAmerica"},{"id":"as","continentId":"oceania"},{"id":"au","continentId":"oceania"},{"id":"sb","continentId":"oceania"},{"id":"ck","continentId":"oceania"},{"id":"fj","continentId":"oceania"},{"id":"pf","continentId":"oceania"},{"id":"ki","continentId":"oceania"},{"id":"gu","continentId":"oceania"},{"id":"nr","continentId":"oceania"},{"id":"nc","continentId":"oceania"},{"id":"vu","continentId":"oceania"},{"id":"nz","continentId":"oceania"},{"id":"nu","continentId":"oceania"},{"id":"nf","continentId":"oceania"},{"id":"mp","continentId":"oceania"},{"id":"fm","continentId":"oceania"},{"id":"mh","continentId":"oceania"},{"id":"pw","continentId":"oceania"},{"id":"pg","continentId":"oceania"},{"id":"pn","continentId":"oceania"},{"id":"tk","continentId":"oceania"},{"id":"to","continentId":"oceania"},{"id":"tv","continentId":"oceania"},{"id":"wf","continentId":"oceania"},{"id":"ws","continentId":"oceania"},{"id":"xx","continentId":"oceania"},{"id":"ar","continentId":"southAmerica"},{"id":"bo","continentId":"southAmerica"},{"id":"br","continentId":"southAmerica"},{"id":"cl","continentId":"southAmerica"},{"id":"co","continentId":"southAmerica"},{"id":"ec","continentId":"southAmerica"},{"id":"fk","continentId":"southAmerica"},{"id":"gf","continentId":"southAmerica"},{"id":"gy","continentId":"southAmerica"},{"id":"py","continentId":"southAmerica"},{"id":"pe","continentId":"southAmerica"},{"id":"sr","continentId":"southAmerica"},{"id":"uy","continentId":"southAmerica"},{"id":"ve","continentId":"southAmerica"}]}' + headers: + cache-control: + - no-cache + content-length: + - '9334' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd log-analytic resource list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/getLogAnalyticsResources?api-version=2020-09-01 + response: + body: + string: '{"endpoints":[{"id":"endpoint000002","name":"endpoint000002.z01.azurefd.net","history":false,"customDomains":[]}],"customDomains":[]}' + headers: + cache-control: + - no-cache + content-length: + - '153' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd log-analytic metric list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --metrics --date-time-begin --granularity --date-time-end + --custom-domains --protocols --group-by + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/getLogAnalyticsMetrics?api-version=2020-09-01&metrics=clientRequestCount&dateTimeBegin=2021-02-19T11%3A47%3A41.000Z&dateTimeEnd=2021-02-19T11%3A52%3A41.000Z&granularity=PT5M&groupBy=cacheStatus&customDomains=endpoint000002.z01.azurefd.net&protocols=http + response: + body: + string: '{"dateTimeBegin":"2021-02-19T11:47:41+00:00","dateTimeEnd":"2021-02-19T11:52:41+00:00","granularity":"PT5M","series":[]}' + headers: + cache-control: + - no-cache + content-length: + - '120' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd log-analytic ranking list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --metrics --date-time-begin --date-time-end --custom-domains + --rankings --max-ranking + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/getLogAnalyticsRankings?api-version=2020-09-01&rankings=referrer&metrics=clientRequestCount&maxRanking=10&dateTimeBegin=2021-02-19T11%3A47%3A41.000Z&dateTimeEnd=2021-02-19T11%3A52%3A41.000Z&customDomains=endpoint000002.z01.azurefd.net + response: + body: + string: '{"dateTimeBegin":"2021-02-19T11:47:41+00:00","dateTimeEnd":"2021-02-19T11:52:41+00:00","tables":[{"ranking":"referrer","data":[]}]}' + headers: + cache-control: + - no-cache + content-length: + - '131' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --endpoint-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?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/aee60b91-0a2b-42f0-a387-c76963d20b5e?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:47:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/aee60b91-0a2b-42f0-a387-c76963d20b5e/profileresults/profile123/afdendpointresults/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-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/aee60b91-0a2b-42f0-a387-c76963d20b5e?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: + - Fri, 19 Feb 2021 11:47: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/recordings/test_afd_origin_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_origin_crud.yaml new file mode 100644 index 00000000000..18dcbcab6d8 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_origin_crud.yaml @@ -0,0 +1,1819 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Premium_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"frontDoorId":"1c934b52-b250-4e36-a5d2-ce9951d3979e","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bcec11c5-b502-4d76-981d-8b3df6e12269?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '474' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:43 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bcec11c5-b502-4d76-981d-8b3df6e12269?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, 19 Feb 2021 11:46: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bcec11c5-b502-4d76-981d-8b3df6e12269?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"frontDoorId":"1c934b52-b250-4e36-a5d2-ce9951d3979e","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '473' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"loadBalancingSettings": {"sampleSize": 4, "successfulSamplesRequired": + 3, "additionalLatencyInMilliseconds": 50}, "healthProbeSettings": {"probePath": + "/test1/azure.txt", "probeRequestType": "GET", "probeProtocol": "Http", "probeIntervalInSeconds": + 120}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group create + Connection: + - keep-alive + Content-Length: + - '272' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --probe-request-type --probe-protocol + --probe-interval-in-seconds --probe-path --sample-size --successful-samples-required + --additional-latency-in-milliseconds + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Http","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '768' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:27 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: '{"properties": {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "httpPort": 80, "httpsPort": 443, "originHostHeader": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "priority": 1, "weight": 1000, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + Content-Length: + - '234' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":1000,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d4d488c0-bc6a-4b1c-938b-e9a82efaf819?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '687' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:29 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d4d488c0-bc6a-4b1c-938b-e9a82efaf819?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":1000,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '688' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: '{"properties": {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "httpPort": 8080, "httpsPort": 443, "originHostHeader": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "priority": 1, "weight": 666, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + Content-Length: + - '235' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000005?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000005","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000005","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":8080,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":666,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c51f3d57-2752-4ac0-856e-db26e0ac198f?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '688' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:41 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: + - '98' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c51f3d57-2752-4ac0-856e-db26e0ac198f?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000005?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000005","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000005","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":8080,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":666,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '689' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":1000,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000005","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000005","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":8080,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":666,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1390' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --http-port + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":1000,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '688' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "httpPort": 8080, "httpsPort": 443, "originHostHeader": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "priority": 1, "weight": 58, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + Content-Length: + - '234' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --http-port + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":8080,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/571771ce-b5d9-41c3-b1bf-11fa9e6f374c?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '687' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/571771ce-b5d9-41c3-b1bf-11fa9e6f374c/profileresults/profile000002/origingroupresults/og000003/originresults/origin000004?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --http-port + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/571771ce-b5d9-41c3-b1bf-11fa9e6f374c?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: + - Fri, 19 Feb 2021 11:48: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --http-port + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":8080,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '688' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --http-port --enable-private-link + --private-link-resource --private-link-sub-resource --private-link-location + --private-link-request-message + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":8080,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '688' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "httpPort": 80, "httpsPort": 443, "originHostHeader": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "priority": 1, "weight": 58, "sharedPrivateLinkResource": {"privateLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"}, + "privateLinkLocation": "eastus", "groupId": "blob", "requestMessage": "Private + link service from AFD"}, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + Content-Length: + - '531' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --http-port --enable-private-link + --private-link-resource --private-link-sub-resource --private-link-location + --private-link-request-message + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":{"privateLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"},"groupId":"blob","privateLinkLocation":"eastus","status":null,"requestMessage":"Private + link service from AFD"},"provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/456da961-83fd-4f53-9bf9-e86987826803?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:11 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/456da961-83fd-4f53-9bf9-e86987826803/profileresults/profile000002/origingroupresults/og000003/originresults/origin000004?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --http-port --enable-private-link + --private-link-resource --private-link-sub-resource --private-link-location + --private-link-request-message + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/456da961-83fd-4f53-9bf9-e86987826803?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, 19 Feb 2021 11:48: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --http-port --enable-private-link + --private-link-resource --private-link-sub-resource --private-link-location + --private-link-request-message + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/456da961-83fd-4f53-9bf9-e86987826803?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: + - Fri, 19 Feb 2021 11:48: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --http-port --enable-private-link + --private-link-resource --private-link-sub-resource --private-link-location + --private-link-request-message + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":{"privateLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"},"groupId":"blob","privateLinkLocation":"eastus","status":null,"requestMessage":"Private + link service from AFD"},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '956' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --private-link-sub-resource + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":{"privateLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"},"groupId":"blob","privateLinkLocation":"eastus","status":null,"requestMessage":"Private + link service from AFD"},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '956' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: '{"properties": {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "httpPort": 80, "httpsPort": 443, "originHostHeader": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "priority": 1, "weight": 58, "sharedPrivateLinkResource": {"privateLink": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"}, + "privateLinkLocation": "eastus", "groupId": "table", "requestMessage": "Private + link service from AFD"}, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + Content-Length: + - '532' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --private-link-sub-resource + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":{"privateLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"},"groupId":"table","privateLinkLocation":"eastus","status":null,"requestMessage":"Private + link service from AFD"},"provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f442ce7c-26bf-4598-85d7-1c58c81f9943?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '956' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f442ce7c-26bf-4598-85d7-1c58c81f9943/profileresults/profile000002/origingroupresults/og000003/originresults/origin000004?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --private-link-sub-resource + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f442ce7c-26bf-4598-85d7-1c58c81f9943?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, 19 Feb 2021 11:49:05 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --private-link-sub-resource + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f442ce7c-26bf-4598-85d7-1c58c81f9943?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: + - Fri, 19 Feb 2021 11:49: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --private-link-sub-resource + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":{"privateLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"},"groupId":"table","privateLinkLocation":"eastus","status":null,"requestMessage":"Private + link service from AFD"},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '957' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --enable-private-link + --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":58,"enabledState":"Enabled","sharedPrivateLinkResource":{"privateLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"},"groupId":"table","privateLinkLocation":"eastus","status":null,"requestMessage":"Private + link service from AFD"},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '957' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "httpPort": 80, "httpsPort": 443, "originHostHeader": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "priority": 1, "weight": 99, "enabledState": "Disabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --enable-private-link + --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":99,"enabledState":"Disabled","sharedPrivateLinkResource":null,"provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc45ee5c-dd48-488a-94c9-9f68d8978c21?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '686' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc45ee5c-dd48-488a-94c9-9f68d8978c21/profileresults/profile000002/origingroupresults/og000003/originresults/origin000004?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --enable-private-link + --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc45ee5c-dd48-488a-94c9-9f68d8978c21?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: + - Fri, 19 Feb 2021 11:49:49 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --weight --enable-private-link + --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000004","properties":{"originGroupName":"og000003","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":99,"enabledState":"Disabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '687' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:50 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000004?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/833e2667-5190-4bcd-97c3-27d76e9e8110?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:49:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/833e2667-5190-4bcd-97c3-27d76e9e8110/profileresults/profile000002/origingroupresults/og000003/originresults/origin000004?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: + - '14996' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/833e2667-5190-4bcd-97c3-27d76e9e8110?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: + - Fri, 19 Feb 2021 11:50: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins/origin000005?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/02cfb577-a945-4874-ac6e-6166be358149?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:50:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02cfb577-a945-4874-ac6e-6166be358149/profileresults/profile000002/origingroupresults/og000003/originresults/origin000005?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02cfb577-a945-4874-ac6e-6166be358149?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, 19 Feb 2021 11:50: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02cfb577-a945-4874-ac6e-6166be358149?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: + - Fri, 19 Feb 2021 11:50: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003/origins?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_origin_group_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_origin_group_crud.yaml new file mode 100644 index 00000000000..64450671ac4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_origin_group_crud.yaml @@ -0,0 +1,1059 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"2e105366-9d1f-4c8b-953b-3d6a3fa79ba3","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7c990359-a1bb-45d3-bef4-8374c866b366?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '475' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:43 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: + - '22' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7c990359-a1bb-45d3-bef4-8374c866b366?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: + - Fri, 19 Feb 2021 11:46: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"2e105366-9d1f-4c8b-953b-3d6a3fa79ba3","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '474' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46: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 + 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: + - afd origin-group list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"loadBalancingSettings": {"sampleSize": 4, "successfulSamplesRequired": + 3, "additionalLatencyInMilliseconds": 50}, "healthProbeSettings": {"probePath": + "/test1/azure.txt", "probeRequestType": "GET", "probeProtocol": "Http", "probeIntervalInSeconds": + 120}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group create + Connection: + - keep-alive + Content-Length: + - '272' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --probe-request-type --probe-protocol + --probe-interval-in-seconds --probe-path --sample-size --successful-samples-required + --additional-latency-in-milliseconds + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Http","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '768' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:58 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Http","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '780' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:59 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --probe-request-type --probe-protocol + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Http","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '768' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:59 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: '{"properties": {"loadBalancingSettings": {"sampleSize": 4, "successfulSamplesRequired": + 3, "additionalLatencyInMilliseconds": 50}, "healthProbeSettings": {"probePath": + "/test1/azure.txt", "probeRequestType": "GET", "probeProtocol": "Https", "probeIntervalInSeconds": + 120}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + Content-Length: + - '273' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --probe-request-type --probe-protocol + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/20542545-a6bc-47ac-a2a9-228491ddac43?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '768' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:01 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/20542545-a6bc-47ac-a2a9-228491ddac43/profileresults/profile000002/origingroupresults/og000003?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --probe-request-type --probe-protocol + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/20542545-a6bc-47ac-a2a9-228491ddac43?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --probe-request-type --probe-protocol + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '769' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '769' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:14 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: '{"properties": {"loadBalancingSettings": {"sampleSize": 5, "successfulSamplesRequired": + 3, "additionalLatencyInMilliseconds": 30}, "healthProbeSettings": {"probePath": + "/test1/azure.txt", "probeRequestType": "GET", "probeProtocol": "Https", "probeIntervalInSeconds": + 120}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + Content-Length: + - '273' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":5,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":30},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bef4dbae-c0ef-4c64-803a-7e51b90124cf?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '768' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:16 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bef4dbae-c0ef-4c64-803a-7e51b90124cf/profileresults/profile000002/origingroupresults/og000003?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bef4dbae-c0ef-4c64-803a-7e51b90124cf?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: + - Fri, 19 Feb 2021 11:47:25 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":5,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":30},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '769' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + --probe-request-type + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":5,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":30},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '769' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: '{"properties": {"loadBalancingSettings": {"sampleSize": 4, "successfulSamplesRequired": + 3, "additionalLatencyInMilliseconds": 30}, "healthProbeSettings": {"probePath": + "/test1/azure.txt", "probeRequestType": "HEAD", "probeProtocol": "Https", "probeIntervalInSeconds": + 120}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + Content-Length: + - '274' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + --probe-request-type + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":30},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"HEAD","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/510a75ad-7e9e-454c-bfbf-ecf170ecd37a?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '769' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:29 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/510a75ad-7e9e-454c-bfbf-ecf170ecd37a/profileresults/profile000002/origingroupresults/og000003?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + --probe-request-type + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/510a75ad-7e9e-454c-bfbf-ecf170ecd37a?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: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --sample-size --additional-latency-in-milliseconds + --probe-request-type + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003","type":"Microsoft.Cdn/profiles/originGroups","name":"og000003","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":30},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"HEAD","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '770' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --origin-group-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000003?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/81bdc4e6-829a-4e37-ad5a-e72092358b50?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:47:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/81bdc4e6-829a-4e37-ad5a-e72092358b50/profileresults/profile000002/origingroupresults/og000003?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/81bdc4e6-829a-4e37-ad5a-e72092358b50?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_profile_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_profile_crud.yaml new file mode 100644 index 00000000000..a4745fd1a86 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_profile_crud.yaml @@ -0,0 +1,807 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:04 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: '{"location": "global", "tags": {"tag1": "value1", "tag2": "value2"}, "sku": + {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '112' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku --tags + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag1":"value1","tag2":"value2"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/68d19dd1-9fe8-4111-980a-8416fa1cc65b?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '522' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:11 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku --tags + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/68d19dd1-9fe8-4111-980a-8416fa1cc65b?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: + - Fri, 19 Feb 2021 11:48: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku --tags + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag1":"value1","tag2":"value2"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '521' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag1":"value1","tag2":"value2"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Active","provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '533' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:23 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: + - afd profile show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag1":"value1","tag2":"value2"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '521' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - '47' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --tags + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag1":"value1","tag2":"value2"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '521' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"tags": {"tag3": "value3", "tag4": "value4"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile update + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --tags + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag3":"value3","tag4":"value4"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d54f8a25-1400-47dd-a1ba-313daf1306d5?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '521' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:26 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d54f8a25-1400-47dd-a1ba-313daf1306d5/profileresults/profile000002?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: + - '21' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --tags + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d54f8a25-1400-47dd-a1ba-313daf1306d5?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: + - Fri, 19 Feb 2021 11:48: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --tags + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag3":"value3","tag4":"value4"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '521' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile usage + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/usages?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","unit":"count","currentValue":0,"limit":25,"name":{"value":"afdEndpoint","localizedValue":"afdEndpoint"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","unit":"count","currentValue":0,"limit":25,"name":{"value":"customdomain","localizedValue":"customdomain"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","unit":"count","currentValue":0,"limit":25,"name":{"value":"origingroup","localizedValue":"origingroup"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","unit":"count","currentValue":0,"limit":25,"name":{"value":"secret","localizedValue":"secret"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","unit":"count","currentValue":0,"limit":25,"name":{"value":"ruleset","localizedValue":"ruleset"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","unit":"count","currentValue":0,"limit":25,"name":{"value":"securityPolicy","localizedValue":"securityPolicy"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1891' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{"tag3":"value3","tag4":"value4"},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"07338272-b698-4f11-981e-fa23605cd03f","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '521' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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 + 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: + - afd profile delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?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/a9cecd92-53dc-4cc7-9327-a68ee2b8aa4c?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:48:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a9cecd92-53dc-4cc7-9327-a68ee2b8aa4c/profileresults/profile000002?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: + - '14997' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a9cecd92-53dc-4cc7-9327-a68ee2b8aa4c?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, 19 Feb 2021 11:48: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a9cecd92-53dc-4cc7-9327-a68ee2b8aa4c?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: + - Fri, 19 Feb 2021 11:49: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:23 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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_route_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_route_crud.yaml new file mode 100644 index 00000000000..cfbc0895bbf --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_route_crud.yaml @@ -0,0 +1,1868 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"2b8f63d3-2d8e-4d19-b209-7befdce8a6f8","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cdee9d9e-fcff-4fbb-9b17-e882775b0d6c?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '475' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:22 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cdee9d9e-fcff-4fbb-9b17-e882775b0d6c?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, 19 Feb 2021 11:48:32 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cdee9d9e-fcff-4fbb-9b17-e882775b0d6c?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: + - Fri, 19 Feb 2021 11:49: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"2b8f63d3-2d8e-4d19-b209-7befdce8a6f8","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '474' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:04 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: '{"location": "global", "properties": {"originResponseTimeoutSeconds": 100, + "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + Content-Length: + - '102' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000003","location":"Global","tags":{},"properties":{"hostName":"endpoint000003.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7539c5ba-0a2d-4b4e-86b4-b917f8a74067?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '540' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:12 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7539c5ba-0a2d-4b4e-86b4-b917f8a74067?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: + - Fri, 19 Feb 2021 11:49:23 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000003","location":"Global","tags":{},"properties":{"hostName":"endpoint000003.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '541' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:23 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": {"loadBalancingSettings": {"sampleSize": 4, "successfulSamplesRequired": + 3, "additionalLatencyInMilliseconds": 50}, "healthProbeSettings": {"probePath": + "/test1/azure.txt", "probeRequestType": "GET", "probeProtocol": "Http", "probeIntervalInSeconds": + 120}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin-group create + Connection: + - keep-alive + Content-Length: + - '272' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --probe-request-type --probe-protocol + --probe-interval-in-seconds --probe-path --sample-size --successful-samples-required + --additional-latency-in-milliseconds + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004","type":"Microsoft.Cdn/profiles/originGroups","name":"og000004","properties":{"loadBalancingSettings":{"sampleSize":4,"successfulSamplesRequired":3,"additionalLatencyInMilliseconds":50},"healthProbeSettings":{"probePath":"/test1/azure.txt","probeRequestType":"GET","probeProtocol":"Http","probeIntervalInSeconds":120},"responseBasedAFDOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"sessionAffinityState":"Disabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '768' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:25 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: + - '98' + status: + code: 201 + message: Created +- request: + body: '{"properties": {"hostName": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "httpPort": 80, "httpsPort": 443, "originHostHeader": "huaiyiztesthost1.blob.core.chinacloudapi.cn", + "priority": 1, "weight": 1000, "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + Content-Length: + - '234' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004/origins/origin000005?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004/origins/origin000005","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000005","properties":{"originGroupName":"og000004","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":1000,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5a74a363-da12-4fe1-b1f4-68e5f35ecab6?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '687' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:27 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/5a74a363-da12-4fe1-b1f4-68e5f35ecab6?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: + - Fri, 19 Feb 2021 11:49: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd origin create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --origin-group-name --origin-name --host-name --origin-host-header + --priority --weight --http-port --https-port --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004/origins/origin000005?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004/origins/origin000005","type":"Microsoft.Cdn/profiles/originGroups/origins","name":"origin000005","properties":{"originGroupName":"og000004","hostName":"huaiyiztesthost1.blob.core.chinacloudapi.cn","httpPort":80,"httpsPort":443,"originHostHeader":"huaiyiztesthost1.blob.core.chinacloudapi.cn","priority":1,"weight":1000,"enabledState":"Enabled","sharedPrivateLinkResource":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '688' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49: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: '{"properties": {"customDomains": [], "originGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"}, + "ruleSets": [], "supportedProtocols": ["Https", "Http"], "patternsToMatch": + ["/*"], "compressionSettings": {"isCompressionEnabled": false}, "forwardingProtocol": + "MatchRequest", "linkToDefaultDomain": "Enabled", "httpsRedirect": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route create + Connection: + - keep-alive + Content-Length: + - '526' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --endpoint-name --route-name --origin-group --supported-protocols + --link-to-default-domain --https-redirect --forwarding-protocol + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":null},"queryStringCachingBehavior":"NotSet","forwardingProtocol":"MatchRequest","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b2571511-98b1-4b13-bcab-d604d964e957?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1019' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:40 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --route-name --origin-group --supported-protocols + --link-to-default-domain --https-redirect --forwarding-protocol + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b2571511-98b1-4b13-bcab-d604d964e957?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: + - Fri, 19 Feb 2021 11:49:51 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --route-name --origin-group --supported-protocols + --link-to-default-domain --https-redirect --forwarding-protocol + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":null},"queryStringCachingBehavior":"NotSet","forwardingProtocol":"MatchRequest","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1020' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:51 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":null},"queryStringCachingBehavior":"NotSet","forwardingProtocol":"MatchRequest","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1032' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --forwarding-protocol --query-string-caching-behavior + --enable-compression --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":null},"queryStringCachingBehavior":"NotSet","forwardingProtocol":"MatchRequest","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1020' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49: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: '{"properties": {"customDomains": [], "originGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"}, + "ruleSets": [], "supportedProtocols": ["Https", "Http"], "patternsToMatch": + ["/*"], "compressionSettings": {"contentTypesToCompress": ["text/javascript", + "text/plain"], "isCompressionEnabled": true}, "queryStringCachingBehavior": + "IgnoreQueryString", "forwardingProtocol": "HttpsOnly", "linkToDefaultDomain": + "Enabled", "httpsRedirect": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + Content-Length: + - '634' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --forwarding-protocol --query-string-caching-behavior + --enable-compression --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":true,"contentTypesToCompress":["text/javascript","text/plain"]},"queryStringCachingBehavior":"IgnoreQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/934558d6-34e6-44a7-bcca-f062253b6152?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1054' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:55 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/934558d6-34e6-44a7-bcca-f062253b6152/profileresults/profile000002/afdendpointresults/endpoint000003/routeresults/route000006?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --forwarding-protocol --query-string-caching-behavior + --enable-compression --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/934558d6-34e6-44a7-bcca-f062253b6152?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, 19 Feb 2021 11:50:06 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --forwarding-protocol --query-string-caching-behavior + --enable-compression --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/934558d6-34e6-44a7-bcca-f062253b6152?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: + - Fri, 19 Feb 2021 11:50: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --forwarding-protocol --query-string-caching-behavior + --enable-compression --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":true,"contentTypesToCompress":["text/javascript","text/plain"]},"queryStringCachingBehavior":"IgnoreQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1055' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --query-string-caching-behavior + --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":true,"contentTypesToCompress":["text/javascript","text/plain"]},"queryStringCachingBehavior":"IgnoreQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1055' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customDomains": [], "originGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"}, + "ruleSets": [], "supportedProtocols": ["Https", "Http"], "patternsToMatch": + ["/*"], "compressionSettings": {"contentTypesToCompress": ["text/css"], "isCompressionEnabled": + true}, "queryStringCachingBehavior": "UseQueryString", "forwardingProtocol": + "HttpsOnly", "linkToDefaultDomain": "Enabled", "httpsRedirect": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + Content-Length: + - '610' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --query-string-caching-behavior + --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":true,"contentTypesToCompress":["text/css"]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/86ee1f24-4d9d-4df8-a9e1-38ac49b3e813?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1031' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/86ee1f24-4d9d-4df8-a9e1-38ac49b3e813/profileresults/profile000002/afdendpointresults/endpoint000003/routeresults/route000006?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --query-string-caching-behavior + --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/86ee1f24-4d9d-4df8-a9e1-38ac49b3e813?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: + - Fri, 19 Feb 2021 11:50: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --query-string-caching-behavior + --content-types-to-compress + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":true,"contentTypesToCompress":["text/css"]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1032' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000007?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000007","type":"Microsoft.Cdn/profiles/rulesets","name":"ruleset000007","properties":{"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '373' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50:54 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --enable-compression + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":true,"contentTypesToCompress":["text/css"]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1032' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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: '{"properties": {"customDomains": [], "originGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"}, + "ruleSets": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000007"}], + "supportedProtocols": ["Https", "Http"], "patternsToMatch": ["/*"], "queryStringCachingBehavior": + "UseQueryString", "forwardingProtocol": "HttpsOnly", "linkToDefaultDomain": + "Enabled", "httpsRedirect": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + Content-Length: + - '743' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --enable-compression + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000007"}],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":[]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6706272f-8292-4010-817e-3b9d4e808f47?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1249' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6706272f-8292-4010-817e-3b9d4e808f47/profileresults/profile000002/afdendpointresults/endpoint000003/routeresults/route000006?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --enable-compression + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6706272f-8292-4010-817e-3b9d4e808f47?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: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --enable-compression + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000007"}],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":[]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1250' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51:08 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --https-redirect + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000007"}],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":[]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Enabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1250' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"customDomains": [], "originGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"}, + "ruleSets": [], "supportedProtocols": ["Https", "Http"], "patternsToMatch": + ["/*"], "compressionSettings": {"isCompressionEnabled": false, "contentTypesToCompress": + []}, "queryStringCachingBehavior": "UseQueryString", "forwardingProtocol": "HttpsOnly", + "linkToDefaultDomain": "Enabled", "httpsRedirect": "Disabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + Content-Length: + - '602' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --https-redirect + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":[]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Disabled","enabledState":"Enabled","provisioningState":"Updating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/43ff92da-93d3-435e-baa2-e67a39370688?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1023' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/43ff92da-93d3-435e-baa2-e67a39370688/profileresults/profile000002/afdendpointresults/endpoint000003/routeresults/route000006?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --https-redirect + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/43ff92da-93d3-435e-baa2-e67a39370688?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, 19 Feb 2021 11:51:23 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --https-redirect + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/43ff92da-93d3-435e-baa2-e67a39370688?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: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --route-name --endpoint-name --rule-sets --https-redirect + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006","type":"Microsoft.Cdn/profiles/afdendpoints/routes","name":"route000006","properties":{"customDomains":[],"originGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/originGroups/og000004"},"originPath":null,"ruleSets":[],"supportedProtocols":["Https","Http"],"patternsToMatch":["/*"],"compressionSettings":{"isCompressionEnabled":false,"contentTypesToCompress":[]},"queryStringCachingBehavior":"UseQueryString","forwardingProtocol":"HttpsOnly","linkToDefaultDomain":"Enabled","httpsRedirect":"Disabled","enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1024' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --endpoint-name --route-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes/route000006?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/107c07fe-2651-49bf-8050-86115055cebe?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:51:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/107c07fe-2651-49bf-8050-86115055cebe/profileresults/profile000002/afdendpointresults/endpoint000003/routeresults/route000006?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: + - '14997' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name --route-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/107c07fe-2651-49bf-8050-86115055cebe?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: + - Fri, 19 Feb 2021 11:52: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd route list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --endpoint-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/afdEndpoints/endpoint000003/routes?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:52: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_rule_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_rule_crud.yaml new file mode 100644 index 00000000000..afc39785cc6 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_rule_crud.yaml @@ -0,0 +1,1098 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"ff12cacb-3f01-41a5-aa76-ffc8837ecacd","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/25318ab2-53ce-4bb1-adf8-9d9f7931ddc7?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '475' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:12 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/25318ab2-53ce-4bb1-adf8-9d9f7931ddc7?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: + - Fri, 19 Feb 2021 11:48: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"ff12cacb-3f01-41a5-aa76-ffc8837ecacd","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '474' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:23 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: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003","type":"Microsoft.Cdn/profiles/rulesets","name":"ruleset000003","properties":{"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '373' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:24 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule list + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:25 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: '{"properties": {"order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "matchValues": ["TH"]}}], "actions": [{"name": "CacheExpiration", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "BypassCache", "cacheType": "All"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule create + Connection: + - keep-alive + Content-Length: + - '425' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --match-variable --operator + --match-values --action-name --cache-behavior --order + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '853' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:27 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: '{"properties": {"order": 2, "conditions": [{"name": "RequestScheme", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters", + "operator": "Equal", "matchValues": ["HTTP"]}}], "actions": [{"name": "UrlRedirect", + "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters", + "redirectType": "Moved", "destinationProtocol": "Https"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule create + Connection: + - keep-alive + Content-Length: + - '421' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --match-variable --match-values + --action-name --redirect-protocol --redirect-type --order + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r2?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r2","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r2","properties":{"order":2,"conditions":[{"name":"RequestScheme","parameters":{"matchValues":["HTTP"],"operator":"Equal","negateCondition":false,"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters"}}],"actions":[{"name":"UrlRedirect","parameters":{"redirectType":"Moved","destinationProtocol":"Https","customQueryString":null,"customPath":null,"customHostname":null,"customFragment":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '915' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:28 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule list + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r2","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r2","properties":{"order":2,"conditions":[{"name":"RequestScheme","parameters":{"matchValues":["HTTP"],"operator":"Equal","negateCondition":false,"transforms":[],"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters"}}],"actions":[{"name":"UrlRedirect","parameters":{"redirectType":"Moved","destinationProtocol":"Https","customQueryString":null,"customPath":null,"customHostname":null,"customFragment":null,"@odata.type":"#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1781' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:29 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r2?api-version=2020-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:48:30 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-deletes: + - '14996' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule list + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '865' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:31 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule condition add + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --match-variable --operator + --match-values + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '853' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:32 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: '{"properties": {"order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}, {"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "matchValues": ["TH", "US"]}}], "actions": [{"name": + "CacheExpiration", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", + "cacheBehavior": "BypassCache", "cacheType": "All"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule condition add + Connection: + - keep-alive + Content-Length: + - '656' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --match-variable --operator + --match-values + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1070' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:34 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: + - '99' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule action add + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --action-name --source-pattern + --destination + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1070' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: '{"properties": {"order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH"], "transforms": + []}}, {"name": "RemoteAddress", "parameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH", "US"], + "transforms": []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": + "BypassCache", "cacheType": "All"}}, {"name": "UrlRewrite", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", "sourcePattern": + "/abc", "destination": "/def"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule action add + Connection: + - keep-alive + Content-Length: + - '873' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --action-name --source-pattern + --destination + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1263' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - '99' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule condition remove + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --index + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1263' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: '{"properties": {"order": 1, "conditions": [{"name": "RemoteAddress", "parameters": + {"@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", + "operator": "GeoMatch", "negateCondition": false, "matchValues": ["TH", "US"], + "transforms": []}}], "actions": [{"name": "CacheExpiration", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", "cacheBehavior": + "BypassCache", "cacheType": "All"}}, {"name": "UrlRewrite", "parameters": {"@odata.type": + "#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters", "sourcePattern": + "/abc", "destination": "/def"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule condition remove + Connection: + - keep-alive + Content-Length: + - '648' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --index + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1051' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - '99' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule action remove + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --index + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '1051' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: '{"properties": {"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"}}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule action remove + Connection: + - keep-alive + Content-Length: + - '461' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --index + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003/rules/r1","type":"Microsoft.Cdn/profiles/rulesets/rules","name":"r1","properties":{"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"}}],"matchProcessingBehavior":null,"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '852' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '98' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --rule-set-name --profile-name --rule-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules/r1?api-version=2020-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:48: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-deletes: + - '14996' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule list + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003/rules?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --rule-set-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003?api-version=2020-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:48:44 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-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_crud.yaml new file mode 100644 index 00000000000..fe19f13b96a --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_crud.yaml @@ -0,0 +1,692 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets?api-version=2020-09-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''profilesecrettest'' + not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '158' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:37:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + 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-02-15T15:37:01Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:37:12 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_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest","type":"Microsoft.Cdn/profiles","name":"profilesecrettest","location":"WestUs","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"5d895625-1117-478e-b188-639be1619ea7","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f6e681a6-568c-4bdb-a413-03151c24f935?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '477' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:37:21 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: + - 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.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f6e681a6-568c-4bdb-a413-03151c24f935?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: + - Mon, 15 Feb 2021 15:37:32 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: + - 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.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f6e681a6-568c-4bdb-a413-03151c24f935?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: + - Mon, 15 Feb 2021 15:38: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn profile create + Connection: + - keep-alive + ParameterSetName: + - -g -n --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest","type":"Microsoft.Cdn/profiles","name":"profilesecrettest","location":"WestUs","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"5d895625-1117-478e-b188-639be1619ea7","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '476' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38: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: + - '49' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38:04 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: '{"properties": {"parameters": {"type": "CustomerCertificate", "secretSource": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"}, + "secretVersion": "3528eb888f114c20930edbd56c7ed57c", "useLatestVersion": false}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + Content-Length: + - '362' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version --secret-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002","type":"Microsoft.Cdn/profiles/secrets","name":"secret000002","properties":{"parameters":{"type":"CustomerCertificate","subject":null,"certificateAuthority":null,"expirationDate":null,"thumbprint":null,"secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":null},"provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b963d342-e8c3-4de1-96af-7e881e966349?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '837' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38:06 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version --secret-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b963d342-e8c3-4de1-96af-7e881e966349?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: + - Mon, 15 Feb 2021 15:38: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version --secret-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002","type":"Microsoft.Cdn/profiles/secrets","name":"secret000002","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002","type":"Microsoft.Cdn/profiles/secrets","name":"secret000002","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002","type":"Microsoft.Cdn/profiles/secrets","name":"secret000002","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '967' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --use-latest-version --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002","type":"Microsoft.Cdn/profiles/secrets","name":"secret000002","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38: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 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"parameters": {"type": "CustomerCertificate", "secretSource": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi"}, + "useLatestVersion": true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret update + Connection: + - keep-alive + Content-Length: + - '275' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --secret-name --use-latest-version --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecrettest/secrets/secret000002","type":"Microsoft.Cdn/profiles/secrets","name":"secret000002","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Feb 2021 15:38:23 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: + - '99' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_latest_version_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_latest_version_crud.yaml new file mode 100644 index 00000000000..4ef09d5b3d7 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_latest_version_crud.yaml @@ -0,0 +1,496 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"4728978a-198f-4410-bc7e-89f7ea1fd1e5","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/91eda88a-5456-4ade-9a8f-86ce96ce6ca3?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '491' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:05 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/91eda88a-5456-4ade-9a8f-86ce96ce6ca3?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: + - Fri, 19 Feb 2021 11:48:16 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"4728978a-198f-4410-bc7e-89f7ea1fd1e5","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '490' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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 + 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: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: '{"properties": {"parameters": {"type": "CustomerCertificate", "secretSource": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi"}, + "useLatestVersion": true}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + Content-Length: + - '275' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":null,"certificateAuthority":null,"expirationDate":null,"thumbprint":null,"secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi"},"secretVersion":null,"useLatestVersion":true,"subjectAlternativeNames":null},"provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c943bed5-ec05-46ab-8436-5a0ac1c0bc19?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '780' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:19 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c943bed5-ec05-46ab-8436-5a0ac1c0bc19?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: + - Fri, 19 Feb 2021 11:48:29 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":"*.localdev.cdn.azure.cn","certificateAuthority":"DigiCert + Basic RSA CN CA G2","expirationDate":"2021-12-08T23:59:59+00:00","thumbprint":"E23BED5CF38497BDA0CF3050BF879C0E6874C205","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi"},"secretVersion":"8191a537d089481d91f20dc0b1e59e0a","useLatestVersion":true,"subjectAlternativeNames":["*.localdev.cdn.azure.cn","localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '965' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:30 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":"*.localdev.cdn.azure.cn","certificateAuthority":"DigiCert + Basic RSA CN CA G2","expirationDate":"2021-12-08T23:59:59+00:00","thumbprint":"E23BED5CF38497BDA0CF3050BF879C0E6874C205","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi"},"secretVersion":"8191a537d089481d91f20dc0b1e59e0a","useLatestVersion":true,"subjectAlternativeNames":["*.localdev.cdn.azure.cn","localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '965' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:31 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --secret-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:48:32 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-deletes: + - '14998' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:33 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_afd_secret_specific_version_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_specific_version_crud.yaml new file mode 100644 index 00000000000..7ce7466a0d4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_secret_specific_version_crud.yaml @@ -0,0 +1,590 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets?api-version=2020-09-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''profile000002'' + not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '165' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"97658bec-11fa-4387-bee3-6fdf63a2a533","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52fcc65f-ca57-4142-ace1-d86359747d93?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '491' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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: + - '21' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/52fcc65f-ca57-4142-ace1-d86359747d93?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: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"97658bec-11fa-4387-bee3-6fdf63a2a533","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '490' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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 + 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: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51:14 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: '{"properties": {"parameters": {"type": "CustomerCertificate", "secretSource": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"}, + "secretVersion": "3528eb888f114c20930edbd56c7ed57c", "useLatestVersion": false}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + Content-Length: + - '362' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version --secret-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":null,"certificateAuthority":null,"expirationDate":null,"thumbprint":null,"secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":null},"provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1e6fd959-26ec-4515-8434-91f9ea3a9fb6?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '844' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51:15 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: + - '98' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version --secret-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/1e6fd959-26ec-4515-8434-91f9ea3a9fb6?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: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name --secret-source --use-latest-version --secret-version + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '962' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --secret-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '962' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003","type":"Microsoft.Cdn/profiles/secrets","name":"secret000003","properties":{"parameters":{"type":"CustomerCertificate","subject":"clitest.localdev.cdn.azure.cn","certificateAuthority":"R3","expirationDate":"2021-05-16T10:43:37+00:00","thumbprint":"7438D3856FA95A15EEDB1D12CA4E2A73DE0B7DC8","secretSource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi/3528eb888f114c20930edbd56c7ed57c"},"secretVersion":"3528eb888f114c20930edbd56c7ed57c","useLatestVersion":false,"subjectAlternativeNames":["clitest.localdev.cdn.azure.cn"]},"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '974' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --secret-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets/secret000003?api-version=2020-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:51:29 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-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd secret list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/secrets?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51:30 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_afd_security_policy_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_security_policy_crud.yaml new file mode 100644 index 00000000000..589bdadd0cc --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_security_policy_crud.yaml @@ -0,0 +1,1238 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies?api-version=2020-09-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''profilesecuritytest'' + not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '160' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest","type":"Microsoft.Cdn/profiles","name":"profilesecuritytest","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"1a1226e3-3a50-49d7-a291-eef4658cfbf6","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/86724efd-f49a-4527-b110-e5e1b7cf9f3f?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '481' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:46 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/86724efd-f49a-4527-b110-e5e1b7cf9f3f?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: + - Fri, 19 Feb 2021 11:48: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest","type":"Microsoft.Cdn/profiles","name":"profilesecuritytest","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"1a1226e3-3a50-49d7-a291-eef4658cfbf6","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '480' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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 + 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: + - afd security-policy list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:59 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: '{"location": "global", "properties": {"originResponseTimeoutSeconds": 100, + "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + Content-Length: + - '102' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint1000002","location":"Global","tags":{},"properties":{"hostName":"endpoint1000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/64033e6f-e7ad-4be8-b9f5-24c91062efab?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:03 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: + - '98' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/64033e6f-e7ad-4be8-b9f5-24c91062efab?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: + - Fri, 19 Feb 2021 11:49:14 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint1000002","location":"Global","tags":{},"properties":{"hostName":"endpoint1000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '544' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:14 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: '{"location": "global", "properties": {"originResponseTimeoutSeconds": 100, + "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + Content-Length: + - '102' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint2000003","location":"Global","tags":{},"properties":{"hostName":"endpoint2000003.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/70381535-866c-4635-8ff0-35e3545907ef?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:22 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/70381535-866c-4635-8ff0-35e3545907ef?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: + - Fri, 19 Feb 2021 11:49:31 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint2000003","location":"Global","tags":{},"properties":{"hostName":"endpoint2000003.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '544' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:33 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": {"parameters": {"type": "WebApplicationFirewall", "wafPolicy": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"}, + "associations": [{"domains": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}], + "patternsToMatch": ["/*"]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy create + Connection: + - keep-alive + Content-Length: + - '810' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --security-policy-name --waf-policy --domains + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies/security000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securitypolicies/security000004","type":"Microsoft.Cdn/profiles/securityPolicies","name":"security000004","properties":{"parameters":{"wafPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"},"associations":[{"domains":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}],"patternsToMatch":["/*"]}],"type":"WebApplicationFirewall"},"deploymentStatus":"NotStarted","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34bdbb5f-bb52-43bc-ac2a-ea996aa57551?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '1187' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:49:35 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --waf-policy --domains + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34bdbb5f-bb52-43bc-ac2a-ea996aa57551?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, 19 Feb 2021 11:49: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --waf-policy --domains + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34bdbb5f-bb52-43bc-ac2a-ea996aa57551?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: + - Fri, 19 Feb 2021 11:50:16 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --waf-policy --domains + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies/security000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securitypolicies/security000004","type":"Microsoft.Cdn/profiles/securityPolicies","name":"security000004","properties":{"parameters":{"wafPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"},"associations":[{"domains":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}],"patternsToMatch":["/*"]}],"type":"WebApplicationFirewall"},"deploymentStatus":"NotStarted","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1188' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50:16 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy show + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies/security000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securitypolicies/security000004","type":"Microsoft.Cdn/profiles/securityPolicies","name":"security000004","properties":{"parameters":{"wafPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"},"associations":[{"domains":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}],"patternsToMatch":["/*"]}],"type":"WebApplicationFirewall"},"deploymentStatus":"NotStarted","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1188' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securitypolicies/security000004","type":"Microsoft.Cdn/profiles/securityPolicies","name":"security000004","properties":{"parameters":{"wafPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"},"associations":[{"domains":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}],"patternsToMatch":["/*"]}],"type":"WebApplicationFirewall"},"deploymentStatus":"NotStarted","provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1200' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --domains --waf-policy + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies/security000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securitypolicies/security000004","type":"Microsoft.Cdn/profiles/securityPolicies","name":"security000004","properties":{"parameters":{"wafPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"},"associations":[{"domains":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint1000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}],"patternsToMatch":["/*"]}],"type":"WebApplicationFirewall"},"deploymentStatus":"NotStarted","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1188' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50: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: '{"properties": {"parameters": {"type": "WebApplicationFirewall", "wafPolicy": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"}, + "associations": [{"domains": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}], + "patternsToMatch": ["/*"]}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy update + Connection: + - keep-alive + Content-Length: + - '565' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --security-policy-name --domains --waf-policy + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies/security000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securitypolicies/security000004","type":"Microsoft.Cdn/profiles/securityPolicies","name":"security000004","properties":{"parameters":{"wafPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"},"associations":[{"domains":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}],"patternsToMatch":["/*"]}],"type":"WebApplicationFirewall"},"deploymentStatus":"NotStarted","provisioningState":"Updating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/994deb38-108b-4394-9406-c9f2c580c796?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '944' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50:21 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/994deb38-108b-4394-9406-c9f2c580c796/profileresults/profilesecuritytest/securitypolicyresults/security000004?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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --domains --waf-policy + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/994deb38-108b-4394-9406-c9f2c580c796?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: + - Fri, 19 Feb 2021 11:50:32 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy update + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --domains --waf-policy + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies/security000004?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securitypolicies/security000004","type":"Microsoft.Cdn/profiles/securityPolicies","name":"security000004","properties":{"parameters":{"wafPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard"},"associations":[{"domains":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/afdEndpoints/endpoint2000003"}],"patternsToMatch":["/*"]}],"type":"WebApplicationFirewall"},"deploymentStatus":"NotStarted","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '945' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:50:32 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --profile-name --security-policy-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies/security000004?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/9ebebc4f-9526-4235-a320-08bf66269e7a?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:50:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9ebebc4f-9526-4235-a320-08bf66269e7a/profileresults/profilesecuritytest/securitypolicyresults/security000004?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: + - '14997' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9ebebc4f-9526-4235-a320-08bf66269e7a?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, 19 Feb 2021 11:50: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy delete + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --security-policy-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9ebebc4f-9526-4235-a320-08bf66269e7a?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: + - Fri, 19 Feb 2021 11:51: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd security-policy list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profilesecuritytest/securityPolicies?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:51: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 +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_waf_log_analytic.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_waf_log_analytic.yaml new file mode 100644 index 00000000000..24d1c1aaf1c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_afd_waf_log_analytic.yaml @@ -0,0 +1,545 @@ +interactions: +- request: + body: '{"location": "global", "sku": {"name": "Premium_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '65' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"frontDoorId":"c0ec0c99-f5b2-4940-849b-d156eb392f32","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0de1147-11ff-4d5c-a538-a0256caff7eb?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '462' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:46:43 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: + - '22' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0de1147-11ff-4d5c-a538-a0256caff7eb?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, 19 Feb 2021 11:46: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f0de1147-11ff-4d5c-a538-a0256caff7eb?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: + - Fri, 19 Feb 2021 11:47:23 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + 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":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Premium_AzureFrontDoor"},"properties":{"frontDoorId":"c0ec0c99-f5b2-4940-849b-d156eb392f32","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '461' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - '49' + status: + code: 200 + message: OK +- request: + body: '{"location": "global", "properties": {"originResponseTimeoutSeconds": 100, + "enabledState": "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + Content-Length: + - '102' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Creating","deploymentStatus":"NotStarted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/66406a53-0017-43ee-969b-66d9fde58e6f?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '534' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47:31 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: + - '98' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/66406a53-0017-43ee-969b-66d9fde58e6f?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: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --origin-response-timeout-seconds --enabled-state + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002","type":"Microsoft.Cdn/profiles/afdendpoints","name":"endpoint000002","location":"Global","tags":{},"properties":{"hostName":"endpoint000002.z01.azurefd.net","originResponseTimeoutSeconds":100,"enabledState":"Enabled","provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '535' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + 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: + - afd waf-log-analytic metric list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --metrics --date-time-begin --date-time-end --granularity + --rule-types + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/getWafLogAnalyticsMetrics?api-version=2020-09-01&metrics=clientRequestCount&dateTimeBegin=2021-02-19T11%3A47%3A45.000Z&dateTimeEnd=2021-02-19T11%3A52%3A45.000Z&granularity=PT5M&ruleTypes=managed + response: + body: + string: '{"dateTimeBegin":"2021-02-19T11:47:45+00:00","dateTimeEnd":"2021-02-19T11:52:45+00:00","granularity":"PT5M","series":[{"metric":"clientRequestCount","unit":"count","groups":null,"data":[]}]}' + headers: + cache-control: + - no-cache + content-length: + - '190' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd waf-log-analytic ranking list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --metrics --date-time-begin --date-time-end --rankings --max-ranking + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/getWafLogAnalyticsRankings?api-version=2020-09-01&metrics=clientRequestCount&dateTimeBegin=2021-02-19T11%3A47%3A45.000Z&dateTimeEnd=2021-02-19T11%3A52%3A45.000Z&maxRanking=10&rankings=action + response: + body: + string: '{"dateTimeBegin":"2021-02-19T11:47:45+00:00","dateTimeEnd":"2021-02-19T11:52:45+00:00","groups":["action"],"data":[]}' + headers: + cache-control: + - no-cache + content-length: + - '117' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:47: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --endpoint-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/afdEndpoints/endpoint000002?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/113ea68c-4da6-4239-a53e-68ee5251def7?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:47:48 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/113ea68c-4da6-4239-a53e-68ee5251def7/profileresults/profile123/afdendpointresults/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-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g --endpoint-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/113ea68c-4da6-4239-a53e-68ee5251def7?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: + - Fri, 19 Feb 2021 11:47:59 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_cdn_custom_domain_byoc_latest.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_byoc_latest.yaml index cb0a7ffc996..c3f92636956 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_byoc_latest.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_byoc_latest.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:38:27 GMT + - Fri, 19 Feb 2021 11:49:30 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:38:24Z"},"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-02-19T11:49:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:38:27 GMT + - Fri, 19 Feb 2021 11:49:31 GMT expires: - '-1' pragma: @@ -109,364 +109,43 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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: '{"error":{"code":"MissingSubscriptionRegistration","message":"The subscription - is not registered to use namespace ''Microsoft.Cdn''. See https://aka.ms/rps-not-found - for how to register subscriptions.","details":[{"code":"MissingSubscriptionRegistration","target":"Microsoft.Cdn","message":"The - subscription is not registered to use namespace ''Microsoft.Cdn''. See https://aka.ms/rps-not-found - for how to register subscriptions."}]}}' - headers: - cache-control: - - no-cache - content-length: - - '430' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:38:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-failure-cause: - - gateway - status: - code: 409 - message: Conflict -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - python-requests/2.22.0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/register?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn","namespace":"Microsoft.Cdn","authorizations":[],"resourceTypes":[{"resourceType":"profiles","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints/origins","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"profiles/endpoints/origingroups","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31"]},{"resourceType":"profiles/endpoints/customdomains","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/originresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/origingroupresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31"]},{"resourceType":"operationresults/profileresults/endpointresults/customdomainresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkNameAvailability","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkResourceUsage","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02"]},{"resourceType":"validateProbe","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02"]},{"resourceType":"operations","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"edgenodes","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"CdnWebApplicationFirewallPolicies","locations":["global"],"apiVersions":["2020-04-15","2019-06-15-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"CdnWebApplicationFirewallManagedRuleSets","locations":[],"apiVersions":["2020-04-15","2019-06-15-preview"]}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '9207' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:38:29 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn","namespace":"Microsoft.Cdn","authorizations":[],"resourceTypes":[{"resourceType":"profiles","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints/origins","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"profiles/endpoints/origingroups","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31"]},{"resourceType":"profiles/endpoints/customdomains","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/originresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/origingroupresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31"]},{"resourceType":"operationresults/profileresults/endpointresults/customdomainresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkNameAvailability","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkResourceUsage","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02"]},{"resourceType":"validateProbe","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02"]},{"resourceType":"operations","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"edgenodes","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"CdnWebApplicationFirewallPolicies","locations":["global"],"apiVersions":["2020-04-15","2019-06-15-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"CdnWebApplicationFirewallManagedRuleSets","locations":[],"apiVersions":["2020-04-15","2019-06-15-preview"]}],"registrationState":"Registering"}' + 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/70172179-7e5e-42f1-859f-8b7a8b7b49c5?api-version=2020-09-01 cache-control: - no-cache content-length: - - '9207' + - '399' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:38:39 GMT + - Fri, 19 Feb 2021 11:49:35 GMT expires: - '-1' pragma: - no-cache + server: + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '21' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn","namespace":"Microsoft.Cdn","authorizations":[],"resourceTypes":[{"resourceType":"profiles","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints/origins","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"profiles/endpoints/origingroups","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31"]},{"resourceType":"profiles/endpoints/customdomains","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/originresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/origingroupresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31"]},{"resourceType":"operationresults/profileresults/endpointresults/customdomainresults","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkNameAvailability","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkResourceUsage","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02"]},{"resourceType":"validateProbe","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02"]},{"resourceType":"operations","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"edgenodes","locations":["global","Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2020-04-15","2020-03-31","2019-12-31","2019-06-15-preview","2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"CdnWebApplicationFirewallPolicies","locations":["global"],"apiVersions":["2020-04-15","2019-06-15-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"CdnWebApplicationFirewallManagedRuleSets","locations":[],"apiVersions":["2020-04-15","2019-06-15-preview"]}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '9206' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:38:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "westus", "sku": {"name": "Standard_Microsoft"}}' headers: Accept: - application/json @@ -476,33 +155,25 @@ interactions: - cdn profile create Connection: - keep-alive - Content-Length: - - '61' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/70172179-7e5e-42f1-859f-8b7a8b7b49c5?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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/33e44dac-5de3-48a6-a74e-247bd214d1ed?api-version=2020-04-15 cache-control: - no-cache content-length: - - '386' + - '62' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:38:51 GMT + - Fri, 19 Feb 2021 11:49:46 GMT expires: - '-1' pragma: @@ -511,13 +182,15 @@ interactions: - 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: - - '23' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -532,10 +205,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/33e44dac-5de3-48a6-a74e-247bd214d1ed?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/70172179-7e5e-42f1-859f-8b7a8b7b49c5?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -547,7 +220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:02 GMT + - Fri, 19 Feb 2021 11:50:16 GMT expires: - '-1' pragma: @@ -579,22 +252,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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: - - '385' + - '398' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:02 GMT + - Fri, 19 Feb 2021 11:50:16 GMT expires: - '-1' pragma: @@ -610,7 +283,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -628,15 +301,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:38:24Z"},"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-02-19T11:49:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -645,7 +318,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:02 GMT + - Fri, 19 Feb 2021 11:50:17 GMT expires: - '-1' pragma: @@ -679,18 +352,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-5","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-5.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/c8a9660e-0b24-4739-b739-b05601e67280?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e33bbbc8-18a0-40f1-860c-ad88e840fbcb?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -698,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:08 GMT + - Fri, 19 Feb 2021 11:50:27 GMT expires: - '-1' pragma: @@ -728,10 +401,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8a9660e-0b24-4739-b739-b05601e67280?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e33bbbc8-18a0-40f1-860c-ad88e840fbcb?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -743,7 +416,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:19 GMT + - Fri, 19 Feb 2021 11:50:38 GMT expires: - '-1' pragma: @@ -775,10 +448,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8a9660e-0b24-4739-b739-b05601e67280?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e33bbbc8-18a0-40f1-860c-ad88e840fbcb?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -790,7 +463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:49 GMT + - Fri, 19 Feb 2021 11:51:09 GMT expires: - '-1' pragma: @@ -822,10 +495,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-5","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-5.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -837,7 +510,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:50 GMT + - Fri, 19 Feb 2021 11:51:09 GMT expires: - '-1' pragma: @@ -853,7 +526,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -871,15 +544,15 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:38:24Z"},"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-02-19T11:49:28Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -888,7 +561,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:50 GMT + - Fri, 19 Feb 2021 11:51:10 GMT expires: - '-1' pragma: @@ -920,18 +593,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-5.azfdtest.xyz","validationData":null,"resourceState":"Creating","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4654eb3c-3bdf-4bb9-9743-5bf1f2b0d266?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34931be5-7f58-43eb-b9fe-1b29bfb7b4b3?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -939,7 +612,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:39:52 GMT + - Fri, 19 Feb 2021 11:51:14 GMT expires: - '-1' pragma: @@ -951,7 +624,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -969,10 +642,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4654eb3c-3bdf-4bb9-9743-5bf1f2b0d266?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34931be5-7f58-43eb-b9fe-1b29bfb7b4b3?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -984,7 +657,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:40:03 GMT + - Fri, 19 Feb 2021 11:51:23 GMT expires: - '-1' pragma: @@ -1016,10 +689,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4654eb3c-3bdf-4bb9-9743-5bf1f2b0d266?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34931be5-7f58-43eb-b9fe-1b29bfb7b4b3?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1031,7 +704,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:40:33 GMT + - Fri, 19 Feb 2021 11:51:55 GMT expires: - '-1' pragma: @@ -1063,10 +736,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-5.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -1078,7 +751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:40:33 GMT + - Fri, 19 Feb 2021 11:51:55 GMT expires: - '-1' pragma: @@ -1110,12 +783,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-5.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -1127,7 +800,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:40:34 GMT + - Fri, 19 Feb 2021 11:51:57 GMT expires: - '-1' pragma: @@ -1155,7 +828,7 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python accept-language: - en-US @@ -1163,33 +836,49 @@ interactions: uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"5310aa29-9a44-4cbc-adb3-6347a539537e","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"consentProvidedForMinor":null,"country":null,"createdDateTime":"2020-12-16T18:59:47Z","creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Dania - Etienne","employeeId":null,"facsimileTelephoneNumber":null,"givenName":"Dania","immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"legalAgeGroupClassification":null,"mail":null,"mailNickname":"detienne001_gmail.com#EXT#","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":["detienne001@gmail.com"],"passwordPolicies":null,"passwordProfile":null,"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":"en","provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2020-12-16T18:59:47Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":"Etienne","telephoneNumber":null,"thumbnailPhoto@odata.mediaEditLink":"directoryObjects/5310aa29-9a44-4cbc-adb3-6347a539537e/Microsoft.DirectoryServices.User/thumbnailPhoto","usageLocation":"US","userIdentities":[],"userPrincipalName":"detienne001_gmail.com#EXT#@detienne001gmail.onmicrosoft.com","userState":null,"userStateChangedOn":null,"userType":"Member"}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"869af0a9-0d80-4745-a601-bcf7a8f51a3b","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[{"disabledPlans":["a413a9ff-720c-4822-98ef-2f37c2a21f4c","a6520331-d7d4-4276-95f5-15c0933bc757","ded3d325-1bdc-453e-8432-5bac26d7a014","afa73018-811e-46e9-988f-f75d2b1b8430","b21a6b06-1988-436e-a07b-51ec6d9f52ad","531ee2f8-b1cb-453b-9c21-d2180d014ca5","bf28f719-7844-4079-9c78-c1307898e192","28b0fa46-c39a-4188-89e2-58e979a6b014","199a5c09-e0ca-4e37-8f7c-b05d533e1ea2","65cc641f-cccd-4643-97e0-a17e3045e541","e26c2fcc-ab91-4a61-b35c-03cdc8dddf66","46129a58-a698-46f0-aa5b-17f6586297d9","6db1f1db-2b46-403f-be40-e39395f08dbb","6dc145d6-95dd-4191-b9c3-185575ee6f6b","41fcdd7d-4733-4863-9cf4-c65b83ce2df4","c4801e8a-cb58-4c35-aca6-f2dcc106f287","0898bdbb-73b0-471a-81e5-20f1fe4dd66e","617b097b-4b93-4ede-83de-5f075bb5fb2f","33c4f319-9bdd-48d6-9c4d-410b750a4a5a","4828c8ec-dc2e-4779-b502-87ac9ce28ab7","3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"],"skuId":"c7df2760-2c81-4ef7-b578-5b5392b571df"},{"disabledPlans":[],"skuId":"3d957427-ecdc-4df2-aacd-01cc9d519da8"},{"disabledPlans":[],"skuId":"9f3d9c1d-25a5-4aaa-8e59-23a1e6450a67"},{"disabledPlans":["39b5c996-467e-4e60-bd62-46066f572726"],"skuId":"90d8b3f8-712e-4f7b-aa1e-62e7ae6cbe96"},{"disabledPlans":["e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72"],"skuId":"09015f9f-377f-4538-bbb5-f75ceb09358a"},{"disabledPlans":[],"skuId":"dcb1a3ae-b33f-4487-846a-a640262fadf4"},{"disabledPlans":[],"skuId":"26a18e8f-4d14-46f8-835a-ed3ba424a961"},{"disabledPlans":[],"skuId":"412ce1a7-a499-41b3-8eb6-b38f2bbc5c3f"},{"disabledPlans":[],"skuId":"488ba24a-39a9-4473-8ee5-19291e71b002"},{"disabledPlans":[],"skuId":"b05e124f-c7cc-45a0-a6aa-8cf78c946968"},{"disabledPlans":["0b03f40b-c404-40c3-8651-2aceb74365fa","b650d915-9886-424b-a08d-633cede56f57","e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72","fe71d6c3-a2ea-4499-9778-da042bf08063","fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"],"skuId":"ea126fc5-a19e-42e2-a731-da9d437bffcf"},{"disabledPlans":[],"skuId":"c5928f49-12ba-48f7-ada3-0d743a3601d5"}],"assignedPlans":[{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"MIPExchangeSolutions","servicePlanId":"cd31b152-6326-4d1b-ae1b-997b625182e6"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"199a5c09-e0ca-4e37-8f7c-b05d533e1ea2"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"},{"assignedTimestamp":"2020-12-22T16:51:08Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"2f442157-a11c-46b9-ae5b-6e39ff4e5849"},{"assignedTimestamp":"2020-12-11T22:05:29Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"18fa3aba-b085-4105-87d7-55617b8585e6"},{"assignedTimestamp":"2020-12-11T22:05:29Z","capabilityStatus":"Enabled","service":"ERP","servicePlanId":"69f07c66-bee4-4222-b051-195095efee5b"},{"assignedTimestamp":"2020-12-11T22:05:29Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"0a05d977-a21a-45b2-91ce-61c240dbafa2"},{"assignedTimestamp":"2020-11-03T18:37:15Z","capabilityStatus":"Deleted","service":"M365CommunicationCompliance","servicePlanId":"a413a9ff-720c-4822-98ef-2f37c2a21f4c"},{"assignedTimestamp":"2020-10-29T23:20:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"7e6d7d78-73de-46ba-83b1-6d25117334ba"},{"assignedTimestamp":"2020-10-17T01:38:15Z","capabilityStatus":"Enabled","service":"WorkplaceAnalytics","servicePlanId":"f477b0f0-3bb1-4890-940c-40fcee6ce05f"},{"assignedTimestamp":"2020-08-14T08:07:41Z","capabilityStatus":"Enabled","service":"YammerEnterprise","servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653"},{"assignedTimestamp":"2020-06-18T03:42:53Z","capabilityStatus":"Enabled","service":"MicrosoftPrint","servicePlanId":"795f6fe0-cc4d-4773-b050-5dde4dc704c9"},{"assignedTimestamp":"2019-11-04T22:10:51Z","capabilityStatus":"Enabled","service":"WhiteboardServices","servicePlanId":"4a51bca5-1eff-43f5-878c-177680f191af"},{"assignedTimestamp":"2019-10-15T14:52:44Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"5136a095-5cf0-4aff-bec3-e84448b38ea5"},{"assignedTimestamp":"2019-10-15T14:52:44Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb0351d-3b08-4503-993d-383af8de41e3"},{"assignedTimestamp":"2019-08-08T20:23:14Z","capabilityStatus":"Enabled","service":"MicrosoftFormsProTest","servicePlanId":"97f29a83-1a20-44ff-bf48-5e4ad11f3e51"},{"assignedTimestamp":"2019-05-23T06:30:05Z","capabilityStatus":"Enabled","service":"DYN365AISERVICEINSIGHTS","servicePlanId":"1412cdc1-d593-4ad1-9050-40c30ad0b023"},{"assignedTimestamp":"2019-04-02T10:25:07Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"818523f5-016b-4355-9be8-ed6944946ea7"},{"assignedTimestamp":"2019-04-02T10:25:07Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"fa200448-008c-4acb-abd4-ea106ed2199d"},{"assignedTimestamp":"2019-04-02T10:25:07Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"50554c47-71d9-49fd-bc54-42a2765c555c"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"50e68c76-46c6-4674-81f9-75456511b170"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"d20bfa21-e9ae-43fc-93c2-20783f0840c3"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"d5368ca3-357e-4acb-9c21-8495fb025d1f"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"17ab22cd-a0b3-4536-910a-cb6eb12696c0"},{"assignedTimestamp":"2018-12-01T09:40:42Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"b1188c4c-1b36-4018-b48b-ee07604f6feb"},{"assignedTimestamp":"2018-09-20T22:59:39Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"018fb91e-cee3-418c-9063-d7562978bdaf"},{"assignedTimestamp":"2018-09-20T22:59:38Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"ca4be917-fbce-4b52-839e-6647467a1668"},{"assignedTimestamp":"2018-09-20T22:59:37Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"4828c8ec-dc2e-4779-b502-87ac9ce28ab7"},{"assignedTimestamp":"2018-09-20T22:59:37Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"},{"assignedTimestamp":"2018-09-20T22:59:37Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"8e0c0a52-6a6c-4d40-8370-dd62790dcd70"},{"assignedTimestamp":"2018-09-07T19:52:01Z","capabilityStatus":"Enabled","service":"OfficeForms","servicePlanId":"e212cbc7-0961-4c40-9825-01117710dcb1"},{"assignedTimestamp":"2018-08-29T13:42:06Z","capabilityStatus":"Enabled","service":"Sway","servicePlanId":"a23b959c-7ce8-4e57-9140-b90eb88a9e97"},{"assignedTimestamp":"2018-08-29T13:42:06Z","capabilityStatus":"Deleted","service":"OfficeForms","servicePlanId":"159f4cd6-e380-449f-a816-af1a9ef76344"},{"assignedTimestamp":"2018-08-18T00:12:14Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"bea4c11e-220a-4e6d-8eb8-8ea15d019f90"},{"assignedTimestamp":"2018-08-18T00:12:14Z","capabilityStatus":"Enabled","service":"Deskless","servicePlanId":"8c7d2df8-86f0-4902-b2ed-a0458298f3b3"},{"assignedTimestamp":"2018-08-18T00:12:14Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"6c57d4b6-3b23-47a5-9bc9-69f17b4947b3"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"2bdbaf8f-738f-4ac7-9234-3c3ee2ce7d0f"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"2125cfd7-2110-4567-83c4-c1cd5275163d"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"da792a53-cbc0-4184-a10d-e544dd34b3c1"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"c4048e79-4474-4c74-ba9b-c31ff225e511"},{"assignedTimestamp":"2018-03-21T12:12:02Z","capabilityStatus":"Deleted","service":"MicrosoftStream","servicePlanId":"acffdce6-c30f-4dc2-81c0-372e33c515ec"},{"assignedTimestamp":"2018-03-17T10:24:23Z","capabilityStatus":"Enabled","service":"WindowsDefenderATP","servicePlanId":"871d91ec-ec1a-452b-a83f-bd76c7d770ef"},{"assignedTimestamp":"2018-03-17T10:24:23Z","capabilityStatus":"Enabled","service":"AzureAdvancedThreatAnalytics","servicePlanId":"14ab5db5-e6c4-4b20-b4bc-13e36fd2227f"},{"assignedTimestamp":"2018-03-17T10:24:23Z","capabilityStatus":"Enabled","service":"Windows","servicePlanId":"e7c91390-7625-45be-94e0-e16907e03118"},{"assignedTimestamp":"2018-01-08T23:47:00Z","capabilityStatus":"Enabled","service":"ProjectWorkManagement","servicePlanId":"b737dad2-2f6c-4c65-90e3-ca563267e8b9"},{"assignedTimestamp":"2018-01-01T00:17:54Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"41781fb2-bc02-4b7c-bd55-b576c07bb09d"},{"assignedTimestamp":"2018-01-01T00:17:54Z","capabilityStatus":"Enabled","service":"MultiFactorService","servicePlanId":"8a256a2b-b617-496d-b51b-e76466e88db0"},{"assignedTimestamp":"2017-12-31T08:22:18Z","capabilityStatus":"Deleted","service":"Adallom","servicePlanId":"932ad362-64a8-4783-9106-97849a1a30b9"},{"assignedTimestamp":"2017-12-16T14:54:14Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"5689bec4-755d-4753-8b61-40975025187c"},{"assignedTimestamp":"2017-12-16T14:54:14Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"2e2ddb96-6af9-4b1d-a3f0-d6ecfd22edb2"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b"},{"assignedTimestamp":"2017-11-11T04:21:18Z","capabilityStatus":"Enabled","service":"To-Do","servicePlanId":"3fb82609-8c27-4f7b-bd51-30634711ee67"},{"assignedTimestamp":"2017-10-07T02:49:58Z","capabilityStatus":"Enabled","service":"Netbreeze","servicePlanId":"03acaee3-9492-4f40-aed4-bcb6b32981b6"},{"assignedTimestamp":"2017-10-07T02:49:58Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"d56f3deb-50d8-465a-bedb-f079817ccac1"},{"assignedTimestamp":"2017-06-11T13:56:10Z","capabilityStatus":"Enabled","service":"MicrosoftStream","servicePlanId":"6c6042f5-6f01-4d67-b8c1-eb99d36eed3e"},{"assignedTimestamp":"2017-06-11T13:56:10Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"eec0eb4f-6444-4f95-aba0-50c24d67f998"},{"assignedTimestamp":"2017-06-11T13:56:10Z","capabilityStatus":"Enabled","service":"SCO","servicePlanId":"c1ec4a95-1f05-45b3-a911-aa3fa01094f5"},{"assignedTimestamp":"2016-12-13T02:18:04Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"07699545-9485-468e-95b6-2fca3738be01"},{"assignedTimestamp":"2016-12-13T02:18:04Z","capabilityStatus":"Enabled","service":"TeamspaceAPI","servicePlanId":"57ff2da0-773e-42df-b2af-ffb7a2317929"},{"assignedTimestamp":"2016-12-13T02:18:04Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"9c0dab89-a30c-4117-86e7-97bda240acd2"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"PowerBI","servicePlanId":"70d33638-9c74-4d01-bfd3-562de28bd4ba"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"34c0d7a0-a70f-4668-9238-47f9fc208882"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"9f431833-0334-42de-a7dc-70aa40db46db"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"4de31727-a228-4ec3-a5bf-8e45b5ca48cc"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Deleted","service":"AzureAnalysis","servicePlanId":"2049e525-b859-401b-b2a0-e0a31c4b1fe4"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Deleted","service":"PowerBI","servicePlanId":"fc0a60aa-feee-4746-a0e3-aecfe81a38dd"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"43de0ff5-c92c-492b-9116-175376d08c38"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"0feaeb32-d00e-4d66-bd5a-43b5b83db82c"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb87545-963c-4e0d-99df-69c6916d9eb0"},{"assignedTimestamp":"2013-03-24T00:55:24Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"663a804f-1c30-4ff0-9915-9db84f0d1cea"}],"city":"Shanghai","companyName":"China + Shanghai Zizhu","consentProvidedForMinor":null,"country":null,"createdDateTime":null,"creationType":null,"department":"Azure + NW CDN China SH 1942 COGS","dirSyncEnabled":true,"displayName":"Bo Zhang (CDN)","employeeId":null,"facsimileTelephoneNumber":null,"givenName":"Bo","immutableId":"623374","isCompromised":null,"jobTitle":"SENIOR + SOFTWARE ENGINEER","lastDirSyncTime":"2020-09-21T17:48:11Z","legalAgeGroupClassification":null,"mail":"bzhan@microsoft.com","mailNickname":"bzhan","mobile":"8613917210462","onPremisesDistinguishedName":"CN=Bo + Zhang (CDN),OU=MSE,OU=Users,OU=CoreIdentity,DC=fareast,DC=corp,DC=microsoft,DC=com","onPremisesSecurityIdentifier":"S-1-5-21-2146773085-903363285-719344707-1583571","otherMails":[],"passwordPolicies":"DisablePasswordExpiration","passwordProfile":null,"physicalDeliveryOfficeName":"SHA-ZIZHU-BLD1/4234","postalCode":null,"preferredLanguage":null,"provisionedPlans":[{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Adallom"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Netbreeze"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"microsoftcommunicationsonline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"}],"provisioningErrors":[],"proxyAddresses":["SMTP:bzhan@microsoft.com","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhang (Dup: 352f2b069a16084aa689fd986c5b77d6","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhang463","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhang96e","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhangb6e","X500:/o=MMS/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhanga59adae7-6a4f-43df-88b7-13b52362ea84","x500:/O=Nokia/OU=HUB/cn=Recipients/cn=bzhan","x500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=6706b86d850340ddb0935c576c7ba192-Bo + Zhang","smtp:bzhan@service.microsoft.com","x500:/o=ExchangeLabs/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=c9f96898f60e42e59da2278e3c74461d-Bo + Zhang (D","X500:/o=MMS/ou=External (FYDIBOHF25SPDLT)/cn=Recipients/cn=bfa989c0319946019fa734c09c784f5d"],"refreshTokensValidFromDateTime":"2019-08-26T06:54:26Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":"bzhan@microsoft.com","state":null,"streetAddress":null,"surname":"Zhang + (CDN)","telephoneNumber":"+86 (21) 61885166","thumbnailPhoto@odata.mediaEditLink":"directoryObjects/869af0a9-0d80-4745-a601-bcf7a8f51a3b/Microsoft.DirectoryServices.User/thumbnailPhoto","usageLocation":"CN","userIdentities":[],"userPrincipalName":"bzhan@microsoft.com","userState":null,"userStateChangedOn":null,"userType":"Member","extension_18e31482d3fb4a8ea958aa96b662f508_SupervisorInd":"N","extension_18e31482d3fb4a8ea958aa96b662f508_StateProvinceCode":"31","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToPersonnelNbr":"575174","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToFullName":"Xue, + Gang","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToEmailName":"LUXUE","extension_18e31482d3fb4a8ea958aa96b662f508_ProfitCenterCode":"P10211897","extension_18e31482d3fb4a8ea958aa96b662f508_PositionNumber":"91419883","extension_18e31482d3fb4a8ea958aa96b662f508_CostCenterCode":"10211897","extension_18e31482d3fb4a8ea958aa96b662f508_CompanyCode":"1942","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine1":"No. + 999, Zi Xing Road","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine2":"Min + Hang District","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingID":"100509","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingName":"SHA-ZIZHU-BLD1","extension_18e31482d3fb4a8ea958aa96b662f508_CityName":"Shanghai","extension_18e31482d3fb4a8ea958aa96b662f508_CountryShortCode":"CN","extension_18e31482d3fb4a8ea958aa96b662f508_LocationAreaCode":"CN","extension_18e31482d3fb4a8ea958aa96b662f508_PersonnelNumber":"623374","extension_18e31482d3fb4a8ea958aa96b662f508_ZipCode":"200241"}' headers: access-control-allow-origin: - '*' cache-control: - no-cache content-length: - - '1628' + - '20142' content-type: - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 dataserviceversion: - 3.0; date: - - Fri, 18 Dec 2020 18:40:35 GMT + - Fri, 19 Feb 2021 11:51:59 GMT duration: - - '1053398' + - '889923' expires: - '-1' ocp-aad-diagnostics-server-name: - - w3lEP43BI925BObfTkPgg82jwqQvKF4zLpTDMgf3M9E= + - GSLer+bmMzYs8KRP5LBwmPdWtXNObpJ+fdyPFxaIyEc= ocp-aad-session-key: - - bYzDcmuhwPBbuyHChEuIJt8Fq9_XZoZ5CB2M3f3oNypIMyMV-UiKmjPEZzdFEjVN7_1cLdKzTfO4-LsN3e3xcWNQ_BWav-JA9vcOt9rTgMBety5P-3Q37orZc4sI5Q9Q.cIpQ0iiqLXSQWO2RbhICjqP2UxqAxg60ms_bvahKu4w + - zZT7tY_hrd4ra4uHJ-pKU2vPf_TorV8Y7FJD5asf__RrHQLpi5ab5GQq4gh2l4LCkgM7FwLSGC3dDVc8sdmj2GSsoypm1FJuwRh9p2ht_HajhVcaWkXZJs5f1N-VuDZc.2IU0aPiAETzc3ba2mCjpa9mqaSfDI9Z0HLur_B906Zo pragma: - no-cache request-id: - - eab232b3-ae76-4bd7-93cb-959aa6a77310 + - 994c2f3c-c725-4d87-9bd9-ec40789859aa strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -1204,9 +893,9 @@ interactions: code: 200 message: OK - request: - body: '{"location": "centralus", "properties": {"tenantId": "01a4073e-87c8-47cd-aafc-1439b4b5ea2c", + body: '{"location": "centralus", "properties": {"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": - "01a4073e-87c8-47cd-aafc-1439b4b5ea2c", "objectId": "5310aa29-9a44-4cbc-adb3-6347a539537e", + "72f988bf-86f1-41af-91ab-2d7cd011db47", "objectId": "869af0a9-0d80-4745-a601-bcf7a8f51a3b", "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", @@ -1231,894 +920,12 @@ interactions: ParameterSetName: - --location --name -g User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.19.1 azsdk-python-azure-mgmt-keyvault/8.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.KeyVault/vaults/keyvault000003?api-version=2019-09-01 response: body: - string: '{"error":{"code":"MissingSubscriptionRegistration","message":"The subscription - is not registered to use namespace ''Microsoft.KeyVault''. See https://aka.ms/rps-not-found - for how to register subscriptions.","details":[{"code":"MissingSubscriptionRegistration","target":"Microsoft.KeyVault","message":"The - subscription is not registered to use namespace ''Microsoft.KeyVault''. See - https://aka.ms/rps-not-found for how to register subscriptions."}]}}' - headers: - cache-control: - - no-cache - content-length: - - '445' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:40:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-failure-cause: - - gateway - status: - code: 409 - message: Conflict -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/register?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '6283' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:40:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '6283' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:40:46 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '6283' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:40:57 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '6283' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:41:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '6283' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:41:17 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '6283' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:41:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registering"}' - headers: - cache-control: - - no-cache - content-length: - - '6283' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:41:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault?api-version=2016-02-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"},{"applicationId":"589d5083-6f11-4d30-a62a-a4b316a14abf"}],"resourceTypes":[{"resourceType":"vaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"vaults/accessPolicies","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-01-preview","2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","North Central US","West Europe","North Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West Central US","West - US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Australia - Central","Brazil South","Central India","South India","West India","Canada - Central","Canada East","UK South","UK West","Korea Central","Korea South","France - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14","2016-10-01"]},{"resourceType":"vaults/eventGridFilters","locations":["North - Central US","East US","North Europe","West Europe","East Asia","Southeast - Asia","East US 2","Central US","South Central US","West US","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India","South - India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","Australia - Central","UAE North","South Africa North","Switzerland North","Germany West - Central","Norway East"],"apiVersions":["2019-09-01","2018-02-14-preview","2018-02-14"]},{"resourceType":"managedHSMs","locations":["East - US 2","South Central US","North Europe","West Europe","Canada Central","Central - US","Switzerland North","South Africa North","UK South"],"apiVersions":["2020-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registered"}' - headers: - cache-control: - - no-cache - content-length: - - '6282' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 18 Dec 2020 18:41:48 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": "centralus", "properties": {"tenantId": "01a4073e-87c8-47cd-aafc-1439b4b5ea2c", - "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": - "01a4073e-87c8-47cd-aafc-1439b4b5ea2c", "objectId": "5310aa29-9a44-4cbc-adb3-6347a539537e", - "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", - "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", - "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", - "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", - "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", - "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}], - "softDeleteRetentionInDays": 90, "networkAcls": {"bypass": "AzureServices", - "defaultAction": "Allow"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - keyvault create - Connection: - - keep-alive - Content-Length: - - '852' - Content-Type: - - application/json - ParameterSetName: - - --location --name -g - User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000003?api-version=2019-09-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000003","name":"keyvault000003","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","accessPolicies":[{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","objectId":"5310aa29-9a44-4cbc-adb3-6347a539537e","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000003.vault.azure.net","provisioningState":"RegisteringDns"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000003","name":"keyvault000003","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"869af0a9-0d80-4745-a601-bcf7a8f51a3b","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000003.vault.azure.net","provisioningState":"RegisteringDns"}}' headers: cache-control: - no-cache @@ -2127,7 +934,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:41:51 GMT + - Fri, 19 Feb 2021 11:52:05 GMT expires: - '-1' pragma: @@ -2145,9 +952,9 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.1.163.0 + - 1.0.104.232 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' x-powered-by: - ASP.NET status: @@ -2167,12 +974,12 @@ interactions: ParameterSetName: - --location --name -g User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.19.1 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000003?api-version=2019-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000003","name":"keyvault000003","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","accessPolicies":[{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","objectId":"5310aa29-9a44-4cbc-adb3-6347a539537e","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000003.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000003","name":"keyvault000003","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"869af0a9-0d80-4745-a601-bcf7a8f51a3b","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000003.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2181,7 +988,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:20 GMT + - Fri, 19 Feb 2021 11:52:35 GMT expires: - '-1' pragma: @@ -2199,7 +1006,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.1.163.0 + - 1.0.104.232 x-powered-by: - ASP.NET status: @@ -2219,7 +1026,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -2237,7 +1044,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:22 GMT + - Fri, 19 Feb 2021 11:52:38 GMT expires: - '-1' pragma: @@ -2245,16 +1052,16 @@ interactions: strict-transport-security: - max-age=31536000;includeSubDomains www-authenticate: - - Bearer authorization="https://login.windows.net/01a4073e-87c8-47cd-aafc-1439b4b5ea2c", + - Bearer authorization="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47", resource="https://vault.azure.net" x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.103;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -2280,7 +1087,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -2288,9 +1095,9 @@ interactions: uri: https://keyvault000003.vault.azure.net/certificates/cert000004/create?api-version=7.0 response: body: - string: '{"id":"https://keyvault000003.vault.azure.net/certificates/cert000004/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOUfV+xtVEH31deSWm8O1wEKdVO2Pj7fOdH7zNWr0s1wDhcVsxkK6eDzoGb2paQO8IznbPqJCqmYUWZGVp/LHFUnVvYtfN3Ayp2BJ2eG0teohHL4xwLHd8OgtFL9KwwBM7yrOSkT3LAGtKT7MsoecvMD3XH0atf7T8hxO6br5600vTvuK5B5Hquw9B9HaadPn9yxx1nTUFjrnXiiGPJzqacJ9c8ibFDq2Zoaji9o+4KmkV+TUiFz1UMkrqE/u7lIcBUds8ebxGI4Roin6lh1ouWb3qklRIlc/suL88yV/crEAFr42O5H/GFtiV6dqYn4M5I31jxVbWTo0w1yH/FaCX0CAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBSCnxtr5eSTkXNi0Ci2ftCg9M0WXUrdf7E5b0Duh/RuGQluCq79z1eyB+hZAOLlBnWpaiqrLxbAs9RAVetdfqcEwPQ10w7c2/9JgRgRl3jnLqDgc6SKX2PKm4bk16gueaG1j8BOgS1OcSPFjYgcHMKO89TPys9HE46+x4k6sFJ+Tv+VogUPvqzXBPEpG2o4ePLIfZWP9NMebM9TZwAc1/7nwYC0gJ9T2z/JuK2n5r+jDTqXvfmcFbBXQh2UfDRvs3fAbvm6ftZ3lPl+Gsb4T87fpPyLCuBOuwZged6T2YMi8L0dvv3MHQvWATrjllHY7kRjniSWLM6yUzUC//EWret","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://keyvault000003.vault.azure.net/certificates/cert000004/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKAO9CF7ce8WIxN0VLFSQktKhNGw4kdo0rIj8TaEZrksLWoG9Kg8L5PPadI6pux3riaE8ENNhkrms/M592edFeFB5o2k9NHBJ3r2MGrxMepq4Bp7ICCpmC/lnYBm1hjVEwVBL2j0N0S8JkfPnmvdyuZ3ZezEfUe8iK/E7p9S58KqsXjuWTN3doltIzJId5jcgsuKQeP4bpJLZOISJqrydavegJT8wvg75txKIuiB7qaEKBNc1qMN339255oKkxAdNEFDPUbTtE86GSW4nkU1+KKmwaXD1XzhUcFzgbPOrqOwuakmN/hJRB6aQTcn5UD5bi5PjoAZvaibOax3im51jqECAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBwuKjMGpDlAD/xdK297yGV/H3cVSt3rP6C5pNBtopSrrPrZk1neA1SPlI0+yaQKVlvLs+LqQGJp+kgH3UE8bdKg3ezvhijqMN6aGK0878+gAxdQmMgVaYJ6/jn96OrrLY2X+Mqcau52/QLciiFDysaef2ybV5N8op2s9Hbn3wi3d9OamXt09ovOxwaKX2Htjf20tzDACxXQwYOJhzXFew/kDGJx8/BmjajWiIftwYYprQg6AuWvkrTA5X3AfAiDttj95v9b715UO4XiOQLHXmV8yrgnBssuP/Powhduhnp3xgjEQ8nrWWZx1SYQGvFyDhZlgC5svdte+DnF/6C7dtI","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"df8cfec2beda47b7841bc4d150b01086"}' + time based on the issuer provider. Please check again later.","request_id":"c15a69d698194e8ca0cc87a9f5f90acf"}' headers: cache-control: - no-cache @@ -2299,11 +1106,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:23 GMT + - Fri, 19 Feb 2021 11:52:40 GMT expires: - '-1' location: - - https://keyvault000003.vault.azure.net/certificates/cert000004/pending?api-version=7.0&request_id=df8cfec2beda47b7841bc4d150b01086 + - https://keyvault000003.vault.azure.net/certificates/cert000004/pending?api-version=7.0&request_id=c15a69d698194e8ca0cc87a9f5f90acf pragma: - no-cache strict-transport-security: @@ -2311,11 +1118,11 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.103;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -2333,7 +1140,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -2341,9 +1148,9 @@ interactions: uri: https://keyvault000003.vault.azure.net/certificates/cert000004/pending?api-version=7.0 response: body: - string: '{"id":"https://keyvault000003.vault.azure.net/certificates/cert000004/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOUfV+xtVEH31deSWm8O1wEKdVO2Pj7fOdH7zNWr0s1wDhcVsxkK6eDzoGb2paQO8IznbPqJCqmYUWZGVp/LHFUnVvYtfN3Ayp2BJ2eG0teohHL4xwLHd8OgtFL9KwwBM7yrOSkT3LAGtKT7MsoecvMD3XH0atf7T8hxO6br5600vTvuK5B5Hquw9B9HaadPn9yxx1nTUFjrnXiiGPJzqacJ9c8ibFDq2Zoaji9o+4KmkV+TUiFz1UMkrqE/u7lIcBUds8ebxGI4Roin6lh1ouWb3qklRIlc/suL88yV/crEAFr42O5H/GFtiV6dqYn4M5I31jxVbWTo0w1yH/FaCX0CAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBSCnxtr5eSTkXNi0Ci2ftCg9M0WXUrdf7E5b0Duh/RuGQluCq79z1eyB+hZAOLlBnWpaiqrLxbAs9RAVetdfqcEwPQ10w7c2/9JgRgRl3jnLqDgc6SKX2PKm4bk16gueaG1j8BOgS1OcSPFjYgcHMKO89TPys9HE46+x4k6sFJ+Tv+VogUPvqzXBPEpG2o4ePLIfZWP9NMebM9TZwAc1/7nwYC0gJ9T2z/JuK2n5r+jDTqXvfmcFbBXQh2UfDRvs3fAbvm6ftZ3lPl+Gsb4T87fpPyLCuBOuwZged6T2YMi8L0dvv3MHQvWATrjllHY7kRjniSWLM6yUzUC//EWret","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://keyvault000003.vault.azure.net/certificates/cert000004/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKAO9CF7ce8WIxN0VLFSQktKhNGw4kdo0rIj8TaEZrksLWoG9Kg8L5PPadI6pux3riaE8ENNhkrms/M592edFeFB5o2k9NHBJ3r2MGrxMepq4Bp7ICCpmC/lnYBm1hjVEwVBL2j0N0S8JkfPnmvdyuZ3ZezEfUe8iK/E7p9S58KqsXjuWTN3doltIzJId5jcgsuKQeP4bpJLZOISJqrydavegJT8wvg75txKIuiB7qaEKBNc1qMN339255oKkxAdNEFDPUbTtE86GSW4nkU1+KKmwaXD1XzhUcFzgbPOrqOwuakmN/hJRB6aQTcn5UD5bi5PjoAZvaibOax3im51jqECAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBwuKjMGpDlAD/xdK297yGV/H3cVSt3rP6C5pNBtopSrrPrZk1neA1SPlI0+yaQKVlvLs+LqQGJp+kgH3UE8bdKg3ezvhijqMN6aGK0878+gAxdQmMgVaYJ6/jn96OrrLY2X+Mqcau52/QLciiFDysaef2ybV5N8op2s9Hbn3wi3d9OamXt09ovOxwaKX2Htjf20tzDACxXQwYOJhzXFew/kDGJx8/BmjajWiIftwYYprQg6AuWvkrTA5X3AfAiDttj95v9b715UO4XiOQLHXmV8yrgnBssuP/Powhduhnp3xgjEQ8nrWWZx1SYQGvFyDhZlgC5svdte+DnF/6C7dtI","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"df8cfec2beda47b7841bc4d150b01086"}' + time based on the issuer provider. Please check again later.","request_id":"c15a69d698194e8ca0cc87a9f5f90acf"}' headers: cache-control: - no-cache @@ -2352,7 +1159,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:24 GMT + - Fri, 19 Feb 2021 11:52:41 GMT expires: - '-1' pragma: @@ -2362,11 +1169,11 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.103;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -2384,7 +1191,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -2392,7 +1199,7 @@ interactions: uri: https://keyvault000003.vault.azure.net/certificates/cert000004/pending?api-version=7.0 response: body: - string: '{"id":"https://keyvault000003.vault.azure.net/certificates/cert000004/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOUfV+xtVEH31deSWm8O1wEKdVO2Pj7fOdH7zNWr0s1wDhcVsxkK6eDzoGb2paQO8IznbPqJCqmYUWZGVp/LHFUnVvYtfN3Ayp2BJ2eG0teohHL4xwLHd8OgtFL9KwwBM7yrOSkT3LAGtKT7MsoecvMD3XH0atf7T8hxO6br5600vTvuK5B5Hquw9B9HaadPn9yxx1nTUFjrnXiiGPJzqacJ9c8ibFDq2Zoaji9o+4KmkV+TUiFz1UMkrqE/u7lIcBUds8ebxGI4Roin6lh1ouWb3qklRIlc/suL88yV/crEAFr42O5H/GFtiV6dqYn4M5I31jxVbWTo0w1yH/FaCX0CAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBSCnxtr5eSTkXNi0Ci2ftCg9M0WXUrdf7E5b0Duh/RuGQluCq79z1eyB+hZAOLlBnWpaiqrLxbAs9RAVetdfqcEwPQ10w7c2/9JgRgRl3jnLqDgc6SKX2PKm4bk16gueaG1j8BOgS1OcSPFjYgcHMKO89TPys9HE46+x4k6sFJ+Tv+VogUPvqzXBPEpG2o4ePLIfZWP9NMebM9TZwAc1/7nwYC0gJ9T2z/JuK2n5r+jDTqXvfmcFbBXQh2UfDRvs3fAbvm6ftZ3lPl+Gsb4T87fpPyLCuBOuwZged6T2YMi8L0dvv3MHQvWATrjllHY7kRjniSWLM6yUzUC//EWret","cancellation_requested":false,"status":"completed","target":"https://keyvault000003.vault.azure.net/certificates/cert000004","request_id":"df8cfec2beda47b7841bc4d150b01086"}' + string: '{"id":"https://keyvault000003.vault.azure.net/certificates/cert000004/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKAO9CF7ce8WIxN0VLFSQktKhNGw4kdo0rIj8TaEZrksLWoG9Kg8L5PPadI6pux3riaE8ENNhkrms/M592edFeFB5o2k9NHBJ3r2MGrxMepq4Bp7ICCpmC/lnYBm1hjVEwVBL2j0N0S8JkfPnmvdyuZ3ZezEfUe8iK/E7p9S58KqsXjuWTN3doltIzJId5jcgsuKQeP4bpJLZOISJqrydavegJT8wvg75txKIuiB7qaEKBNc1qMN339255oKkxAdNEFDPUbTtE86GSW4nkU1+KKmwaXD1XzhUcFzgbPOrqOwuakmN/hJRB6aQTcn5UD5bi5PjoAZvaibOax3im51jqECAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBwuKjMGpDlAD/xdK297yGV/H3cVSt3rP6C5pNBtopSrrPrZk1neA1SPlI0+yaQKVlvLs+LqQGJp+kgH3UE8bdKg3ezvhijqMN6aGK0878+gAxdQmMgVaYJ6/jn96OrrLY2X+Mqcau52/QLciiFDysaef2ybV5N8op2s9Hbn3wi3d9OamXt09ovOxwaKX2Htjf20tzDACxXQwYOJhzXFew/kDGJx8/BmjajWiIftwYYprQg6AuWvkrTA5X3AfAiDttj95v9b715UO4XiOQLHXmV8yrgnBssuP/Powhduhnp3xgjEQ8nrWWZx1SYQGvFyDhZlgC5svdte+DnF/6C7dtI","cancellation_requested":false,"status":"completed","target":"https://keyvault000003.vault.azure.net/certificates/cert000004","request_id":"c15a69d698194e8ca0cc87a9f5f90acf"}' headers: cache-control: - no-cache @@ -2401,7 +1208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:35 GMT + - Fri, 19 Feb 2021 11:52:53 GMT expires: - '-1' pragma: @@ -2411,11 +1218,11 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.103;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -2436,24 +1243,24 @@ interactions: - -g -n --endpoint-name --profile-name --user-cert-subscription-id --user-cert-group-name --user-cert-vault-name --user-cert-secret-name --user-cert-protocol-type User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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: - - '385' + - '398' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:35 GMT + - Fri, 19 Feb 2021 11:52:54 GMT expires: - '-1' pragma: @@ -2469,14 +1276,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK - request: body: '{"protocolType": "ServerNameIndication", "certificateSource": "AzureKeyVault", "certificateSourceParameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters", - "subscriptionId": "5e87627b-4ffa-4abf-8040-b1103c84a2fd", "resourceGroupName": + "subscriptionId": "d7cfdb98-c118-458d-8bdf-246be66b1f5e", "resourceGroupName": "clitest.rg000001", "vaultName": "keyvault000003", "secretName": "cert000004", "updateRule": "NoAction", "deleteRule": "NoAction"}}' headers: @@ -2496,18 +1303,18 @@ interactions: - -g -n --endpoint-name --profile-name --user-cert-subscription-id --user-cert-group-name --user-cert-vault-name --user-cert-secret-name --user-cert-protocol-type User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002/enableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002/enableCustomHttps?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-5.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"5e87627b-4ffa-4abf-8040-b1103c84a2fd","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000003","secretName":"cert000004","secretVersion":null,"updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-5.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"d7cfdb98-c118-458d-8bdf-246be66b1f5e","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000003","secretName":"cert000004","secretVersion":null,"updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8579a2e9-080d-48d0-8550-9593c26fcc97?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/966669dc-8cdd-4a14-a5de-599e6c15ad5a?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -2515,11 +1322,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:37 GMT + - Fri, 19 Feb 2021 11:52:56 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8579a2e9-080d-48d0-8550-9593c26fcc97/profileresults/profile123/endpointresults/cdn-cli-test-5/customdomainresults/customdomain000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/966669dc-8cdd-4a14-a5de-599e6c15ad5a/profileresults/profile123/endpointresults/cdn-cli-test-5/customdomainresults/customdomain000002?api-version=2020-09-01 pragma: - no-cache server: @@ -2529,7 +1336,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -2548,15 +1355,15 @@ interactions: - -g -n --endpoint-name --profile-name --user-cert-subscription-id --user-cert-group-name --user-cert-vault-name --user-cert-secret-name --user-cert-protocol-type User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customDomains/customdomain000002?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-5.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"5e87627b-4ffa-4abf-8040-b1103c84a2fd","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000003","secretName":"cert000004","secretVersion":null,"updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-5/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-5.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"d7cfdb98-c118-458d-8bdf-246be66b1f5e","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000003","secretName":"cert000004","secretVersion":null,"updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2565,7 +1372,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:37 GMT + - Fri, 19 Feb 2021 11:52:57 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_crud.yaml index 791c9267772..90550d9478f 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_crud.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:42 GMT + - Fri, 19 Feb 2021 11:48:48 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:42:40Z"},"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-02-19T11:48:47Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:43 GMT + - Fri, 19 Feb 2021 11:48:48 GMT expires: - '-1' pragma: @@ -109,26 +109,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/75e498d3-ae1a-44bc-ba2c-dc8a1f46c90b?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2dcf5f7e-89e1-4dc1-8dc9-fd64e4991f2e?api-version=2020-09-01 cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:47 GMT + - Fri, 19 Feb 2021 11:48:53 GMT expires: - '-1' pragma: @@ -140,7 +140,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '22' status: code: 201 message: Created @@ -158,10 +158,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/75e498d3-ae1a-44bc-ba2c-dc8a1f46c90b?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2dcf5f7e-89e1-4dc1-8dc9-fd64e4991f2e?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -173,7 +173,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:57 GMT + - Fri, 19 Feb 2021 11:49:03 GMT expires: - '-1' pragma: @@ -205,22 +205,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:57 GMT + - Fri, 19 Feb 2021 11:49:03 GMT expires: - '-1' pragma: @@ -236,7 +236,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '45' status: code: 200 message: OK @@ -254,15 +254,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:42:40Z"},"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-02-19T11:48:47Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -271,7 +271,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:42:59 GMT + - Fri, 19 Feb 2021 11:49:04 GMT expires: - '-1' pragma: @@ -305,18 +305,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test.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/2c3e968d-798b-445c-ac40-5f447673ddbd?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9622f93-41f3-4c78-b0d4-aa36ec0128c9?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -324,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:03 GMT + - Fri, 19 Feb 2021 11:49:11 GMT expires: - '-1' pragma: @@ -354,10 +354,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2c3e968d-798b-445c-ac40-5f447673ddbd?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9622f93-41f3-4c78-b0d4-aa36ec0128c9?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -369,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:14 GMT + - Fri, 19 Feb 2021 11:49:22 GMT expires: - '-1' pragma: @@ -401,10 +401,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test.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"}}' @@ -416,7 +416,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:14 GMT + - Fri, 19 Feb 2021 11:49:22 GMT expires: - '-1' pragma: @@ -450,12 +450,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains?api-version=2020-09-01 response: body: string: '{"value":[]}' @@ -467,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:15 GMT + - Fri, 19 Feb 2021 11:49:24 GMT expires: - '-1' pragma: @@ -499,15 +499,15 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:42:40Z"},"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-02-19T11:48:47Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -516,7 +516,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:16 GMT + - Fri, 19 Feb 2021 11:49:24 GMT expires: - '-1' pragma: @@ -548,18 +548,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test.azfdtest.xyz","validationData":null,"resourceState":"Creating","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e1c3506f-0376-4edb-8c9b-b531dec72643?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4b15c17f-1a67-4894-96be-277d1f5202ab?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -567,7 +567,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:17 GMT + - Fri, 19 Feb 2021 11:49:27 GMT expires: - '-1' pragma: @@ -579,7 +579,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 201 message: Created @@ -597,10 +597,57 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4b15c17f-1a67-4894-96be-277d1f5202ab?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, 19 Feb 2021 11:49: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g -n --endpoint-name --profile-name --hostname + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e1c3506f-0376-4edb-8c9b-b531dec72643?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4b15c17f-1a67-4894-96be-277d1f5202ab?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -612,7 +659,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:27 GMT + - Fri, 19 Feb 2021 11:50:08 GMT expires: - '-1' pragma: @@ -644,10 +691,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -659,7 +706,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:28 GMT + - Fri, 19 Feb 2021 11:50:09 GMT expires: - '-1' pragma: @@ -691,12 +738,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains?api-version=2020-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}]}' @@ -708,7 +755,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:29 GMT + - Fri, 19 Feb 2021 11:50:10 GMT expires: - '-1' pragma: @@ -742,28 +789,28 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains/customdomain000002?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/a8476093-f20c-44cb-be01-f79df00a17be?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4dbefe40-26e0-4987-878e-4969748d9f03?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 18 Dec 2020 18:43:29 GMT + - Fri, 19 Feb 2021 11:50:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8476093-f20c-44cb-be01-f79df00a17be/profileresults/profile123/endpointresults/cdn-cli-test/customdomainresults/customdomain000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4dbefe40-26e0-4987-878e-4969748d9f03/profileresults/profile123/endpointresults/cdn-cli-test/customdomainresults/customdomain000002?api-version=2020-09-01 pragma: - no-cache server: @@ -773,7 +820,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14996' status: code: 202 message: Accepted @@ -791,10 +838,57 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4dbefe40-26e0-4987-878e-4969748d9f03?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, 19 Feb 2021 11:50:23 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn custom-domain delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --endpoint-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8476093-f20c-44cb-be01-f79df00a17be?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4dbefe40-26e0-4987-878e-4969748d9f03?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -806,7 +900,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:40 GMT + - Fri, 19 Feb 2021 11:50:53 GMT expires: - '-1' pragma: @@ -838,12 +932,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test/customDomains?api-version=2020-09-01 response: body: string: '{"value":[]}' @@ -855,7 +949,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:42 GMT + - Fri, 19 Feb 2021 11:50:55 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_errors.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_errors.yaml index 47a5bf8a523..00a994a6753 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_errors.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_errors.yaml @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-12-18T18:43:43Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-02-19T11:48:35Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:44 GMT + - Fri, 19 Feb 2021 11:48:37 GMT expires: - '-1' pragma: @@ -62,26 +62,26 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","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/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c4372c89-22b2-4c4d-8eea-d00f80b6bfd8?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c700827f-9f48-49c7-8774-a90fb5a05885?api-version=2020-09-01 cache-control: - no-cache content-length: - - '385' + - '398' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:48 GMT + - Fri, 19 Feb 2021 11:48:44 GMT expires: - '-1' pragma: @@ -93,7 +93,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '22' status: code: 201 message: Created @@ -111,10 +111,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c4372c89-22b2-4c4d-8eea-d00f80b6bfd8?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c700827f-9f48-49c7-8774-a90fb5a05885?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -126,7 +126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:58 GMT + - Fri, 19 Feb 2021 11:48:55 GMT expires: - '-1' pragma: @@ -158,22 +158,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '384' + - '397' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:58 GMT + - Fri, 19 Feb 2021 11:48:55 GMT expires: - '-1' pragma: @@ -207,15 +207,15 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-12-18T18:43:43Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-02-19T11:48:35Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -224,7 +224,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:43:59 GMT + - Fri, 19 Feb 2021 11:48:56 GMT expires: - '-1' pragma: @@ -258,18 +258,18 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/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.test.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/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/7dac2ae4-61b6-4288-8c4a-446c0f63b71e?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/4688bc08-7c65-40f1-aaba-ac447a4056c5?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:03 GMT + - Fri, 19 Feb 2021 11:49:04 GMT expires: - '-1' pragma: @@ -307,10 +307,57 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/7dac2ae4-61b6-4288-8c4a-446c0f63b71e?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/4688bc08-7c65-40f1-aaba-ac447a4056c5?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, 19 Feb 2021 11:49: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/4688bc08-7c65-40f1-aaba-ac447a4056c5?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -322,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:14 GMT + - Fri, 19 Feb 2021 11:49:45 GMT expires: - '-1' pragma: @@ -354,10 +401,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/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.test.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"}}' @@ -369,7 +416,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:14 GMT + - Fri, 19 Feb 2021 11:49:46 GMT expires: - '-1' pragma: @@ -403,12 +450,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains?api-version=2020-09-01 response: body: string: '{"value":[]}' @@ -420,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:15 GMT + - Fri, 19 Feb 2021 11:49:47 GMT expires: - '-1' pragma: @@ -452,15 +499,15 @@ interactions: ParameterSetName: - -g --endpoint-name --hostname --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-12-18T18:43:43Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-02-19T11:48:35Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -469,7 +516,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:15 GMT + - Fri, 19 Feb 2021 11:49:48 GMT expires: - '-1' pragma: @@ -501,12 +548,12 @@ interactions: ParameterSetName: - -g --endpoint-name --hostname --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2020-09-01 response: body: string: "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": @@ -521,7 +568,7 @@ interactions: content-type: - application/json date: - - Fri, 18 Dec 2020 18:44:16 GMT + - Fri, 19 Feb 2021 11:49:48 GMT expires: - '-1' pragma: @@ -533,7 +580,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 400 message: Bad Request @@ -551,12 +598,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2020-09-01 response: body: string: '{"error":{"code":"NotFound","message":"The requested resource was not @@ -569,7 +616,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:18 GMT + - Fri, 19 Feb 2021 11:49:50 GMT expires: - '-1' pragma: @@ -599,12 +646,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1?api-version=2020-09-01 response: body: string: '' @@ -612,7 +659,7 @@ interactions: cache-control: - no-cache date: - - Fri, 18 Dec 2020 18:44:18 GMT + - Fri, 19 Feb 2021 11:49:51 GMT expires: - '-1' pragma: @@ -642,24 +689,24 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '384' + - '397' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:19 GMT + - Fri, 19 Feb 2021 11:49:51 GMT expires: - '-1' pragma: @@ -675,7 +722,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -699,12 +746,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/enableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/enableCustomHttps?api-version=2020-09-01 response: body: string: "{\n \"error\": {\n \"code\": \"NotFound\",\n \"message\": \"The @@ -717,7 +764,7 @@ interactions: content-type: - application/json date: - - Fri, 18 Dec 2020 18:44:19 GMT + - Fri, 19 Feb 2021 11:49:51 GMT expires: - '-1' pragma: @@ -749,12 +796,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/disableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/cdnprofile1/endpoints/endpoint000002/customDomains/customdomain1/disableCustomHttps?api-version=2020-09-01 response: body: string: "{\n \"error\": {\n \"code\": \"NotFound\",\n \"message\": \"The @@ -767,7 +814,7 @@ interactions: content-type: - application/json date: - - Fri, 18 Dec 2020 18:44:20 GMT + - Fri, 19 Feb 2021 11:49:53 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_akamai.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_akamai.yaml index afa1908675c..4c9cfb3e3af 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_akamai.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_akamai.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:24 GMT + - Fri, 19 Feb 2021 11:52:15 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:44:22Z"},"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-02-19T11:52:13Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:23 GMT + - Fri, 19 Feb 2021 11:52:16 GMT expires: - '-1' pragma: @@ -109,26 +109,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/4ceb43fd-0df1-44d6-b366-44aed7bcfe14?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83f02315-4c44-49cf-a8f2-a6b79cd025e2?api-version=2020-09-01 cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:27 GMT + - Fri, 19 Feb 2021 11:52:24 GMT expires: - '-1' pragma: @@ -158,10 +158,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4ceb43fd-0df1-44d6-b366-44aed7bcfe14?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83f02315-4c44-49cf-a8f2-a6b79cd025e2?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -173,7 +173,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:38 GMT + - Fri, 19 Feb 2021 11:52:35 GMT expires: - '-1' pragma: @@ -205,22 +205,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:38 GMT + - Fri, 19 Feb 2021 11:52:36 GMT expires: - '-1' pragma: @@ -236,7 +236,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -254,15 +254,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:44:22Z"},"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-02-19T11:52:13Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -271,7 +271,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:39 GMT + - Fri, 19 Feb 2021 11:52:36 GMT expires: - '-1' pragma: @@ -305,18 +305,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-2","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-2.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/e28a6824-a70f-4944-8ccc-0d94721c2337?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/410188d4-a101-4f0c-a977-9c93cffc0e26?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -324,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:43 GMT + - Fri, 19 Feb 2021 11:52:43 GMT expires: - '-1' pragma: @@ -354,10 +354,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e28a6824-a70f-4944-8ccc-0d94721c2337?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/410188d4-a101-4f0c-a977-9c93cffc0e26?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -369,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:53 GMT + - Fri, 19 Feb 2021 11:52:55 GMT expires: - '-1' pragma: @@ -401,10 +401,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-2","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-2.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"}}' @@ -416,7 +416,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:53 GMT + - Fri, 19 Feb 2021 11:52:55 GMT expires: - '-1' pragma: @@ -450,15 +450,15 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:44:22Z"},"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-02-19T11:52:13Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -467,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:55 GMT + - Fri, 19 Feb 2021 11:52:56 GMT expires: - '-1' pragma: @@ -499,18 +499,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-2.azfdtest.xyz","validationData":null,"resourceState":"Creating","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c083795e-a849-4b2c-99b2-ea73bb76216d?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f45fff09-5dc6-4c02-8a00-8bf560d4ed9a?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -518,7 +518,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:44:57 GMT + - Fri, 19 Feb 2021 11:52:58 GMT expires: - '-1' pragma: @@ -530,7 +530,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -548,10 +548,57 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f45fff09-5dc6-4c02-8a00-8bf560d4ed9a?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, 19 Feb 2021 11:53:08 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g -n --endpoint-name --profile-name --hostname + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c083795e-a849-4b2c-99b2-ea73bb76216d?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f45fff09-5dc6-4c02-8a00-8bf560d4ed9a?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -563,7 +610,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:07 GMT + - Fri, 19 Feb 2021 11:53:39 GMT expires: - '-1' pragma: @@ -595,10 +642,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-2.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -610,7 +657,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:07 GMT + - Fri, 19 Feb 2021 11:53:39 GMT expires: - '-1' pragma: @@ -642,12 +689,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-2.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -659,7 +706,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:08 GMT + - Fri, 19 Feb 2021 11:53:42 GMT expires: - '-1' pragma: @@ -691,24 +738,24 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:09 GMT + - Fri, 19 Feb 2021 11:53:43 GMT expires: - '-1' pragma: @@ -724,7 +771,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -748,18 +795,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002/enableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002/enableCustomHttps?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-2.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"SubmittingDomainControlValidationRequest","customHttpsParameters":{"certificateSource":"Cdn","certificateSourceParameters":{"certificateType":"Shared","@odata.type":"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"None"},"provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/03ef515a-1282-410c-a394-c5e34f46369c?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9f8fbeb-adef-4496-989c-5da9fdc6856c?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -767,11 +814,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:12 GMT + - Fri, 19 Feb 2021 11:53:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/03ef515a-1282-410c-a394-c5e34f46369c/profileresults/profile123/endpointresults/cdn-cli-test-2/customdomainresults/customdomain000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/d9f8fbeb-adef-4496-989c-5da9fdc6856c/profileresults/profile123/endpointresults/cdn-cli-test-2/customdomainresults/customdomain000002?api-version=2020-09-01 pragma: - no-cache server: @@ -799,12 +846,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-2.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"SubmittingDomainControlValidationRequest","customHttpsParameters":{"certificateSource":"Cdn","certificateSourceParameters":{"certificateType":"Shared","@odata.type":"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"None"},"provisioningState":"Succeeded"}}' @@ -816,7 +863,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:13 GMT + - Fri, 19 Feb 2021 11:53:47 GMT expires: - '-1' pragma: @@ -850,12 +897,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002/disableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-2/customDomains/customdomain000002/disableCustomHttps?api-version=2020-09-01 response: body: string: "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": @@ -869,7 +916,7 @@ interactions: content-type: - application/json date: - - Fri, 18 Dec 2020 18:45:14 GMT + - Fri, 19 Feb 2021 11:53:49 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_msft.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_msft.yaml index d4325ce5caa..4075c97070a 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_msft.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_msft.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:17 GMT + - Fri, 19 Feb 2021 11:49:59 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:45:15Z"},"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-02-19T11:49:57Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:17 GMT + - Fri, 19 Feb 2021 11:49:59 GMT expires: - '-1' pragma: @@ -109,26 +109,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/c40da9c7-e1d4-409c-a917-caa437f7d74c?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a4132061-9fad-4881-9750-e58660ccbfcb?api-version=2020-09-01 cache-control: - no-cache content-length: - - '386' + - '399' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:21 GMT + - Fri, 19 Feb 2021 11:50:04 GMT expires: - '-1' pragma: @@ -140,7 +140,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '20' status: code: 201 message: Created @@ -158,10 +158,57 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c40da9c7-e1d4-409c-a917-caa437f7d74c?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a4132061-9fad-4881-9750-e58660ccbfcb?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, 19 Feb 2021 11:50:14 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: + - 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.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a4132061-9fad-4881-9750-e58660ccbfcb?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -173,7 +220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:32 GMT + - Fri, 19 Feb 2021 11:50:46 GMT expires: - '-1' pragma: @@ -205,22 +252,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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: - - '385' + - '398' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:32 GMT + - Fri, 19 Feb 2021 11:50:46 GMT expires: - '-1' pragma: @@ -236,7 +283,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -254,15 +301,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:45:15Z"},"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-02-19T11:49:57Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -271,7 +318,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:32 GMT + - Fri, 19 Feb 2021 11:50:46 GMT expires: - '-1' pragma: @@ -305,18 +352,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-4","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-4.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/eaa3f3e0-58c7-4a6d-9dea-b89f00dbffa0?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e88159d2-d8dc-41bd-8b4e-6a4f1ad7301c?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -324,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:37 GMT + - Fri, 19 Feb 2021 11:50:53 GMT expires: - '-1' pragma: @@ -336,7 +383,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 201 message: Created @@ -354,10 +401,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/eaa3f3e0-58c7-4a6d-9dea-b89f00dbffa0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e88159d2-d8dc-41bd-8b4e-6a4f1ad7301c?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -369,7 +416,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:45:48 GMT + - Fri, 19 Feb 2021 11:51:04 GMT expires: - '-1' pragma: @@ -401,10 +448,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/eaa3f3e0-58c7-4a6d-9dea-b89f00dbffa0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e88159d2-d8dc-41bd-8b4e-6a4f1ad7301c?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -416,7 +463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:19 GMT + - Fri, 19 Feb 2021 11:51:35 GMT expires: - '-1' pragma: @@ -448,10 +495,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-4","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-4.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -463,7 +510,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:19 GMT + - Fri, 19 Feb 2021 11:51:35 GMT expires: - '-1' pragma: @@ -497,15 +544,15 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:45:15Z"},"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-02-19T11:49:57Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -514,7 +561,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:20 GMT + - Fri, 19 Feb 2021 11:51:37 GMT expires: - '-1' pragma: @@ -546,18 +593,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Creating","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e540490f-a6da-4372-a841-ad3c774a51b5?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea263f18-ff03-4e67-b44e-8ff39b5eb26d?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -565,7 +612,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:21 GMT + - Fri, 19 Feb 2021 11:51:39 GMT expires: - '-1' pragma: @@ -577,7 +624,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -595,10 +642,57 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea263f18-ff03-4e67-b44e-8ff39b5eb26d?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, 19 Feb 2021 11:51:51 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g -n --endpoint-name --profile-name --hostname + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e540490f-a6da-4372-a841-ad3c774a51b5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea263f18-ff03-4e67-b44e-8ff39b5eb26d?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -610,7 +704,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:32 GMT + - Fri, 19 Feb 2021 11:53:44 GMT expires: - '-1' pragma: @@ -642,10 +736,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -657,7 +751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:33 GMT + - Fri, 19 Feb 2021 11:53:45 GMT expires: - '-1' pragma: @@ -689,15 +783,15 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:45:15Z"},"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-02-19T11:49:57Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -706,7 +800,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:33 GMT + - Fri, 19 Feb 2021 11:53:45 GMT expires: - '-1' pragma: @@ -738,18 +832,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000003","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000003","properties":{"hostName":"customdomain000003.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Creating","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76cc4bdd-04d6-496e-bb17-1dc3048714ea?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9973796c-73c0-4efc-9d54-20c6d7c7420b?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -757,7 +851,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:35 GMT + - Fri, 19 Feb 2021 11:53:52 GMT expires: - '-1' pragma: @@ -769,7 +863,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -787,10 +881,57 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9973796c-73c0-4efc-9d54-20c6d7c7420b?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, 19 Feb 2021 11:54: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn custom-domain create + Connection: + - keep-alive + ParameterSetName: + - -g -n --endpoint-name --profile-name --hostname + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76cc4bdd-04d6-496e-bb17-1dc3048714ea?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9973796c-73c0-4efc-9d54-20c6d7c7420b?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -802,7 +943,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:45 GMT + - Fri, 19 Feb 2021 11:54:34 GMT expires: - '-1' pragma: @@ -834,10 +975,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000003","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000003","properties":{"hostName":"customdomain000003.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -849,7 +990,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:46 GMT + - Fri, 19 Feb 2021 11:54:34 GMT expires: - '-1' pragma: @@ -881,12 +1022,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -898,7 +1039,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:47 GMT + - Fri, 19 Feb 2021 11:54:35 GMT expires: - '-1' pragma: @@ -930,12 +1071,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -947,7 +1088,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:48 GMT + - Fri, 19 Feb 2021 11:54:37 GMT expires: - '-1' pragma: @@ -979,24 +1120,24 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --min-tls-version User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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: - - '385' + - '398' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:49 GMT + - Fri, 19 Feb 2021 11:54:38 GMT expires: - '-1' pragma: @@ -1036,18 +1177,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --min-tls-version User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002/enableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002/enableCustomHttps?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"SubmittingDomainControlValidationRequest","customHttpsParameters":{"certificateSource":"Cdn","certificateSourceParameters":{"certificateType":"Dedicated","@odata.type":"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS10"},"provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/39058d01-2942-473d-99c7-2c89a29cf495?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34f4010e-b9fc-42a6-a461-27b8fe55c3c3?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1055,11 +1196,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:51 GMT + - Fri, 19 Feb 2021 11:54:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/39058d01-2942-473d-99c7-2c89a29cf495/profileresults/profile123/endpointresults/cdn-cli-test-4/customdomainresults/customdomain000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/34f4010e-b9fc-42a6-a461-27b8fe55c3c3/profileresults/profile123/endpointresults/cdn-cli-test-4/customdomainresults/customdomain000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1087,12 +1228,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --min-tls-version User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"SubmittingDomainControlValidationRequest","customHttpsParameters":{"certificateSource":"Cdn","certificateSourceParameters":{"certificateType":"Dedicated","@odata.type":"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS10"},"provisioningState":"Succeeded"}}' @@ -1104,7 +1245,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:52 GMT + - Fri, 19 Feb 2021 11:54:42 GMT expires: - '-1' pragma: @@ -1132,7 +1273,7 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python accept-language: - en-US @@ -1140,33 +1281,49 @@ interactions: uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"5310aa29-9a44-4cbc-adb3-6347a539537e","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"consentProvidedForMinor":null,"country":null,"createdDateTime":"2020-12-16T18:59:47Z","creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"Dania - Etienne","employeeId":null,"facsimileTelephoneNumber":null,"givenName":"Dania","immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"legalAgeGroupClassification":null,"mail":null,"mailNickname":"detienne001_gmail.com#EXT#","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":["detienne001@gmail.com"],"passwordPolicies":null,"passwordProfile":null,"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":"en","provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":[],"refreshTokensValidFromDateTime":"2020-12-16T18:59:47Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":"Etienne","telephoneNumber":null,"thumbnailPhoto@odata.mediaEditLink":"directoryObjects/5310aa29-9a44-4cbc-adb3-6347a539537e/Microsoft.DirectoryServices.User/thumbnailPhoto","usageLocation":"US","userIdentities":[],"userPrincipalName":"detienne001_gmail.com#EXT#@detienne001gmail.onmicrosoft.com","userState":null,"userStateChangedOn":null,"userType":"Member"}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"869af0a9-0d80-4745-a601-bcf7a8f51a3b","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[{"disabledPlans":["a413a9ff-720c-4822-98ef-2f37c2a21f4c","a6520331-d7d4-4276-95f5-15c0933bc757","ded3d325-1bdc-453e-8432-5bac26d7a014","afa73018-811e-46e9-988f-f75d2b1b8430","b21a6b06-1988-436e-a07b-51ec6d9f52ad","531ee2f8-b1cb-453b-9c21-d2180d014ca5","bf28f719-7844-4079-9c78-c1307898e192","28b0fa46-c39a-4188-89e2-58e979a6b014","199a5c09-e0ca-4e37-8f7c-b05d533e1ea2","65cc641f-cccd-4643-97e0-a17e3045e541","e26c2fcc-ab91-4a61-b35c-03cdc8dddf66","46129a58-a698-46f0-aa5b-17f6586297d9","6db1f1db-2b46-403f-be40-e39395f08dbb","6dc145d6-95dd-4191-b9c3-185575ee6f6b","41fcdd7d-4733-4863-9cf4-c65b83ce2df4","c4801e8a-cb58-4c35-aca6-f2dcc106f287","0898bdbb-73b0-471a-81e5-20f1fe4dd66e","617b097b-4b93-4ede-83de-5f075bb5fb2f","33c4f319-9bdd-48d6-9c4d-410b750a4a5a","4828c8ec-dc2e-4779-b502-87ac9ce28ab7","3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"],"skuId":"c7df2760-2c81-4ef7-b578-5b5392b571df"},{"disabledPlans":[],"skuId":"3d957427-ecdc-4df2-aacd-01cc9d519da8"},{"disabledPlans":[],"skuId":"9f3d9c1d-25a5-4aaa-8e59-23a1e6450a67"},{"disabledPlans":["39b5c996-467e-4e60-bd62-46066f572726"],"skuId":"90d8b3f8-712e-4f7b-aa1e-62e7ae6cbe96"},{"disabledPlans":["e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72"],"skuId":"09015f9f-377f-4538-bbb5-f75ceb09358a"},{"disabledPlans":[],"skuId":"dcb1a3ae-b33f-4487-846a-a640262fadf4"},{"disabledPlans":[],"skuId":"26a18e8f-4d14-46f8-835a-ed3ba424a961"},{"disabledPlans":[],"skuId":"412ce1a7-a499-41b3-8eb6-b38f2bbc5c3f"},{"disabledPlans":[],"skuId":"488ba24a-39a9-4473-8ee5-19291e71b002"},{"disabledPlans":[],"skuId":"b05e124f-c7cc-45a0-a6aa-8cf78c946968"},{"disabledPlans":["0b03f40b-c404-40c3-8651-2aceb74365fa","b650d915-9886-424b-a08d-633cede56f57","e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72","fe71d6c3-a2ea-4499-9778-da042bf08063","fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"],"skuId":"ea126fc5-a19e-42e2-a731-da9d437bffcf"},{"disabledPlans":[],"skuId":"c5928f49-12ba-48f7-ada3-0d743a3601d5"}],"assignedPlans":[{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"MIPExchangeSolutions","servicePlanId":"cd31b152-6326-4d1b-ae1b-997b625182e6"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"199a5c09-e0ca-4e37-8f7c-b05d533e1ea2"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2021-02-09T21:29:33Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"},{"assignedTimestamp":"2020-12-22T16:51:08Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"2f442157-a11c-46b9-ae5b-6e39ff4e5849"},{"assignedTimestamp":"2020-12-11T22:05:29Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"18fa3aba-b085-4105-87d7-55617b8585e6"},{"assignedTimestamp":"2020-12-11T22:05:29Z","capabilityStatus":"Enabled","service":"ERP","servicePlanId":"69f07c66-bee4-4222-b051-195095efee5b"},{"assignedTimestamp":"2020-12-11T22:05:29Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"0a05d977-a21a-45b2-91ce-61c240dbafa2"},{"assignedTimestamp":"2020-11-03T18:37:15Z","capabilityStatus":"Deleted","service":"M365CommunicationCompliance","servicePlanId":"a413a9ff-720c-4822-98ef-2f37c2a21f4c"},{"assignedTimestamp":"2020-10-29T23:20:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"7e6d7d78-73de-46ba-83b1-6d25117334ba"},{"assignedTimestamp":"2020-10-17T01:38:15Z","capabilityStatus":"Enabled","service":"WorkplaceAnalytics","servicePlanId":"f477b0f0-3bb1-4890-940c-40fcee6ce05f"},{"assignedTimestamp":"2020-08-14T08:07:41Z","capabilityStatus":"Enabled","service":"YammerEnterprise","servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653"},{"assignedTimestamp":"2020-06-18T03:42:53Z","capabilityStatus":"Enabled","service":"MicrosoftPrint","servicePlanId":"795f6fe0-cc4d-4773-b050-5dde4dc704c9"},{"assignedTimestamp":"2019-11-04T22:10:51Z","capabilityStatus":"Enabled","service":"WhiteboardServices","servicePlanId":"4a51bca5-1eff-43f5-878c-177680f191af"},{"assignedTimestamp":"2019-10-15T14:52:44Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"5136a095-5cf0-4aff-bec3-e84448b38ea5"},{"assignedTimestamp":"2019-10-15T14:52:44Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb0351d-3b08-4503-993d-383af8de41e3"},{"assignedTimestamp":"2019-08-08T20:23:14Z","capabilityStatus":"Enabled","service":"MicrosoftFormsProTest","servicePlanId":"97f29a83-1a20-44ff-bf48-5e4ad11f3e51"},{"assignedTimestamp":"2019-05-23T06:30:05Z","capabilityStatus":"Enabled","service":"DYN365AISERVICEINSIGHTS","servicePlanId":"1412cdc1-d593-4ad1-9050-40c30ad0b023"},{"assignedTimestamp":"2019-04-02T10:25:07Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"818523f5-016b-4355-9be8-ed6944946ea7"},{"assignedTimestamp":"2019-04-02T10:25:07Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"fa200448-008c-4acb-abd4-ea106ed2199d"},{"assignedTimestamp":"2019-04-02T10:25:07Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"50554c47-71d9-49fd-bc54-42a2765c555c"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"50e68c76-46c6-4674-81f9-75456511b170"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"d20bfa21-e9ae-43fc-93c2-20783f0840c3"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"d5368ca3-357e-4acb-9c21-8495fb025d1f"},{"assignedTimestamp":"2018-12-20T13:43:06Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"17ab22cd-a0b3-4536-910a-cb6eb12696c0"},{"assignedTimestamp":"2018-12-01T09:40:42Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"b1188c4c-1b36-4018-b48b-ee07604f6feb"},{"assignedTimestamp":"2018-09-20T22:59:39Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"018fb91e-cee3-418c-9063-d7562978bdaf"},{"assignedTimestamp":"2018-09-20T22:59:38Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"ca4be917-fbce-4b52-839e-6647467a1668"},{"assignedTimestamp":"2018-09-20T22:59:37Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"4828c8ec-dc2e-4779-b502-87ac9ce28ab7"},{"assignedTimestamp":"2018-09-20T22:59:37Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"},{"assignedTimestamp":"2018-09-20T22:59:37Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"8e0c0a52-6a6c-4d40-8370-dd62790dcd70"},{"assignedTimestamp":"2018-09-07T19:52:01Z","capabilityStatus":"Enabled","service":"OfficeForms","servicePlanId":"e212cbc7-0961-4c40-9825-01117710dcb1"},{"assignedTimestamp":"2018-08-29T13:42:06Z","capabilityStatus":"Enabled","service":"Sway","servicePlanId":"a23b959c-7ce8-4e57-9140-b90eb88a9e97"},{"assignedTimestamp":"2018-08-29T13:42:06Z","capabilityStatus":"Deleted","service":"OfficeForms","servicePlanId":"159f4cd6-e380-449f-a816-af1a9ef76344"},{"assignedTimestamp":"2018-08-18T00:12:14Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"bea4c11e-220a-4e6d-8eb8-8ea15d019f90"},{"assignedTimestamp":"2018-08-18T00:12:14Z","capabilityStatus":"Enabled","service":"Deskless","servicePlanId":"8c7d2df8-86f0-4902-b2ed-a0458298f3b3"},{"assignedTimestamp":"2018-08-18T00:12:14Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"6c57d4b6-3b23-47a5-9bc9-69f17b4947b3"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"2bdbaf8f-738f-4ac7-9234-3c3ee2ce7d0f"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"2125cfd7-2110-4567-83c4-c1cd5275163d"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"da792a53-cbc0-4184-a10d-e544dd34b3c1"},{"assignedTimestamp":"2018-04-24T04:14:52Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"c4048e79-4474-4c74-ba9b-c31ff225e511"},{"assignedTimestamp":"2018-03-21T12:12:02Z","capabilityStatus":"Deleted","service":"MicrosoftStream","servicePlanId":"acffdce6-c30f-4dc2-81c0-372e33c515ec"},{"assignedTimestamp":"2018-03-17T10:24:23Z","capabilityStatus":"Enabled","service":"WindowsDefenderATP","servicePlanId":"871d91ec-ec1a-452b-a83f-bd76c7d770ef"},{"assignedTimestamp":"2018-03-17T10:24:23Z","capabilityStatus":"Enabled","service":"AzureAdvancedThreatAnalytics","servicePlanId":"14ab5db5-e6c4-4b20-b4bc-13e36fd2227f"},{"assignedTimestamp":"2018-03-17T10:24:23Z","capabilityStatus":"Enabled","service":"Windows","servicePlanId":"e7c91390-7625-45be-94e0-e16907e03118"},{"assignedTimestamp":"2018-01-08T23:47:00Z","capabilityStatus":"Enabled","service":"ProjectWorkManagement","servicePlanId":"b737dad2-2f6c-4c65-90e3-ca563267e8b9"},{"assignedTimestamp":"2018-01-01T00:17:54Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"41781fb2-bc02-4b7c-bd55-b576c07bb09d"},{"assignedTimestamp":"2018-01-01T00:17:54Z","capabilityStatus":"Enabled","service":"MultiFactorService","servicePlanId":"8a256a2b-b617-496d-b51b-e76466e88db0"},{"assignedTimestamp":"2017-12-31T08:22:18Z","capabilityStatus":"Deleted","service":"Adallom","servicePlanId":"932ad362-64a8-4783-9106-97849a1a30b9"},{"assignedTimestamp":"2017-12-16T14:54:14Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"5689bec4-755d-4753-8b61-40975025187c"},{"assignedTimestamp":"2017-12-16T14:54:14Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"2e2ddb96-6af9-4b1d-a3f0-d6ecfd22edb2"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b"},{"assignedTimestamp":"2017-11-11T04:21:18Z","capabilityStatus":"Enabled","service":"To-Do","servicePlanId":"3fb82609-8c27-4f7b-bd51-30634711ee67"},{"assignedTimestamp":"2017-10-07T02:49:58Z","capabilityStatus":"Enabled","service":"Netbreeze","servicePlanId":"03acaee3-9492-4f40-aed4-bcb6b32981b6"},{"assignedTimestamp":"2017-10-07T02:49:58Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"d56f3deb-50d8-465a-bedb-f079817ccac1"},{"assignedTimestamp":"2017-06-11T13:56:10Z","capabilityStatus":"Enabled","service":"MicrosoftStream","servicePlanId":"6c6042f5-6f01-4d67-b8c1-eb99d36eed3e"},{"assignedTimestamp":"2017-06-11T13:56:10Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"eec0eb4f-6444-4f95-aba0-50c24d67f998"},{"assignedTimestamp":"2017-06-11T13:56:10Z","capabilityStatus":"Enabled","service":"SCO","servicePlanId":"c1ec4a95-1f05-45b3-a911-aa3fa01094f5"},{"assignedTimestamp":"2016-12-13T02:18:04Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"07699545-9485-468e-95b6-2fca3738be01"},{"assignedTimestamp":"2016-12-13T02:18:04Z","capabilityStatus":"Enabled","service":"TeamspaceAPI","servicePlanId":"57ff2da0-773e-42df-b2af-ffb7a2317929"},{"assignedTimestamp":"2016-12-13T02:18:04Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"9c0dab89-a30c-4117-86e7-97bda240acd2"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"PowerBI","servicePlanId":"70d33638-9c74-4d01-bfd3-562de28bd4ba"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"34c0d7a0-a70f-4668-9238-47f9fc208882"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"9f431833-0334-42de-a7dc-70aa40db46db"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"4de31727-a228-4ec3-a5bf-8e45b5ca48cc"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Deleted","service":"AzureAnalysis","servicePlanId":"2049e525-b859-401b-b2a0-e0a31c4b1fe4"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Deleted","service":"PowerBI","servicePlanId":"fc0a60aa-feee-4746-a0e3-aecfe81a38dd"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"43de0ff5-c92c-492b-9116-175376d08c38"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"0feaeb32-d00e-4d66-bd5a-43b5b83db82c"},{"assignedTimestamp":"2016-10-27T05:30:50Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb87545-963c-4e0d-99df-69c6916d9eb0"},{"assignedTimestamp":"2013-03-24T00:55:24Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"663a804f-1c30-4ff0-9915-9db84f0d1cea"}],"city":"Shanghai","companyName":"China + Shanghai Zizhu","consentProvidedForMinor":null,"country":null,"createdDateTime":null,"creationType":null,"department":"Azure + NW CDN China SH 1942 COGS","dirSyncEnabled":true,"displayName":"Bo Zhang (CDN)","employeeId":null,"facsimileTelephoneNumber":null,"givenName":"Bo","immutableId":"623374","isCompromised":null,"jobTitle":"SENIOR + SOFTWARE ENGINEER","lastDirSyncTime":"2020-09-21T17:48:11Z","legalAgeGroupClassification":null,"mail":"bzhan@microsoft.com","mailNickname":"bzhan","mobile":"8613917210462","onPremisesDistinguishedName":"CN=Bo + Zhang (CDN),OU=MSE,OU=Users,OU=CoreIdentity,DC=fareast,DC=corp,DC=microsoft,DC=com","onPremisesSecurityIdentifier":"S-1-5-21-2146773085-903363285-719344707-1583571","otherMails":[],"passwordPolicies":"DisablePasswordExpiration","passwordProfile":null,"physicalDeliveryOfficeName":"SHA-ZIZHU-BLD1/4234","postalCode":null,"preferredLanguage":null,"provisionedPlans":[{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Adallom"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Netbreeze"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"microsoftcommunicationsonline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"}],"provisioningErrors":[],"proxyAddresses":["SMTP:bzhan@microsoft.com","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhang (Dup: 352f2b069a16084aa689fd986c5b77d6","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhang463","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhang96e","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhangb6e","X500:/o=MMS/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bo Zhanga59adae7-6a4f-43df-88b7-13b52362ea84","x500:/O=Nokia/OU=HUB/cn=Recipients/cn=bzhan","x500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=6706b86d850340ddb0935c576c7ba192-Bo + Zhang","smtp:bzhan@service.microsoft.com","x500:/o=ExchangeLabs/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=c9f96898f60e42e59da2278e3c74461d-Bo + Zhang (D","X500:/o=MMS/ou=External (FYDIBOHF25SPDLT)/cn=Recipients/cn=bfa989c0319946019fa734c09c784f5d"],"refreshTokensValidFromDateTime":"2019-08-26T06:54:26Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":"bzhan@microsoft.com","state":null,"streetAddress":null,"surname":"Zhang + (CDN)","telephoneNumber":"+86 (21) 61885166","thumbnailPhoto@odata.mediaEditLink":"directoryObjects/869af0a9-0d80-4745-a601-bcf7a8f51a3b/Microsoft.DirectoryServices.User/thumbnailPhoto","usageLocation":"CN","userIdentities":[],"userPrincipalName":"bzhan@microsoft.com","userState":null,"userStateChangedOn":null,"userType":"Member","extension_18e31482d3fb4a8ea958aa96b662f508_SupervisorInd":"N","extension_18e31482d3fb4a8ea958aa96b662f508_StateProvinceCode":"31","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToPersonnelNbr":"575174","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToFullName":"Xue, + Gang","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToEmailName":"LUXUE","extension_18e31482d3fb4a8ea958aa96b662f508_ProfitCenterCode":"P10211897","extension_18e31482d3fb4a8ea958aa96b662f508_PositionNumber":"91419883","extension_18e31482d3fb4a8ea958aa96b662f508_CostCenterCode":"10211897","extension_18e31482d3fb4a8ea958aa96b662f508_CompanyCode":"1942","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine1":"No. + 999, Zi Xing Road","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine2":"Min + Hang District","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingID":"100509","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingName":"SHA-ZIZHU-BLD1","extension_18e31482d3fb4a8ea958aa96b662f508_CityName":"Shanghai","extension_18e31482d3fb4a8ea958aa96b662f508_CountryShortCode":"CN","extension_18e31482d3fb4a8ea958aa96b662f508_LocationAreaCode":"CN","extension_18e31482d3fb4a8ea958aa96b662f508_PersonnelNumber":"623374","extension_18e31482d3fb4a8ea958aa96b662f508_ZipCode":"200241"}' headers: access-control-allow-origin: - '*' cache-control: - no-cache content-length: - - '1628' + - '20142' content-type: - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 dataserviceversion: - 3.0; date: - - Fri, 18 Dec 2020 18:46:52 GMT + - Fri, 19 Feb 2021 11:54:43 GMT duration: - - '552029' + - '471564' expires: - '-1' ocp-aad-diagnostics-server-name: - - NgnnVmy2A+W6OE+ShZLoWDyuBLD/QzNSeb8/oJOU0MI= + - BmgPseFIPLxeuT7hbcALof8+5AF2tl9OnfxU5nzpL9M= ocp-aad-session-key: - - F3VzrBM5paCus_CkCX4ZRMDxtBJ1u4HNXObtu3utq_nRiL6MUKM0WPR35YPfzpIejZi-GVGZus4ydtXgh0oO5zQWHbC8xsCyo5Nupm_jnt49RCPhtYtIsd5VieqItDBW.GH5P_PJLfvnHDbrr4Z2eCJ1U3NF0ceOwQ5usUCLlY8E + - 4Rn3nDi5vA8eDPtp_Ja-cE7TnxghALGUhzb3uaXHMdRiywaVefkDVMG_AuWPmFpt31NvKSEN1GJVECUX_n_-MqaFiiYXJfmF4GyQ_Vtv2p30WZ8I7YlGKtY1N_35_bKH.z4m5UJpjMTUwqdS528zF8tRoPuCWRtvJJ_bIqK8vFPI pragma: - no-cache request-id: - - 51f2ce8d-a4c8-49b6-aaa6-3cfe3770dd38 + - 418ae8f1-c9aa-4ce5-8009-7d844fa7b8a5 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -1181,9 +1338,9 @@ interactions: code: 200 message: OK - request: - body: '{"location": "centralus", "properties": {"tenantId": "01a4073e-87c8-47cd-aafc-1439b4b5ea2c", + body: '{"location": "centralus", "properties": {"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": - "01a4073e-87c8-47cd-aafc-1439b4b5ea2c", "objectId": "5310aa29-9a44-4cbc-adb3-6347a539537e", + "72f988bf-86f1-41af-91ab-2d7cd011db47", "objectId": "869af0a9-0d80-4745-a601-bcf7a8f51a3b", "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", @@ -1208,12 +1365,12 @@ interactions: ParameterSetName: - --location --name -g User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.19.1 azsdk-python-azure-mgmt-keyvault/8.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.KeyVault/vaults/keyvault000004?api-version=2019-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000004","name":"keyvault000004","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","accessPolicies":[{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","objectId":"5310aa29-9a44-4cbc-adb3-6347a539537e","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000004.vault.azure.net","provisioningState":"RegisteringDns"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000004","name":"keyvault000004","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"869af0a9-0d80-4745-a601-bcf7a8f51a3b","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000004.vault.azure.net","provisioningState":"RegisteringDns"}}' headers: cache-control: - no-cache @@ -1222,7 +1379,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:46:55 GMT + - Fri, 19 Feb 2021 11:54:50 GMT expires: - '-1' pragma: @@ -1240,9 +1397,9 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.1.163.0 + - 1.0.104.232 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' x-powered-by: - ASP.NET status: @@ -1262,12 +1419,12 @@ interactions: ParameterSetName: - --location --name -g User-Agent: - - AZURECLI/2.16.0 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.19.1 azsdk-python-azure-mgmt-keyvault/8.0.0 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000004?api-version=2019-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000004","name":"keyvault000004","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","accessPolicies":[{"tenantId":"01a4073e-87c8-47cd-aafc-1439b4b5ea2c","objectId":"5310aa29-9a44-4cbc-adb3-6347a539537e","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000004.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.KeyVault/vaults/keyvault000004","name":"keyvault000004","type":"Microsoft.KeyVault/vaults","location":"centralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","accessPolicies":[{"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","objectId":"869af0a9-0d80-4745-a601-bcf7a8f51a3b","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"vaultUri":"https://keyvault000004.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1276,7 +1433,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:25 GMT + - Fri, 19 Feb 2021 11:55:20 GMT expires: - '-1' pragma: @@ -1294,7 +1451,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.1.163.0 + - 1.0.104.232 x-powered-by: - ASP.NET status: @@ -1314,7 +1471,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -1332,7 +1489,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:26 GMT + - Fri, 19 Feb 2021 11:55:23 GMT expires: - '-1' pragma: @@ -1340,16 +1497,16 @@ interactions: strict-transport-security: - max-age=31536000;includeSubDomains www-authenticate: - - Bearer authorization="https://login.windows.net/01a4073e-87c8-47cd-aafc-1439b4b5ea2c", + - Bearer authorization="https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47", resource="https://vault.azure.net" x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.103;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -1375,7 +1532,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -1383,9 +1540,9 @@ interactions: uri: https://keyvault000004.vault.azure.net/certificates/cert000005/create?api-version=7.0 response: body: - string: '{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKU78vsmh6iQo8lSXHy/hx1ut+xextbLCnsh4PAmFVk4qE/J2278VGMcVwJAMXoFAdEUmq1EL6HfLMaoG8i+isKXtk2YBDeCDPkkiw7h8dxt7/u6LaIWiMrJ3LkT408ZVf+1fdiI8K6VHikgioAmCt+zYT1DPnbmLnCEHyzepfmdi/snW8KJyG4tQjxAeAuptIFs++3azniTGaJNBciXFENhcDd5vPLGSGc5DzDraUDsNjS3YaE/9+cn0xB3Ko+c+oZTrihR72yMmLuTaWYtIMkHHpQafFUSqvrAeAtR2Yq7WQbz7cA/uLt37dOeKhfh0GsHY/ERAcPcuciI++ZOLykCAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBy2PTXNzV7ZZYwbKmH/oLmrs/QEk6a+xk4tI1FMAjXWJKmWYyYMjDzYP6+fY3TdXbxHT53q32v1HaevbNFkHAXBZzNcYpjeIElC4+H51O1spsHPFMN8M6kzrFL/+44drqI7Teh1bBsnhKyylmZkIgkaz+nF6MLEYTRv+ywcRoP37BjUYAZxZU7qhK/bd//iyCItTux6f0JEBh2U0zLDVaAm8nbbb3Br1yF66OiPaYWJbc2FQUojDdk3/hYyEs4M6KFKjROyM3VyOZDk2caFQHJSNg3ho/yx2L8hn+NazN1RpA/i1jAxk1SihyOJSVsFbL1DGRHW6Z4HQ9GQvW2Krsa","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDcuBvjwXXBhMJ2bo4rg+0ffgPfVzsIMhiOhdvkNkiy4zJ/Qr0GGHOyr9HxecJGdxwHU99t0C+Brlnp9hL3UPacr1OypaYkJ0x86E9k65gHxFOeNy2CDbUl9LHGHky8+S1qQ1K7vsmFqwBb8KNaS8RG8p0foogXmAcqeIQvL5t2CHdmUs24cJDi32pnY3P/wmlrIjQ/RFPD0lTxWHRc7h28r62l67xGo9iEXtFgrVAQonccYURCpdmxa+9t1n35ucHY0AFgJ2WjDjadFxRU5Hnd+Vh0kYOEEndGMgQfTRvddUUJi8S2FF4vN/wxYTtXOvx7Q2M0++jx3czEjWWvktUCAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQACQA4FDpMUK/IhTJpLPRN0gP+3STNB1PvFfE52hBgsDUR2AL8UN7gH8OCisxzyU7KfwBNvdcAkLXBGeExgFxFoYVp+yVbFBxx+GPijV3zRU3yjHEe8jBkLGmZitSZjFWGazWnULQUWBYIf3LVfgsSdohL2IvQq5BDIAs9JNTrHEw9XUfPINDb+JRvg4UgUcTJ0JKNnhBo8ZWusj1aIKEKgrE24rKcrxaNBmFG4dFUU8YKKOrQiqc1wLrkdqZYZ7B5EoAQhRuWUDJ04npCnrZtOJgXsE3bd9LIhFdUuD0mTz9e/PKt8HJBtQEvJg3zvdpFjM50AAVQbcW3vlVLsMQd8","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"d65071a3c4b04358890dd77ae9fcb768"}' + time based on the issuer provider. Please check again later.","request_id":"6d0ab18eb0444e06859eb2249ded995f"}' headers: cache-control: - no-cache @@ -1394,11 +1551,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:27 GMT + - Fri, 19 Feb 2021 11:55:25 GMT expires: - '-1' location: - - https://keyvault000004.vault.azure.net/certificates/cert000005/pending?api-version=7.0&request_id=d65071a3c4b04358890dd77ae9fcb768 + - https://keyvault000004.vault.azure.net/certificates/cert000005/pending?api-version=7.0&request_id=6d0ab18eb0444e06859eb2249ded995f pragma: - no-cache strict-transport-security: @@ -1406,11 +1563,11 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.103;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -1428,7 +1585,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -1436,9 +1593,9 @@ interactions: uri: https://keyvault000004.vault.azure.net/certificates/cert000005/pending?api-version=7.0 response: body: - string: '{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKU78vsmh6iQo8lSXHy/hx1ut+xextbLCnsh4PAmFVk4qE/J2278VGMcVwJAMXoFAdEUmq1EL6HfLMaoG8i+isKXtk2YBDeCDPkkiw7h8dxt7/u6LaIWiMrJ3LkT408ZVf+1fdiI8K6VHikgioAmCt+zYT1DPnbmLnCEHyzepfmdi/snW8KJyG4tQjxAeAuptIFs++3azniTGaJNBciXFENhcDd5vPLGSGc5DzDraUDsNjS3YaE/9+cn0xB3Ko+c+oZTrihR72yMmLuTaWYtIMkHHpQafFUSqvrAeAtR2Yq7WQbz7cA/uLt37dOeKhfh0GsHY/ERAcPcuciI++ZOLykCAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBy2PTXNzV7ZZYwbKmH/oLmrs/QEk6a+xk4tI1FMAjXWJKmWYyYMjDzYP6+fY3TdXbxHT53q32v1HaevbNFkHAXBZzNcYpjeIElC4+H51O1spsHPFMN8M6kzrFL/+44drqI7Teh1bBsnhKyylmZkIgkaz+nF6MLEYTRv+ywcRoP37BjUYAZxZU7qhK/bd//iyCItTux6f0JEBh2U0zLDVaAm8nbbb3Br1yF66OiPaYWJbc2FQUojDdk3/hYyEs4M6KFKjROyM3VyOZDk2caFQHJSNg3ho/yx2L8hn+NazN1RpA/i1jAxk1SihyOJSVsFbL1DGRHW6Z4HQ9GQvW2Krsa","cancellation_requested":false,"status":"inProgress","status_details":"Pending + string: '{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDcuBvjwXXBhMJ2bo4rg+0ffgPfVzsIMhiOhdvkNkiy4zJ/Qr0GGHOyr9HxecJGdxwHU99t0C+Brlnp9hL3UPacr1OypaYkJ0x86E9k65gHxFOeNy2CDbUl9LHGHky8+S1qQ1K7vsmFqwBb8KNaS8RG8p0foogXmAcqeIQvL5t2CHdmUs24cJDi32pnY3P/wmlrIjQ/RFPD0lTxWHRc7h28r62l67xGo9iEXtFgrVAQonccYURCpdmxa+9t1n35ucHY0AFgJ2WjDjadFxRU5Hnd+Vh0kYOEEndGMgQfTRvddUUJi8S2FF4vN/wxYTtXOvx7Q2M0++jx3czEjWWvktUCAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQACQA4FDpMUK/IhTJpLPRN0gP+3STNB1PvFfE52hBgsDUR2AL8UN7gH8OCisxzyU7KfwBNvdcAkLXBGeExgFxFoYVp+yVbFBxx+GPijV3zRU3yjHEe8jBkLGmZitSZjFWGazWnULQUWBYIf3LVfgsSdohL2IvQq5BDIAs9JNTrHEw9XUfPINDb+JRvg4UgUcTJ0JKNnhBo8ZWusj1aIKEKgrE24rKcrxaNBmFG4dFUU8YKKOrQiqc1wLrkdqZYZ7B5EoAQhRuWUDJ04npCnrZtOJgXsE3bd9LIhFdUuD0mTz9e/PKt8HJBtQEvJg3zvdpFjM50AAVQbcW3vlVLsMQd8","cancellation_requested":false,"status":"inProgress","status_details":"Pending certificate created. Certificate request is in progress. This may take some - time based on the issuer provider. Please check again later.","request_id":"d65071a3c4b04358890dd77ae9fcb768"}' + time based on the issuer provider. Please check again later.","request_id":"6d0ab18eb0444e06859eb2249ded995f"}' headers: cache-control: - no-cache @@ -1447,7 +1604,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:28 GMT + - Fri, 19 Feb 2021 11:55:27 GMT expires: - '-1' pragma: @@ -1457,11 +1614,11 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.103;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -1479,7 +1636,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -1487,7 +1644,7 @@ interactions: uri: https://keyvault000004.vault.azure.net/certificates/cert000005/pending?api-version=7.0 response: body: - string: '{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKU78vsmh6iQo8lSXHy/hx1ut+xextbLCnsh4PAmFVk4qE/J2278VGMcVwJAMXoFAdEUmq1EL6HfLMaoG8i+isKXtk2YBDeCDPkkiw7h8dxt7/u6LaIWiMrJ3LkT408ZVf+1fdiI8K6VHikgioAmCt+zYT1DPnbmLnCEHyzepfmdi/snW8KJyG4tQjxAeAuptIFs++3azniTGaJNBciXFENhcDd5vPLGSGc5DzDraUDsNjS3YaE/9+cn0xB3Ko+c+oZTrihR72yMmLuTaWYtIMkHHpQafFUSqvrAeAtR2Yq7WQbz7cA/uLt37dOeKhfh0GsHY/ERAcPcuciI++ZOLykCAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBy2PTXNzV7ZZYwbKmH/oLmrs/QEk6a+xk4tI1FMAjXWJKmWYyYMjDzYP6+fY3TdXbxHT53q32v1HaevbNFkHAXBZzNcYpjeIElC4+H51O1spsHPFMN8M6kzrFL/+44drqI7Teh1bBsnhKyylmZkIgkaz+nF6MLEYTRv+ywcRoP37BjUYAZxZU7qhK/bd//iyCItTux6f0JEBh2U0zLDVaAm8nbbb3Br1yF66OiPaYWJbc2FQUojDdk3/hYyEs4M6KFKjROyM3VyOZDk2caFQHJSNg3ho/yx2L8hn+NazN1RpA/i1jAxk1SihyOJSVsFbL1DGRHW6Z4HQ9GQvW2Krsa","cancellation_requested":false,"status":"completed","target":"https://keyvault000004.vault.azure.net/certificates/cert000005","request_id":"d65071a3c4b04358890dd77ae9fcb768"}' + string: '{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/pending","issuer":{"name":"Self"},"csr":"MIICrjCCAZYCAQAwHjEcMBoGA1UEAxMTQ0xJR2V0RGVmYXVsdFBvbGljeTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALDcuBvjwXXBhMJ2bo4rg+0ffgPfVzsIMhiOhdvkNkiy4zJ/Qr0GGHOyr9HxecJGdxwHU99t0C+Brlnp9hL3UPacr1OypaYkJ0x86E9k65gHxFOeNy2CDbUl9LHGHky8+S1qQ1K7vsmFqwBb8KNaS8RG8p0foogXmAcqeIQvL5t2CHdmUs24cJDi32pnY3P/wmlrIjQ/RFPD0lTxWHRc7h28r62l67xGo9iEXtFgrVAQonccYURCpdmxa+9t1n35ucHY0AFgJ2WjDjadFxRU5Hnd+Vh0kYOEEndGMgQfTRvddUUJi8S2FF4vN/wxYTtXOvx7Q2M0++jx3czEjWWvktUCAwEAAaBLMEkGCSqGSIb3DQEJDjE8MDowDgYDVR0PAQH/BAQDAgG+MB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQACQA4FDpMUK/IhTJpLPRN0gP+3STNB1PvFfE52hBgsDUR2AL8UN7gH8OCisxzyU7KfwBNvdcAkLXBGeExgFxFoYVp+yVbFBxx+GPijV3zRU3yjHEe8jBkLGmZitSZjFWGazWnULQUWBYIf3LVfgsSdohL2IvQq5BDIAs9JNTrHEw9XUfPINDb+JRvg4UgUcTJ0JKNnhBo8ZWusj1aIKEKgrE24rKcrxaNBmFG4dFUU8YKKOrQiqc1wLrkdqZYZ7B5EoAQhRuWUDJ04npCnrZtOJgXsE3bd9LIhFdUuD0mTz9e/PKt8HJBtQEvJg3zvdpFjM50AAVQbcW3vlVLsMQd8","cancellation_requested":false,"status":"completed","target":"https://keyvault000004.vault.azure.net/certificates/cert000005","request_id":"6d0ab18eb0444e06859eb2249ded995f"}' headers: cache-control: - no-cache @@ -1496,7 +1653,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:38 GMT + - Fri, 19 Feb 2021 11:55:38 GMT expires: - '-1' pragma: @@ -1506,11 +1663,11 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.39;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -1528,7 +1685,7 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 azure-keyvault/7.0 Azure-SDK-For-Python accept-language: - en-US @@ -1536,7 +1693,7 @@ interactions: uri: https://keyvault000004.vault.azure.net/certificates/cert000005/versions?api-version=7.0 response: body: - string: '{"value":[{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/888c9834b92d419daebeaa55aece9995","x5t":"wlNTdB6qHnmcgN9aResnVf2I5wI","attributes":{"enabled":true,"nbf":1608316650,"exp":1639853250,"created":1608317250,"updated":1608317250},"subject":""}],"nextLink":null}' + string: '{"value":[{"id":"https://keyvault000004.vault.azure.net/certificates/cert000005/304280982e764918ae340d7eb8485cd3","x5t":"or__oFkZSEig6UOdkQVJVXZq06Y","attributes":{"enabled":true,"nbf":1613735130,"exp":1645271730,"created":1613735730,"updated":1613735730},"subject":""}],"nextLink":null}' headers: cache-control: - no-cache @@ -1545,7 +1702,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:39 GMT + - Fri, 19 Feb 2021 11:55:40 GMT expires: - '-1' pragma: @@ -1555,11 +1712,11 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-network-info: - - conn_type=Ipv4;addr=98.254.139.109;act_addr_fam=InterNetwork; + - conn_type=Ipv4;addr=167.220.255.39;act_addr_fam=InterNetwork; x-ms-keyvault-region: - centralus x-ms-keyvault-service-version: - - 1.2.99.0 + - 1.2.164.2 x-powered-by: - ASP.NET status: @@ -1581,24 +1738,24 @@ interactions: --user-cert-vault-name --user-cert-secret-name --user-cert-secret-version --user-cert-protocol-type User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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: - - '385' + - '398' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:39 GMT + - Fri, 19 Feb 2021 11:55:41 GMT expires: - '-1' pragma: @@ -1621,9 +1778,9 @@ interactions: - request: body: '{"protocolType": "ServerNameIndication", "certificateSource": "AzureKeyVault", "certificateSourceParameters": {"@odata.type": "#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters", - "subscriptionId": "5e87627b-4ffa-4abf-8040-b1103c84a2fd", "resourceGroupName": + "subscriptionId": "d7cfdb98-c118-458d-8bdf-246be66b1f5e", "resourceGroupName": "clitest.rg000001", "vaultName": "keyvault000004", "secretName": "cert000005", - "secretVersion": "888c9834b92d419daebeaa55aece9995", "updateRule": "NoAction", + "secretVersion": "304280982e764918ae340d7eb8485cd3", "updateRule": "NoAction", "deleteRule": "NoAction"}}' headers: Accept: @@ -1643,18 +1800,18 @@ interactions: --user-cert-vault-name --user-cert-secret-name --user-cert-secret-version --user-cert-protocol-type User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003/enableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003/enableCustomHttps?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000003","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000003","properties":{"hostName":"customdomain000003.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"5e87627b-4ffa-4abf-8040-b1103c84a2fd","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000004","secretName":"cert000005","secretVersion":"888c9834b92d419daebeaa55aece9995","updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000003","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000003","properties":{"hostName":"customdomain000003.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"d7cfdb98-c118-458d-8bdf-246be66b1f5e","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000004","secretName":"cert000005","secretVersion":"304280982e764918ae340d7eb8485cd3","updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f397ca7c-30e9-4cca-b164-b37053ffa572?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e3b1e356-74a6-4085-9868-aa6b438904dc?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1662,11 +1819,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:41 GMT + - Fri, 19 Feb 2021 11:55:43 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f397ca7c-30e9-4cca-b164-b37053ffa572/profileresults/profile123/endpointresults/cdn-cli-test-4/customdomainresults/customdomain000003?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e3b1e356-74a6-4085-9868-aa6b438904dc/profileresults/profile123/endpointresults/cdn-cli-test-4/customdomainresults/customdomain000003?api-version=2020-09-01 pragma: - no-cache server: @@ -1676,7 +1833,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -1696,15 +1853,15 @@ interactions: --user-cert-vault-name --user-cert-secret-name --user-cert-secret-version --user-cert-protocol-type User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000003?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000003","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000003","properties":{"hostName":"customdomain000003.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"5e87627b-4ffa-4abf-8040-b1103c84a2fd","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000004","secretName":"cert000005","secretVersion":"888c9834b92d419daebeaa55aece9995","updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customdomains/customdomain000003","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000003","properties":{"hostName":"customdomain000003.cdn-cli-test-4.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"ImportingUserProvidedCertificate","customHttpsParameters":{"certificateSource":"AzureKeyVault","certificateSourceParameters":{"subscriptionId":"d7cfdb98-c118-458d-8bdf-246be66b1f5e","resourceGroupName":"clitest.rg000001","vaultName":"keyvault000004","secretName":"cert000005","secretVersion":"304280982e764918ae340d7eb8485cd3","updateRule":"NoAction","deleteRule":"NoAction","@odata.type":"#Microsoft.Azure.Cdn.Models.KeyVaultCertificateSourceParameters"},"protocolType":"ServerNameIndication","minimumTlsVersion":"TLS12"},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1713,7 +1870,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:42 GMT + - Fri, 19 Feb 2021 11:55:44 GMT expires: - '-1' pragma: @@ -1747,12 +1904,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002/disableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-4/customDomains/customdomain000002/disableCustomHttps?api-version=2020-09-01 response: body: string: "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": @@ -1766,7 +1923,7 @@ interactions: content-type: - application/json date: - - Fri, 18 Dec 2020 18:47:43 GMT + - Fri, 19 Feb 2021 11:55:45 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_verizon.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_verizon.yaml index de7f4842fc1..1cdbbfb52f0 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_verizon.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_custom_domain_https_verizon.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:46 GMT + - Fri, 19 Feb 2021 11:51:25 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:47:44Z"},"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-02-19T11:51:24Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:47 GMT + - Fri, 19 Feb 2021 11:51:26 GMT expires: - '-1' pragma: @@ -109,26 +109,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/6ecdeb44-d8c0-41a4-a3f2-b505dd0eeed1?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/33625363-873f-4b19-a43c-8f1bbaecc33b?api-version=2020-09-01 cache-control: - no-cache content-length: - - '384' + - '397' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:47:49 GMT + - Fri, 19 Feb 2021 11:51:33 GMT expires: - '-1' pragma: @@ -140,7 +140,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '23' status: code: 201 message: Created @@ -158,10 +158,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ecdeb44-d8c0-41a4-a3f2-b505dd0eeed1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/33625363-873f-4b19-a43c-8f1bbaecc33b?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -173,7 +173,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:48:00 GMT + - Fri, 19 Feb 2021 11:51:44 GMT expires: - '-1' pragma: @@ -205,10 +205,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ecdeb44-d8c0-41a4-a3f2-b505dd0eeed1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/33625363-873f-4b19-a43c-8f1bbaecc33b?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -220,7 +220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:48:30 GMT + - Fri, 19 Feb 2021 11:52:14 GMT expires: - '-1' pragma: @@ -252,10 +252,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ecdeb44-d8c0-41a4-a3f2-b505dd0eeed1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/33625363-873f-4b19-a43c-8f1bbaecc33b?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -267,7 +267,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:00 GMT + - Fri, 19 Feb 2021 11:52:44 GMT expires: - '-1' pragma: @@ -299,22 +299,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:00 GMT + - Fri, 19 Feb 2021 11:52:44 GMT expires: - '-1' pragma: @@ -330,7 +330,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -348,15 +348,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:47:44Z"},"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-02-19T11:51:24Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -365,7 +365,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:02 GMT + - Fri, 19 Feb 2021 11:52:46 GMT expires: - '-1' pragma: @@ -399,18 +399,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-3","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-3.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/e68bd4f0-3ec9-45dc-9526-44e628eecbd2?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c340e6d5-7ef8-4664-9369-dc27f1551aa3?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -418,7 +418,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:06 GMT + - Fri, 19 Feb 2021 11:52:52 GMT expires: - '-1' pragma: @@ -430,7 +430,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 201 message: Created @@ -448,10 +448,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e68bd4f0-3ec9-45dc-9526-44e628eecbd2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c340e6d5-7ef8-4664-9369-dc27f1551aa3?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -463,7 +463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:17 GMT + - Fri, 19 Feb 2021 11:53:03 GMT expires: - '-1' pragma: @@ -495,10 +495,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e68bd4f0-3ec9-45dc-9526-44e628eecbd2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c340e6d5-7ef8-4664-9369-dc27f1551aa3?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -510,7 +510,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:46 GMT + - Fri, 19 Feb 2021 11:53:33 GMT expires: - '-1' pragma: @@ -542,10 +542,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3","type":"Microsoft.Cdn/profiles/endpoints","name":"cdn-cli-test-3","location":"WestUs","tags":{},"properties":{"hostName":"cdn-cli-test-3.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"}}' @@ -557,7 +557,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:47 GMT + - Fri, 19 Feb 2021 11:53:34 GMT expires: - '-1' pragma: @@ -591,15 +591,15 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:47:44Z"},"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-02-19T11:51:24Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -608,7 +608,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:48 GMT + - Fri, 19 Feb 2021 11:53:36 GMT expires: - '-1' pragma: @@ -640,18 +640,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-3.azfdtest.xyz","validationData":null,"resourceState":"Creating","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9d30fff4-140a-4b6d-a79a-34146c9b77f5?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4b184fc0-81b9-4e0f-a380-bff6272e2a09?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -659,7 +659,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:49:49 GMT + - Fri, 19 Feb 2021 11:53:38 GMT expires: - '-1' pragma: @@ -671,7 +671,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 201 message: Created @@ -689,10 +689,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9d30fff4-140a-4b6d-a79a-34146c9b77f5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4b184fc0-81b9-4e0f-a380-bff6272e2a09?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -704,7 +704,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:01 GMT + - Fri, 19 Feb 2021 11:53:49 GMT expires: - '-1' pragma: @@ -736,10 +736,10 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --hostname User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-3.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -751,7 +751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:01 GMT + - Fri, 19 Feb 2021 11:53:50 GMT expires: - '-1' pragma: @@ -783,12 +783,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-3.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Disabled","customHttpsProvisioningSubstate":"None","customHttpsParameters":null,"provisioningState":"Succeeded"}}' @@ -800,7 +800,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:02 GMT + - Fri, 19 Feb 2021 11:53:51 GMT expires: - '-1' pragma: @@ -832,24 +832,24 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --min-tls-version User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:03 GMT + - Fri, 19 Feb 2021 11:53:52 GMT expires: - '-1' pragma: @@ -865,7 +865,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -889,18 +889,18 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --min-tls-version User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002/enableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002/enableCustomHttps?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-3.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"SubmittingDomainControlValidationRequest","customHttpsParameters":{"certificateSource":"Cdn","certificateSourceParameters":{"certificateType":"Shared","@odata.type":"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"},"protocolType":"IPBased","minimumTlsVersion":"None"},"provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/20dcd919-ba87-4ce0-9002-48743df2f385?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/62d8ee34-ca19-4c2b-b5f7-87b53f3646ef?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -908,11 +908,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:05 GMT + - Fri, 19 Feb 2021 11:53:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/20dcd919-ba87-4ce0-9002-48743df2f385/profileresults/profile123/endpointresults/cdn-cli-test-3/customdomainresults/customdomain000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/62d8ee34-ca19-4c2b-b5f7-87b53f3646ef/profileresults/profile123/endpointresults/cdn-cli-test-3/customdomainresults/customdomain000002?api-version=2020-09-01 pragma: - no-cache server: @@ -922,7 +922,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -940,12 +940,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name --min-tls-version User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customdomains/customdomain000002","type":"Microsoft.Cdn/profiles/endpoints/customdomains","name":"customdomain000002","properties":{"hostName":"customdomain000002.cdn-cli-test-3.azfdtest.xyz","validationData":null,"resourceState":"Active","customHttpsProvisioningState":"Enabling","customHttpsProvisioningSubstate":"SubmittingDomainControlValidationRequest","customHttpsParameters":{"certificateSource":"Cdn","certificateSourceParameters":{"certificateType":"Shared","@odata.type":"#Microsoft.Azure.Cdn.Models.CdnCertificateSourceParameters"},"protocolType":"IPBased","minimumTlsVersion":"None"},"provisioningState":"Succeeded"}}' @@ -957,7 +957,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:05 GMT + - Fri, 19 Feb 2021 11:53:54 GMT expires: - '-1' pragma: @@ -991,12 +991,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002/disableCustomHttps?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/cdn-cli-test-3/customDomains/customdomain000002/disableCustomHttps?api-version=2020-09-01 response: body: string: "{\n \"error\": {\n \"code\": \"BadRequest\",\n \"message\": @@ -1010,7 +1010,7 @@ interactions: content-type: - application/json date: - - Fri, 18 Dec 2020 18:50:06 GMT + - Fri, 19 Feb 2021 11:53:55 GMT expires: - '-1' pragma: @@ -1022,7 +1022,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 400 message: Bad Request diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml index fb829655441..4a9e1dcda22 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_microsoft_standard_sku.yaml @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T07:28:50Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-02-19T11:53:53Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:51 GMT + - Fri, 19 Feb 2021 11:53:55 GMT expires: - '-1' pragma: @@ -62,26 +62,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","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/45bc41db-703c-4f2f-892d-365183ae3a3f?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/88ce8c2a-cb12-4ab9-93cf-52ec1b25cd4e?api-version=2020-09-01 cache-control: - no-cache content-length: - - '388' + - '401' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:54 GMT + - Fri, 19 Feb 2021 11:54:00 GMT expires: - '-1' pragma: @@ -93,7 +93,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '22' status: code: 201 message: Created @@ -111,10 +111,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/45bc41db-703c-4f2f-892d-365183ae3a3f?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/88ce8c2a-cb12-4ab9-93cf-52ec1b25cd4e?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -126,7 +126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:05 GMT + - Fri, 19 Feb 2021 11:54:11 GMT expires: - '-1' pragma: @@ -158,22 +158,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/cdnprofile1","type":"Microsoft.Cdn/profiles","name":"cdnprofile1","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '387' + - '400' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:05 GMT + - Fri, 19 Feb 2021 11:54:12 GMT expires: - '-1' pragma: @@ -189,7 +189,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml index 5792caf449d..d06ee386c9b 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_crud.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2020-09-01 response: body: string: '{"value":[]}' @@ -30,19 +30,23 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:06 GMT + - Fri, 19 Feb 2021 11:53: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 x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '45' status: code: 200 message: OK @@ -60,15 +64,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T07:28:04Z"},"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-02-19T11:53:16Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +81,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:07 GMT + - Fri, 19 Feb 2021 11:53:19 GMT expires: - '-1' pragma: @@ -109,26 +113,26 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/b94f3990-635f-4ad6-9930-5e242b9d9f00?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ebd6c78c-add6-4a38-9d0b-f5f273ada60f?api-version=2020-09-01 cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:10 GMT + - Fri, 19 Feb 2021 11:53:25 GMT expires: - '-1' pragma: @@ -140,7 +144,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '23' status: code: 201 message: Created @@ -158,10 +162,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b94f3990-635f-4ad6-9930-5e242b9d9f00?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ebd6c78c-add6-4a38-9d0b-f5f273ada60f?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -173,7 +177,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:21 GMT + - Fri, 19 Feb 2021 11:53:36 GMT expires: - '-1' pragma: @@ -205,22 +209,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:21 GMT + - Fri, 19 Feb 2021 11:53:37 GMT expires: - '-1' pragma: @@ -236,7 +240,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '44' status: code: 200 message: OK @@ -254,24 +258,24 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:21 GMT + - Fri, 19 Feb 2021 11:53:37 GMT expires: - '-1' pragma: @@ -287,7 +291,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -305,24 +309,24 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles?api-version=2020-09-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123","type":"Microsoft.Cdn/profiles","name":"profile123","location":"WestUs","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}]}' + string: '{"value":[{"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":"Active","provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '394' + - '407' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:23 GMT + - Fri, 19 Feb 2021 11:53:38 GMT expires: - '-1' pragma: @@ -338,7 +342,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -356,24 +360,24 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:23 GMT + - Fri, 19 Feb 2021 11:53:38 GMT expires: - '-1' pragma: @@ -389,7 +393,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -411,30 +415,30 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{"foo":"bar"},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":{"foo":"bar"},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a1669327-1ee0-48d3-8fd1-76c3614ebabb?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b6c49345-1891-4893-9621-03dd89871374?api-version=2020-09-01 cache-control: - no-cache content-length: - - '393' + - '406' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:25 GMT + - Fri, 19 Feb 2021 11:53:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a1669327-1ee0-48d3-8fd1-76c3614ebabb/profileresults/profile123?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b6c49345-1891-4893-9621-03dd89871374/profileresults/profile123?api-version=2020-09-01 pragma: - no-cache server: @@ -444,7 +448,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '22' status: code: 202 message: Accepted @@ -462,10 +466,10 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a1669327-1ee0-48d3-8fd1-76c3614ebabb?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b6c49345-1891-4893-9621-03dd89871374?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -477,7 +481,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:36 GMT + - Fri, 19 Feb 2021 11:53:53 GMT expires: - '-1' pragma: @@ -509,22 +513,73 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + 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":{"foo":"bar"},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:53: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 + 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 profile delete + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{"foo":"bar"},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":{"foo":"bar"},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '393' + - '406' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:36 GMT + - Fri, 19 Feb 2021 11:53:54 GMT expires: - '-1' pragma: @@ -540,7 +595,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -560,28 +615,28 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07ada2d7-3a46-41dc-b4d4-3f5feb2649ac?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9d07374e-8abc-4346-bb12-f5dea42e7680?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 18 Dec 2020 07:28:37 GMT + - Fri, 19 Feb 2021 11:53:55 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07ada2d7-3a46-41dc-b4d4-3f5feb2649ac/profileresults/profile123?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9d07374e-8abc-4346-bb12-f5dea42e7680/profileresults/profile123?api-version=2020-09-01 pragma: - no-cache server: @@ -609,10 +664,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/07ada2d7-3a46-41dc-b4d4-3f5feb2649ac?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9d07374e-8abc-4346-bb12-f5dea42e7680?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -624,7 +679,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:48 GMT + - Fri, 19 Feb 2021 11:54:05 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml index b397a874a62..5c639a5ba58 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_profile_delete_not_found.yaml @@ -10,25 +10,29 @@ interactions: - cdn profile delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - -g -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/foo12345?api-version=2020-04-15 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/foo12345?api-version=2020-09-01 response: body: - string: '' + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Cdn/profiles/foo12345'' + under resource group ''clitest.rg000001'' was not found. For more details + please go to https://aka.ms/ARMResourceNotFoundFix"}}' headers: cache-control: - no-cache + content-length: + - '278' + content-type: + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:30 GMT + - Fri, 19 Feb 2021 11:54:10 GMT expires: - '-1' pragma: @@ -37,9 +41,9 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + x-ms-failure-cause: + - gateway status: - code: 204 - message: No Content + code: 404 + message: Not Found version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_endpoint_link.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_endpoint_link.yaml index 0859b0b95af..fe6561548fe 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_endpoint_link.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_endpoint_link.yaml @@ -17,26 +17,26 @@ interactions: ParameterSetName: - -g -n --sku --location User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1","type":"Microsoft.Cdn/profiles","name":"ps1","location":"WestUs","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1","type":"Microsoft.Cdn/profiles","name":"ps1","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/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/4c7b3b00-e232-47e2-ad29-3206dadc9090?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/53d15ce4-9566-4129-890c-231d8d5edfd8?api-version=2020-09-01 cache-control: - no-cache content-length: - - '372' + - '385' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:11 GMT + - Fri, 19 Feb 2021 11:55:29 GMT expires: - '-1' pragma: @@ -66,10 +66,10 @@ interactions: ParameterSetName: - -g -n --sku --location User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/4c7b3b00-e232-47e2-ad29-3206dadc9090?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/53d15ce4-9566-4129-890c-231d8d5edfd8?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -81,7 +81,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:21 GMT + - Fri, 19 Feb 2021 11:55:41 GMT expires: - '-1' pragma: @@ -113,22 +113,22 @@ interactions: ParameterSetName: - -g -n --sku --location User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1","type":"Microsoft.Cdn/profiles","name":"ps1","location":"WestUs","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1","type":"Microsoft.Cdn/profiles","name":"ps1","location":"WestUs","kind":"cdn","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '371' + - '384' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:22 GMT + - Fri, 19 Feb 2021 11:55:41 GMT expires: - '-1' pragma: @@ -144,7 +144,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -162,12 +162,12 @@ interactions: ParameterSetName: - -g --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-09-01 response: body: string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1'' @@ -181,7 +181,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:23 GMT + - Fri, 19 Feb 2021 11:55:42 GMT expires: - '-1' pragma: @@ -214,12 +214,12 @@ interactions: ParameterSetName: - -g --name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"wafpolicy1","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":null,"defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' @@ -231,7 +231,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:26 GMT + - Fri, 19 Feb 2021 11:55:50 GMT expires: - '-1' pragma: @@ -243,7 +243,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1196' status: code: 201 message: Created @@ -261,15 +261,15 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-12-18T07:29:07Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-02-19T11:55:24Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -278,7 +278,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:26 GMT + - Fri, 19 Feb 2021 11:55:49 GMT expires: - '-1' pragma: @@ -312,18 +312,18 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/dd087d7e-8a71-4335-b06c-d79016dfa488?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/e06b3ee4-d304-4b22-9e33-80320fa266ab?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -331,7 +331,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:31 GMT + - Fri, 19 Feb 2021 11:55:58 GMT expires: - '-1' pragma: @@ -343,7 +343,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '98' + - '97' status: code: 201 message: Created @@ -361,10 +361,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/dd087d7e-8a71-4335-b06c-d79016dfa488?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/e06b3ee4-d304-4b22-9e33-80320fa266ab?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:29:41 GMT + - Fri, 19 Feb 2021 11:56:10 GMT expires: - '-1' pragma: @@ -408,10 +408,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/dd087d7e-8a71-4335-b06c-d79016dfa488?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/e06b3ee4-d304-4b22-9e33-80320fa266ab?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -423,7 +423,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:12 GMT + - Fri, 19 Feb 2021 11:56:40 GMT expires: - '-1' pragma: @@ -455,10 +455,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -470,7 +470,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:13 GMT + - Fri, 19 Feb 2021 11:56:40 GMT expires: - '-1' pragma: @@ -486,7 +486,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -504,12 +504,12 @@ interactions: ParameterSetName: - -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -521,7 +521,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:14 GMT + - Fri, 19 Feb 2021 11:56:42 GMT expires: - '-1' pragma: @@ -537,7 +537,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' + - '49' status: code: 200 message: OK @@ -556,12 +556,12 @@ interactions: - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name --waf-policy-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -573,7 +573,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:15 GMT + - Fri, 19 Feb 2021 11:56:43 GMT expires: - '-1' pragma: @@ -589,7 +589,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -618,18 +618,18 @@ interactions: - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name --waf-policy-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/090445ab-b6f4-4d9f-acb0-3ca8d044c69e?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/25548d1f-12d8-4bc8-95ff-b71e761f4a4a?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -637,11 +637,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:17 GMT + - Fri, 19 Feb 2021 11:56:45 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/090445ab-b6f4-4d9f-acb0-3ca8d044c69e/profileresults/ps1/endpointresults/ep1000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/25548d1f-12d8-4bc8-95ff-b71e761f4a4a/profileresults/ps1/endpointresults/ep1000002?api-version=2020-09-01 pragma: - no-cache server: @@ -651,7 +651,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '97' status: code: 202 message: Accepted @@ -670,10 +670,10 @@ interactions: - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name --waf-policy-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/090445ab-b6f4-4d9f-acb0-3ca8d044c69e?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/25548d1f-12d8-4bc8-95ff-b71e761f4a4a?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -685,7 +685,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:27 GMT + - Fri, 19 Feb 2021 11:56:56 GMT expires: - '-1' pragma: @@ -718,10 +718,10 @@ interactions: - -g --profile-name --endpoint-name --waf-policy-subscription-id --waf-policy-resource-group-name --waf-policy-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -733,7 +733,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:27 GMT + - Fri, 19 Feb 2021 11:56:57 GMT expires: - '-1' pragma: @@ -749,7 +749,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -767,12 +767,12 @@ interactions: ParameterSetName: - -g --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -784,7 +784,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:28 GMT + - Fri, 19 Feb 2021 11:56:58 GMT expires: - '-1' pragma: @@ -800,7 +800,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -818,12 +818,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"wafpolicy1","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":null,"defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002"}],"resourceState":"Enabled","provisioningState":"Succeeded"}}' @@ -835,7 +835,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:29 GMT + - Fri, 19 Feb 2021 11:57:00 GMT expires: - '-1' pragma: @@ -867,15 +867,15 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001?api-version=2020-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-12-18T07:29:07Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001","name":"cli_test_cdn_domain000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-02-19T11:55:24Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -884,7 +884,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:29 GMT + - Fri, 19 Feb 2021 11:57:00 GMT expires: - '-1' pragma: @@ -918,18 +918,18 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/e6dd8cc3-12f9-47d9-a8ab-fd7a4286b848?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/f4e3697d-37ac-49e4-ae90-9d22e591245b?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -937,7 +937,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:34 GMT + - Fri, 19 Feb 2021 11:57:10 GMT expires: - '-1' pragma: @@ -949,7 +949,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '97' status: code: 201 message: Created @@ -967,10 +967,57 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/f4e3697d-37ac-49e4-ae90-9d22e591245b?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, 19 Feb 2021 11: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint create + Connection: + - keep-alive + ParameterSetName: + - -g --origin --profile-name -n + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/e6dd8cc3-12f9-47d9-a8ab-fd7a4286b848?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/f4e3697d-37ac-49e4-ae90-9d22e591245b?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -982,7 +1029,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:45 GMT + - Fri, 19 Feb 2021 11:57:51 GMT expires: - '-1' pragma: @@ -1014,10 +1061,10 @@ interactions: ParameterSetName: - -g --origin --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1029,7 +1076,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:45 GMT + - Fri, 19 Feb 2021 11:57:51 GMT expires: - '-1' pragma: @@ -1045,7 +1092,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '44' status: code: 200 message: OK @@ -1063,12 +1110,12 @@ interactions: ParameterSetName: - -g --profile-name --endpoint-name --waf-policy-id User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1080,7 +1127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:46 GMT + - Fri, 19 Feb 2021 11:57:54 GMT expires: - '-1' pragma: @@ -1096,7 +1143,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -1124,18 +1171,18 @@ interactions: ParameterSetName: - -g --profile-name --endpoint-name --waf-policy-id User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c4aca672-6390-4d08-ad76-693af5baa7a2?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/05f3eac6-f84b-4fac-abd8-a87a74b63d97?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1143,11 +1190,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:48 GMT + - Fri, 19 Feb 2021 11:57:56 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c4aca672-6390-4d08-ad76-693af5baa7a2/profileresults/ps1/endpointresults/ep2000003?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/05f3eac6-f84b-4fac-abd8-a87a74b63d97/profileresults/ps1/endpointresults/ep2000003?api-version=2020-09-01 pragma: - no-cache server: @@ -1175,10 +1222,10 @@ interactions: ParameterSetName: - -g --profile-name --endpoint-name --waf-policy-id User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/c4aca672-6390-4d08-ad76-693af5baa7a2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/05f3eac6-f84b-4fac-abd8-a87a74b63d97?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1190,7 +1237,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:59 GMT + - Fri, 19 Feb 2021 11:58:06 GMT expires: - '-1' pragma: @@ -1222,10 +1269,10 @@ interactions: ParameterSetName: - -g --profile-name --endpoint-name --waf-policy-id User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1237,7 +1284,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:30:59 GMT + - Fri, 19 Feb 2021 11:58:07 GMT expires: - '-1' pragma: @@ -1253,7 +1300,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -1271,12 +1318,12 @@ interactions: ParameterSetName: - -g --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1288,7 +1335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:00 GMT + - Fri, 19 Feb 2021 11:58:08 GMT expires: - '-1' pragma: @@ -1304,7 +1351,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '45' status: code: 200 message: OK @@ -1322,53 +1369,38 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"wafpolicy1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1\",\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\":{\r\n - \ \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n - \ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"defaultRedirectUrl\":null,\"defaultCustomBlockResponseStatusCode\":null,\"defaultCustomBlockResponseBody\":null\r\n - \ },\"rateLimitRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n - \ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\":[\r\n - \ {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002\"\r\n - \ },{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003\"\r\n - \ }\r\n ]\r\n },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n - \ \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"wafpolicy1","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":null,"defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003"}],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1342' + - '1146' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:01 GMT + - Fri, 19 Feb 2021 11:58:10 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1386,12 +1418,12 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1403,7 +1435,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:01 GMT + - Fri, 19 Feb 2021 11:58:11 GMT expires: - '-1' pragma: @@ -1419,7 +1451,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -1446,18 +1478,18 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/06073945-db8c-4a64-8462-5449722644b1?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/9d9972a8-3dfd-4a9b-9fb9-b1587b1ece8a?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1465,11 +1497,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:03 GMT + - Fri, 19 Feb 2021 11:58:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/06073945-db8c-4a64-8462-5449722644b1/profileresults/ps1/endpointresults/ep1000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/9d9972a8-3dfd-4a9b-9fb9-b1587b1ece8a/profileresults/ps1/endpointresults/ep1000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1479,7 +1511,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '95' status: code: 202 message: Accepted @@ -1497,43 +1529,36 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/06073945-db8c-4a64-8462-5449722644b1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/9d9972a8-3dfd-4a9b-9fb9-b1587b1ece8a?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:14 GMT + - Fri, 19 Feb 2021 11:58:23 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1551,10 +1576,10 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1566,7 +1591,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:14 GMT + - Fri, 19 Feb 2021 11:58:24 GMT expires: - '-1' pragma: @@ -1582,7 +1607,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '45' status: code: 200 message: OK @@ -1600,12 +1625,12 @@ interactions: ParameterSetName: - -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1617,7 +1642,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:15 GMT + - Fri, 19 Feb 2021 11:58:25 GMT expires: - '-1' pragma: @@ -1633,7 +1658,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '44' status: code: 200 message: OK @@ -1651,12 +1676,12 @@ interactions: ParameterSetName: - -g --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep1000002","type":"Microsoft.Cdn/profiles/endpoints","name":"ep1000002","location":"WestUs","tags":{},"properties":{"hostName":"ep1000002.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1668,7 +1693,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:16 GMT + - Fri, 19 Feb 2021 11:58:27 GMT expires: - '-1' pragma: @@ -1684,7 +1709,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -1702,12 +1727,12 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1"},"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1719,7 +1744,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:17 GMT + - Fri, 19 Feb 2021 11:58:28 GMT expires: - '-1' pragma: @@ -1735,7 +1760,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -1762,18 +1787,18 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/ba8e2e88-7847-4805-bd68-72ddbc9a84ac?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/1bdf8119-b9ab-48dc-b05a-ca02b4e5197f?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1781,11 +1806,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:18 GMT + - Fri, 19 Feb 2021 11:58:30 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/ba8e2e88-7847-4805-bd68-72ddbc9a84ac/profileresults/ps1/endpointresults/ep2000003?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/1bdf8119-b9ab-48dc-b05a-ca02b4e5197f/profileresults/ps1/endpointresults/ep2000003?api-version=2020-09-01 pragma: - no-cache server: @@ -1795,7 +1820,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '97' status: code: 202 message: Accepted @@ -1813,43 +1838,36 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/ba8e2e88-7847-4805-bd68-72ddbc9a84ac?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/operationresults/1bdf8119-b9ab-48dc-b05a-ca02b4e5197f?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n - \ }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:28 GMT + - Fri, 19 Feb 2021 11:58:40 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1867,10 +1885,10 @@ interactions: ParameterSetName: - -y -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1882,7 +1900,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:29 GMT + - Fri, 19 Feb 2021 11:58:41 GMT expires: - '-1' pragma: @@ -1898,7 +1916,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '43' status: code: 200 message: OK @@ -1916,12 +1934,12 @@ interactions: ParameterSetName: - -g --profile-name --endpoint-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1933,7 +1951,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:30 GMT + - Fri, 19 Feb 2021 11:58:42 GMT expires: - '-1' pragma: @@ -1949,7 +1967,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -1967,12 +1985,12 @@ interactions: ParameterSetName: - -g --profile-name -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/profiles/ps1/endpoints/ep2000003","type":"Microsoft.Cdn/profiles/endpoints","name":"ep2000003","location":"WestUs","tags":{},"properties":{"hostName":"ep2000003.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.test.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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1984,7 +2002,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:30 GMT + - Fri, 19 Feb 2021 11:58:43 GMT expires: - '-1' pragma: @@ -2000,7 +2018,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '45' status: code: 200 message: OK @@ -2018,12 +2036,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/wafpolicy1?api-version=2020-09-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_cdn_domain000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/wafpolicy1","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"wafpolicy1","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":null,"defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' @@ -2035,7 +2053,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:31:31 GMT + - Fri, 19 Feb 2021 11:58:44 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_managed_rule_set_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_managed_rule_set_crud.yaml index 35ce47761ab..0186f56f6bb 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_managed_rule_set_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_managed_rule_set_crud.yaml @@ -11,262 +11,150 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2020-09-01 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"DefaultRuleSet_1.0\"\ - ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets\",\"properties\"\ - :{\r\n \"provisioningState\":\"Succeeded\",\"ruleSetType\":\"DefaultRuleSet\"\ - ,\"ruleSetVersion\":\"1.0\",\"ruleGroups\":[\r\n {\r\n \ - \ \"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"921110\",\"\ - description\":\"HTTP Request Smuggling Attack\"\r\n },{\r\n \ - \ \"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting\ - \ Attack\"\r\n },{\r\n \"ruleId\":\"921130\",\"\ - description\":\"HTTP Response Splitting Attack\"\r\n },{\r\n\ - \ \"ruleId\":\"921140\",\"description\":\"HTTP Header Injection\ - \ Attack via headers\"\r\n },{\r\n \"ruleId\"\ - :\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF\ - \ detected)\"\r\n },{\r\n \"ruleId\":\"921160\"\ - ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name\ - \ detected)\"\r\n },{\r\n \"ruleId\":\"921151\"\ - ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\"\ - \r\n }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ - :\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[\r\n \ - \ {\r\n \"ruleId\":\"930100\",\"description\":\"Path Traversal\ - \ Attack (/../)\"\r\n },{\r\n \"ruleId\":\"930110\"\ - ,\"description\":\"Path Traversal Attack (/../)\"\r\n },{\r\n\ - \ \"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\"\ - \r\n },{\r\n \"ruleId\":\"930130\",\"description\"\ - :\"Restricted File Access Attempt\"\r\n }\r\n ]\r\n\ - \ },{\r\n \"ruleGroupName\":\"RFI\",\"description\":\"\ - Remote file inclusion\",\"rules\":[\r\n {\r\n \ - \ \"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI)\ - \ Attack: URL Parameter using IP Address\"\r\n },{\r\n \ - \ \"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion\ - \ (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\"\r\ - \n },{\r\n \"ruleId\":\"931120\",\"description\"\ - :\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing\ - \ Question Mark Character (?)\"\r\n },{\r\n \"\ - ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI)\ - \ Attack: Off-Domain Reference/Link\"\r\n }\r\n ]\r\ - \n },{\r\n \"ruleGroupName\":\"RCE\",\"description\":\"\ - Remote Command Execution attacks\",\"rules\":[\r\n {\r\n \ - \ \"ruleId\":\"932100\",\"description\":\"Remote Command Execution:\ - \ Unix Command Injection\"\r\n },{\r\n \"ruleId\"\ - :\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\"\ - \r\n },{\r\n \"ruleId\":\"932110\",\"description\"\ - :\"Remote Command Execution: Windows Command Injection\"\r\n \ - \ },{\r\n \"ruleId\":\"932115\",\"description\":\"Remote Command\ - \ Execution: Windows Command Injection\"\r\n },{\r\n \ - \ \"ruleId\":\"932120\",\"description\":\"Remote Command Execution:\ - \ Windows PowerShell Command Found\"\r\n },{\r\n \ - \ \"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix\ - \ Shell Expression Found\"\r\n },{\r\n \"ruleId\"\ - :\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command\ - \ Found\"\r\n },{\r\n \"ruleId\":\"932150\",\"\ - description\":\"Remote Command Execution: Direct Unix Command Execution\"\r\ - \n },{\r\n \"ruleId\":\"932160\",\"description\"\ - :\"Remote Command Execution: Unix Shell Code Found\"\r\n },{\r\ - \n \"ruleId\":\"932170\",\"description\":\"Remote Command Execution:\ - \ Shellshock (CVE-2014-6271)\"\r\n },{\r\n \"\ - ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock\ - \ (CVE-2014-6271)\"\r\n },{\r\n \"ruleId\":\"\ - 932180\",\"description\":\"Restricted File Upload Attempt\"\r\n \ - \ }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ - :\"PHP\",\"description\":\"PHP attacks\",\"rules\":[\r\n {\r\n\ - \ \"ruleId\":\"933100\",\"description\":\"PHP Injection Attack:\ - \ PHP Open Tag Found\"\r\n },{\r\n \"ruleId\"\ - :\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload\ - \ Found\"\r\n },{\r\n \"ruleId\":\"933120\",\"\ - description\":\"PHP Injection Attack: Configuration Directive Found\"\r\n\ - \ },{\r\n \"ruleId\":\"933130\",\"description\"\ - :\"PHP Injection Attack: Variables Found\"\r\n },{\r\n \ - \ \"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O\ - \ Stream Found\"\r\n },{\r\n \"ruleId\":\"933150\"\ - ,\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\"\ - \r\n },{\r\n \"ruleId\":\"933151\",\"description\"\ - :\"PHP Injection Attack: Medium-Risk PHP Function Name Found\"\r\n \ - \ },{\r\n \"ruleId\":\"933160\",\"description\":\"PHP\ - \ Injection Attack: High-Risk PHP Function Call Found\"\r\n },{\r\ - \n \"ruleId\":\"933170\",\"description\":\"PHP Injection Attack:\ - \ Serialized Object Injection\"\r\n },{\r\n \"\ - ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function\ - \ Call Found\"\r\n }\r\n ]\r\n },{\r\n \ - \ \"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"941100\",\"\ - description\":\"XSS Attack Detected via libinjection\"\r\n },{\r\ - \n \"ruleId\":\"941101\",\"description\":\"XSS Attack Detected\ - \ via libinjection\"\r\n },{\r\n \"ruleId\":\"\ - 941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\"\r\n\ - \ },{\r\n \"ruleId\":\"941120\",\"description\"\ - :\"XSS Filter - Category 2: Event Handler Vector\"\r\n },{\r\n\ - \ \"ruleId\":\"941130\",\"description\":\"XSS Filter - Category\ - \ 3: Attribute Vector\"\r\n },{\r\n \"ruleId\"\ - :\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\"\ - \r\n },{\r\n \"ruleId\":\"941150\",\"description\"\ - :\"XSS Filter - Category 5: Disallowed HTML Attributes\"\r\n \ - \ },{\r\n \"ruleId\":\"941160\",\"description\":\"NoScript\ - \ XSS InjectionChecker: HTML Injection\"\r\n },{\r\n \ - \ \"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker:\ - \ Attribute Injection\"\r\n },{\r\n \"ruleId\"\ - :\"941180\",\"description\":\"Node-Validator Blacklist Keywords\"\r\n \ - \ },{\r\n \"ruleId\":\"941190\",\"description\":\"\ - IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941210\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941230\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941250\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941270\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941290\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941310\",\"description\"\ - :\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\"\r\n \ - \ },{\r\n \"ruleId\":\"941320\",\"description\":\"Possible\ - \ XSS Attack Detected - HTML Tag Handler\"\r\n },{\r\n \ - \ \"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack\ - \ Detected.\"\r\n },{\r\n \"ruleId\":\"941340\"\ - ,\"description\":\"IE XSS Filters - Attack Detected.\"\r\n },{\r\ - \n \"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE\ - \ XSS - Attack Detected.\"\r\n }\r\n ]\r\n \ - \ },{\r\n \"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"942100\",\"\ - description\":\"SQL Injection Attack Detected via libinjection\"\r\n \ - \ },{\r\n \"ruleId\":\"942110\",\"description\":\"\ - SQL Injection Attack: Common Injection Testing Detected\"\r\n \ - \ },{\r\n \"ruleId\":\"942120\",\"description\":\"SQL Injection\ - \ Attack: SQL Operator Detected\"\r\n },{\r\n \ - \ \"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB\ - \ Names Detected\"\r\n },{\r\n \"ruleId\":\"942150\"\ - ,\"description\":\"SQL Injection Attack\"\r\n },{\r\n \ - \ \"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests\ - \ using sleep() or benchmark().\"\r\n },{\r\n \ - \ \"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep\ - \ injection attempts including conditional queries\"\r\n },{\r\ - \n \"ruleId\":\"942180\",\"description\":\"Detects basic SQL\ - \ authentication bypass attempts 1/3\"\r\n },{\r\n \ - \ \"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution\ - \ and information gathering attempts\"\r\n },{\r\n \ - \ \"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated\ - \ injections and backtick termination\"\r\n },{\r\n \ - \ \"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection\ - \ attempts 1/2\"\r\n },{\r\n \"ruleId\":\"942220\"\ - ,\"description\":\"Looking for integer overflow attacks, these are taken from\ - \ skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\"\ - \r\n },{\r\n \"ruleId\":\"942230\",\"description\"\ - :\"Detects conditional SQL injection attempts\"\r\n },{\r\n \ - \ \"ruleId\":\"942240\",\"description\":\"Detects MySQL charset\ - \ switch and MSSQL DoS attempts\"\r\n },{\r\n \ - \ \"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and\ - \ EXECUTE IMMEDIATE injections\"\r\n },{\r\n \"\ - ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass\ - \ attempts 2/3\"\r\n },{\r\n \"ruleId\":\"942270\"\ - ,\"description\":\"Looking for basic sql injection. Common attack string for\ - \ mysql, oracle and others.\"\r\n },{\r\n \"ruleId\"\ - :\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor\ - \ delay attacks and database shutdown attempts\"\r\n },{\r\n\ - \ \"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB\ - \ SQL injection attempts\"\r\n },{\r\n \"ruleId\"\ - :\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r\ - \ injections\"\r\n },{\r\n \"ruleId\":\"942310\"\ - ,\"description\":\"Detects chained SQL injection attempts 2/2\"\r\n \ - \ },{\r\n \"ruleId\":\"942320\",\"description\":\"Detects\ - \ MySQL and PostgreSQL stored procedure/function injections\"\r\n \ - \ },{\r\n \"ruleId\":\"942330\",\"description\":\"Detects\ - \ classic SQL injection probings 1/3\"\r\n },{\r\n \ - \ \"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication\ - \ bypass attempts 3/3\"\r\n },{\r\n \"ruleId\"\ - :\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure\ - \ manipulation attempts\"\r\n },{\r\n \"ruleId\"\ - :\"942360\",\"description\":\"Detects concatenated basic SQL injection and\ - \ SQLLFI attempts\"\r\n },{\r\n \"ruleId\":\"\ - 942361\",\"description\":\"Detects basic SQL injection based on keyword alter\ - \ or union\"\r\n },{\r\n \"ruleId\":\"942370\"\ - ,\"description\":\"Detects classic SQL injection probings 2/3\"\r\n \ - \ },{\r\n \"ruleId\":\"942380\",\"description\":\"SQL\ - \ Injection Attack\"\r\n },{\r\n \"ruleId\":\"\ - 942390\",\"description\":\"SQL Injection Attack\"\r\n },{\r\n\ - \ \"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\"\ - \r\n },{\r\n \"ruleId\":\"942410\",\"description\"\ - :\"SQL Injection Attack\"\r\n },{\r\n \"ruleId\"\ - :\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args):\ - \ # of special characters exceeded (12)\"\r\n },{\r\n \ - \ \"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\"\ - \r\n },{\r\n \"ruleId\":\"942450\",\"description\"\ - :\"SQL Hex Encoding Identified\"\r\n },{\r\n \"\ - ruleId\":\"942470\",\"description\":\"SQL Injection Attack\"\r\n \ - \ },{\r\n \"ruleId\":\"942480\",\"description\":\"SQL Injection\ - \ Attack\"\r\n }\r\n ]\r\n },{\r\n \ - \ \"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"943100\",\"\ - description\":\"Possible Session Fixation Attack: Setting Cookie Values in\ - \ HTML\"\r\n },{\r\n \"ruleId\":\"943110\",\"\ - description\":\"Possible Session Fixation Attack: SessionID Parameter Name\ - \ with Off-Domain Referer\"\r\n },{\r\n \"ruleId\"\ - :\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID\ - \ Parameter Name with No Referer\"\r\n }\r\n ]\r\n\ - \ },{\r\n \"ruleGroupName\":\"JAVA\",\"description\":\"\ - Java attacks\",\"rules\":[\r\n {\r\n \"ruleId\"\ - :\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class\ - \ detected\"\r\n },{\r\n \"ruleId\":\"944110\"\ - ,\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\"\ - \r\n },{\r\n \"ruleId\":\"944120\",\"description\"\ - :\"Remote Command Execution: Java serialization (CVE-2015-5842)\"\r\n \ - \ },{\r\n \"ruleId\":\"944130\",\"description\":\"\ - Suspicious Java class detected\"\r\n },{\r\n \"\ - ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java\ - \ serialization in use\"\r\n },{\r\n \"ruleId\"\ - :\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable\ - \ java serialization in use\"\r\n },{\r\n \"ruleId\"\ - :\"944240\",\"description\":\"Remote Command Execution: Java serialization\ - \ (CVE-2015-5842)\"\r\n },{\r\n \"ruleId\":\"\ - 944250\",\"description\":\"Remote Command Execution: Suspicious Java method\ - \ detected\"\r\n }\r\n ]\r\n }\r\n \ - \ ]\r\n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"id":"/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0","type":"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets","name":"DefaultRuleSet_1.0","properties":{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleGroups":[{"ruleGroupName":"PROTOCOL-ATTACK","description":"Protocol + attack","rules":[{"ruleId":"921110","description":"HTTP Request Smuggling + Attack"},{"ruleId":"921120","description":"HTTP Response Splitting Attack"},{"ruleId":"921130","description":"HTTP + Response Splitting Attack"},{"ruleId":"921140","description":"HTTP Header + Injection Attack via headers"},{"ruleId":"921150","description":"HTTP Header + Injection Attack via payload (CR/LF detected)"},{"ruleId":"921160","description":"HTTP + Header Injection Attack via payload (CR/LF and header-name detected)"},{"ruleId":"921151","description":"HTTP + Header Injection Attack via payload (CR/LF detected)"}]},{"ruleGroupName":"LFI","description":"Local + file inclusion","rules":[{"ruleId":"930100","description":"Path Traversal + Attack (/../)"},{"ruleId":"930110","description":"Path Traversal Attack (/../)"},{"ruleId":"930120","description":"OS + File Access Attempt"},{"ruleId":"930130","description":"Restricted File Access + Attempt"}]},{"ruleGroupName":"RFI","description":"Remote file inclusion","rules":[{"ruleId":"931100","description":"Possible + Remote File Inclusion (RFI) Attack: URL Parameter using IP Address"},{"ruleId":"931110","description":"Possible + Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used + w/URL Payload"},{"ruleId":"931120","description":"Possible Remote File Inclusion + (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)"},{"ruleId":"931130","description":"Possible + Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link"}]},{"ruleGroupName":"RCE","description":"Remote + Command Execution attacks","rules":[{"ruleId":"932100","description":"Remote + Command Execution: Unix Command Injection"},{"ruleId":"932105","description":"Remote + Command Execution: Unix Command Injection"},{"ruleId":"932110","description":"Remote + Command Execution: Windows Command Injection"},{"ruleId":"932115","description":"Remote + Command Execution: Windows Command Injection"},{"ruleId":"932120","description":"Remote + Command Execution: Windows PowerShell Command Found"},{"ruleId":"932130","description":"Remote + Command Execution: Unix Shell Expression Found"},{"ruleId":"932140","description":"Remote + Command Execution: Windows FOR/IF Command Found"},{"ruleId":"932150","description":"Remote + Command Execution: Direct Unix Command Execution"},{"ruleId":"932160","description":"Remote + Command Execution: Unix Shell Code Found"},{"ruleId":"932170","description":"Remote + Command Execution: Shellshock (CVE-2014-6271)"},{"ruleId":"932171","description":"Remote + Command Execution: Shellshock (CVE-2014-6271)"},{"ruleId":"932180","description":"Restricted + File Upload Attempt"}]},{"ruleGroupName":"PHP","description":"PHP attacks","rules":[{"ruleId":"933100","description":"PHP + Injection Attack: PHP Open Tag Found"},{"ruleId":"933110","description":"PHP + Injection Attack: PHP Script File Upload Found"},{"ruleId":"933120","description":"PHP + Injection Attack: Configuration Directive Found"},{"ruleId":"933130","description":"PHP + Injection Attack: Variables Found"},{"ruleId":"933140","description":"PHP + Injection Attack: I/O Stream Found"},{"ruleId":"933150","description":"PHP + Injection Attack: High-Risk PHP Function Name Found"},{"ruleId":"933151","description":"PHP + Injection Attack: Medium-Risk PHP Function Name Found"},{"ruleId":"933160","description":"PHP + Injection Attack: High-Risk PHP Function Call Found"},{"ruleId":"933170","description":"PHP + Injection Attack: Serialized Object Injection"},{"ruleId":"933180","description":"PHP + Injection Attack: Variable Function Call Found"}]},{"ruleGroupName":"XSS","description":"Cross-site + scripting","rules":[{"ruleId":"941100","description":"XSS Attack Detected + via libinjection"},{"ruleId":"941101","description":"XSS Attack Detected via + libinjection"},{"ruleId":"941110","description":"XSS Filter - Category 1: + Script Tag Vector"},{"ruleId":"941120","description":"XSS Filter - Category + 2: Event Handler Vector"},{"ruleId":"941130","description":"XSS Filter - Category + 3: Attribute Vector"},{"ruleId":"941140","description":"XSS Filter - Category + 4: Javascript URI Vector"},{"ruleId":"941150","description":"XSS Filter - + Category 5: Disallowed HTML Attributes"},{"ruleId":"941160","description":"NoScript + XSS InjectionChecker: HTML Injection"},{"ruleId":"941170","description":"NoScript + XSS InjectionChecker: Attribute Injection"},{"ruleId":"941180","description":"Node-Validator + Blacklist Keywords"},{"ruleId":"941190","description":"IE XSS Filters - Attack + Detected."},{"ruleId":"941200","description":"IE XSS Filters - Attack Detected."},{"ruleId":"941210","description":"IE + XSS Filters - Attack Detected."},{"ruleId":"941220","description":"IE XSS + Filters - Attack Detected."},{"ruleId":"941230","description":"IE XSS Filters + - Attack Detected."},{"ruleId":"941240","description":"IE XSS Filters - Attack + Detected."},{"ruleId":"941250","description":"IE XSS Filters - Attack Detected."},{"ruleId":"941260","description":"IE + XSS Filters - Attack Detected."},{"ruleId":"941270","description":"IE XSS + Filters - Attack Detected."},{"ruleId":"941280","description":"IE XSS Filters + - Attack Detected."},{"ruleId":"941290","description":"IE XSS Filters - Attack + Detected."},{"ruleId":"941300","description":"IE XSS Filters - Attack Detected."},{"ruleId":"941310","description":"US-ASCII + Malformed Encoding XSS Filter - Attack Detected."},{"ruleId":"941320","description":"Possible + XSS Attack Detected - HTML Tag Handler"},{"ruleId":"941330","description":"IE + XSS Filters - Attack Detected."},{"ruleId":"941340","description":"IE XSS + Filters - Attack Detected."},{"ruleId":"941350","description":"UTF-7 Encoding + IE XSS - Attack Detected."}]},{"ruleGroupName":"SQLI","description":"SQL injection","rules":[{"ruleId":"942100","description":"SQL + Injection Attack Detected via libinjection"},{"ruleId":"942110","description":"SQL + Injection Attack: Common Injection Testing Detected"},{"ruleId":"942120","description":"SQL + Injection Attack: SQL Operator Detected"},{"ruleId":"942140","description":"SQL + Injection Attack: Common DB Names Detected"},{"ruleId":"942150","description":"SQL + Injection Attack"},{"ruleId":"942160","description":"Detects blind sqli tests + using sleep() or benchmark()."},{"ruleId":"942170","description":"Detects + SQL benchmark and sleep injection attempts including conditional queries"},{"ruleId":"942180","description":"Detects + basic SQL authentication bypass attempts 1/3"},{"ruleId":"942190","description":"Detects + MSSQL code execution and information gathering attempts"},{"ruleId":"942200","description":"Detects + MySQL comment-/space-obfuscated injections and backtick termination"},{"ruleId":"942210","description":"Detects + chained SQL injection attempts 1/2"},{"ruleId":"942220","description":"Looking + for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 + is the \"magic number\" crash"},{"ruleId":"942230","description":"Detects + conditional SQL injection attempts"},{"ruleId":"942240","description":"Detects + MySQL charset switch and MSSQL DoS attempts"},{"ruleId":"942250","description":"Detects + MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections"},{"ruleId":"942260","description":"Detects + basic SQL authentication bypass attempts 2/3"},{"ruleId":"942270","description":"Looking + for basic sql injection. Common attack string for mysql, oracle and others."},{"ruleId":"942280","description":"Detects + Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts"},{"ruleId":"942290","description":"Finds + basic MongoDB SQL injection attempts"},{"ruleId":"942300","description":"Detects + MySQL comments, conditions and ch(a)r injections"},{"ruleId":"942310","description":"Detects + chained SQL injection attempts 2/2"},{"ruleId":"942320","description":"Detects + MySQL and PostgreSQL stored procedure/function injections"},{"ruleId":"942330","description":"Detects + classic SQL injection probings 1/3"},{"ruleId":"942340","description":"Detects + basic SQL authentication bypass attempts 3/3"},{"ruleId":"942350","description":"Detects + MySQL UDF injection and other data/structure manipulation attempts"},{"ruleId":"942360","description":"Detects + concatenated basic SQL injection and SQLLFI attempts"},{"ruleId":"942361","description":"Detects + basic SQL injection based on keyword alter or union"},{"ruleId":"942370","description":"Detects + classic SQL injection probings 2/3"},{"ruleId":"942380","description":"SQL + Injection Attack"},{"ruleId":"942390","description":"SQL Injection Attack"},{"ruleId":"942400","description":"SQL + Injection Attack"},{"ruleId":"942410","description":"SQL Injection Attack"},{"ruleId":"942430","description":"Restricted + SQL Character Anomaly Detection (args): # of special characters exceeded (12)"},{"ruleId":"942440","description":"SQL + Comment Sequence Detected."},{"ruleId":"942450","description":"SQL Hex Encoding + Identified"},{"ruleId":"942470","description":"SQL Injection Attack"},{"ruleId":"942480","description":"SQL + Injection Attack"}]},{"ruleGroupName":"FIX","description":"Session Fixation + attacks","rules":[{"ruleId":"943100","description":"Possible Session Fixation + Attack: Setting Cookie Values in HTML"},{"ruleId":"943110","description":"Possible + Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer"},{"ruleId":"943120","description":"Possible + Session Fixation Attack: SessionID Parameter Name with No Referer"}]},{"ruleGroupName":"JAVA","description":"Java + attacks","rules":[{"ruleId":"944100","description":"Remote Command Execution: + Suspicious Java class detected"},{"ruleId":"944110","description":"Remote + Command Execution: Java process spawn (CVE-2017-9805)"},{"ruleId":"944120","description":"Remote + Command Execution: Java serialization (CVE-2015-5842)"},{"ruleId":"944130","description":"Suspicious + Java class detected"},{"ruleId":"944200","description":"Magic bytes Detected, + probable java serialization in use"},{"ruleId":"944210","description":"Magic + bytes Detected Base64 Encoded, probable java serialization in use"},{"ruleId":"944240","description":"Remote + Command Execution: Java serialization (CVE-2015-5842)"},{"ruleId":"944250","description":"Remote + Command Execution: Suspicious Java method detected"}]}],"provisioningState":"Succeeded","provisioningStateAsEnum":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '14963' + - '10568' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:00 GMT + - Fri, 19 Feb 2021 11:54:18 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -284,262 +172,150 @@ interactions: ParameterSetName: - --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/CdnWebApplicationFirewallManagedRuleSets?api-version=2020-09-01 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"DefaultRuleSet_1.0\"\ - ,\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets\",\"properties\"\ - :{\r\n \"provisioningState\":\"Succeeded\",\"ruleSetType\":\"DefaultRuleSet\"\ - ,\"ruleSetVersion\":\"1.0\",\"ruleGroups\":[\r\n {\r\n \ - \ \"ruleGroupName\":\"PROTOCOL-ATTACK\",\"description\":\"Protocol attack\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"921110\",\"\ - description\":\"HTTP Request Smuggling Attack\"\r\n },{\r\n \ - \ \"ruleId\":\"921120\",\"description\":\"HTTP Response Splitting\ - \ Attack\"\r\n },{\r\n \"ruleId\":\"921130\",\"\ - description\":\"HTTP Response Splitting Attack\"\r\n },{\r\n\ - \ \"ruleId\":\"921140\",\"description\":\"HTTP Header Injection\ - \ Attack via headers\"\r\n },{\r\n \"ruleId\"\ - :\"921150\",\"description\":\"HTTP Header Injection Attack via payload (CR/LF\ - \ detected)\"\r\n },{\r\n \"ruleId\":\"921160\"\ - ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF and header-name\ - \ detected)\"\r\n },{\r\n \"ruleId\":\"921151\"\ - ,\"description\":\"HTTP Header Injection Attack via payload (CR/LF detected)\"\ - \r\n }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ - :\"LFI\",\"description\":\"Local file inclusion\",\"rules\":[\r\n \ - \ {\r\n \"ruleId\":\"930100\",\"description\":\"Path Traversal\ - \ Attack (/../)\"\r\n },{\r\n \"ruleId\":\"930110\"\ - ,\"description\":\"Path Traversal Attack (/../)\"\r\n },{\r\n\ - \ \"ruleId\":\"930120\",\"description\":\"OS File Access Attempt\"\ - \r\n },{\r\n \"ruleId\":\"930130\",\"description\"\ - :\"Restricted File Access Attempt\"\r\n }\r\n ]\r\n\ - \ },{\r\n \"ruleGroupName\":\"RFI\",\"description\":\"\ - Remote file inclusion\",\"rules\":[\r\n {\r\n \ - \ \"ruleId\":\"931100\",\"description\":\"Possible Remote File Inclusion (RFI)\ - \ Attack: URL Parameter using IP Address\"\r\n },{\r\n \ - \ \"ruleId\":\"931110\",\"description\":\"Possible Remote File Inclusion\ - \ (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload\"\r\ - \n },{\r\n \"ruleId\":\"931120\",\"description\"\ - :\"Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing\ - \ Question Mark Character (?)\"\r\n },{\r\n \"\ - ruleId\":\"931130\",\"description\":\"Possible Remote File Inclusion (RFI)\ - \ Attack: Off-Domain Reference/Link\"\r\n }\r\n ]\r\ - \n },{\r\n \"ruleGroupName\":\"RCE\",\"description\":\"\ - Remote Command Execution attacks\",\"rules\":[\r\n {\r\n \ - \ \"ruleId\":\"932100\",\"description\":\"Remote Command Execution:\ - \ Unix Command Injection\"\r\n },{\r\n \"ruleId\"\ - :\"932105\",\"description\":\"Remote Command Execution: Unix Command Injection\"\ - \r\n },{\r\n \"ruleId\":\"932110\",\"description\"\ - :\"Remote Command Execution: Windows Command Injection\"\r\n \ - \ },{\r\n \"ruleId\":\"932115\",\"description\":\"Remote Command\ - \ Execution: Windows Command Injection\"\r\n },{\r\n \ - \ \"ruleId\":\"932120\",\"description\":\"Remote Command Execution:\ - \ Windows PowerShell Command Found\"\r\n },{\r\n \ - \ \"ruleId\":\"932130\",\"description\":\"Remote Command Execution: Unix\ - \ Shell Expression Found\"\r\n },{\r\n \"ruleId\"\ - :\"932140\",\"description\":\"Remote Command Execution: Windows FOR/IF Command\ - \ Found\"\r\n },{\r\n \"ruleId\":\"932150\",\"\ - description\":\"Remote Command Execution: Direct Unix Command Execution\"\r\ - \n },{\r\n \"ruleId\":\"932160\",\"description\"\ - :\"Remote Command Execution: Unix Shell Code Found\"\r\n },{\r\ - \n \"ruleId\":\"932170\",\"description\":\"Remote Command Execution:\ - \ Shellshock (CVE-2014-6271)\"\r\n },{\r\n \"\ - ruleId\":\"932171\",\"description\":\"Remote Command Execution: Shellshock\ - \ (CVE-2014-6271)\"\r\n },{\r\n \"ruleId\":\"\ - 932180\",\"description\":\"Restricted File Upload Attempt\"\r\n \ - \ }\r\n ]\r\n },{\r\n \"ruleGroupName\"\ - :\"PHP\",\"description\":\"PHP attacks\",\"rules\":[\r\n {\r\n\ - \ \"ruleId\":\"933100\",\"description\":\"PHP Injection Attack:\ - \ PHP Open Tag Found\"\r\n },{\r\n \"ruleId\"\ - :\"933110\",\"description\":\"PHP Injection Attack: PHP Script File Upload\ - \ Found\"\r\n },{\r\n \"ruleId\":\"933120\",\"\ - description\":\"PHP Injection Attack: Configuration Directive Found\"\r\n\ - \ },{\r\n \"ruleId\":\"933130\",\"description\"\ - :\"PHP Injection Attack: Variables Found\"\r\n },{\r\n \ - \ \"ruleId\":\"933140\",\"description\":\"PHP Injection Attack: I/O\ - \ Stream Found\"\r\n },{\r\n \"ruleId\":\"933150\"\ - ,\"description\":\"PHP Injection Attack: High-Risk PHP Function Name Found\"\ - \r\n },{\r\n \"ruleId\":\"933151\",\"description\"\ - :\"PHP Injection Attack: Medium-Risk PHP Function Name Found\"\r\n \ - \ },{\r\n \"ruleId\":\"933160\",\"description\":\"PHP\ - \ Injection Attack: High-Risk PHP Function Call Found\"\r\n },{\r\ - \n \"ruleId\":\"933170\",\"description\":\"PHP Injection Attack:\ - \ Serialized Object Injection\"\r\n },{\r\n \"\ - ruleId\":\"933180\",\"description\":\"PHP Injection Attack: Variable Function\ - \ Call Found\"\r\n }\r\n ]\r\n },{\r\n \ - \ \"ruleGroupName\":\"XSS\",\"description\":\"Cross-site scripting\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"941100\",\"\ - description\":\"XSS Attack Detected via libinjection\"\r\n },{\r\ - \n \"ruleId\":\"941101\",\"description\":\"XSS Attack Detected\ - \ via libinjection\"\r\n },{\r\n \"ruleId\":\"\ - 941110\",\"description\":\"XSS Filter - Category 1: Script Tag Vector\"\r\n\ - \ },{\r\n \"ruleId\":\"941120\",\"description\"\ - :\"XSS Filter - Category 2: Event Handler Vector\"\r\n },{\r\n\ - \ \"ruleId\":\"941130\",\"description\":\"XSS Filter - Category\ - \ 3: Attribute Vector\"\r\n },{\r\n \"ruleId\"\ - :\"941140\",\"description\":\"XSS Filter - Category 4: Javascript URI Vector\"\ - \r\n },{\r\n \"ruleId\":\"941150\",\"description\"\ - :\"XSS Filter - Category 5: Disallowed HTML Attributes\"\r\n \ - \ },{\r\n \"ruleId\":\"941160\",\"description\":\"NoScript\ - \ XSS InjectionChecker: HTML Injection\"\r\n },{\r\n \ - \ \"ruleId\":\"941170\",\"description\":\"NoScript XSS InjectionChecker:\ - \ Attribute Injection\"\r\n },{\r\n \"ruleId\"\ - :\"941180\",\"description\":\"Node-Validator Blacklist Keywords\"\r\n \ - \ },{\r\n \"ruleId\":\"941190\",\"description\":\"\ - IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941200\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941210\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941220\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941230\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941240\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941250\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941260\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941270\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941280\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941290\",\"description\"\ - :\"IE XSS Filters - Attack Detected.\"\r\n },{\r\n \ - \ \"ruleId\":\"941300\",\"description\":\"IE XSS Filters - Attack Detected.\"\ - \r\n },{\r\n \"ruleId\":\"941310\",\"description\"\ - :\"US-ASCII Malformed Encoding XSS Filter - Attack Detected.\"\r\n \ - \ },{\r\n \"ruleId\":\"941320\",\"description\":\"Possible\ - \ XSS Attack Detected - HTML Tag Handler\"\r\n },{\r\n \ - \ \"ruleId\":\"941330\",\"description\":\"IE XSS Filters - Attack\ - \ Detected.\"\r\n },{\r\n \"ruleId\":\"941340\"\ - ,\"description\":\"IE XSS Filters - Attack Detected.\"\r\n },{\r\ - \n \"ruleId\":\"941350\",\"description\":\"UTF-7 Encoding IE\ - \ XSS - Attack Detected.\"\r\n }\r\n ]\r\n \ - \ },{\r\n \"ruleGroupName\":\"SQLI\",\"description\":\"SQL injection\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"942100\",\"\ - description\":\"SQL Injection Attack Detected via libinjection\"\r\n \ - \ },{\r\n \"ruleId\":\"942110\",\"description\":\"\ - SQL Injection Attack: Common Injection Testing Detected\"\r\n \ - \ },{\r\n \"ruleId\":\"942120\",\"description\":\"SQL Injection\ - \ Attack: SQL Operator Detected\"\r\n },{\r\n \ - \ \"ruleId\":\"942140\",\"description\":\"SQL Injection Attack: Common DB\ - \ Names Detected\"\r\n },{\r\n \"ruleId\":\"942150\"\ - ,\"description\":\"SQL Injection Attack\"\r\n },{\r\n \ - \ \"ruleId\":\"942160\",\"description\":\"Detects blind sqli tests\ - \ using sleep() or benchmark().\"\r\n },{\r\n \ - \ \"ruleId\":\"942170\",\"description\":\"Detects SQL benchmark and sleep\ - \ injection attempts including conditional queries\"\r\n },{\r\ - \n \"ruleId\":\"942180\",\"description\":\"Detects basic SQL\ - \ authentication bypass attempts 1/3\"\r\n },{\r\n \ - \ \"ruleId\":\"942190\",\"description\":\"Detects MSSQL code execution\ - \ and information gathering attempts\"\r\n },{\r\n \ - \ \"ruleId\":\"942200\",\"description\":\"Detects MySQL comment-/space-obfuscated\ - \ injections and backtick termination\"\r\n },{\r\n \ - \ \"ruleId\":\"942210\",\"description\":\"Detects chained SQL injection\ - \ attempts 1/2\"\r\n },{\r\n \"ruleId\":\"942220\"\ - ,\"description\":\"Looking for integer overflow attacks, these are taken from\ - \ skipfish, except 3.0.00738585072007e-308 is the \\\"magic number\\\" crash\"\ - \r\n },{\r\n \"ruleId\":\"942230\",\"description\"\ - :\"Detects conditional SQL injection attempts\"\r\n },{\r\n \ - \ \"ruleId\":\"942240\",\"description\":\"Detects MySQL charset\ - \ switch and MSSQL DoS attempts\"\r\n },{\r\n \ - \ \"ruleId\":\"942250\",\"description\":\"Detects MATCH AGAINST, MERGE and\ - \ EXECUTE IMMEDIATE injections\"\r\n },{\r\n \"\ - ruleId\":\"942260\",\"description\":\"Detects basic SQL authentication bypass\ - \ attempts 2/3\"\r\n },{\r\n \"ruleId\":\"942270\"\ - ,\"description\":\"Looking for basic sql injection. Common attack string for\ - \ mysql, oracle and others.\"\r\n },{\r\n \"ruleId\"\ - :\"942280\",\"description\":\"Detects Postgres pg_sleep injection, waitfor\ - \ delay attacks and database shutdown attempts\"\r\n },{\r\n\ - \ \"ruleId\":\"942290\",\"description\":\"Finds basic MongoDB\ - \ SQL injection attempts\"\r\n },{\r\n \"ruleId\"\ - :\"942300\",\"description\":\"Detects MySQL comments, conditions and ch(a)r\ - \ injections\"\r\n },{\r\n \"ruleId\":\"942310\"\ - ,\"description\":\"Detects chained SQL injection attempts 2/2\"\r\n \ - \ },{\r\n \"ruleId\":\"942320\",\"description\":\"Detects\ - \ MySQL and PostgreSQL stored procedure/function injections\"\r\n \ - \ },{\r\n \"ruleId\":\"942330\",\"description\":\"Detects\ - \ classic SQL injection probings 1/3\"\r\n },{\r\n \ - \ \"ruleId\":\"942340\",\"description\":\"Detects basic SQL authentication\ - \ bypass attempts 3/3\"\r\n },{\r\n \"ruleId\"\ - :\"942350\",\"description\":\"Detects MySQL UDF injection and other data/structure\ - \ manipulation attempts\"\r\n },{\r\n \"ruleId\"\ - :\"942360\",\"description\":\"Detects concatenated basic SQL injection and\ - \ SQLLFI attempts\"\r\n },{\r\n \"ruleId\":\"\ - 942361\",\"description\":\"Detects basic SQL injection based on keyword alter\ - \ or union\"\r\n },{\r\n \"ruleId\":\"942370\"\ - ,\"description\":\"Detects classic SQL injection probings 2/3\"\r\n \ - \ },{\r\n \"ruleId\":\"942380\",\"description\":\"SQL\ - \ Injection Attack\"\r\n },{\r\n \"ruleId\":\"\ - 942390\",\"description\":\"SQL Injection Attack\"\r\n },{\r\n\ - \ \"ruleId\":\"942400\",\"description\":\"SQL Injection Attack\"\ - \r\n },{\r\n \"ruleId\":\"942410\",\"description\"\ - :\"SQL Injection Attack\"\r\n },{\r\n \"ruleId\"\ - :\"942430\",\"description\":\"Restricted SQL Character Anomaly Detection (args):\ - \ # of special characters exceeded (12)\"\r\n },{\r\n \ - \ \"ruleId\":\"942440\",\"description\":\"SQL Comment Sequence Detected.\"\ - \r\n },{\r\n \"ruleId\":\"942450\",\"description\"\ - :\"SQL Hex Encoding Identified\"\r\n },{\r\n \"\ - ruleId\":\"942470\",\"description\":\"SQL Injection Attack\"\r\n \ - \ },{\r\n \"ruleId\":\"942480\",\"description\":\"SQL Injection\ - \ Attack\"\r\n }\r\n ]\r\n },{\r\n \ - \ \"ruleGroupName\":\"FIX\",\"description\":\"Session Fixation attacks\"\ - ,\"rules\":[\r\n {\r\n \"ruleId\":\"943100\",\"\ - description\":\"Possible Session Fixation Attack: Setting Cookie Values in\ - \ HTML\"\r\n },{\r\n \"ruleId\":\"943110\",\"\ - description\":\"Possible Session Fixation Attack: SessionID Parameter Name\ - \ with Off-Domain Referer\"\r\n },{\r\n \"ruleId\"\ - :\"943120\",\"description\":\"Possible Session Fixation Attack: SessionID\ - \ Parameter Name with No Referer\"\r\n }\r\n ]\r\n\ - \ },{\r\n \"ruleGroupName\":\"JAVA\",\"description\":\"\ - Java attacks\",\"rules\":[\r\n {\r\n \"ruleId\"\ - :\"944100\",\"description\":\"Remote Command Execution: Suspicious Java class\ - \ detected\"\r\n },{\r\n \"ruleId\":\"944110\"\ - ,\"description\":\"Remote Command Execution: Java process spawn (CVE-2017-9805)\"\ - \r\n },{\r\n \"ruleId\":\"944120\",\"description\"\ - :\"Remote Command Execution: Java serialization (CVE-2015-5842)\"\r\n \ - \ },{\r\n \"ruleId\":\"944130\",\"description\":\"\ - Suspicious Java class detected\"\r\n },{\r\n \"\ - ruleId\":\"944200\",\"description\":\"Magic bytes Detected, probable java\ - \ serialization in use\"\r\n },{\r\n \"ruleId\"\ - :\"944210\",\"description\":\"Magic bytes Detected Base64 Encoded, probable\ - \ java serialization in use\"\r\n },{\r\n \"ruleId\"\ - :\"944240\",\"description\":\"Remote Command Execution: Java serialization\ - \ (CVE-2015-5842)\"\r\n },{\r\n \"ruleId\":\"\ - 944250\",\"description\":\"Remote Command Execution: Suspicious Java method\ - \ detected\"\r\n }\r\n ]\r\n }\r\n \ - \ ]\r\n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"id":"/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0","type":"Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets","name":"DefaultRuleSet_1.0","properties":{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","ruleGroups":[{"ruleGroupName":"PROTOCOL-ATTACK","description":"Protocol + attack","rules":[{"ruleId":"921110","description":"HTTP Request Smuggling + Attack"},{"ruleId":"921120","description":"HTTP Response Splitting Attack"},{"ruleId":"921130","description":"HTTP + Response Splitting Attack"},{"ruleId":"921140","description":"HTTP Header + Injection Attack via headers"},{"ruleId":"921150","description":"HTTP Header + Injection Attack via payload (CR/LF detected)"},{"ruleId":"921160","description":"HTTP + Header Injection Attack via payload (CR/LF and header-name detected)"},{"ruleId":"921151","description":"HTTP + Header Injection Attack via payload (CR/LF detected)"}]},{"ruleGroupName":"LFI","description":"Local + file inclusion","rules":[{"ruleId":"930100","description":"Path Traversal + Attack (/../)"},{"ruleId":"930110","description":"Path Traversal Attack (/../)"},{"ruleId":"930120","description":"OS + File Access Attempt"},{"ruleId":"930130","description":"Restricted File Access + Attempt"}]},{"ruleGroupName":"RFI","description":"Remote file inclusion","rules":[{"ruleId":"931100","description":"Possible + Remote File Inclusion (RFI) Attack: URL Parameter using IP Address"},{"ruleId":"931110","description":"Possible + Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used + w/URL Payload"},{"ruleId":"931120","description":"Possible Remote File Inclusion + (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)"},{"ruleId":"931130","description":"Possible + Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link"}]},{"ruleGroupName":"RCE","description":"Remote + Command Execution attacks","rules":[{"ruleId":"932100","description":"Remote + Command Execution: Unix Command Injection"},{"ruleId":"932105","description":"Remote + Command Execution: Unix Command Injection"},{"ruleId":"932110","description":"Remote + Command Execution: Windows Command Injection"},{"ruleId":"932115","description":"Remote + Command Execution: Windows Command Injection"},{"ruleId":"932120","description":"Remote + Command Execution: Windows PowerShell Command Found"},{"ruleId":"932130","description":"Remote + Command Execution: Unix Shell Expression Found"},{"ruleId":"932140","description":"Remote + Command Execution: Windows FOR/IF Command Found"},{"ruleId":"932150","description":"Remote + Command Execution: Direct Unix Command Execution"},{"ruleId":"932160","description":"Remote + Command Execution: Unix Shell Code Found"},{"ruleId":"932170","description":"Remote + Command Execution: Shellshock (CVE-2014-6271)"},{"ruleId":"932171","description":"Remote + Command Execution: Shellshock (CVE-2014-6271)"},{"ruleId":"932180","description":"Restricted + File Upload Attempt"}]},{"ruleGroupName":"PHP","description":"PHP attacks","rules":[{"ruleId":"933100","description":"PHP + Injection Attack: PHP Open Tag Found"},{"ruleId":"933110","description":"PHP + Injection Attack: PHP Script File Upload Found"},{"ruleId":"933120","description":"PHP + Injection Attack: Configuration Directive Found"},{"ruleId":"933130","description":"PHP + Injection Attack: Variables Found"},{"ruleId":"933140","description":"PHP + Injection Attack: I/O Stream Found"},{"ruleId":"933150","description":"PHP + Injection Attack: High-Risk PHP Function Name Found"},{"ruleId":"933151","description":"PHP + Injection Attack: Medium-Risk PHP Function Name Found"},{"ruleId":"933160","description":"PHP + Injection Attack: High-Risk PHP Function Call Found"},{"ruleId":"933170","description":"PHP + Injection Attack: Serialized Object Injection"},{"ruleId":"933180","description":"PHP + Injection Attack: Variable Function Call Found"}]},{"ruleGroupName":"XSS","description":"Cross-site + scripting","rules":[{"ruleId":"941100","description":"XSS Attack Detected + via libinjection"},{"ruleId":"941101","description":"XSS Attack Detected via + libinjection"},{"ruleId":"941110","description":"XSS Filter - Category 1: + Script Tag Vector"},{"ruleId":"941120","description":"XSS Filter - Category + 2: Event Handler Vector"},{"ruleId":"941130","description":"XSS Filter - Category + 3: Attribute Vector"},{"ruleId":"941140","description":"XSS Filter - Category + 4: Javascript URI Vector"},{"ruleId":"941150","description":"XSS Filter - + Category 5: Disallowed HTML Attributes"},{"ruleId":"941160","description":"NoScript + XSS InjectionChecker: HTML Injection"},{"ruleId":"941170","description":"NoScript + XSS InjectionChecker: Attribute Injection"},{"ruleId":"941180","description":"Node-Validator + Blacklist Keywords"},{"ruleId":"941190","description":"IE XSS Filters - Attack + Detected."},{"ruleId":"941200","description":"IE XSS Filters - Attack Detected."},{"ruleId":"941210","description":"IE + XSS Filters - Attack Detected."},{"ruleId":"941220","description":"IE XSS + Filters - Attack Detected."},{"ruleId":"941230","description":"IE XSS Filters + - Attack Detected."},{"ruleId":"941240","description":"IE XSS Filters - Attack + Detected."},{"ruleId":"941250","description":"IE XSS Filters - Attack Detected."},{"ruleId":"941260","description":"IE + XSS Filters - Attack Detected."},{"ruleId":"941270","description":"IE XSS + Filters - Attack Detected."},{"ruleId":"941280","description":"IE XSS Filters + - Attack Detected."},{"ruleId":"941290","description":"IE XSS Filters - Attack + Detected."},{"ruleId":"941300","description":"IE XSS Filters - Attack Detected."},{"ruleId":"941310","description":"US-ASCII + Malformed Encoding XSS Filter - Attack Detected."},{"ruleId":"941320","description":"Possible + XSS Attack Detected - HTML Tag Handler"},{"ruleId":"941330","description":"IE + XSS Filters - Attack Detected."},{"ruleId":"941340","description":"IE XSS + Filters - Attack Detected."},{"ruleId":"941350","description":"UTF-7 Encoding + IE XSS - Attack Detected."}]},{"ruleGroupName":"SQLI","description":"SQL injection","rules":[{"ruleId":"942100","description":"SQL + Injection Attack Detected via libinjection"},{"ruleId":"942110","description":"SQL + Injection Attack: Common Injection Testing Detected"},{"ruleId":"942120","description":"SQL + Injection Attack: SQL Operator Detected"},{"ruleId":"942140","description":"SQL + Injection Attack: Common DB Names Detected"},{"ruleId":"942150","description":"SQL + Injection Attack"},{"ruleId":"942160","description":"Detects blind sqli tests + using sleep() or benchmark()."},{"ruleId":"942170","description":"Detects + SQL benchmark and sleep injection attempts including conditional queries"},{"ruleId":"942180","description":"Detects + basic SQL authentication bypass attempts 1/3"},{"ruleId":"942190","description":"Detects + MSSQL code execution and information gathering attempts"},{"ruleId":"942200","description":"Detects + MySQL comment-/space-obfuscated injections and backtick termination"},{"ruleId":"942210","description":"Detects + chained SQL injection attempts 1/2"},{"ruleId":"942220","description":"Looking + for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 + is the \"magic number\" crash"},{"ruleId":"942230","description":"Detects + conditional SQL injection attempts"},{"ruleId":"942240","description":"Detects + MySQL charset switch and MSSQL DoS attempts"},{"ruleId":"942250","description":"Detects + MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections"},{"ruleId":"942260","description":"Detects + basic SQL authentication bypass attempts 2/3"},{"ruleId":"942270","description":"Looking + for basic sql injection. Common attack string for mysql, oracle and others."},{"ruleId":"942280","description":"Detects + Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts"},{"ruleId":"942290","description":"Finds + basic MongoDB SQL injection attempts"},{"ruleId":"942300","description":"Detects + MySQL comments, conditions and ch(a)r injections"},{"ruleId":"942310","description":"Detects + chained SQL injection attempts 2/2"},{"ruleId":"942320","description":"Detects + MySQL and PostgreSQL stored procedure/function injections"},{"ruleId":"942330","description":"Detects + classic SQL injection probings 1/3"},{"ruleId":"942340","description":"Detects + basic SQL authentication bypass attempts 3/3"},{"ruleId":"942350","description":"Detects + MySQL UDF injection and other data/structure manipulation attempts"},{"ruleId":"942360","description":"Detects + concatenated basic SQL injection and SQLLFI attempts"},{"ruleId":"942361","description":"Detects + basic SQL injection based on keyword alter or union"},{"ruleId":"942370","description":"Detects + classic SQL injection probings 2/3"},{"ruleId":"942380","description":"SQL + Injection Attack"},{"ruleId":"942390","description":"SQL Injection Attack"},{"ruleId":"942400","description":"SQL + Injection Attack"},{"ruleId":"942410","description":"SQL Injection Attack"},{"ruleId":"942430","description":"Restricted + SQL Character Anomaly Detection (args): # of special characters exceeded (12)"},{"ruleId":"942440","description":"SQL + Comment Sequence Detected."},{"ruleId":"942450","description":"SQL Hex Encoding + Identified"},{"ruleId":"942470","description":"SQL Injection Attack"},{"ruleId":"942480","description":"SQL + Injection Attack"}]},{"ruleGroupName":"FIX","description":"Session Fixation + attacks","rules":[{"ruleId":"943100","description":"Possible Session Fixation + Attack: Setting Cookie Values in HTML"},{"ruleId":"943110","description":"Possible + Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer"},{"ruleId":"943120","description":"Possible + Session Fixation Attack: SessionID Parameter Name with No Referer"}]},{"ruleGroupName":"JAVA","description":"Java + attacks","rules":[{"ruleId":"944100","description":"Remote Command Execution: + Suspicious Java class detected"},{"ruleId":"944110","description":"Remote + Command Execution: Java process spawn (CVE-2017-9805)"},{"ruleId":"944120","description":"Remote + Command Execution: Java serialization (CVE-2015-5842)"},{"ruleId":"944130","description":"Suspicious + Java class detected"},{"ruleId":"944200","description":"Magic bytes Detected, + probable java serialization in use"},{"ruleId":"944210","description":"Magic + bytes Detected Base64 Encoded, probable java serialization in use"},{"ruleId":"944240","description":"Remote + Command Execution: Java serialization (CVE-2015-5842)"},{"ruleId":"944250","description":"Remote + Command Execution: Suspicious Java method detected"}]}],"provisioningState":"Succeeded","provisioningStateAsEnum":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '14963' + - '10568' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:01 GMT + - Fri, 19 Feb 2021 11:54:20 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_policy_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_policy_crud.yaml index 390a082b126..d98a965eef3 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_policy_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_cdn_waf_policy_crud.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123'' @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:34 GMT + - Fri, 19 Feb 2021 11:54:17 GMT expires: - '-1' pragma: @@ -60,12 +60,12 @@ interactions: ParameterSetName: - -g --name --redirect-url --tags User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123'' @@ -79,7 +79,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:33 GMT + - Fri, 19 Feb 2021 11:54:18 GMT expires: - '-1' pragma: @@ -113,52 +113,36 @@ interactions: ParameterSetName: - -g --name --redirect-url --tags User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ - :[\r\n \r\n ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\"\ - :\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '907' + - '747' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:38 GMT + - Fri, 19 Feb 2021 11:54:25 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1197' status: code: 201 message: Created @@ -176,54 +160,38 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ - :[\r\n \r\n ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\"\ - :\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '907' + - '747' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:39 GMT + - Fri, 19 Feb 2021 11:54:26 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -241,57 +209,38 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies?api-version=2020-09-01 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"policy123\",\"id\"\ - :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"\ - Detection\",\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"\ - customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n\ - \ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \ - \ \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n\ - \ ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"\ - location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ - \r\n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '1031' + - '759' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:40 GMT + - Fri, 19 Feb 2021 11:54:27 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -309,54 +258,38 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ - :[\r\n \r\n ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\"\ - :\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '907' + - '747' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:42 GMT + - Fri, 19 Feb 2021 11:54:28 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -374,54 +307,38 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ - :[\r\n \r\n ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\"\ - :\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '907' + - '747' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:43 GMT + - Fri, 19 Feb 2021 11:54:29 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -447,59 +364,40 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ - \ },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \"\ - foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"\ - Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1051' + - '843' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:44 GMT + - Fri, 19 Feb 2021 11:54:31 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1198' status: code: 200 message: OK @@ -517,57 +415,38 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ - \ },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \"\ - foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"\ - Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1051' + - '843' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:45 GMT + - Fri, 19 Feb 2021 11:54:31 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -585,57 +464,38 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ - \ },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \"\ - foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"\ - Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1051' + - '843' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:45 GMT + - Fri, 19 Feb 2021 11:54:33 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -653,57 +513,38 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version -n -r -r -r User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ - \ },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \"\ - foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"\ - Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1051' + - '843' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:46 GMT + - Fri, 19 Feb 2021 11:54:34 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -731,65 +572,40 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version -n -r -r -r User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1454' + - '1068' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:49 GMT + - Fri, 19 Feb 2021 11:54:35 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -807,63 +623,38 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1454' + - '1068' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:49 GMT + - Fri, 19 Feb 2021 11:54:36 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -881,63 +672,38 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1454' + - '1068' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:49 GMT + - Fri, 19 Feb 2021 11:54:37 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -955,63 +721,38 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1454' + - '1068' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:51 GMT + - Fri, 19 Feb 2021 11:54:37 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1029,63 +770,38 @@ interactions: ParameterSetName: - -g --policy-name -n --action --priority --match-condition User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n\ - \ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1454' + - '1068' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:52 GMT + - Fri, 19 Feb 2021 11:54:38 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1117,71 +833,40 @@ interactions: ParameterSetName: - -g --policy-name -n --action --priority --match-condition User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"\ - managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ - ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ - \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ - \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ - action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ - :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ - \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ - :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ - \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ - \n },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \"\ - foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"\ - Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1835' + - '1303' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:54 GMT + - Fri, 19 Feb 2021 11:54:40 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1198' status: code: 200 message: OK @@ -1199,69 +884,38 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"\ - managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ - ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ - \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ - \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ - action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ - :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ - \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ - :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ - \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ - \n },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \"\ - foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"\ - Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1835' + - '1303' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:54 GMT + - Fri, 19 Feb 2021 11:54:40 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1279,69 +933,38 @@ interactions: ParameterSetName: - -g --policy-name -n --action --priority -m -m User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\n \"\ - managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\"\ - ,\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n\ - \ \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n {\r\ - \n \"ruleId\":\"942440\",\"enabledState\":\"Enabled\",\"\ - action\":\"Redirect\"\r\n },{\r\n \"ruleId\"\ - :\"942120\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n \ - \ },{\r\n \"ruleId\":\"942100\",\"enabledState\"\ - :\"Disabled\",\"action\":\"Block\"\r\n }\r\n ]\r\ - \n }\r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\ - \n },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \"\ - foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"\ - Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1835' + - '1303' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:56 GMT + - Fri, 19 Feb 2021 11:54:42 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1377,80 +1000,41 @@ interactions: ParameterSetName: - -g --policy-name -n --action --priority -m -m User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"customrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\"\ - :\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \ - \ \"..\"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n },{\r\n \"matchVariable\":\"QueryString\"\ - ,\"selector\":null,\"operator\":\"Contains\",\"negateCondition\":false,\"\ - matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2440' + - '1664' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:58 GMT + - Fri, 19 Feb 2021 11:54:43 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1194' status: code: 200 message: OK @@ -1468,78 +1052,39 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"customrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\"\ - :\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \ - \ \"..\"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n },{\r\n \"matchVariable\":\"QueryString\"\ - ,\"selector\":null,\"operator\":\"Contains\",\"negateCondition\":false,\"\ - matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2440' + - '1664' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:58 GMT + - Fri, 19 Feb 2021 11:54:44 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1557,78 +1102,39 @@ interactions: ParameterSetName: - -g --policy-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"customrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\"\ - :\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \ - \ \"..\"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n },{\r\n \"matchVariable\":\"QueryString\"\ - ,\"selector\":null,\"operator\":\"Contains\",\"negateCondition\":false,\"\ - matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2440' + - '1664' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:59 GMT + - Fri, 19 Feb 2021 11:54:45 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1646,78 +1152,39 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"customrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\"\ - :\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \ - \ \"..\"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n },{\r\n \"matchVariable\":\"QueryString\"\ - ,\"selector\":null,\"operator\":\"Contains\",\"negateCondition\":false,\"\ - matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2440' + - '1664' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:00 GMT + - Fri, 19 Feb 2021 11:54:46 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1735,78 +1202,39 @@ interactions: ParameterSetName: - -g --policy-name -n --action --priority --duration --request-threshold --match-condition User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n \r\n ]\r\n },\"customRules\":{\r\ - \n \"rules\":[\r\n {\r\n \"name\":\"customrule1\",\"\ - enabledState\":\"Enabled\",\"priority\":100,\"matchConditions\":[\r\n \ - \ {\r\n \"matchVariable\":\"RequestMethod\",\"selector\"\ - :null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n\ - \ \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n\ - \ \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"customrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\"\ - :\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \ - \ \"..\"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n },{\r\n \"matchVariable\":\"QueryString\"\ - ,\"selector\":null,\"operator\":\"Contains\",\"negateCondition\":false,\"\ - matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2440' + - '1664' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:00 GMT + - Fri, 19 Feb 2021 11:54:48 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1846,86 +1274,41 @@ interactions: ParameterSetName: - -g --policy-name -n --action --priority --duration --request-threshold --match-condition User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ - ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ - :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ - :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ - GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ - \ }\r\n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n\ - \ {\r\n \"name\":\"customrule1\",\"enabledState\":\"Enabled\"\ - ,\"priority\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\"\ - ,\"negateCondition\":true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n },{\r\n\ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ - :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ - :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ - :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ - \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ - :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ - \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ - \r\n }\r\n ]\r\n }\r\n ],\"\ - anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ - \ \r\n ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\"\ - :\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2880' + - '1958' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:02 GMT + - Fri, 19 Feb 2021 11:54:49 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1196' status: code: 200 message: OK @@ -1943,84 +1326,39 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ - ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ - :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ - :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ - GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ - \ }\r\n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n\ - \ {\r\n \"name\":\"customrule1\",\"enabledState\":\"Enabled\"\ - ,\"priority\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\"\ - ,\"negateCondition\":true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n },{\r\n\ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ - :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ - :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ - :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ - \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ - :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ - \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ - \r\n }\r\n ]\r\n }\r\n ],\"\ - anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ - \ \r\n ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\"\ - :\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2880' + - '1958' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:03 GMT + - Fri, 19 Feb 2021 11:54:50 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2039,84 +1377,39 @@ interactions: - -g --policy-name -n --action --priority --duration --request-threshold -m -m User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ - ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ - :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ - :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ - GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ - \ }\r\n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n\ - \ {\r\n \"name\":\"customrule1\",\"enabledState\":\"Enabled\"\ - ,\"priority\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\"\ - ,\"negateCondition\":true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n },{\r\n\ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\"\ - :\"1.0\",\"ruleGroupOverrides\":[\r\n {\r\n \"ruleGroupName\"\ - :\"SQLI\",\"rules\":[\r\n {\r\n \"ruleId\"\ - :\"942440\",\"enabledState\":\"Enabled\",\"action\":\"Redirect\"\r\n \ - \ },{\r\n \"ruleId\":\"942120\",\"enabledState\"\ - :\"Disabled\",\"action\":\"Block\"\r\n },{\r\n \ - \ \"ruleId\":\"942100\",\"enabledState\":\"Disabled\",\"action\":\"Block\"\ - \r\n }\r\n ]\r\n }\r\n ],\"\ - anomalyScore\":0\r\n }\r\n ]\r\n },\"endpointLinks\":[\r\n\ - \ \r\n ]\r\n },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\"\ - :\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2880' + - '1958' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:05 GMT + - Fri, 19 Feb 2021 11:54:51 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2162,96 +1455,41 @@ interactions: - -g --policy-name -n --action --priority --duration --request-threshold -m -m User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ - ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ - :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ - :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ - GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ - \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ - Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3563' + - '2397' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:06 GMT + - Fri, 19 Feb 2021 11:54:53 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET + - '1197' status: code: 200 message: OK @@ -2269,94 +1507,39 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ - ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ - :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ - :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ - GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ - \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ - Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3563' + - '2397' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:06 GMT + - Fri, 19 Feb 2021 11:54:53 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2374,94 +1557,39 @@ interactions: ParameterSetName: - -g --policy-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ - ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ - :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ - :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ - GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ - \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ - Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3563' + - '2397' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:08 GMT + - Fri, 19 Feb 2021 11:54:54 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2480,94 +1608,39 @@ interactions: - -g --name --sku --mode --block-response-body --block-response-status-code --redirect-url --tags --disabled User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Enabled\",\"mode\":\"Detection\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :null,\"defaultCustomBlockResponseBody\":null\r\n },\"rateLimitRules\"\ - :{\r\n \"rules\":[\r\n {\r\n \"name\":\"ratelimitrule1\"\ - ,\"enabledState\":\"Enabled\",\"priority\":100,\"rateLimitDurationInMinutes\"\ - :1,\"rateLimitThreshold\":100,\"matchConditions\":[\r\n {\r\n \ - \ \"matchVariable\":\"RequestMethod\",\"selector\":null,\"operator\"\ - :\"Equal\",\"negateCondition\":true,\"matchValue\":[\r\n \"\ - GET\",\"HEAD\"\r\n ],\"transforms\":[\r\n \r\n\ - \ ]\r\n }\r\n ],\"action\":\"Block\"\r\n\ - \ },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\":\"\ - Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \"foo\":\"bar\"\r\n },\"location\":\"Global\",\"sku\"\ - :{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{"foo":"bar"},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Enabled","mode":"Detection","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":null,"defaultCustomBlockResponseBody":null},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3563' + - '2397' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:08 GMT + - Fri, 19 Feb 2021 11:54:55 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2615,96 +1688,41 @@ interactions: - -g --name --sku --mode --block-response-body --block-response-status-code --redirect-url --tags --disabled User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3603' + - '2437' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:10 GMT + - Fri, 19 Feb 2021 11:55:00 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET + - '1195' status: code: 200 message: OK @@ -2722,94 +1740,39 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3603' + - '2437' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:12 GMT + - Fri, 19 Feb 2021 11:55:01 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2827,94 +1790,39 @@ interactions: ParameterSetName: - -y -g --policy-name --rule-set-type --rule-set-version -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n\ - \ {\r\n \"ruleId\":\"942440\",\"enabledState\"\ - :\"Enabled\",\"action\":\"Redirect\"\r\n },{\r\n \ - \ \"ruleId\":\"942120\",\"enabledState\":\"Disabled\",\"action\":\"\ - Block\"\r\n },{\r\n \"ruleId\":\"942100\"\ - ,\"enabledState\":\"Disabled\",\"action\":\"Block\"\r\n }\r\ - \n ]\r\n }\r\n ],\"anomalyScore\":0\r\n \ - \ }\r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n \ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[{"ruleGroupName":"SQLI","rules":[{"ruleId":"942440","enabledState":"Enabled","action":"Redirect"},{"ruleId":"942120","enabledState":"Disabled","action":"Block"},{"ruleId":"942100","enabledState":"Disabled","action":"Block"}]}]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3603' + - '2437' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:13 GMT + - Fri, 19 Feb 2021 11:55:02 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2958,90 +1866,41 @@ interactions: ParameterSetName: - -y -g --policy-name --rule-set-type --rule-set-version -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ - \ },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \r\n\ - \ },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ - \r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3200' + - '2212' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:14 GMT + - Fri, 19 Feb 2021 11:55:03 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1198' status: code: 200 message: OK @@ -3059,88 +1918,39 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ - \ },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \r\n\ - \ },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ - \r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3200' + - '2212' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:15 GMT + - Fri, 19 Feb 2021 11:55:05 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3158,88 +1968,39 @@ interactions: ParameterSetName: - -y -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"\ - DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n \ - \ \r\n ],\"anomalyScore\":0\r\n }\r\n ]\r\n\ - \ },\"endpointLinks\":[\r\n \r\n ]\r\n },\"tags\":{\r\n \r\n\ - \ },\"location\":\"Global\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\ - \r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[{"ruleSetType":"DefaultRuleSet","ruleSetVersion":"1.0","anomalyScore":0,"ruleGroupOverrides":[]}]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3200' + - '2212' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:16 GMT + - Fri, 19 Feb 2021 11:55:05 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3282,87 +2043,41 @@ interactions: ParameterSetName: - -y -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ - :[\r\n \r\n ]\r\n },\"tags\":{\r\n \r\n },\"location\":\"Global\"\ - ,\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3056' + - '2116' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:18 GMT + - Fri, 19 Feb 2021 11:55:07 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1195' status: code: 200 message: OK @@ -3380,85 +2095,39 @@ interactions: ParameterSetName: - -g --policy-name --rule-set-type --rule-set-version User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ - :[\r\n \r\n ]\r\n },\"tags\":{\r\n \r\n },\"location\":\"Global\"\ - ,\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3056' + - '2116' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:19 GMT + - Fri, 19 Feb 2021 11:55:08 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3476,85 +2145,39 @@ interactions: ParameterSetName: - -y -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :true,\"matchValue\":[\r\n \"GET\",\"HEAD\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n \ - \ }\r\n ],\"action\":\"Block\"\r\n },{\r\n \"\ - name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\":200,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestUri\",\"selector\"\ - :null,\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\r\ - \n \"..\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"QueryString\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \" \"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n }\r\n ],\"\ - action\":\"Redirect\"\r\n }\r\n ]\r\n },\"managedRules\":{\r\ - \n \"managedRuleSets\":[\r\n \r\n ]\r\n },\"endpointLinks\"\ - :[\r\n \r\n ]\r\n },\"tags\":{\r\n \r\n },\"location\":\"Global\"\ - ,\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '3056' + - '2116' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:20 GMT + - Fri, 19 Feb 2021 11:55:09 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3594,82 +2217,41 @@ interactions: ParameterSetName: - -y -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2674' + - '1880' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:21 GMT + - Fri, 19 Feb 2021 11:55:10 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1195' status: code: 200 message: OK @@ -3687,80 +2269,39 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2674' + - '1880' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:22 GMT + - Fri, 19 Feb 2021 11:55:11 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3778,80 +2319,39 @@ interactions: ParameterSetName: - -y -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule1\",\"enabledState\":\"Enabled\",\"priority\"\ - :100,\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":true,\"matchValue\"\ - :[\r\n \"GET\",\"HEAD\"\r\n ],\"transforms\":[\r\ - \n \r\n ]\r\n }\r\n ],\"action\"\ - :\"Block\"\r\n },{\r\n \"name\":\"ratelimitrule2\",\"enabledState\"\ - :\"Enabled\",\"priority\":200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\"\ - :100,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestMethod\",\"selector\":null,\"operator\":\"Equal\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"PUT\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"RequestUri\",\"selector\":null,\"operator\":\"Contains\"\ - ,\"negateCondition\":false,\"matchValue\":[\r\n \"/expensive/resource/\"\ - \r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n }\r\ - \n ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n\ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":1,"rateLimitThreshold":100,"name":"ratelimitrule1","enabledState":"Enabled","priority":100,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":true,"matchValue":["GET","HEAD"],"transforms":[]}],"action":"Block"},{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2674' + - '1880' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:23 GMT + - Fri, 19 Feb 2021 11:55:12 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3887,76 +2387,41 @@ interactions: ParameterSetName: - -y -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":false,\"matchValue\"\ - :[\r\n \"PUT\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"/expensive/resource/\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n\ - \ }\r\n ],\"action\":\"Redirect\"\r\n }\r\n \ - \ ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2233' + - '1585' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:25 GMT + - Fri, 19 Feb 2021 11:55:13 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET + - '1197' status: code: 200 message: OK @@ -3974,74 +2439,39 @@ interactions: ParameterSetName: - -g --policy-name -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"policy123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123\"\ - ,\"type\":\"Microsoft.Cdn/cdnwebapplicationfirewallpolicies\",\"properties\"\ - :{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"\ - ,\"policySettings\":{\r\n \"enabledState\":\"Disabled\",\"mode\":\"Prevention\"\ - ,\"defaultRedirectUrl\":\"https://example.com\",\"defaultCustomBlockResponseStatusCode\"\ - :429,\"defaultCustomBlockResponseBody\":\"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4=\"\ - \r\n },\"rateLimitRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"ratelimitrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"rateLimitDurationInMinutes\":5,\"rateLimitThreshold\":100,\"matchConditions\"\ - :[\r\n {\r\n \"matchVariable\":\"RequestMethod\",\"\ - selector\":null,\"operator\":\"Equal\",\"negateCondition\":false,\"matchValue\"\ - :[\r\n \"PUT\"\r\n ],\"transforms\":[\r\n \ - \ \r\n ]\r\n },{\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"/expensive/resource/\"\r\n \ - \ ],\"transforms\":[\r\n \r\n ]\r\n\ - \ }\r\n ],\"action\":\"Redirect\"\r\n }\r\n \ - \ ]\r\n },\"customRules\":{\r\n \"rules\":[\r\n {\r\n \ - \ \"name\":\"customrule2\",\"enabledState\":\"Enabled\",\"priority\"\ - :200,\"matchConditions\":[\r\n {\r\n \"matchVariable\"\ - :\"RequestUri\",\"selector\":null,\"operator\":\"Contains\",\"negateCondition\"\ - :false,\"matchValue\":[\r\n \"..\"\r\n ],\"transforms\"\ - :[\r\n \r\n ]\r\n },{\r\n \ - \ \"matchVariable\":\"QueryString\",\"selector\":null,\"operator\":\"\ - Contains\",\"negateCondition\":false,\"matchValue\":[\r\n \"\ - \ \"\r\n ],\"transforms\":[\r\n \r\n \ - \ ]\r\n }\r\n ],\"action\":\"Redirect\"\r\n \ - \ }\r\n ]\r\n },\"managedRules\":{\r\n \"managedRuleSets\":[\r\ - \n \r\n ]\r\n },\"endpointLinks\":[\r\n \r\n ]\r\n\ - \ },\"tags\":{\r\n \r\n },\"location\":\"Global\",\"sku\":{\r\n \"\ - name\":\"Standard_Microsoft\"\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/cdnwebapplicationfirewallpolicies/policy123","type":"Microsoft.Cdn/cdnwebapplicationfirewallpolicies","name":"policy123","location":"Global","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"policySettings":{"enabledState":"Disabled","mode":"Prevention","defaultRedirectUrl":"https://example.com","defaultCustomBlockResponseStatusCode":429,"defaultCustomBlockResponseBody":"PGh0bWw+PGJvZHk+ZXhhbXBsZSBib2R5PC9ib2R5PjwvaHRtbD4="},"customRules":{"rules":[{"name":"customrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[".."],"transforms":[]},{"matchVariable":"QueryString","selector":null,"operator":"Contains","negateCondition":false,"matchValue":[" + "],"transforms":[]}],"action":"Redirect"}]},"rateLimitRules":{"rules":[{"rateLimitDurationInMinutes":5,"rateLimitThreshold":100,"name":"ratelimitrule2","enabledState":"Enabled","priority":200,"matchConditions":[{"matchVariable":"RequestMethod","selector":null,"operator":"Equal","negateCondition":false,"matchValue":["PUT"],"transforms":[]},{"matchVariable":"RequestUri","selector":null,"operator":"Contains","negateCondition":false,"matchValue":["/expensive/resource/"],"transforms":[]}],"action":"Redirect"}]},"managedRules":{"managedRuleSets":[]},"endpointLinks":[],"resourceState":"Enabled","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2233' + - '1585' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:26 GMT + - Fri, 19 Feb 2021 11:55:13 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -4061,12 +2491,12 @@ interactions: ParameterSetName: - -y -g -n User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/policy123?api-version=2020-09-01 response: body: string: '' @@ -4074,23 +2504,19 @@ interactions: cache-control: - no-cache date: - - Wed, 18 Nov 2020 22:30:29 GMT + - Fri, 19 Feb 2021 11:55:19 GMT expires: - '-1' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-powered-by: - - ASP.NET + - '14998' status: code: 204 message: No Content diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml index 2c6315426dd..cc194e9d44c 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_edge_node_crud.yaml @@ -11,12 +11,12 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/providers/Microsoft.Cdn/edgenodes?api-version=2020-04-15 + uri: https://management.azure.com/providers/Microsoft.Cdn/edgenodes?api-version=2020-09-01 response: body: string: '{"value":[{"id":"/providers/Microsoft.Cdn/edgenodes/Standard_Verizon","type":"Microsoft.Cdn/edgenodes","name":"Standard_Verizon","properties":{"ipAddressGroups":[{"deliveryRegion":"All","ipv4Addresses":[{"baseIpAddress":"5.104.64.0","prefixLength":21},{"baseIpAddress":"46.22.64.0","prefixLength":20},{"baseIpAddress":"61.221.181.64","prefixLength":26},{"baseIpAddress":"68.232.32.0","prefixLength":20},{"baseIpAddress":"72.21.80.0","prefixLength":20},{"baseIpAddress":"88.194.45.128","prefixLength":26},{"baseIpAddress":"93.184.208.0","prefixLength":20},{"baseIpAddress":"101.226.203.0","prefixLength":24},{"baseIpAddress":"108.161.240.0","prefixLength":20},{"baseIpAddress":"110.232.176.0","prefixLength":22},{"baseIpAddress":"117.18.232.0","prefixLength":21},{"baseIpAddress":"117.103.183.0","prefixLength":24},{"baseIpAddress":"120.132.137.0","prefixLength":25},{"baseIpAddress":"121.156.59.224","prefixLength":27},{"baseIpAddress":"121.189.46.0","prefixLength":23},{"baseIpAddress":"152.195.0.0","prefixLength":16},{"baseIpAddress":"180.240.184.0","prefixLength":24},{"baseIpAddress":"192.16.0.0","prefixLength":18},{"baseIpAddress":"192.30.0.0","prefixLength":19},{"baseIpAddress":"192.229.128.0","prefixLength":17},{"baseIpAddress":"194.255.210.64","prefixLength":26},{"baseIpAddress":"198.7.16.0","prefixLength":20},{"baseIpAddress":"203.74.4.64","prefixLength":26},{"baseIpAddress":"213.64.234.0","prefixLength":26},{"baseIpAddress":"213.65.58.0","prefixLength":24},{"baseIpAddress":"68.140.206.0","prefixLength":23},{"baseIpAddress":"68.130.0.0","prefixLength":17},{"baseIpAddress":"152.190.247.0","prefixLength":24},{"baseIpAddress":"65.222.137.0","prefixLength":26},{"baseIpAddress":"65.222.145.128","prefixLength":26},{"baseIpAddress":"65.198.79.64","prefixLength":26},{"baseIpAddress":"65.199.146.192","prefixLength":26},{"baseIpAddress":"65.200.151.160","prefixLength":27},{"baseIpAddress":"65.200.157.192","prefixLength":27},{"baseIpAddress":"68.130.128.0","prefixLength":24},{"baseIpAddress":"68.130.136.0","prefixLength":21},{"baseIpAddress":"65.200.46.128","prefixLength":26},{"baseIpAddress":"213.175.80.0","prefixLength":24},{"baseIpAddress":"152.199.0.0","prefixLength":16},{"baseIpAddress":"36.67.255.152","prefixLength":29},{"baseIpAddress":"194.255.242.160","prefixLength":27},{"baseIpAddress":"195.67.219.64","prefixLength":27},{"baseIpAddress":"88.194.47.224","prefixLength":27},{"baseIpAddress":"203.66.205.0","prefixLength":24},{"baseIpAddress":"110.164.36.0","prefixLength":24},{"baseIpAddress":"119.46.85.0","prefixLength":24},{"baseIpAddress":"49.231.126.0","prefixLength":24},{"baseIpAddress":"136.228.144.0","prefixLength":24}],"ipv6Addresses":[{"baseIpAddress":"2001:2011:c002::","prefixLength":48},{"baseIpAddress":"2001:2040:c006::","prefixLength":48},{"baseIpAddress":"2001:2060:bffb::","prefixLength":48},{"baseIpAddress":"2001:b032:c101::","prefixLength":48},{"baseIpAddress":"2405:8f00:edca::","prefixLength":48},{"baseIpAddress":"2405:8f00:edcb::","prefixLength":48},{"baseIpAddress":"2606:2800::","prefixLength":32},{"baseIpAddress":"2600:40ff:fffb::","prefixLength":56},{"baseIpAddress":"2a02:16d8:103::","prefixLength":48},{"baseIpAddress":"2600:40fc::","prefixLength":32},{"baseIpAddress":"2403:6200:ffff:ffa1::","prefixLength":64},{"baseIpAddress":"2001:fb0:109f:8005::","prefixLength":64},{"baseIpAddress":"2405:9800:61:1::","prefixLength":64},{"baseIpAddress":"2404:b300:33:1::","prefixLength":64}]}]}},{"id":"/providers/Microsoft.Cdn/edgenodes/Premium_Verizon","type":"Microsoft.Cdn/edgenodes","name":"Premium_Verizon","properties":{"ipAddressGroups":[{"deliveryRegion":"All","ipv4Addresses":[{"baseIpAddress":"5.104.64.0","prefixLength":21},{"baseIpAddress":"46.22.64.0","prefixLength":20},{"baseIpAddress":"61.221.181.64","prefixLength":26},{"baseIpAddress":"68.232.32.0","prefixLength":20},{"baseIpAddress":"72.21.80.0","prefixLength":20},{"baseIpAddress":"88.194.45.128","prefixLength":26},{"baseIpAddress":"93.184.208.0","prefixLength":20},{"baseIpAddress":"101.226.203.0","prefixLength":24},{"baseIpAddress":"108.161.240.0","prefixLength":20},{"baseIpAddress":"110.232.176.0","prefixLength":22},{"baseIpAddress":"117.18.232.0","prefixLength":21},{"baseIpAddress":"117.103.183.0","prefixLength":24},{"baseIpAddress":"120.132.137.0","prefixLength":25},{"baseIpAddress":"121.156.59.224","prefixLength":27},{"baseIpAddress":"121.189.46.0","prefixLength":23},{"baseIpAddress":"152.195.0.0","prefixLength":16},{"baseIpAddress":"180.240.184.0","prefixLength":24},{"baseIpAddress":"192.16.0.0","prefixLength":18},{"baseIpAddress":"192.30.0.0","prefixLength":19},{"baseIpAddress":"192.229.128.0","prefixLength":17},{"baseIpAddress":"194.255.210.64","prefixLength":26},{"baseIpAddress":"198.7.16.0","prefixLength":20},{"baseIpAddress":"203.74.4.64","prefixLength":26},{"baseIpAddress":"213.64.234.0","prefixLength":26},{"baseIpAddress":"213.65.58.0","prefixLength":24},{"baseIpAddress":"68.140.206.0","prefixLength":23},{"baseIpAddress":"68.130.0.0","prefixLength":17},{"baseIpAddress":"152.190.247.0","prefixLength":24},{"baseIpAddress":"65.222.137.0","prefixLength":26},{"baseIpAddress":"65.222.145.128","prefixLength":26},{"baseIpAddress":"65.198.79.64","prefixLength":26},{"baseIpAddress":"65.199.146.192","prefixLength":26},{"baseIpAddress":"65.200.151.160","prefixLength":27},{"baseIpAddress":"65.200.157.192","prefixLength":27},{"baseIpAddress":"68.130.128.0","prefixLength":24},{"baseIpAddress":"68.130.136.0","prefixLength":21},{"baseIpAddress":"65.200.46.128","prefixLength":26},{"baseIpAddress":"213.175.80.0","prefixLength":24},{"baseIpAddress":"152.199.0.0","prefixLength":16},{"baseIpAddress":"36.67.255.152","prefixLength":29},{"baseIpAddress":"194.255.242.160","prefixLength":27},{"baseIpAddress":"195.67.219.64","prefixLength":27},{"baseIpAddress":"88.194.47.224","prefixLength":27},{"baseIpAddress":"203.66.205.0","prefixLength":24},{"baseIpAddress":"110.164.36.0","prefixLength":24},{"baseIpAddress":"119.46.85.0","prefixLength":24},{"baseIpAddress":"49.231.126.0","prefixLength":24},{"baseIpAddress":"136.228.144.0","prefixLength":24}],"ipv6Addresses":[{"baseIpAddress":"2001:2011:c002::","prefixLength":48},{"baseIpAddress":"2001:2040:c006::","prefixLength":48},{"baseIpAddress":"2001:2060:bffb::","prefixLength":48},{"baseIpAddress":"2001:b032:c101::","prefixLength":48},{"baseIpAddress":"2405:8f00:edca::","prefixLength":48},{"baseIpAddress":"2405:8f00:edcb::","prefixLength":48},{"baseIpAddress":"2606:2800::","prefixLength":32},{"baseIpAddress":"2600:40ff:fffb::","prefixLength":56},{"baseIpAddress":"2a02:16d8:103::","prefixLength":48},{"baseIpAddress":"2600:40fc::","prefixLength":32},{"baseIpAddress":"2403:6200:ffff:ffa1::","prefixLength":64},{"baseIpAddress":"2001:fb0:109f:8005::","prefixLength":64},{"baseIpAddress":"2405:9800:61:1::","prefixLength":64},{"baseIpAddress":"2404:b300:33:1::","prefixLength":64}]}]}},{"id":"/providers/Microsoft.Cdn/edgenodes/Custom_Verizon","type":"Microsoft.Cdn/edgenodes","name":"Custom_Verizon","properties":{"ipAddressGroups":[{"deliveryRegion":"All","ipv4Addresses":[{"baseIpAddress":"5.104.64.0","prefixLength":21},{"baseIpAddress":"46.22.64.0","prefixLength":20},{"baseIpAddress":"61.221.181.64","prefixLength":26},{"baseIpAddress":"68.232.32.0","prefixLength":20},{"baseIpAddress":"72.21.80.0","prefixLength":20},{"baseIpAddress":"88.194.45.128","prefixLength":26},{"baseIpAddress":"93.184.208.0","prefixLength":20},{"baseIpAddress":"101.226.203.0","prefixLength":24},{"baseIpAddress":"108.161.240.0","prefixLength":20},{"baseIpAddress":"110.232.176.0","prefixLength":22},{"baseIpAddress":"117.18.232.0","prefixLength":21},{"baseIpAddress":"117.103.183.0","prefixLength":24},{"baseIpAddress":"120.132.137.0","prefixLength":25},{"baseIpAddress":"121.156.59.224","prefixLength":27},{"baseIpAddress":"121.189.46.0","prefixLength":23},{"baseIpAddress":"152.195.0.0","prefixLength":16},{"baseIpAddress":"180.240.184.0","prefixLength":24},{"baseIpAddress":"192.16.0.0","prefixLength":18},{"baseIpAddress":"192.30.0.0","prefixLength":19},{"baseIpAddress":"192.229.128.0","prefixLength":17},{"baseIpAddress":"194.255.210.64","prefixLength":26},{"baseIpAddress":"198.7.16.0","prefixLength":20},{"baseIpAddress":"203.74.4.64","prefixLength":26},{"baseIpAddress":"213.64.234.0","prefixLength":26},{"baseIpAddress":"213.65.58.0","prefixLength":24},{"baseIpAddress":"68.140.206.0","prefixLength":23},{"baseIpAddress":"68.130.0.0","prefixLength":17},{"baseIpAddress":"152.190.247.0","prefixLength":24},{"baseIpAddress":"65.222.137.0","prefixLength":26},{"baseIpAddress":"65.222.145.128","prefixLength":26},{"baseIpAddress":"65.198.79.64","prefixLength":26},{"baseIpAddress":"65.199.146.192","prefixLength":26},{"baseIpAddress":"65.200.151.160","prefixLength":27},{"baseIpAddress":"65.200.157.192","prefixLength":27},{"baseIpAddress":"68.130.128.0","prefixLength":24},{"baseIpAddress":"68.130.136.0","prefixLength":21},{"baseIpAddress":"65.200.46.128","prefixLength":26},{"baseIpAddress":"213.175.80.0","prefixLength":24},{"baseIpAddress":"152.199.0.0","prefixLength":16},{"baseIpAddress":"36.67.255.152","prefixLength":29},{"baseIpAddress":"194.255.242.160","prefixLength":27},{"baseIpAddress":"195.67.219.64","prefixLength":27},{"baseIpAddress":"88.194.47.224","prefixLength":27},{"baseIpAddress":"203.66.205.0","prefixLength":24},{"baseIpAddress":"110.164.36.0","prefixLength":24},{"baseIpAddress":"119.46.85.0","prefixLength":24},{"baseIpAddress":"49.231.126.0","prefixLength":24},{"baseIpAddress":"136.228.144.0","prefixLength":24}],"ipv6Addresses":[{"baseIpAddress":"2001:2011:c002::","prefixLength":48},{"baseIpAddress":"2001:2040:c006::","prefixLength":48},{"baseIpAddress":"2001:2060:bffb::","prefixLength":48},{"baseIpAddress":"2001:b032:c101::","prefixLength":48},{"baseIpAddress":"2405:8f00:edca::","prefixLength":48},{"baseIpAddress":"2405:8f00:edcb::","prefixLength":48},{"baseIpAddress":"2606:2800::","prefixLength":32},{"baseIpAddress":"2600:40ff:fffb::","prefixLength":56},{"baseIpAddress":"2a02:16d8:103::","prefixLength":48},{"baseIpAddress":"2600:40fc::","prefixLength":32},{"baseIpAddress":"2403:6200:ffff:ffa1::","prefixLength":64},{"baseIpAddress":"2001:fb0:109f:8005::","prefixLength":64},{"baseIpAddress":"2405:9800:61:1::","prefixLength":64},{"baseIpAddress":"2404:b300:33:1::","prefixLength":64}]}]}}]}' @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:35 GMT + - Fri, 19 Feb 2021 11:53:16 GMT expires: - '-1' pragma: 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 0c32e1d98b8..66e8fabe8b1 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_crud.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:09 GMT + - Fri, 19 Feb 2021 12:30:46 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:50:07Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:10 GMT + - Fri, 19 Feb 2021 12:30:47 GMT expires: - '-1' pragma: @@ -109,26 +109,26 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/b85b6c12-835e-4c61-b526-192aceca318e?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b08601e2-a014-411e-90db-364f47c3aadc?api-version=2020-09-01 cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:13 GMT + - Fri, 19 Feb 2021 12:30:56 GMT expires: - '-1' pragma: @@ -158,10 +158,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b85b6c12-835e-4c61-b526-192aceca318e?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b08601e2-a014-411e-90db-364f47c3aadc?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -173,7 +173,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:24 GMT + - Fri, 19 Feb 2021 12:31:10 GMT expires: - '-1' pragma: @@ -205,22 +205,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:24 GMT + - Fri, 19 Feb 2021 12:31:16 GMT expires: - '-1' pragma: @@ -254,12 +254,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"value":[]}' @@ -271,7 +271,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:25 GMT + - Fri, 19 Feb 2021 12:31:18 GMT expires: - '-1' pragma: @@ -305,15 +305,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:50:07Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -322,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:26 GMT + - Fri, 19 Feb 2021 12:31:18 GMT expires: - '-1' pragma: @@ -356,18 +356,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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/553013d9-cc7b-4863-abce-d31bc717099c?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9aec5f41-33cc-4a3a-97b5-8d869ec57fe5?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -375,7 +375,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:30 GMT + - Fri, 19 Feb 2021 12:31:24 GMT expires: - '-1' pragma: @@ -387,7 +387,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 201 message: Created @@ -405,10 +405,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/553013d9-cc7b-4863-abce-d31bc717099c?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/9aec5f41-33cc-4a3a-97b5-8d869ec57fe5?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -420,7 +420,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:40 GMT + - Fri, 19 Feb 2021 12:31:34 GMT expires: - '-1' pragma: @@ -452,10 +452,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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"}}' @@ -467,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:41 GMT + - Fri, 19 Feb 2021 12:31:34 GMT expires: - '-1' pragma: @@ -501,12 +501,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"value":[{"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":"Running","provisioningState":"Succeeded"}}]}' @@ -518,7 +518,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:42 GMT + - Fri, 19 Feb 2021 12:31:35 GMT expires: - '-1' pragma: @@ -534,7 +534,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -552,12 +552,12 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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"}}' @@ -569,7 +569,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:43 GMT + - Fri, 19 Feb 2021 12:31:36 GMT expires: - '-1' pragma: @@ -610,18 +610,18 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":["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/59e93751-e3e8-4430-a828-e82dc54d2ae3?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ac0f605f-6d0b-4e4a-bc8e-53e3ef253124?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -629,11 +629,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:44 GMT + - Fri, 19 Feb 2021 12:31:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/59e93751-e3e8-4430-a828-e82dc54d2ae3/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ac0f605f-6d0b-4e4a-bc8e-53e3ef253124/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -661,10 +661,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/59e93751-e3e8-4430-a828-e82dc54d2ae3?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ac0f605f-6d0b-4e4a-bc8e-53e3ef253124?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -676,7 +676,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:55 GMT + - Fri, 19 Feb 2021 12:31:51 GMT expires: - '-1' pragma: @@ -708,10 +708,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":["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"}}' @@ -723,7 +723,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:55 GMT + - Fri, 19 Feb 2021 12:31:51 GMT expires: - '-1' pragma: @@ -757,12 +757,12 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":["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"}}' @@ -774,7 +774,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:56 GMT + - Fri, 19 Feb 2021 12:31:52 GMT expires: - '-1' pragma: @@ -790,7 +790,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -815,18 +815,18 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":["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/26afcac4-1ec6-4c14-b1b1-4091b7f60eb5?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/80b459cc-4956-400e-a980-cff308020689?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -834,11 +834,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:50:58 GMT + - Fri, 19 Feb 2021 12:31:55 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/26afcac4-1ec6-4c14-b1b1-4091b7f60eb5/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/80b459cc-4956-400e-a980-cff308020689/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -848,7 +848,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 202 message: Accepted @@ -866,10 +866,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/26afcac4-1ec6-4c14-b1b1-4091b7f60eb5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/80b459cc-4956-400e-a980-cff308020689?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -881,7 +881,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:51:09 GMT + - Fri, 19 Feb 2021 12:32:06 GMT expires: - '-1' pragma: @@ -913,10 +913,10 @@ interactions: ParameterSetName: - -g -n --profile-name --no-http --no-https --enable-compression User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":["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"}}' @@ -928,7 +928,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:51:09 GMT + - Fri, 19 Feb 2021 12:32:06 GMT expires: - '-1' pragma: @@ -964,28 +964,28 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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/83fae309-432d-4c16-bdcd-c2e235196f81?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2732b029-eebd-4087-969c-9aac3e555d68?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 18 Dec 2020 18:51:11 GMT + - Fri, 19 Feb 2021 12:32:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83fae309-432d-4c16-bdcd-c2e235196f81/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2732b029-eebd-4087-969c-9aac3e555d68/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1013,10 +1013,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83fae309-432d-4c16-bdcd-c2e235196f81?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2732b029-eebd-4087-969c-9aac3e555d68?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1028,7 +1028,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:51:21 GMT + - Fri, 19 Feb 2021 12:32:19 GMT expires: - '-1' pragma: @@ -1060,10 +1060,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83fae309-432d-4c16-bdcd-c2e235196f81?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2732b029-eebd-4087-969c-9aac3e555d68?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1075,7 +1075,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:51:52 GMT + - Fri, 19 Feb 2021 12:32:50 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 c845de5365c..4e427550024 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_different_profiles.yaml @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:51:54Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:51:56 GMT + - Fri, 19 Feb 2021 12:30:45 GMT expires: - '-1' pragma: @@ -62,26 +62,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile?api-version=2020-09-01 response: body: - 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/70af2647-2b72-474d-b586-d49a452918b7?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8416058a-1c8a-4cd2-bd00-5cd006283067?api-version=2020-09-01 cache-control: - no-cache content-length: - - '409' + - '422' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:51:59 GMT + - Fri, 19 Feb 2021 12:30:55 GMT expires: - '-1' pragma: @@ -111,10 +111,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/70af2647-2b72-474d-b586-d49a452918b7?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8416058a-1c8a-4cd2-bd00-5cd006283067?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -126,7 +126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:09 GMT + - Fri, 19 Feb 2021 12:31:06 GMT expires: - '-1' pragma: @@ -158,22 +158,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile?api-version=2020-09-01 response: body: - 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '408' + - '421' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:10 GMT + - Fri, 19 Feb 2021 12:31:07 GMT expires: - '-1' pragma: @@ -207,15 +207,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:51:54Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -224,7 +224,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:11 GMT + - Fri, 19 Feb 2021 12:31:07 GMT expires: - '-1' pragma: @@ -258,18 +258,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2020-09-01 response: body: 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/94d05d65-fb55-47dd-aeab-bcf22211e5d0?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/11acbc84-362f-4b61-bf32-25f2fef486c1?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:15 GMT + - Fri, 19 Feb 2021 12:31:15 GMT expires: - '-1' pragma: @@ -289,7 +289,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 201 message: Created @@ -307,10 +307,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/94d05d65-fb55-47dd-aeab-bcf22211e5d0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/11acbc84-362f-4b61-bf32-25f2fef486c1?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -322,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:25 GMT + - Fri, 19 Feb 2021 12:31:26 GMT expires: - '-1' pragma: @@ -354,10 +354,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Akamai-profile/endpoints/endpoint000002?api-version=2020-09-01 response: body: 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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -369,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:26 GMT + - Fri, 19 Feb 2021 12:31:27 GMT expires: - '-1' pragma: @@ -403,15 +403,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:51:54Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -420,7 +420,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:27 GMT + - Fri, 19 Feb 2021 12:31:27 GMT expires: - '-1' pragma: @@ -452,26 +452,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile?api-version=2020-09-01 response: body: - 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","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/e085fb10-817b-488a-a53d-cea522378bd9?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/16632f17-5aa0-4c54-a4c9-d06b7a74e1bc?api-version=2020-09-01 cache-control: - no-cache content-length: - - '412' + - '425' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:30 GMT + - Fri, 19 Feb 2021 12:31:34 GMT expires: - '-1' pragma: @@ -483,7 +483,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '23' status: code: 201 message: Created @@ -501,10 +501,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e085fb10-817b-488a-a53d-cea522378bd9?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/16632f17-5aa0-4c54-a4c9-d06b7a74e1bc?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -516,7 +516,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:52:40 GMT + - Fri, 19 Feb 2021 12:31:44 GMT expires: - '-1' pragma: @@ -548,10 +548,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e085fb10-817b-488a-a53d-cea522378bd9?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/16632f17-5aa0-4c54-a4c9-d06b7a74e1bc?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -563,7 +563,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:53:11 GMT + - Fri, 19 Feb 2021 12:32:14 GMT expires: - '-1' pragma: @@ -595,10 +595,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/e085fb10-817b-488a-a53d-cea522378bd9?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/16632f17-5aa0-4c54-a4c9-d06b7a74e1bc?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -610,7 +610,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:53:41 GMT + - Fri, 19 Feb 2021 12:32:45 GMT expires: - '-1' pragma: @@ -642,22 +642,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile?api-version=2020-09-01 response: body: - 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","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '411' + - '424' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:53:41 GMT + - Fri, 19 Feb 2021 12:32:46 GMT expires: - '-1' pragma: @@ -673,7 +673,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -691,15 +691,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:51:54Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -708,7 +708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:53:43 GMT + - Fri, 19 Feb 2021 12:32:47 GMT expires: - '-1' pragma: @@ -742,18 +742,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2020-09-01 response: body: 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/db33c968-ac44-43ea-87c8-c9aa16de8ba1?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3d54dae5-993b-48c5-9697-67b875e846b7?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -761,7 +761,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:53:46 GMT + - Fri, 19 Feb 2021 12:32:55 GMT expires: - '-1' pragma: @@ -791,57 +791,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db33c968-ac44-43ea-87c8-c9aa16de8ba1?api-version=2020-04-15 - 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, 18 Dec 2020 18:53: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint create - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --origin - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/db33c968-ac44-43ea-87c8-c9aa16de8ba1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3d54dae5-993b-48c5-9697-67b875e846b7?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -853,7 +806,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:54:26 GMT + - Fri, 19 Feb 2021 12:33:05 GMT expires: - '-1' pragma: @@ -885,10 +838,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Standard-Verizon-profile/endpoints/endpoint000003?api-version=2020-09-01 response: body: 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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -900,7 +853,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:54:27 GMT + - Fri, 19 Feb 2021 12:33:05 GMT expires: - '-1' pragma: @@ -916,7 +869,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -934,15 +887,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:51:54Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -951,7 +904,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:54:28 GMT + - Fri, 19 Feb 2021 12:33:08 GMT expires: - '-1' pragma: @@ -983,26 +936,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile?api-version=2020-09-01 response: body: - 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","tags":{},"sku":{"name":"Premium_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/31b3715e-9704-40ea-bce4-4188e5a70678?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/60009595-6cb2-455c-a3ee-cf8362cb85bd?api-version=2020-09-01 cache-control: - no-cache content-length: - - '409' + - '422' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:54:32 GMT + - Fri, 19 Feb 2021 12:33:15 GMT expires: - '-1' pragma: @@ -1032,10 +985,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/31b3715e-9704-40ea-bce4-4188e5a70678?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/60009595-6cb2-455c-a3ee-cf8362cb85bd?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1047,7 +1000,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:54:42 GMT + - Fri, 19 Feb 2021 12:33:25 GMT expires: - '-1' pragma: @@ -1079,10 +1032,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/31b3715e-9704-40ea-bce4-4188e5a70678?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/60009595-6cb2-455c-a3ee-cf8362cb85bd?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1094,7 +1047,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:55:13 GMT + - Fri, 19 Feb 2021 12:33:57 GMT expires: - '-1' pragma: @@ -1126,10 +1079,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/31b3715e-9704-40ea-bce4-4188e5a70678?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/60009595-6cb2-455c-a3ee-cf8362cb85bd?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1141,7 +1094,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:55:43 GMT + - Fri, 19 Feb 2021 12:34:27 GMT expires: - '-1' pragma: @@ -1173,10 +1126,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/31b3715e-9704-40ea-bce4-4188e5a70678?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/60009595-6cb2-455c-a3ee-cf8362cb85bd?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1188,7 +1141,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:56:14 GMT + - Fri, 19 Feb 2021 12:34:57 GMT expires: - '-1' pragma: @@ -1220,57 +1173,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/31b3715e-9704-40ea-bce4-4188e5a70678?api-version=2020-04-15 - 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, 18 Dec 2020 18:56: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn profile create - Connection: - - keep-alive - ParameterSetName: - - -g -n --sku - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/31b3715e-9704-40ea-bce4-4188e5a70678?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/60009595-6cb2-455c-a3ee-cf8362cb85bd?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1282,7 +1188,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:57:14 GMT + - Fri, 19 Feb 2021 12:35:27 GMT expires: - '-1' pragma: @@ -1314,22 +1220,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile?api-version=2020-09-01 response: body: - 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","tags":{},"sku":{"name":"Premium_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '408' + - '421' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:57:14 GMT + - Fri, 19 Feb 2021 12:35:27 GMT expires: - '-1' pragma: @@ -1345,7 +1251,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -1363,15 +1269,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:51:54Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1380,7 +1286,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:57:15 GMT + - Fri, 19 Feb 2021 12:35:28 GMT expires: - '-1' pragma: @@ -1414,18 +1320,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2020-09-01 response: body: 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/7d570417-f9f6-42c8-b338-0e387cd48ef1?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ddbd160f-92de-474c-8afb-c82ab60b3fc1?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1433,7 +1339,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:57:20 GMT + - Fri, 19 Feb 2021 12:35:39 GMT expires: - '-1' pragma: @@ -1445,7 +1351,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '96' status: code: 201 message: Created @@ -1463,57 +1369,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7d570417-f9f6-42c8-b338-0e387cd48ef1?api-version=2020-04-15 - 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, 18 Dec 2020 18:57:31 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint create - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --origin - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7d570417-f9f6-42c8-b338-0e387cd48ef1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ddbd160f-92de-474c-8afb-c82ab60b3fc1?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1525,7 +1384,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:58:01 GMT + - Fri, 19 Feb 2021 12:35:49 GMT expires: - '-1' pragma: @@ -1557,10 +1416,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/Premium-Verizon-profile/endpoints/endpoint000004?api-version=2020-09-01 response: body: 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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1572,7 +1431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:58:01 GMT + - Fri, 19 Feb 2021 12:35:49 GMT expires: - '-1' pragma: 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 f607c7ded40..1b73ba556eb 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_load_and_purge.yaml @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:58:03Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:58:05 GMT + - Fri, 19 Feb 2021 12:30:46 GMT expires: - '-1' pragma: @@ -62,26 +62,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/f94cca40-626a-44c5-99e5-c59075136283?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02f034ef-7153-48a8-b197-c2645b8ffcb5?api-version=2020-09-01 cache-control: - no-cache content-length: - - '384' + - '397' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:58:09 GMT + - Fri, 19 Feb 2021 12:30:55 GMT expires: - '-1' pragma: @@ -111,10 +111,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f94cca40-626a-44c5-99e5-c59075136283?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02f034ef-7153-48a8-b197-c2645b8ffcb5?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -126,7 +126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:58:20 GMT + - Fri, 19 Feb 2021 12:31:07 GMT expires: - '-1' pragma: @@ -158,10 +158,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f94cca40-626a-44c5-99e5-c59075136283?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02f034ef-7153-48a8-b197-c2645b8ffcb5?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -173,7 +173,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:58:50 GMT + - Fri, 19 Feb 2021 12:31:37 GMT expires: - '-1' pragma: @@ -205,10 +205,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f94cca40-626a-44c5-99e5-c59075136283?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/02f034ef-7153-48a8-b197-c2645b8ffcb5?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -220,7 +220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:59:21 GMT + - Fri, 19 Feb 2021 12:32:07 GMT expires: - '-1' pragma: @@ -252,22 +252,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Verizon"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:59:21 GMT + - Fri, 19 Feb 2021 12:32:08 GMT expires: - '-1' pragma: @@ -301,15 +301,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T18:58:03Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -318,7 +318,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:59:21 GMT + - Fri, 19 Feb 2021 12:32:08 GMT expires: - '-1' pragma: @@ -352,18 +352,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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.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/27267d59-8e27-4407-8be1-8a6a033c6571?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/699aa63e-47c6-4ff7-9785-bcb649995575?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -371,7 +371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 18:59:25 GMT + - Fri, 19 Feb 2021 12:32:17 GMT expires: - '-1' pragma: @@ -383,7 +383,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '97' status: code: 201 message: Created @@ -401,57 +401,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/27267d59-8e27-4407-8be1-8a6a033c6571?api-version=2020-04-15 - 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, 18 Dec 2020 18:59: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint create - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --origin - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/27267d59-8e27-4407-8be1-8a6a033c6571?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/699aa63e-47c6-4ff7-9785-bcb649995575?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -463,7 +416,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:00:07 GMT + - Fri, 19 Feb 2021 12:32:28 GMT expires: - '-1' pragma: @@ -495,10 +448,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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.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"}}' @@ -510,7 +463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:00:07 GMT + - Fri, 19 Feb 2021 12:32:28 GMT expires: - '-1' pragma: @@ -548,28 +501,28 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/load?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/load?api-version=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/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 18 Dec 2020 19:00:08 GMT + - Fri, 19 Feb 2021 12:32:32 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -597,57 +550,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 - 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, 18 Dec 2020 19:00: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint load - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --content-paths - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -659,7 +565,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:00:49 GMT + - Fri, 19 Feb 2021 12:32:42 GMT expires: - '-1' pragma: @@ -691,10 +597,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -706,7 +612,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:01:19 GMT + - Fri, 19 Feb 2021 12:33:12 GMT expires: - '-1' pragma: @@ -738,10 +644,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -753,7 +659,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:01:50 GMT + - Fri, 19 Feb 2021 12:33:44 GMT expires: - '-1' pragma: @@ -785,10 +691,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -800,7 +706,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:02:19 GMT + - Fri, 19 Feb 2021 12:34:14 GMT expires: - '-1' pragma: @@ -832,10 +738,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -847,7 +753,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:02:50 GMT + - Fri, 19 Feb 2021 12:34:44 GMT expires: - '-1' pragma: @@ -879,10 +785,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -894,7 +800,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:03:20 GMT + - Fri, 19 Feb 2021 12:35:14 GMT expires: - '-1' pragma: @@ -926,10 +832,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -941,7 +847,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:03:50 GMT + - Fri, 19 Feb 2021 12:35:44 GMT expires: - '-1' pragma: @@ -973,10 +879,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -988,7 +894,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:04:20 GMT + - Fri, 19 Feb 2021 12:36:14 GMT expires: - '-1' pragma: @@ -1020,10 +926,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1035,7 +941,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:04:50 GMT + - Fri, 19 Feb 2021 12:36:45 GMT expires: - '-1' pragma: @@ -1067,10 +973,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1082,7 +988,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:05:21 GMT + - Fri, 19 Feb 2021 12:37:16 GMT expires: - '-1' pragma: @@ -1114,10 +1020,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1129,7 +1035,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:05:51 GMT + - Fri, 19 Feb 2021 12:37:46 GMT expires: - '-1' pragma: @@ -1161,10 +1067,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1176,7 +1082,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:06:21 GMT + - Fri, 19 Feb 2021 12:38:16 GMT expires: - '-1' pragma: @@ -1208,57 +1114,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 - 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, 18 Dec 2020 19:06:51 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint load - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --content-paths - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/0c07e9db-88f8-4bc6-aea1-8f54b613dafa?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a452f625-ed4a-4255-922e-81a218215cd2?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1270,7 +1129,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:07:21 GMT + - Fri, 19 Feb 2021 12:38:46 GMT expires: - '-1' pragma: @@ -1306,28 +1165,28 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/purge?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/purge?api-version=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/3b13ae44-02b2-46a0-a5e4-f225239acede?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea992213-67a2-4fae-a39d-3a916bc76817?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 18 Dec 2020 19:07:23 GMT + - Fri, 19 Feb 2021 12:38:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3b13ae44-02b2-46a0-a5e4-f225239acede/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea992213-67a2-4fae-a39d-3a916bc76817/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1355,104 +1214,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3b13ae44-02b2-46a0-a5e4-f225239acede?api-version=2020-04-15 - 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, 18 Dec 2020 19:07:34 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint purge - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --content-paths - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3b13ae44-02b2-46a0-a5e4-f225239acede?api-version=2020-04-15 - 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, 18 Dec 2020 19:08:04 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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint purge - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --content-paths - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3b13ae44-02b2-46a0-a5e4-f225239acede?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea992213-67a2-4fae-a39d-3a916bc76817?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1464,7 +1229,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:08:35 GMT + - Fri, 19 Feb 2021 12:39:02 GMT expires: - '-1' pragma: @@ -1496,10 +1261,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3b13ae44-02b2-46a0-a5e4-f225239acede?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea992213-67a2-4fae-a39d-3a916bc76817?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -1511,7 +1276,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:09:05 GMT + - Fri, 19 Feb 2021 12:39:32 GMT expires: - '-1' pragma: @@ -1543,10 +1308,10 @@ interactions: ParameterSetName: - -g -n --profile-name --content-paths User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3b13ae44-02b2-46a0-a5e4-f225239acede?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ea992213-67a2-4fae-a39d-3a916bc76817?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1558,7 +1323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 19:09:35 GMT + - Fri, 19 Feb 2021 12:40:02 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 945bb744f16..9b1b878a9a0 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_endpoint_start_and_stop.yaml @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T07:24:13Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:14 GMT + - Fri, 19 Feb 2021 12:30:46 GMT expires: - '-1' pragma: @@ -62,26 +62,26 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/4fe29998-ab7a-475d-af30-88ce82deebaf?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3ae4d7fc-77ce-4753-a0e5-dba783c49aa9?api-version=2020-09-01 cache-control: - no-cache content-length: - - '383' + - '396' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:17 GMT + - Fri, 19 Feb 2021 12:30:55 GMT expires: - '-1' pragma: @@ -111,10 +111,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4fe29998-ab7a-475d-af30-88ce82deebaf?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3ae4d7fc-77ce-4753-a0e5-dba783c49aa9?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -126,7 +126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:28 GMT + - Fri, 19 Feb 2021 12:31:06 GMT expires: - '-1' pragma: @@ -158,22 +158,22 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Akamai"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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":"Active","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '382' + - '395' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:29 GMT + - Fri, 19 Feb 2021 12:31:07 GMT expires: - '-1' pragma: @@ -207,15 +207,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T07:24:13Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -224,7 +224,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:29 GMT + - Fri, 19 Feb 2021 12:31:07 GMT expires: - '-1' pragma: @@ -258,18 +258,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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/f763e0ec-30ff-4d7d-8def-83e8efe4583d?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8271724-e7f7-4606-a39b-c311cd7a7eae?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:33 GMT + - Fri, 19 Feb 2021 12:31:16 GMT expires: - '-1' pragma: @@ -307,10 +307,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f763e0ec-30ff-4d7d-8def-83e8efe4583d?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c8271724-e7f7-4606-a39b-c311cd7a7eae?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -322,7 +322,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:44 GMT + - Fri, 19 Feb 2021 12:31:27 GMT expires: - '-1' pragma: @@ -354,10 +354,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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"}}' @@ -369,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:44 GMT + - Fri, 19 Feb 2021 12:31:27 GMT expires: - '-1' pragma: @@ -405,18 +405,18 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/stop?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/stop?api-version=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":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/b39b6f2f-c8e3-446b-b18d-2a5e0bce4ad0?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a0b830d0-629e-4815-bce6-d283d10c7347?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -424,11 +424,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:47 GMT + - Fri, 19 Feb 2021 12:31:28 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b39b6f2f-c8e3-446b-b18d-2a5e0bce4ad0/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a0b830d0-629e-4815-bce6-d283d10c7347/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -456,10 +456,57 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b39b6f2f-c8e3-446b-b18d-2a5e0bce4ad0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a0b830d0-629e-4815-bce6-d283d10c7347?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, 19 Feb 2021 12:31: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint stop + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a0b830d0-629e-4815-bce6-d283d10c7347?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -471,7 +518,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:57 GMT + - Fri, 19 Feb 2021 12:32:10 GMT expires: - '-1' pragma: @@ -503,12 +550,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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"}}' @@ -520,7 +567,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:24:58 GMT + - Fri, 19 Feb 2021 12:32:12 GMT expires: - '-1' pragma: @@ -536,7 +583,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -556,18 +603,18 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/start?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/start?api-version=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":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/cc19e143-664a-482f-b942-c827b371f6b0?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b49a725e-0676-4235-b777-29e64437ed89?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -575,11 +622,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:00 GMT + - Fri, 19 Feb 2021 12:32:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc19e143-664a-482f-b942-c827b371f6b0/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b49a725e-0676-4235-b777-29e64437ed89/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -607,10 +654,10 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cc19e143-664a-482f-b942-c827b371f6b0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/b49a725e-0676-4235-b777-29e64437ed89?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -622,7 +669,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:10 GMT + - Fri, 19 Feb 2021 12:32:24 GMT expires: - '-1' pragma: @@ -654,12 +701,12 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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"}}' @@ -671,7 +718,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:11 GMT + - Fri, 19 Feb 2021 12:32:25 GMT expires: - '-1' pragma: @@ -687,7 +734,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_origin_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_origin_crud.yaml index af83742d107..fc72c34c9fa 100644 --- a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_origin_crud.yaml +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_origin_crud.yaml @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-11-18T22:26:03Z"},"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-02-19T12:21:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:05 GMT + - Fri, 19 Feb 2021 12:22:00 GMT expires: - '-1' pragma: @@ -62,48 +62,38 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ - ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ - :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ - :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ - \r\n }\r\n}" + string: '{"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/14a4b4eb-168d-461c-9817-f15079f8652c?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/eb829ba1-dcf2-4fcf-966e-d524ec7e49cb?api-version=2020-09-01 cache-control: - no-cache content-length: - - '422' + - '399' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:09 GMT + - Fri, 19 Feb 2021 12:22:10 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '24' - x-powered-by: - - ASP.NET status: code: 201 message: Created @@ -121,43 +111,36 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14a4b4eb-168d-461c-9817-f15079f8652c?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/eb829ba1-dcf2-4fcf-966e-d524ec7e49cb?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '78' + - '62' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:19 GMT + - Fri, 19 Feb 2021 12:22:22 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -175,43 +158,36 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/14a4b4eb-168d-461c-9817-f15079f8652c?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/eb829ba1-dcf2-4fcf-966e-d524ec7e49cb?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:51 GMT + - Fri, 19 Feb 2021 12:22:52 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -229,48 +205,38 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ - ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ - :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ - :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - \r\n }\r\n}" + string: '{"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: - - '421' + - '398' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:52 GMT + - Fri, 19 Feb 2021 12:22:52 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '49' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -288,15 +254,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-11-18T22:26:03Z"},"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-02-19T12:21:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -305,7 +271,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:51 GMT + - Fri, 19 Feb 2021 12:22:52 GMT expires: - '-1' pragma: @@ -339,59 +305,38 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ - :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n \r\n ],\"defaultOriginGroup\":null,\"customDomains\"\ - :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ - :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ - \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\"\ - :null,\"urlSigningKeys\":[\r\n \r\n ]\r\n }\r\n}" + 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/89586c51-2d0a-4805-8653-5e79fd9ea92a?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8575d156-c402-4daf-bed3-a205ee831c92?api-version=2020-09-01 cache-control: - no-cache content-length: - - '1319' + - '1171' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:58 GMT + - Fri, 19 Feb 2021 12:23:03 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '99' - x-powered-by: - - ASP.NET status: code: 201 message: Created @@ -409,43 +354,36 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/89586c51-2d0a-4805-8653-5e79fd9ea92a?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8575d156-c402-4daf-bed3-a205ee831c92?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '78' + - '62' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:08 GMT + - Fri, 19 Feb 2021 12:23:15 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -463,43 +401,36 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/89586c51-2d0a-4805-8653-5e79fd9ea92a?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8575d156-c402-4daf-bed3-a205ee831c92?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:39 GMT + - Fri, 19 Feb 2021 12:23:45 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -517,59 +448,38 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n \r\n ],\"defaultOriginGroup\":null,\"customDomains\"\ - :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ - :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ - \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\"\ - :null,\"urlSigningKeys\":[\r\n \r\n ]\r\n }\r\n}" + 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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1319' + - '1169' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:40 GMT + - Fri, 19 Feb 2021 12:23:45 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '49' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -587,61 +497,40 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n \r\n ],\"defaultOriginGroup\":null,\"customDomains\"\ - :[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ - :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ - \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\"\ - :null,\"urlSigningKeys\":[\r\n \r\n ]\r\n }\r\n}" + 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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1319' + - '1169' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:41 GMT + - Fri, 19 Feb 2021 12:23:48 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' - x-powered-by: - - ASP.NET + - '49' status: code: 200 message: OK @@ -659,50 +548,38 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin-0\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\"\ - :\"www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"enabled\":true,\"\ - priority\":1,\"weight\":1000,\"originHostHeader\":null,\"privateLinkResourceId\"\ - :null,\"privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"resourceState":"Active","originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null,"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '671' + - '655' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:42 GMT + - Fri, 19 Feb 2021 12:23:49 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -720,51 +597,38 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-09-01 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"origin-0\",\"id\":\"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"enabled\"\ - :true,\"priority\":1,\"weight\":1000,\"originHostHeader\":null,\"privateLinkResourceId\"\ - :null,\"privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"resourceState":"Active","originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null,"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '715' + - '667' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:43 GMT + - Fri, 19 Feb 2021 12:23:50 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -787,18 +651,18 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n --origins User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Creating","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7e7c4644-8961-4ee9-a392-1c9cc36610ef?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a85eeeab-074f-46a2-9a88-b57a3ca3c9bc?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -806,7 +670,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:44 GMT + - Fri, 19 Feb 2021 12:23:53 GMT expires: - '-1' pragma: @@ -818,7 +682,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -836,43 +700,36 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n --origins User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7e7c4644-8961-4ee9-a392-1c9cc36610ef?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a85eeeab-074f-46a2-9a88-b57a3ca3c9bc?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:56 GMT + - Fri, 19 Feb 2021 12:24:04 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -890,10 +747,10 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n --origins User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -905,7 +762,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:56 GMT + - Fri, 19 Feb 2021 12:24:04 GMT expires: - '-1' pragma: @@ -937,12 +794,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups?api-version=2020-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Active","provisioningState":"Succeeded"}}]}' @@ -954,7 +811,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:57 GMT + - Fri, 19 Feb 2021 12:24:06 GMT expires: - '-1' pragma: @@ -986,12 +843,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -1003,7 +860,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:57 GMT + - Fri, 19 Feb 2021 12:24:07 GMT expires: - '-1' pragma: @@ -1035,68 +892,40 @@ interactions: ParameterSetName: - -g -n --profile-name --default-origin-group User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n {\r\n \"name\":\"test-origin-group\",\"properties\"\ - :{\r\n \"healthProbeSettings\":{\r\n \"probeIntervalInSeconds\"\ - :240,\"probePath\":\"/\",\"probeProtocol\":\"Http\",\"probeRequestType\":\"\ - HEAD\"\r\n },\"responseBasedOriginErrorDetectionSettings\":null,\"\ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes\":null,\"origins\":[\r\ - \n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - \r\n }\r\n ]\r\n }\r\n }\r\n ],\"defaultOriginGroup\"\ - :null,\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\ - \n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"\ - probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\":null,\"\ - webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \r\n\ - \ ]\r\n }\r\n}" + 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":[{"name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}]}}],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1972' + - '1700' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:27:58 GMT + - Fri, 19 Feb 2021 12:24:08 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '48' - x-powered-by: - - ASP.NET + - '49' status: code: 200 message: OK @@ -1120,69 +949,40 @@ interactions: ParameterSetName: - -g -n --profile-name --default-origin-group User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n {\r\n \"name\":\"test-origin-group\",\"properties\"\ - :{\r\n \"healthProbeSettings\":{\r\n \"probeIntervalInSeconds\"\ - :240,\"probePath\":\"/\",\"probeProtocol\":\"Http\",\"probeRequestType\":\"\ - HEAD\"\r\n },\"responseBasedOriginErrorDetectionSettings\":null,\"\ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes\":null,\"origins\":[\r\ - \n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - \r\n }\r\n ]\r\n }\r\n }\r\n ],\"defaultOriginGroup\"\ - :{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group\"\ - \r\n },\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ - :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ - :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ - :null,\"webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \ - \ \r\n ]\r\n }\r\n}" + 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":[{"name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}]}}],"defaultOriginGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group"},"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/84f3c9ff-14d3-43e4-b4e5-7458286cc3c2?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2396ef17-4e70-42f3-8d3f-71de3eaa07c6?api-version=2020-09-01 cache-control: - no-cache content-length: - - '2243' + - '1957' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:01 GMT + - Fri, 19 Feb 2021 12:24:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/84f3c9ff-14d3-43e4-b4e5-7458286cc3c2/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 - odata-version: - - '4.0' + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2396ef17-4e70-42f3-8d3f-71de3eaa07c6/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '99' - x-powered-by: - - ASP.NET status: code: 202 message: Accepted @@ -1200,43 +1000,36 @@ interactions: ParameterSetName: - -g -n --profile-name --default-origin-group User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/84f3c9ff-14d3-43e4-b4e5-7458286cc3c2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2396ef17-4e70-42f3-8d3f-71de3eaa07c6?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:12 GMT + - Fri, 19 Feb 2021 12:24:24 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1254,67 +1047,38 @@ interactions: ParameterSetName: - -g -n --profile-name --default-origin-group User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n {\r\n \"name\":\"test-origin-group\",\"properties\"\ - :{\r\n \"healthProbeSettings\":{\r\n \"probeIntervalInSeconds\"\ - :240,\"probePath\":\"/\",\"probeProtocol\":\"Http\",\"probeRequestType\":\"\ - HEAD\"\r\n },\"responseBasedOriginErrorDetectionSettings\":null,\"\ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes\":null,\"origins\":[\r\ - \n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - \r\n }\r\n ]\r\n }\r\n }\r\n ],\"defaultOriginGroup\"\ - :{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group\"\ - \r\n },\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ - :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ - :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ - :null,\"webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \ - \ \r\n ]\r\n }\r\n}" + 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":[{"name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}]}}],"defaultOriginGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group"},"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2243' + - '1957' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:13 GMT + - Fri, 19 Feb 2021 12:24:24 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '49' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1332,69 +1096,40 @@ interactions: ParameterSetName: - -g -n --profile-name --default-origin-group User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n {\r\n \"name\":\"test-origin-group\",\"properties\"\ - :{\r\n \"healthProbeSettings\":{\r\n \"probeIntervalInSeconds\"\ - :240,\"probePath\":\"/\",\"probeProtocol\":\"Http\",\"probeRequestType\":\"\ - HEAD\"\r\n },\"responseBasedOriginErrorDetectionSettings\":null,\"\ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes\":null,\"origins\":[\r\ - \n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - \r\n }\r\n ]\r\n }\r\n }\r\n ],\"defaultOriginGroup\"\ - :{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group\"\ - \r\n },\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ - :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ - :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ - :null,\"webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \ - \ \r\n ]\r\n }\r\n}" + 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":[{"name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}]}}],"defaultOriginGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group"},"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2243' + - '1957' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:14 GMT + - Fri, 19 Feb 2021 12:24:25 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' - x-powered-by: - - ASP.NET + - '48' status: code: 200 message: OK @@ -1418,210 +1153,105 @@ interactions: ParameterSetName: - -g -n --profile-name --default-origin-group User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n {\r\n \"name\":\"test-origin-group\",\"properties\"\ - :{\r\n \"healthProbeSettings\":{\r\n \"probeIntervalInSeconds\"\ - :240,\"probePath\":\"/\",\"probeProtocol\":\"Http\",\"probeRequestType\":\"\ - HEAD\"\r\n },\"responseBasedOriginErrorDetectionSettings\":null,\"\ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes\":null,\"origins\":[\r\ - \n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - \r\n }\r\n ]\r\n }\r\n }\r\n ],\"defaultOriginGroup\"\ - :{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group\"\ - \r\n },\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ - :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ - :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ - :null,\"webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \ - \ \r\n ]\r\n }\r\n}" + 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":[{"name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}]}}],"defaultOriginGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group"},"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/6bde3b78-4a11-4aeb-8c53-a1f37d92550d?api-version=2020-04-15 cache-control: - no-cache content-length: - - '2243' + - '1957' content-type: - - application/json; odata.metadata=minimal - date: - - Wed, 18 Nov 2020 22:28:17 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6bde3b78-4a11-4aeb-8c53-a1f37d92550d/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 - odata-version: - - '4.0' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' - x-powered-by: - - ASP.NET - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - cdn endpoint update - Connection: - - keep-alive - ParameterSetName: - - -g -n --profile-name --default-origin-group - User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6bde3b78-4a11-4aeb-8c53-a1f37d92550d?api-version=2020-04-15 - response: - body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '77' - content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:28 GMT + - Fri, 19 Feb 2021 12:24:31 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ratelimit-remaining-subscription-resource-requests: + - '99' status: code: 200 message: OK - request: - body: null + body: '{"properties": {"hostName": "abc.contoso.com", "httpPort": 8080, "httpsPort": + 8443, "originHostHeader": "abc.contoso.com", "priority": 3, "weight": 534, "enabled": + true, "privateLinkResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test", + "privateLinkLocation": "EastUS", "privateLinkApprovalMessage": "Please approve + the request"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - cdn endpoint update + - cdn origin create Connection: - keep-alive + Content-Length: + - '436' + Content-Type: + - application/json; charset=utf-8 ParameterSetName: - - -g -n --profile-name --default-origin-group + - -g --endpoint-name --profile-name -n --host-name --http-port --https-port + --private-link-resource-id --private-link-location --private-link-approval-message + --origin-host-header --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 - 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-04-15 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":null,\"\ - privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n }\r\n ],\"\ - originGroups\":[\r\n {\r\n \"name\":\"test-origin-group\",\"properties\"\ - :{\r\n \"healthProbeSettings\":{\r\n \"probeIntervalInSeconds\"\ - :240,\"probePath\":\"/\",\"probeProtocol\":\"Http\",\"probeRequestType\":\"\ - HEAD\"\r\n },\"responseBasedOriginErrorDetectionSettings\":null,\"\ - trafficRestorationTimeToHealedOrNewEndpointsInMinutes\":null,\"origins\":[\r\ - \n {\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - \r\n }\r\n ]\r\n }\r\n }\r\n ],\"defaultOriginGroup\"\ - :{\r\n \"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group\"\ - \r\n },\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\"\ - :[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\"\ - :null,\"probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\"\ - :null,\"webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \ - \ \r\n ]\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000003","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Creating","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Creating"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8bd911ec-5c09-4434-9c69-323077d94b47?api-version=2020-09-01 cache-control: - no-cache content-length: - - '2243' + - '873' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:29 GMT + - Fri, 19 Feb 2021 12:24:35 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' - x-powered-by: - - ASP.NET + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: '{"properties": {"hostName": "abc.contoso.com", "httpPort": 8080, "httpsPort": - 8443, "originHostHeader": "abc.contoso.com", "priority": 3, "weight": 534, "enabled": - true, "privateLinkResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test", - "privateLinkLocation": "EastUS", "privateLinkApprovalMessage": "Please approve - the request"}}' + body: null headers: Accept: - application/json @@ -1631,63 +1261,44 @@ interactions: - cdn origin create Connection: - keep-alive - Content-Length: - - '436' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - -g --endpoint-name --profile-name -n --host-name --http-port --https-port --private-link-resource-id --private-link-location --private-link-approval-message --origin-host-header --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003?api-version=2020-04-15 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8bd911ec-5c09-4434-9c69-323077d94b47?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"\ - hostName\":\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"enabled\"\ - :true,\"priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\"\ - ,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateLinkAlias\"\ - :null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null\r\ - \n }\r\n}" + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fb3f9ec8-0d4e-4d19-8614-87108f7d1a0e?api-version=2020-04-15 cache-control: - no-cache content-length: - - '719' + - '62' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:34 GMT + - Fri, 19 Feb 2021 12:24:46 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-powered-by: - - ASP.NET status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -1704,43 +1315,36 @@ interactions: --private-link-resource-id --private-link-location --private-link-approval-message --origin-host-header --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/fb3f9ec8-0d4e-4d19-8614-87108f7d1a0e?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/8bd911ec-5c09-4434-9c69-323077d94b47?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:45 GMT + - Fri, 19 Feb 2021 12:25:16 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1760,48 +1364,37 @@ interactions: --private-link-resource-id --private-link-location --private-link-approval-message --origin-host-header --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\"\ - :\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"enabled\":true,\"\ - priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\",\"privateLinkResourceId\"\ - :null,\"privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000003","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '718' + - '872' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:45 GMT + - Fri, 19 Feb 2021 12:25:16 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1819,59 +1412,39 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-09-01 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"origin-0\",\"id\":\"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"enabled\"\ - :true,\"priority\":1,\"weight\":1000,\"originHostHeader\":null,\"privateLinkResourceId\"\ - :null,\"privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n },{\r\n \"\ - name\":\"origin000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"\ - enabled\":true,\"priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\"\ - ,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateLinkAlias\"\ - :null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null\r\ - \n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"resourceState":"Active","originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null,"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000003","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '1450' + - '1540' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:47 GMT + - Fri, 19 Feb 2021 12:25:18 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -1899,51 +1472,39 @@ interactions: --private-link-resource-id --private-link-location --private-link-approval-message --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"\ - hostName\":\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"enabled\"\ - :false,\"priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\"\ - ,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateLinkAlias\"\ - :null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null\r\ - \n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000004","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Creating","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":false,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Creating"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83e1d025-1d79-4c9e-8852-a67b45b634dd?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8e1895f-2d87-4e4e-ac4a-bd833a93e24f?api-version=2020-09-01 cache-control: - no-cache content-length: - - '720' + - '874' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:28:50 GMT + - Fri, 19 Feb 2021 12:25:24 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' - x-powered-by: - - ASP.NET status: code: 201 message: Created @@ -1963,43 +1524,36 @@ interactions: --private-link-resource-id --private-link-location --private-link-approval-message --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/83e1d025-1d79-4c9e-8852-a67b45b634dd?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8e1895f-2d87-4e4e-ac4a-bd833a93e24f?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '62' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:00 GMT + - Fri, 19 Feb 2021 12:25:35 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2019,48 +1573,36 @@ interactions: --private-link-resource-id --private-link-location --private-link-approval-message --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8e1895f-2d87-4e4e-ac4a-bd833a93e24f?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\"\ - :\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"enabled\":false,\"\ - priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\",\"privateLinkResourceId\"\ - :null,\"privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '719' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:01 GMT + - Fri, 19 Feb 2021 12:26:05 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2072,117 +1614,82 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - cdn origin list + - cdn origin create Connection: - keep-alive ParameterSetName: - - -g --endpoint-name --profile-name + - -g --endpoint-name --profile-name -n --host-name --http-port --https-port + --private-link-resource-id --private-link-location --private-link-approval-message + --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 - accept-language: - - en-US + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004?api-version=2020-09-01 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"origin-0\",\"id\":\"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"enabled\"\ - :true,\"priority\":1,\"weight\":1000,\"originHostHeader\":null,\"privateLinkResourceId\"\ - :null,\"privateLinkLocation\":null,\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":null\r\n }\r\n },{\r\n \"\ - name\":\"origin000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"\ - enabled\":true,\"priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\"\ - ,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateLinkAlias\"\ - :null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null\r\ - \n }\r\n },{\r\n \"name\":\"origin000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"\ - enabled\":false,\"priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\"\ - ,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateLinkAlias\"\ - :null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null\r\ - \n }\r\n }\r\n ]\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000004","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":false,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '2186' + - '873' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:02 GMT + - Fri, 19 Feb 2021 12:26:05 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK - request: - body: '{"properties": {"healthProbeSettings": {"probePath": "/healthz", "probeRequestType": - "GET", "probeProtocol": "Https", "probeIntervalInSeconds": 120}, "origins": - [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"}, - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004"}]}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - cdn origin-group create + - cdn origin list Connection: - keep-alive - Content-Length: - - '695' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path - --probe-protocol --probe-interval + - -g --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group-2?api-version=2020-04-15 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origingroups/test-origin-group-2","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group-2","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004"}],"resourceState":"Creating","provisioningState":"Creating"}}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":80,"httpsPort":443,"resourceState":"Active","originHostHeader":null,"priority":1,"weight":1000,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":null,"privateLinkLocation":null,"privateEndpointStatus":null,"privateLinkApprovalMessage":null,"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000003","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000004","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":false,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}]}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a43783f9-46b0-4c5c-a949-6990d68b64b5?api-version=2020-04-15 cache-control: - no-cache content-length: - - '1195' + - '2414' content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:04 GMT + - Fri, 19 Feb 2021 12:26:08 GMT expires: - '-1' pragma: @@ -2191,15 +1698,20 @@ interactions: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' status: - code: 201 - message: Created + code: 200 + message: OK - request: - body: null + body: '{"properties": {"healthProbeSettings": {"probePath": "/healthz", "probeRequestType": + "GET", "probeProtocol": "Https", "probeIntervalInSeconds": 120}, "origins": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004"}]}}' headers: Accept: - application/json @@ -2209,50 +1721,49 @@ interactions: - cdn origin-group create Connection: - keep-alive + Content-Length: + - '695' + Content-Type: + - application/json; charset=utf-8 ParameterSetName: - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path --probe-protocol --probe-interval User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a43783f9-46b0-4c5c-a949-6990d68b64b5?api-version=2020-04-15 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group-2?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origingroups/test-origin-group-2","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group-2","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004"}],"resourceState":"Creating","provisioningState":"Creating"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/73c8b36c-9510-4ee4-b1dc-8760dbff7d60?api-version=2020-09-01 cache-control: - no-cache content-length: - - '78' + - '1195' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:14 GMT + - Fri, 19 Feb 2021 12:26:09 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET + x-ms-ratelimit-remaining-subscription-writes: + - '1198' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -2268,43 +1779,36 @@ interactions: - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path --probe-protocol --probe-interval User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a43783f9-46b0-4c5c-a949-6990d68b64b5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/73c8b36c-9510-4ee4-b1dc-8760dbff7d60?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:45 GMT + - Fri, 19 Feb 2021 12:26:21 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2323,10 +1827,10 @@ interactions: - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path --probe-protocol --probe-interval User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group-2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group-2?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/origingroups/test-origin-group-2","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group-2","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -2338,7 +1842,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:45 GMT + - Fri, 19 Feb 2021 12:26:21 GMT expires: - '-1' pragma: @@ -2370,12 +1874,12 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -2387,7 +1891,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:46 GMT + - Fri, 19 Feb 2021 12:26:23 GMT expires: - '-1' pragma: @@ -2419,12 +1923,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups?api-version=2020-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Active","provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origingroups/test-origin-group-2","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group-2","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":120},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004"}],"resourceState":"Active","provisioningState":"Succeeded"}}]}' @@ -2436,7 +1940,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:47 GMT + - Fri, 19 Feb 2021 12:26:23 GMT expires: - '-1' pragma: @@ -2470,28 +1974,28 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name --name --yes User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group-2?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group-2?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/a65430f8-bbc8-423e-8931-eeeef72348b0?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6343903c-373b-406a-b052-4b99ac309525?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Wed, 18 Nov 2020 22:29:48 GMT + - Fri, 19 Feb 2021 12:26:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a65430f8-bbc8-423e-8931-eeeef72348b0/profileresults/profile123/endpointresults/endpoint000002/origingroupresults/test-origin-group-2?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6343903c-373b-406a-b052-4b99ac309525/profileresults/profile123/endpointresults/endpoint000002/origingroupresults/test-origin-group-2?api-version=2020-09-01 pragma: - no-cache server: @@ -2501,7 +2005,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted @@ -2519,43 +2023,36 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name --name --yes User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a65430f8-bbc8-423e-8931-eeeef72348b0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6343903c-373b-406a-b052-4b99ac309525?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:29:59 GMT + - Fri, 19 Feb 2021 12:26:36 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2573,12 +2070,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups?api-version=2020-09-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Active","provisioningState":"Succeeded"}}]}' @@ -2590,7 +2087,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:00 GMT + - Fri, 19 Feb 2021 12:26:39 GMT expires: - '-1' pragma: @@ -2623,12 +2120,12 @@ interactions: - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path --probe-interval --probe-protocol User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/","probeRequestType":"HEAD","probeProtocol":"Http","probeIntervalInSeconds":240},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -2640,7 +2137,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:00 GMT + - Fri, 19 Feb 2021 12:26:39 GMT expires: - '-1' pragma: @@ -2680,18 +2177,18 @@ interactions: - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path --probe-interval --probe-protocol User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":60},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"}],"resourceState":"Active","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/313a0b67-ce04-4043-b077-9d236fd6318a?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4366df01-b075-4d1e-ac14-d8c309d4271f?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -2699,11 +2196,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:01 GMT + - Fri, 19 Feb 2021 12:26:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/313a0b67-ce04-4043-b077-9d236fd6318a/profileresults/profile123/endpointresults/endpoint000002/origingroupresults/test-origin-group?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4366df01-b075-4d1e-ac14-d8c309d4271f/profileresults/profile123/endpointresults/endpoint000002/origingroupresults/test-origin-group?api-version=2020-09-01 pragma: - no-cache server: @@ -2732,43 +2229,36 @@ interactions: - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path --probe-interval --probe-protocol User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/313a0b67-ce04-4043-b077-9d236fd6318a?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/4366df01-b075-4d1e-ac14-d8c309d4271f?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:12 GMT + - Fri, 19 Feb 2021 12:26:53 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -2787,10 +2277,10 @@ interactions: - -g --endpoint-name --profile-name -n --origins --probe-method --probe-path --probe-interval --probe-protocol User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":60},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -2802,7 +2292,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:12 GMT + - Fri, 19 Feb 2021 12:26:53 GMT expires: - '-1' pragma: @@ -2834,12 +2324,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n --origins User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":60},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -2851,7 +2341,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:13 GMT + - Fri, 19 Feb 2021 12:26:55 GMT expires: - '-1' pragma: @@ -2890,12 +2380,12 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name -n --origins User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/originGroups/test-origin-group?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/origingroups/test-origin-group","type":"Microsoft.Cdn/profiles/endpoints/origingroups","name":"test-origin-group","properties":{"healthProbeSettings":{"probePath":"/healthz","probeRequestType":"GET","probeProtocol":"Https","probeIntervalInSeconds":60},"responseBasedOriginErrorDetectionSettings":null,"trafficRestorationTimeToHealedOrNewEndpointsInMinutes":null,"origins":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003"}],"resourceState":"Active","provisioningState":"Succeeded"}}' @@ -2907,7 +2397,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:14 GMT + - Fri, 19 Feb 2021 12:26:56 GMT expires: - '-1' pragma: @@ -2923,7 +2413,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 200 message: OK @@ -2951,54 +2441,41 @@ interactions: --private-link-location --private-link-approval-message --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin-0\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\"\ - :\"www.example.com\",\"httpPort\":8080,\"httpsPort\":8443,\"enabled\":false,\"\ - priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\",\"privateLinkResourceId\"\ - :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test\"\ - ,\"privateLinkLocation\":\"EastUS\",\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":\"Please approve the request\"\r\n }\r\ - \n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":false,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7038555f-718d-4560-8a99-8923e6244a9a?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a06812e4-682f-46a0-87bd-b087625a20e7?api-version=2020-09-01 cache-control: - no-cache content-length: - - '857' + - '841' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:17 GMT + - Fri, 19 Feb 2021 12:27:00 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7038555f-718d-4560-8a99-8923e6244a9a/profileresults/profile123/endpointresults/endpoint000002/originresults/origin-0?api-version=2020-04-15 - odata-version: - - '4.0' + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a06812e4-682f-46a0-87bd-b087625a20e7/profileresults/profile123/endpointresults/endpoint000002/originresults/origin-0?api-version=2020-09-01 pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-powered-by: - - ASP.NET + - '1199' status: code: 202 message: Accepted @@ -3018,43 +2495,36 @@ interactions: --private-link-location --private-link-approval-message --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7038555f-718d-4560-8a99-8923e6244a9a?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a06812e4-682f-46a0-87bd-b087625a20e7?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '78' + - '62' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:28 GMT + - Fri, 19 Feb 2021 12:27:12 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3074,43 +2544,36 @@ interactions: --private-link-location --private-link-approval-message --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7038555f-718d-4560-8a99-8923e6244a9a?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a06812e4-682f-46a0-87bd-b087625a20e7?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:58 GMT + - Fri, 19 Feb 2021 12:27:42 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3130,50 +2593,37 @@ interactions: --private-link-location --private-link-approval-message --origin-host-header --disabled --weight --priority User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin-0\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\"\ - :\"www.example.com\",\"httpPort\":8080,\"httpsPort\":8443,\"enabled\":false,\"\ - priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\",\"privateLinkResourceId\"\ - :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test\"\ - ,\"privateLinkLocation\":\"EastUS\",\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":\"Please approve the request\"\r\n }\r\ - \n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":false,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '857' + - '841' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:58 GMT + - Fri, 19 Feb 2021 12:27:42 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3191,52 +2641,39 @@ interactions: ParameterSetName: - -g -n --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"origin-0\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\"\ - :\"www.example.com\",\"httpPort\":8080,\"httpsPort\":8443,\"enabled\":false,\"\ - priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\",\"privateLinkResourceId\"\ - :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test\"\ - ,\"privateLinkLocation\":\"EastUS\",\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":\"Please approve the request\"\r\n }\r\ - \n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":false,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '857' + - '841' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:30:59 GMT + - Fri, 19 Feb 2021 12:27:44 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3256,42 +2693,38 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name --name --yes User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000004?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/3d7f963b-4e8e-4eac-b5e9-cdd6ead06d3d?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/af4c3525-71bc-4684-b78f-d09e8db24cdd?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Wed, 18 Nov 2020 22:31:01 GMT + - Fri, 19 Feb 2021 12:27:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3d7f963b-4e8e-4eac-b5e9-cdd6ead06d3d/profileresults/profile123/endpointresults/endpoint000002/originresults/origin000004?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/af4c3525-71bc-4684-b78f-d09e8db24cdd/profileresults/profile123/endpointresults/endpoint000002/originresults/origin000004?api-version=2020-09-01 pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' - x-powered-by: - - ASP.NET status: code: 202 message: Accepted @@ -3309,43 +2742,36 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name --name --yes User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3d7f963b-4e8e-4eac-b5e9-cdd6ead06d3d?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/af4c3525-71bc-4684-b78f-d09e8db24cdd?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:31:12 GMT + - Fri, 19 Feb 2021 12:27:58 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -3363,60 +2789,40 @@ interactions: ParameterSetName: - -g --endpoint-name --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins?api-version=2020-09-01 response: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"origin-0\",\"id\":\"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"www.example.com\",\"httpPort\":8080,\"httpsPort\":8443,\"\ - enabled\":false,\"priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\"\ - ,\"privateLinkResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test\"\ - ,\"privateLinkLocation\":\"EastUS\",\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":\"Please approve the request\"\r\n \ - \ }\r\n },{\r\n \"name\":\"origin000003\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints/origins\",\"properties\":{\r\n\ - \ \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - ,\"hostName\":\"abc.contoso.com\",\"httpPort\":8080,\"httpsPort\":8443,\"\ - enabled\":true,\"priority\":3,\"weight\":534,\"originHostHeader\":\"abc.contoso.com\"\ - ,\"privateLinkResourceId\":null,\"privateLinkLocation\":null,\"privateLinkAlias\"\ - :null,\"privateEndpointStatus\":null,\"privateLinkApprovalMessage\":null\r\ - \n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin-0","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin-0","properties":{"hostName":"www.example.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":false,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002/origins/origin000003","type":"Microsoft.Cdn/profiles/endpoints/origins","name":"origin000003","properties":{"hostName":"abc.contoso.com","httpPort":8080,"httpsPort":8443,"resourceState":"Active","originHostHeader":"abc.contoso.com","priority":3,"weight":534,"enabled":true,"privateLinkAlias":null,"privateLinkResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request","provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '1636' + - '1726' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:31:13 GMT + - Fri, 19 Feb 2021 12:28:00 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK 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 668338ce8b7..40d4542843b 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 @@ -13,15 +13,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-11-18T22:24:51Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:24:53 GMT + - Fri, 19 Feb 2021 12:30:46 GMT expires: - '-1' pragma: @@ -62,48 +62,38 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ - ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ - :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ - :{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\ - \r\n }\r\n}" + string: '{"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/6ed347c6-943e-4eba-80d8-3e094d42a64c?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/88aaec9f-a961-4333-a13c-7ad4b29773f6?api-version=2020-09-01 cache-control: - no-cache content-length: - - '422' + - '399' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:24:58 GMT + - Fri, 19 Feb 2021 12:30:56 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '24' - x-powered-by: - - ASP.NET status: code: 201 message: Created @@ -121,43 +111,36 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/6ed347c6-943e-4eba-80d8-3e094d42a64c?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/88aaec9f-a961-4333-a13c-7ad4b29773f6?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:25:09 GMT + - Fri, 19 Feb 2021 12:31:07 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -175,48 +158,38 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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: "{\r\n \"name\":\"profile123\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123\"\ - ,\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \r\n },\"location\"\ - :\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Microsoft\"\r\n },\"properties\"\ - :{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\ - \r\n }\r\n}" + string: '{"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: - - '421' + - '398' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:25:10 GMT + - Fri, 19 Feb 2021 12:31:08 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '49' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -234,15 +207,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-11-18T22:24:51Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -251,7 +224,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:25:11 GMT + - Fri, 19 Feb 2021 12:31:09 GMT expires: - '-1' pragma: @@ -288,61 +261,39 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\"\ - :\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":\"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test\"\ - ,\"privateLinkLocation\":\"EastUS\",\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":\"Please approve the request\"\r\n \ - \ }\r\n }\r\n ],\"originGroups\":[\r\n \r\n ],\"defaultOriginGroup\"\ - :null,\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\ - \n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"\ - probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\":null,\"\ - webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \r\n\ - \ ]\r\n }\r\n}" + 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":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + 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/7c744f51-d3fe-4deb-b9f4-494f5ef4ddd5?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cf6be51c-671e-41b5-9ccc-e029f45505ba?api-version=2020-09-01 cache-control: - no-cache content-length: - - '1489' + - '1341' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:25:17 GMT + - Fri, 19 Feb 2021 12:31:19 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' - x-powered-by: - - ASP.NET + - '98' status: code: 201 message: Created @@ -360,43 +311,36 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7c744f51-d3fe-4deb-b9f4-494f5ef4ddd5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cf6be51c-671e-41b5-9ccc-e029f45505ba?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"InProgress","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '78' + - '62' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:25:28 GMT + - Fri, 19 Feb 2021 12:31:30 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -414,43 +358,36 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/7c744f51-d3fe-4deb-b9f4-494f5ef4ddd5?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/cf6be51c-671e-41b5-9ccc-e029f45505ba?api-version=2020-09-01 response: body: - string: "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\"\ - ,\"message\":null\r\n }\r\n}" + string: '{"status":"Succeeded","error":{"code":"None","message":null}}' headers: cache-control: - no-cache content-length: - - '77' + - '61' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:25:58 GMT + - Fri, 19 Feb 2021 12:32:01 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -468,61 +405,39 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-09-01 response: body: - string: "{\r\n \"name\":\"endpoint000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n },\"\ - location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"endpoint000002.azureedge.net\"\ - ,\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\"\ - :\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\"\ - :\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \ - \ \"name\":\"origin-0\",\"properties\":{\r\n \"hostName\":\"\ - www.example.com\",\"httpPort\":80,\"httpsPort\":443,\"originHostHeader\":null,\"\ - priority\":1,\"weight\":1000,\"enabled\":true,\"privateLinkResourceId\":\"\ - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test\"\ - ,\"privateLinkLocation\":\"EastUS\",\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":\"Please approve the request\"\r\n \ - \ }\r\n }\r\n ],\"originGroups\":[\r\n \r\n ],\"defaultOriginGroup\"\ - :null,\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\ - \n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"\ - probePath\":null,\"geoFilters\":[\r\n \r\n ],\"deliveryPolicy\":null,\"\ - webApplicationFirewallPolicyLink\":null,\"urlSigningKeys\":[\r\n \r\n\ - \ ]\r\n }\r\n}" + 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":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request"}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1489' + - '1339' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:25:59 GMT + - Fri, 19 Feb 2021 12:32:01 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '49' - x-powered-by: - - ASP.NET status: code: 200 message: OK @@ -540,65 +455,41 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.5 (macOS-10.16-x86_64-i386-64bit) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.1.0 Azure-SDK-For-Python AZURECLI/2.15.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: - string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"endpoint000002\",\"\ - id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002\"\ - ,\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \r\n\ - \ },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\"\ - :\"endpoint000002.azureedge.net\",\"originHostHeader\":null,\"provisioningState\"\ - :\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\"\ - :true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\"\ - :null,\"origins\":[\r\n {\r\n \"name\":\"origin-0\",\"\ - properties\":{\r\n \"hostName\":\"www.example.com\",\"httpPort\"\ - :80,\"httpsPort\":443,\"originHostHeader\":null,\"priority\":1,\"weight\"\ - :1000,\"enabled\":true,\"privateLinkResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test\"\ - ,\"privateLinkLocation\":\"EastUS\",\"privateLinkAlias\":null,\"privateEndpointStatus\"\ - :null,\"privateLinkApprovalMessage\":\"Please approve the request\"\r\n \ - \ }\r\n }\r\n ],\"originGroups\":[\r\n \r\ - \n ],\"defaultOriginGroup\":null,\"customDomains\":[\r\n \r\ - \n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\"\ - :false,\"optimizationType\":null,\"probePath\":null,\"geoFilters\":[\r\n \ - \ \r\n ],\"deliveryPolicy\":null,\"webApplicationFirewallPolicyLink\"\ - :null,\"urlSigningKeys\":[\r\n \r\n ]\r\n }\r\n }\r\ - \n ]\r\n}" + string: '{"value":[{"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":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cdn-sdk-test/providers/Microsoft.Network/privateLinkServices/cdn-sdk-pls-test","privateLinkLocation":"EastUS","privateEndpointStatus":null,"privateLinkApprovalMessage":"Please + approve the request"}}],"originGroups":[],"defaultOriginGroup":null,"customDomains":[],"geoFilters":[],"deliveryPolicy":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '1605' + - '1351' content-type: - - application/json; odata.metadata=minimal + - application/json; charset=utf-8 date: - - Wed, 18 Nov 2020 22:26:02 GMT + - Fri, 19 Feb 2021 12:32:02 GMT expires: - '-1' - odata-version: - - '4.0' pragma: - no-cache server: - - Microsoft-IIS/10.0 + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding - x-aspnet-version: - - 4.0.30319 x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' - x-powered-by: - - ASP.NET + - '48' status: code: 200 message: OK 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 f267e3e760b..e6130149e81 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,12 +13,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:16 GMT + - Fri, 19 Feb 2021 12:30:46 GMT expires: - '-1' pragma: @@ -60,15 +60,15 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T07:25:14Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:16 GMT + - Fri, 19 Feb 2021 12:30:46 GMT expires: - '-1' pragma: @@ -109,26 +109,26 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Creating","provisioningState":"Creating"}}' + 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/3cc4c491-f751-48f4-80ab-cd8efefdcab9?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76d8245e-2c4e-4c09-a729-e23bdbaed9bc?api-version=2020-09-01 cache-control: - no-cache content-length: - - '386' + - '399' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:19 GMT + - Fri, 19 Feb 2021 12:30:57 GMT expires: - '-1' pragma: @@ -158,10 +158,57 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/3cc4c491-f751-48f4-80ab-cd8efefdcab9?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76d8245e-2c4e-4c09-a729-e23bdbaed9bc?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, 19 Feb 2021 12:31: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: + - 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.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/76d8245e-2c4e-4c09-a729-e23bdbaed9bc?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -173,7 +220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:30 GMT + - Fri, 19 Feb 2021 12:31:39 GMT expires: - '-1' pragma: @@ -205,22 +252,22 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123?api-version=2020-04-15 + 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","tags":{},"sku":{"name":"Standard_Microsoft"},"properties":{"resourceState":"Active","provisioningState":"Succeeded"}}' + 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: - - '385' + - '398' content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:30 GMT + - Fri, 19 Feb 2021 12:31:40 GMT expires: - '-1' pragma: @@ -254,12 +301,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"value":[]}' @@ -271,7 +318,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:31 GMT + - Fri, 19 Feb 2021 12:31:41 GMT expires: - '-1' pragma: @@ -305,15 +352,15 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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":"2020-12-18T07:25:14Z"},"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-02-19T12:30:44Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -322,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:31 GMT + - Fri, 19 Feb 2021 12:31:41 GMT expires: - '-1' pragma: @@ -356,18 +403,18 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":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/626648a7-084d-4b4e-a5cd-bebe031514fc?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/910db318-71a7-412e-a69d-8332428ce610?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -375,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:36 GMT + - Fri, 19 Feb 2021 12:31:51 GMT expires: - '-1' pragma: @@ -405,10 +452,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/626648a7-084d-4b4e-a5cd-bebe031514fc?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/910db318-71a7-412e-a69d-8332428ce610?api-version=2020-09-01 response: body: string: '{"status":"InProgress","error":{"code":"None","message":null}}' @@ -420,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:25:47 GMT + - Fri, 19 Feb 2021 12:32:02 GMT expires: - '-1' pragma: @@ -452,10 +499,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/626648a7-084d-4b4e-a5cd-bebe031514fc?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/910db318-71a7-412e-a69d-8332428ce610?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -467,7 +514,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:17 GMT + - Fri, 19 Feb 2021 12:32:32 GMT expires: - '-1' pragma: @@ -499,10 +546,10 @@ interactions: ParameterSetName: - -g -n --profile-name --origin User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -514,7 +561,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:18 GMT + - Fri, 19 Feb 2021 12:32:32 GMT expires: - '-1' pragma: @@ -530,7 +577,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -548,12 +595,12 @@ interactions: ParameterSetName: - -g --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints?api-version=2020-04-15 + 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: body: string: '{"value":[{"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":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}]}' @@ -565,7 +612,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:19 GMT + - Fri, 19 Feb 2021 12:32:34 GMT expires: - '-1' pragma: @@ -581,7 +628,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -600,12 +647,12 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":null,"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -617,7 +664,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:19 GMT + - Fri, 19 Feb 2021 12:32:35 GMT expires: - '-1' pragma: @@ -633,7 +680,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -661,18 +708,18 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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/a8ca0a16-aee8-4f52-a12a-aebba30e3a61?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c0b1089a-a07d-4a4b-a3a4-9ddd53f2ba79?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -680,11 +727,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:22 GMT + - Fri, 19 Feb 2021 12:32:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8ca0a16-aee8-4f52-a12a-aebba30e3a61/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c0b1089a-a07d-4a4b-a3a4-9ddd53f2ba79/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -713,10 +760,10 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a8ca0a16-aee8-4f52-a12a-aebba30e3a61?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/c0b1089a-a07d-4a4b-a3a4-9ddd53f2ba79?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -728,7 +775,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:33 GMT + - Fri, 19 Feb 2021 12:32:51 GMT expires: - '-1' pragma: @@ -761,10 +808,10 @@ interactions: - -g -n --profile-name --order --rule-name --match-variable --operator --match-values --action-name --cache-behavior User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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"}}' @@ -776,7 +823,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:33 GMT + - Fri, 19 Feb 2021 12:32:51 GMT expires: - '-1' pragma: @@ -810,12 +857,12 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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"}}' @@ -827,7 +874,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:34 GMT + - Fri, 19 Feb 2021 12:32:52 GMT expires: - '-1' pragma: @@ -843,7 +890,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -872,18 +919,18 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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/340b7a75-7d0b-4dd5-85c8-b61c30873fad?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/94cdf44d-fac8-4bd3-9421-76f4026a979b?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -891,11 +938,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:37 GMT + - Fri, 19 Feb 2021 12:32:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/340b7a75-7d0b-4dd5-85c8-b61c30873fad/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/94cdf44d-fac8-4bd3-9421-76f4026a979b/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -905,7 +952,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '97' status: code: 202 message: Accepted @@ -923,10 +970,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/340b7a75-7d0b-4dd5-85c8-b61c30873fad?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/94cdf44d-fac8-4bd3-9421-76f4026a979b?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -938,7 +985,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:47 GMT + - Fri, 19 Feb 2021 12:33:09 GMT expires: - '-1' pragma: @@ -970,10 +1017,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --match-variable --operator --match-values User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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"}}' @@ -985,7 +1032,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:48 GMT + - Fri, 19 Feb 2021 12:33:09 GMT expires: - '-1' pragma: @@ -1001,7 +1048,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -1019,12 +1066,12 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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"}}' @@ -1036,7 +1083,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:49 GMT + - Fri, 19 Feb 2021 12:33:11 GMT expires: - '-1' pragma: @@ -1052,7 +1099,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '48' status: code: 200 message: OK @@ -1084,18 +1131,18 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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/a01ecd48-08cb-403a-ab05-1e6cb30f4964?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bc2076cf-1e3f-48a3-b9a6-c068a59f4abe?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1103,11 +1150,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:26:52 GMT + - Fri, 19 Feb 2021 12:33:16 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a01ecd48-08cb-403a-ab05-1e6cb30f4964/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bc2076cf-1e3f-48a3-b9a6-c068a59f4abe/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1117,7 +1164,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 202 message: Accepted @@ -1135,10 +1182,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a01ecd48-08cb-403a-ab05-1e6cb30f4964?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/bc2076cf-1e3f-48a3-b9a6-c068a59f4abe?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1150,7 +1197,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:02 GMT + - Fri, 19 Feb 2021 12:33:28 GMT expires: - '-1' pragma: @@ -1182,10 +1229,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --action-name --source-pattern --destination User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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"}}' @@ -1197,7 +1244,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:03 GMT + - Fri, 19 Feb 2021 12:33:28 GMT expires: - '-1' pragma: @@ -1231,12 +1278,12 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"],"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"}}' @@ -1248,7 +1295,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:04 GMT + - Fri, 19 Feb 2021 12:33:30 GMT expires: - '-1' pragma: @@ -1264,7 +1311,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -1294,18 +1341,18 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":"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/ab8384ce-bfd3-4507-9f49-b80fb428dab9?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2f81038b-2b63-468c-99a1-9369e62ed0c2?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1313,11 +1360,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:06 GMT + - Fri, 19 Feb 2021 12:33:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ab8384ce-bfd3-4507-9f49-b80fb428dab9/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2f81038b-2b63-468c-99a1-9369e62ed0c2/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1327,7 +1374,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 202 message: Accepted @@ -1345,10 +1392,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/ab8384ce-bfd3-4507-9f49-b80fb428dab9?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/2f81038b-2b63-468c-99a1-9369e62ed0c2?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1360,7 +1407,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:17 GMT + - Fri, 19 Feb 2021 12:33:46 GMT expires: - '-1' pragma: @@ -1392,10 +1439,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":"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"}}' @@ -1407,7 +1454,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:18 GMT + - Fri, 19 Feb 2021 12:33:46 GMT expires: - '-1' pragma: @@ -1423,7 +1470,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -1441,12 +1488,12 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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":"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"}}' @@ -1458,7 +1505,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:19 GMT + - Fri, 19 Feb 2021 12:33:48 GMT expires: - '-1' pragma: @@ -1502,18 +1549,18 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"}}]}]},"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/78e60247-1946-42f1-940a-1d42a20a5a7f?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/974df24d-651a-4845-9698-fc3caacafd38?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1521,11 +1568,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:22 GMT + - Fri, 19 Feb 2021 12:33:54 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/78e60247-1946-42f1-940a-1d42a20a5a7f/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/974df24d-651a-4845-9698-fc3caacafd38/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1535,7 +1582,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '99' + - '98' status: code: 202 message: Accepted @@ -1553,10 +1600,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/78e60247-1946-42f1-940a-1d42a20a5a7f?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/974df24d-651a-4845-9698-fc3caacafd38?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1568,7 +1615,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:33 GMT + - Fri, 19 Feb 2021 12:34:05 GMT expires: - '-1' pragma: @@ -1600,10 +1647,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name --index User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1615,7 +1662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:34 GMT + - Fri, 19 Feb 2021 12:34:05 GMT expires: - '-1' pragma: @@ -1631,7 +1678,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '47' status: code: 200 message: OK @@ -1649,12 +1696,12 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"}}]}]},"urlSigningKeys":[],"webApplicationFirewallPolicyLink":null,"resourceState":"Running","provisioningState":"Succeeded"}}' @@ -1666,7 +1713,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:35 GMT + - Fri, 19 Feb 2021 12:34:06 GMT expires: - '-1' pragma: @@ -1682,7 +1729,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -1705,18 +1752,18 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f2937432-6219-4471-9214-e4abd3ce24a1?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/98bb23a6-8311-4f45-85ae-b73731ec70b9?api-version=2020-09-01 cache-control: - no-cache content-length: @@ -1724,11 +1771,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:38 GMT + - Fri, 19 Feb 2021 12:34:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f2937432-6219-4471-9214-e4abd3ce24a1/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/98bb23a6-8311-4f45-85ae-b73731ec70b9/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1756,10 +1803,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/f2937432-6219-4471-9214-e4abd3ce24a1?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/98bb23a6-8311-4f45-85ae-b73731ec70b9?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1771,7 +1818,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:49 GMT + - Fri, 19 Feb 2021 12:34:22 GMT expires: - '-1' pragma: @@ -1803,10 +1850,10 @@ interactions: ParameterSetName: - -g -n --profile-name --rule-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 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-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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"}}' @@ -1818,7 +1865,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:27:49 GMT + - Fri, 19 Feb 2021 12:34:23 GMT expires: - '-1' pragma: @@ -1834,7 +1881,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '49' + - '46' status: code: 200 message: OK @@ -1854,28 +1901,28 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile123/endpoints/endpoint000002?api-version=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/70daed15-437a-4f86-a470-c7aaf31f647a?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/04445ea3-21b9-4aa0-8632-0082e4287d55?api-version=2020-09-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 18 Dec 2020 07:27:51 GMT + - Fri, 19 Feb 2021 12:34:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/70daed15-437a-4f86-a470-c7aaf31f647a/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-04-15 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/04445ea3-21b9-4aa0-8632-0082e4287d55/profileresults/profile123/endpointresults/endpoint000002?api-version=2020-09-01 pragma: - no-cache server: @@ -1903,10 +1950,57 @@ interactions: ParameterSetName: - -g -n --profile-name User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-cdn/5.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/04445ea3-21b9-4aa0-8632-0082e4287d55?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, 19 Feb 2021 12:34: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - cdn endpoint delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/70daed15-437a-4f86-a470-c7aaf31f647a?api-version=2020-04-15 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/04445ea3-21b9-4aa0-8632-0082e4287d55?api-version=2020-09-01 response: body: string: '{"status":"Succeeded","error":{"code":"None","message":null}}' @@ -1918,7 +2012,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 18 Dec 2020 07:28:02 GMT + - Fri, 19 Feb 2021 12:35:07 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_set_crud.yaml b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_set_crud.yaml new file mode 100644 index 00000000000..50a214bd1b7 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/recordings/test_rule_set_crud.yaml @@ -0,0 +1,538 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets?api-version=2020-09-01 + response: + body: + string: '{"error":{"code":"ParentResourceNotFound","message":"Can not perform + requested operation on nested resource. Parent resource ''profile000002'' + not found."}}' + headers: + cache-control: + - no-cache + content-length: + - '157' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "global", "sku": {"name": "Standard_AzureFrontDoor"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"266e441c-3910-461a-b405-890fd3127875","resourceState":"Creating","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a89f37b2-4e14-46f9-91ca-77db3ff642a1?api-version=2020-09-01 + cache-control: + - no-cache + content-length: + - '475' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:15 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/operationresults/a89f37b2-4e14-46f9-91ca-77db3ff642a1?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: + - Fri, 19 Feb 2021 11:48: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd profile create + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name --sku + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002","type":"Microsoft.Cdn/profiles","name":"profile000002","location":"Global","kind":"frontdoor","tags":{},"sku":{"name":"Standard_AzureFrontDoor"},"properties":{"frontDoorId":"266e441c-3910-461a-b405-890fd3127875","resourceState":"Active","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '474' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: + - '46' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48: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: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003","type":"Microsoft.Cdn/profiles/rulesets","name":"ruleset000003","properties":{"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '373' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:28 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets?api-version=2020-09-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003","type":"Microsoft.Cdn/profiles/rulesets","name":"ruleset000003","properties":{"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '385' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:29 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set show + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003?api-version=2020-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/rulesets/ruleset000003","type":"Microsoft.Cdn/profiles/rulesets","name":"ruleset000003","properties":{"provisioningState":"Succeeded","deploymentStatus":"NotStarted"}}' + headers: + cache-control: + - no-cache + content-length: + - '373' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:29 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --rule-set-name --profile-name --yes + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003?api-version=2020-09-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 19 Feb 2021 11:48:31 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-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set show + Connection: + - keep-alive + ParameterSetName: + - -g --rule-set-name --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets/ruleset000003?api-version=2020-09-01 + response: + body: + string: '{"error":{"code":"NotFound","message":"The requested resource was not + found."}}' + headers: + cache-control: + - no-cache + content-length: + - '79' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - afd rule-set list + Connection: + - keep-alive + ParameterSetName: + - -g --profile-name + User-Agent: + - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-cdn/7.0.0 Azure-SDK-For-Python AZURECLI/2.19.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Cdn/profiles/profile000002/ruleSets?api-version=2020-09-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 19 Feb 2021 11:48:33 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/test_afd_custom_domain_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_custom_domain_scenarios.py new file mode 100644 index 00000000000..c79ea3cb4ce --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_custom_domain_scenarios.py @@ -0,0 +1,87 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin +from azure.mgmt.cdn.models import (AfdCertificateType, AfdMinimumTlsVersion) + + +class CdnAfdCustomDomainScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @record_only() # This tests relies on a specific subscription with existing resources + @ResourceGroupPreparer() + def test_afd_custom_domain_crud(self, resource_group): + profile_name = self.create_random_name(prefix='profile', length=16) + self.afd_custom_domain_list_cmd(resource_group, profile_name, expect_failure=True) + + # Create a standard Azure frontdoor profile + self.afd_profile_create_cmd(resource_group, profile_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_custom_domain_list_cmd(resource_group, profile_name, checks=list_checks) + + # Create a secret + secret_name = self.create_random_name(prefix='secret', length=24) + secret_source = f"/subscriptions/{self.get_subscription_id()}/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-wild" + use_latest_version = True + secret_version = None + + checks = [JMESPathCheck('provisioningState', 'Succeeded')] + secretData = self.afd_secret_create_cmd(resource_group, + profile_name, + secret_name, + secret_source, + use_latest_version, + secret_version, + checks=checks).get_output_in_json() + secretId = secretData['id'] + + custom_domain_name = self.create_random_name(prefix='customdomain', length=24) + host_name = f"{custom_domain_name}.localdev.cdn.azure.cn" + certificate_type = AfdCertificateType.customer_certificate + minimum_tls_version = AfdMinimumTlsVersion.tls12 + azure_dns_zone = None + + checks = [JMESPathCheck('domainValidationState', 'Approved')] + self.afd_custom_domain_create_cmd(resource_group, + profile_name, + custom_domain_name, + host_name, + certificate_type, + minimum_tls_version, + azure_dns_zone, + secretId, + checks=checks) + + show_checks = [JMESPathCheck('name', custom_domain_name), + JMESPathCheck('domainValidationState', 'Approved'), + JMESPathCheck('hostName', host_name), + JMESPathCheck('tlsSettings.certificateType', certificate_type), + JMESPathCheck('tlsSettings.minimumTlsVersion', minimum_tls_version), + JMESPathCheck('tlsSettings.secret.id', secretId)] + self.afd_custom_domain_show_cmd(resource_group, profile_name, custom_domain_name, checks=show_checks) + + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].name', custom_domain_name), + JMESPathCheck('@[0].domainValidationState', 'Approved')] + self.afd_custom_domain_list_cmd(resource_group, profile_name, checks=list_checks) + + # Updated to managed certificate + certificate_type = AfdCertificateType.managed_certificate + minimum_tls_version = AfdMinimumTlsVersion.tls10 + update_checks = [JMESPathCheck('name', custom_domain_name), + JMESPathCheck('domainValidationState', 'Approved'), + JMESPathCheck('hostName', host_name), + JMESPathCheck('tlsSettings.certificateType', certificate_type), + JMESPathCheck('tlsSettings.minimumTlsVersion', minimum_tls_version)] + self.afd_custom_domain_update_cmd(resource_group, + profile_name, + custom_domain_name, + certificate_type, + minimum_tls_version, + checks=update_checks) + + # Delete the custom domain + self.afd_custom_domain_delete_cmd(resource_group, profile_name, custom_domain_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_custom_domain_list_cmd(resource_group, profile_name, checks=list_checks) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_endpoint_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_endpoint_scenarios.py new file mode 100644 index 00000000000..6f526c2c543 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_endpoint_scenarios.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + + +class CdnAfdEndpointScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_endpoint_crud(self, resource_group): + profile_name = 'profile123' + self.afd_endpoint_list_cmd(resource_group, profile_name, expect_failure=True) + + self.afd_profile_create_cmd(resource_group, profile_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_endpoint_list_cmd(resource_group, profile_name, checks=list_checks) + + endpoint_name = self.create_random_name(prefix='endpoint', length=24) + origin_response_timeout_seconds = 100 + enabled_state = "Enabled" + checks = [JMESPathCheck('originResponseTimeoutSeconds', 100), + JMESPathCheck('enabledState', 'Enabled')] + self.afd_endpoint_create_cmd(resource_group, + profile_name, + endpoint_name, + origin_response_timeout_seconds, + enabled_state, + checks=checks) + + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].hostName', f'{endpoint_name}.z01.azurefd.net'), + JMESPathCheck('@[0].originResponseTimeoutSeconds', 100), + JMESPathCheck('@[0].enabledState', 'Enabled')] + self.afd_endpoint_list_cmd(resource_group, profile_name, checks=list_checks) + + update_checks = [JMESPathCheck('hostName', f'{endpoint_name}.z01.azurefd.net'), + JMESPathCheck('originResponseTimeoutSeconds', 100), + JMESPathCheck('enabledState', 'Disabled')] + options = '--enabled-state Disabled' + self.afd_endpoint_update_cmd(resource_group, + profile_name, + endpoint_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('hostName', f'{endpoint_name}.z01.azurefd.net'), + JMESPathCheck('originResponseTimeoutSeconds', 120), + JMESPathCheck('enabledState', 'Enabled')] + options = '--origin-response-timeout-seconds 120 --enabled-state Enabled' + self.afd_endpoint_update_cmd(resource_group, + profile_name, + endpoint_name, + options=options, + checks=update_checks) + + self.afd_endpoint_delete_cmd(resource_group, endpoint_name, profile_name) + + @ResourceGroupPreparer() + def test_afd_endpoint_purge(self, resource_group): + profile_name = 'profile123' + self.afd_profile_create_cmd(resource_group, profile_name) + + endpoint_name = self.create_random_name(prefix='endpoint', length=24) + origin_response_timeout_seconds = 100 + enabled_state = "Enabled" + self.afd_endpoint_create_cmd(resource_group, profile_name, endpoint_name, origin_response_timeout_seconds, enabled_state) + + content_paths = ['/index.html', '/javascript/*'] + self.afd_endpoint_purge_cmd(resource_group, endpoint_name, profile_name, content_paths) + + self.afd_endpoint_purge_cmd(resource_group, endpoint_name, profile_name, content_paths, domains=[f'{endpoint_name}.z01.azurefd.net']) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_log_analytic_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_log_analytic_scenarios.py new file mode 100644 index 00000000000..4ba683b8522 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_log_analytic_scenarios.py @@ -0,0 +1,84 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin +import datetime + + +class CdnAfdLogAnalyticScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_log_analytic(self, resource_group): + profile_name = 'profile123' + self.afd_profile_create_cmd(resource_group, profile_name) + + endpoint_name = self.create_random_name(prefix='endpoint', length=24) + origin_response_timeout_seconds = 100 + enabled_state = "Enabled" + checks = [JMESPathCheck('originResponseTimeoutSeconds', 100), + JMESPathCheck('enabledState', 'Enabled')] + self.afd_endpoint_create_cmd(resource_group, + profile_name, + endpoint_name, + origin_response_timeout_seconds, + enabled_state, + checks=checks) + + domain = f'{endpoint_name}.z01.azurefd.net' + + start_time = datetime.datetime.now().astimezone().replace(microsecond=0) + if self.is_playback_mode(): + start_time = datetime.datetime(2021, 2, 19, 11, 47, 41, tzinfo=datetime.timezone.utc) + + end_time = start_time + datetime.timedelta(seconds=300) + + location_list_commands = f"afd log-analytic location list -g {resource_group} --profile-name {profile_name}" + self.cmd(location_list_commands, expect_failure=False) + + resource_list_commands = f"afd log-analytic resource list -g {resource_group} --profile-name {profile_name}" + self.cmd(resource_list_commands, expect_failure=False) + + metric_list_commands = f"afd log-analytic metric list -g {resource_group} --profile-name {profile_name} --metrics clientRequestCount " + \ + f"--date-time-begin {start_time.isoformat()} --granularity PT5M --date-time-end {end_time.isoformat()} --custom-domains {domain} --protocols http --group-by cacheStatus" + self.cmd(metric_list_commands, expect_failure=False) + + ranking_list_commands = f"afd log-analytic ranking list -g {resource_group} --profile-name {profile_name} --metrics clientRequestCount " + \ + f"--date-time-begin {start_time.isoformat()} --date-time-end {end_time.isoformat()} --custom-domains {domain} --rankings referrer --max-ranking 10" + self.cmd(ranking_list_commands, expect_failure=False) + + self.afd_endpoint_delete_cmd(resource_group, endpoint_name, profile_name) + + @ResourceGroupPreparer() + def test_afd_waf_log_analytic(self, resource_group): + profile_name = 'profile123' + self.afd_profile_create_cmd(resource_group, profile_name, sku="Premium_AzureFrontDoor") + + endpoint_name = self.create_random_name(prefix='endpoint', length=24) + origin_response_timeout_seconds = 100 + enabled_state = "Enabled" + checks = [JMESPathCheck('originResponseTimeoutSeconds', 100), + JMESPathCheck('enabledState', 'Enabled')] + self.afd_endpoint_create_cmd(resource_group, + profile_name, + endpoint_name, + origin_response_timeout_seconds, + enabled_state, + checks=checks) + + start_time = datetime.datetime.now().astimezone().replace(microsecond=0) + if self.is_playback_mode(): + start_time = datetime.datetime(2021, 2, 19, 11, 47, 45, tzinfo=datetime.timezone.utc) + + end_time = start_time + datetime.timedelta(seconds=300) + + metric_list_commands = f"afd waf-log-analytic metric list -g {resource_group} --profile-name {profile_name} --metrics clientRequestCount " + \ + f"--date-time-begin {start_time.isoformat()} --date-time-end {end_time.isoformat()} --granularity PT5M --rule-types managed" + self.cmd(metric_list_commands, expect_failure=False) + + ranking_list_commands = f"afd waf-log-analytic ranking list -g {resource_group} --profile-name {profile_name} --metrics clientRequestCount " + \ + f"--date-time-begin {start_time.isoformat()} --date-time-end {end_time.isoformat()} --rankings action --max-ranking 10" + self.cmd(ranking_list_commands, expect_failure=False) + + self.afd_endpoint_delete_cmd(resource_group, endpoint_name, profile_name) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_origin_group_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_origin_group_scenarios.py new file mode 100644 index 00000000000..8745633d09a --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_origin_group_scenarios.py @@ -0,0 +1,91 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + + +class CdnAfdOriginGroupScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_origin_group_crud(self, resource_group): + profile_name = self.create_random_name(prefix='profile', length=16) + self.afd_profile_create_cmd(resource_group, profile_name) + + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_origin_group_list_cmd(resource_group, profile_name, list_checks) + + origin_group_name = self.create_random_name(prefix='og', length=16) + checks = [JMESPathCheck('name', origin_group_name), + JMESPathCheck('loadBalancingSettings.sampleSize', 4), + JMESPathCheck('loadBalancingSettings.successfulSamplesRequired', 3), + JMESPathCheck('loadBalancingSettings.additionalLatencyInMilliseconds', 50), + JMESPathCheck('healthProbeSettings.probePath', "/test1/azure.txt"), + JMESPathCheck('healthProbeSettings.probeProtocol', "Http"), + JMESPathCheck('healthProbeSettings.probeIntervalInSeconds', 120), + JMESPathCheck('healthProbeSettings.probeRequestType', "GET"), + JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_origin_group_create_cmd(resource_group, + profile_name, + origin_group_name, + "--probe-request-type GET --probe-protocol Http --probe-interval-in-seconds 120 --probe-path /test1/azure.txt " + + "--sample-size 4 --successful-samples-required 3 --additional-latency-in-milliseconds 50", + checks=checks) + + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].name', origin_group_name)] + self.afd_origin_group_list_cmd(resource_group, profile_name, checks=list_checks) + + update_checks = [JMESPathCheck('name', origin_group_name), + JMESPathCheck('loadBalancingSettings.sampleSize', 4), + JMESPathCheck('loadBalancingSettings.successfulSamplesRequired', 3), + JMESPathCheck('loadBalancingSettings.additionalLatencyInMilliseconds', 50), + JMESPathCheck('healthProbeSettings.probePath', "/test1/azure.txt"), + JMESPathCheck('healthProbeSettings.probeProtocol', "Https"), + JMESPathCheck('healthProbeSettings.probeIntervalInSeconds', 120), + JMESPathCheck('healthProbeSettings.probeRequestType', "GET"), + JMESPathCheck('provisioningState', 'Succeeded')] + options = '--probe-request-type GET --probe-protocol Https' + self.afd_origin_group_update_cmd(resource_group, + profile_name, + origin_group_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('name', origin_group_name), + JMESPathCheck('loadBalancingSettings.sampleSize', 5), + JMESPathCheck('loadBalancingSettings.successfulSamplesRequired', 3), + JMESPathCheck('loadBalancingSettings.additionalLatencyInMilliseconds', 30), + JMESPathCheck('healthProbeSettings.probePath', "/test1/azure.txt"), + JMESPathCheck('healthProbeSettings.probeProtocol', "Https"), + JMESPathCheck('healthProbeSettings.probeIntervalInSeconds', 120), + JMESPathCheck('healthProbeSettings.probeRequestType', "GET"), + JMESPathCheck('provisioningState', 'Succeeded')] + options = '--sample-size 5 --additional-latency-in-milliseconds 30' + self.afd_origin_group_update_cmd(resource_group, + profile_name, + origin_group_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('name', origin_group_name), + JMESPathCheck('loadBalancingSettings.sampleSize', 4), + JMESPathCheck('loadBalancingSettings.successfulSamplesRequired', 3), + JMESPathCheck('loadBalancingSettings.additionalLatencyInMilliseconds', 30), + JMESPathCheck('healthProbeSettings.probePath', "/test1/azure.txt"), + JMESPathCheck('healthProbeSettings.probeProtocol', "Https"), + JMESPathCheck('healthProbeSettings.probeIntervalInSeconds', 120), + JMESPathCheck('healthProbeSettings.probeRequestType', "HEAD"), + JMESPathCheck('provisioningState', 'Succeeded')] + options = '--sample-size 4 --additional-latency-in-milliseconds 30 --probe-request-type HEAD' + self.afd_origin_group_update_cmd(resource_group, + profile_name, + origin_group_name, + options=options, + checks=update_checks) + + self.afd_origin_group_delete_cmd(resource_group, profile_name, origin_group_name) + + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_origin_group_list_cmd(resource_group, profile_name, list_checks) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_origin_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_origin_scenarios.py new file mode 100644 index 00000000000..6ef2f5ff958 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_origin_scenarios.py @@ -0,0 +1,149 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + + +class CdnAfdOriginScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_origin_crud(self, resource_group): + profile_name = self.create_random_name(prefix='profile', length=16) + self.afd_profile_create_cmd(resource_group, profile_name, sku="Premium_AzureFrontDoor") + + origin_group_name = self.create_random_name(prefix='og', length=16) + self.afd_origin_group_create_cmd(resource_group, + profile_name, + origin_group_name, + "--probe-request-type GET --probe-protocol Http --probe-interval-in-seconds 120 --probe-path /test1/azure.txt " + "--sample-size 4 --successful-samples-required 3 --additional-latency-in-milliseconds 50") + + origin_name = self.create_random_name(prefix='origin', length=16) + create_options = "--host-name huaiyiztesthost1.blob.core.chinacloudapi.cn " \ + + "--origin-host-header huaiyiztesthost1.blob.core.chinacloudapi.cn " \ + + "--priority 1 --weight 1000 --http-port 80 --https-port 443 --enabled-state Enabled" + + create_checks = [JMESPathCheck('name', origin_name), + JMESPathCheck('hostName', "huaiyiztesthost1.blob.core.chinacloudapi.cn"), + JMESPathCheck('httpPort', 80), + JMESPathCheck('httpsPort', 443), + JMESPathCheck('priority', 1), + JMESPathCheck('weight', 1000), + JMESPathCheck('enabledState', "Enabled"), + JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_origin_create_cmd(resource_group, + profile_name, + origin_group_name, + origin_name, + create_options, + create_checks) + + origin_name1 = self.create_random_name(prefix='origin', length=16) + create_options = "--host-name huaiyiztesthost1.blob.core.chinacloudapi.cn " \ + + "--origin-host-header huaiyiztesthost1.blob.core.chinacloudapi.cn " \ + + "--priority 1 --weight 666 --http-port 8080 --https-port 443 --enabled-state Enabled" + + create_checks = [JMESPathCheck('name', origin_name1), + JMESPathCheck('hostName', "huaiyiztesthost1.blob.core.chinacloudapi.cn"), + JMESPathCheck('httpPort', 8080), + JMESPathCheck('httpsPort', 443), + JMESPathCheck('priority', 1), + JMESPathCheck('weight', 666), + JMESPathCheck('enabledState', "Enabled"), + JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_origin_create_cmd(resource_group, + profile_name, + origin_group_name, + origin_name1, + create_options, + create_checks) + + list_checks = [JMESPathCheck('length(@)', 2), + JMESPathCheck('@[0].name', origin_name), + JMESPathCheck('@[1].name', origin_name1)] + self.afd_origin_list_cmd(resource_group, profile_name, origin_group_name, checks=list_checks) + + update_checks = [JMESPathCheck('name', origin_name), + JMESPathCheck('hostName', "huaiyiztesthost1.blob.core.chinacloudapi.cn"), + JMESPathCheck('httpPort', 8080), + JMESPathCheck('httpsPort', 443), + JMESPathCheck('priority', 1), + JMESPathCheck('weight', 58), + JMESPathCheck('enabledState', "Enabled"), + JMESPathCheck('provisioningState', 'Succeeded')] + options = '--weight 58 --http-port 8080' + self.afd_origin_update_cmd(resource_group, + profile_name, + origin_group_name, + origin_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('name', origin_name), + JMESPathCheck('hostName', "huaiyiztesthost1.blob.core.chinacloudapi.cn"), + JMESPathCheck('httpPort', 80), + JMESPathCheck('httpsPort', 443), + JMESPathCheck('priority', 1), + JMESPathCheck('weight', 58), + JMESPathCheck('enabledState', "Enabled"), + JMESPathCheck('sharedPrivateLinkResource.privateLink.id', f"/subscriptions/{self.get_subscription_id()}/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"), + JMESPathCheck('sharedPrivateLinkResource.groupId', "blob"), + JMESPathCheck('sharedPrivateLinkResource.privateLinkLocation', "eastus"), + JMESPathCheck('sharedPrivateLinkResource.requestMessage', "Private link service from AFD"), + JMESPathCheck('provisioningState', 'Succeeded')] + options = '--http-port 80 --enable-private-link --private-link-resource ' \ + + f' /subscriptions/{self.get_subscription_id()}/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest' \ + + ' --private-link-sub-resource blob' \ + + ' --private-link-location eastus' \ + + ' --private-link-request-message "Private link service from AFD"' + self.afd_origin_update_cmd(resource_group, + profile_name, + origin_group_name, + origin_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('name', origin_name), + JMESPathCheck('hostName', "huaiyiztesthost1.blob.core.chinacloudapi.cn"), + JMESPathCheck('httpPort', 80), + JMESPathCheck('httpsPort', 443), + JMESPathCheck('priority', 1), + JMESPathCheck('weight', 58), + JMESPathCheck('enabledState', "Enabled"), + JMESPathCheck('sharedPrivateLinkResource.privateLink.id', f"/subscriptions/{self.get_subscription_id()}/resourceGroups/AFDX-Portal-BugBash/providers/Microsoft.Storage/storageAccounts/plstest"), + JMESPathCheck('sharedPrivateLinkResource.groupId', "table"), + JMESPathCheck('sharedPrivateLinkResource.privateLinkLocation', "eastus"), + JMESPathCheck('sharedPrivateLinkResource.requestMessage', "Private link service from AFD"), + JMESPathCheck('provisioningState', 'Succeeded')] + options = '--private-link-sub-resource table' + self.afd_origin_update_cmd(resource_group, + profile_name, + origin_group_name, + origin_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('name', origin_name), + JMESPathCheck('hostName', "huaiyiztesthost1.blob.core.chinacloudapi.cn"), + JMESPathCheck('httpPort', 80), + JMESPathCheck('httpsPort', 443), + JMESPathCheck('priority', 1), + JMESPathCheck('weight', 99), + JMESPathCheck('enabledState', "Disabled"), + JMESPathCheck('sharedPrivateLinkResource', None), + JMESPathCheck('provisioningState', 'Succeeded')] + options = '--weight 99 --enable-private-link false --enabled-state Disabled' + self.afd_origin_update_cmd(resource_group, + profile_name, + origin_group_name, + origin_name, + options=options, + checks=update_checks) + + self.afd_origin_delete_cmd(resource_group, profile_name, origin_group_name, origin_name) + self.afd_origin_delete_cmd(resource_group, profile_name, origin_group_name, origin_name1) + + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_origin_list_cmd(resource_group, profile_name, origin_group_name, list_checks) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_profile_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_profile_scenarios.py new file mode 100644 index 00000000000..1f8e50165de --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_profile_scenarios.py @@ -0,0 +1,55 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + + +class CdnAfdProfileScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_profile_crud(self, resource_group): + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_profile_list_cmd(resource_group, checks=list_checks) + + profile_name = self.create_random_name(prefix='profile', length=24) + + tags = 'tag1=value1 tag2=value2' + self.afd_profile_create_cmd(resource_group, profile_name, tags=tags) + + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].location', "Global"), + JMESPathCheck('@[0].sku.name', 'Standard_AzureFrontDoor'), + JMESPathCheck('@[0].tags.tag1', 'value1'), + JMESPathCheck('@[0].tags.tag2', 'value2')] + self.afd_profile_list_cmd(resource_group, checks=list_checks) + + show_checks = [JMESPathCheck('location', "Global"), + JMESPathCheck('sku.name', 'Standard_AzureFrontDoor'), + JMESPathCheck('length(tags)', 2), + JMESPathCheck('tags.tag1', 'value1'), + JMESPathCheck('tags.tag2', 'value2')] + self.afd_profile_show_cmd(resource_group, + profile_name, + checks=show_checks) + + update_checks = [JMESPathCheck('location', "Global"), + JMESPathCheck('sku.name', 'Standard_AzureFrontDoor'), + JMESPathCheck('tags.tag1', None), + JMESPathCheck('tags.tag2', None), + JMESPathCheck('tags.tag3', 'value3'), + JMESPathCheck('tags.tag4', 'value4')] + tags = 'tag3=value3 tag4=value4' + self.afd_profile_update_cmd(resource_group, + profile_name, + tags=tags, + checks=update_checks) + + usage_checks = [JMESPathCheck('length(@)', 6)] + self.cmd(f"afd profile usage -g {resource_group} --profile-name {profile_name}", checks=usage_checks) + + self.afd_profile_delete_cmd(resource_group, profile_name) + + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_profile_list_cmd(resource_group, checks=list_checks) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_route_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_route_scenarios.py new file mode 100644 index 00000000000..5a6b8598135 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_route_scenarios.py @@ -0,0 +1,147 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + + +class CdnAfdRouteScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_route_crud(self, resource_group): + profile_name = self.create_random_name(prefix='profile', length=16) + self.afd_profile_create_cmd(resource_group, profile_name) + + endpoint_name = self.create_random_name(prefix='endpoint', length=24) + origin_response_timeout_seconds = 100 + enabled_state = "Enabled" + self.afd_endpoint_create_cmd(resource_group, + profile_name, + endpoint_name, + origin_response_timeout_seconds, + enabled_state) + + origin_group_name = self.create_random_name(prefix='og', length=16) + self.afd_origin_group_create_cmd(resource_group, + profile_name, + origin_group_name, + "--probe-request-type GET --probe-protocol Http --probe-interval-in-seconds 120 --probe-path /test1/azure.txt " + + "--sample-size 4 --successful-samples-required 3 --additional-latency-in-milliseconds 50") + + origin_group_id = f'/subscriptions/{self.get_subscription_id()}/resourceGroups/{resource_group}/providers/Microsoft.Cdn/profiles/{profile_name}/originGroups/{origin_group_name}' + + origin_name = self.create_random_name(prefix='origin', length=16) + create_options = "--host-name huaiyiztesthost1.blob.core.chinacloudapi.cn " \ + + "--origin-host-header huaiyiztesthost1.blob.core.chinacloudapi.cn " \ + + "--priority 1 --weight 1000 --http-port 80 --https-port 443 --enabled-state Enabled" + + self.afd_origin_create_cmd(resource_group, + profile_name, + origin_group_name, + origin_name, + create_options) + + route_name = self.create_random_name(prefix='route', length=16) + create_options = f"--origin-group {origin_group_name} " \ + + "--supported-protocols Https Http --link-to-default-domain Enabled " \ + + "--https-redirect Enabled --forwarding-protocol MatchRequest" + + create_checks = [JMESPathCheck('supportedProtocols[0]', "Https"), + JMESPathCheck('supportedProtocols[1]', "Http"), + JMESPathCheck('linkToDefaultDomain', "Enabled"), + JMESPathCheck('forwardingProtocol', "MatchRequest"), + JMESPathCheck('httpsRedirect', "Enabled"), + JMESPathCheck('queryStringCachingBehavior', "NotSet"), + JMESPathCheck('compressionSettings.isCompressionEnabled', False), + JMESPathCheck('originGroup.id', origin_group_id)] + self.afd_route_create_cmd(resource_group, + profile_name, + endpoint_name, + route_name, + create_options, + create_checks) + + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].name', route_name)] + self.afd_route_list_cmd(resource_group, profile_name, endpoint_name, checks=list_checks) + + update_checks = [JMESPathCheck('supportedProtocols[0]', "Https"), + JMESPathCheck('supportedProtocols[1]', "Http"), + JMESPathCheck('linkToDefaultDomain', "Enabled"), + JMESPathCheck('forwardingProtocol', "HttpsOnly"), + JMESPathCheck('httpsRedirect', "Enabled"), + JMESPathCheck('queryStringCachingBehavior', "IgnoreQueryString"), + JMESPathCheck('compressionSettings.isCompressionEnabled', True), + JMESPathCheck('length(compressionSettings.contentTypesToCompress)', 2), + JMESPathCheck('compressionSettings.contentTypesToCompress[0]', 'text/javascript'), + JMESPathCheck('compressionSettings.contentTypesToCompress[1]', 'text/plain'), + JMESPathCheck('originGroup.id', origin_group_id)] + options = '--forwarding-protocol HttpsOnly --query-string-caching-behavior IgnoreQueryString --enable-compression True --content-types-to-compress text/javascript text/plain' + self.afd_route_update_cmd(resource_group, + profile_name, + endpoint_name, + route_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('supportedProtocols[0]', "Https"), + JMESPathCheck('supportedProtocols[1]', "Http"), + JMESPathCheck('linkToDefaultDomain', "Enabled"), + JMESPathCheck('forwardingProtocol', "HttpsOnly"), + JMESPathCheck('httpsRedirect', "Enabled"), + JMESPathCheck('queryStringCachingBehavior', "UseQueryString"), + JMESPathCheck('compressionSettings.isCompressionEnabled', True), + JMESPathCheck('length(compressionSettings.contentTypesToCompress)', 1), + JMESPathCheck('compressionSettings.contentTypesToCompress[0]', 'text/css'), + JMESPathCheck('originGroup.id', origin_group_id)] + options = '--query-string-caching-behavior UseQueryString --content-types-to-compress text/css' + self.afd_route_update_cmd(resource_group, + profile_name, + endpoint_name, + route_name, + options=options, + checks=update_checks) + + rule_set_name = self.create_random_name(prefix='ruleset', length=16) + self.afd_rule_set_add_cmd(resource_group, rule_set_name, profile_name) + rule_set_id = f'/subscriptions/{self.get_subscription_id()}/resourceGroups/{resource_group}/providers/Microsoft.Cdn/profiles/{profile_name}/ruleSets/{rule_set_name}' + + update_checks = [JMESPathCheck('supportedProtocols[0]', "Https"), + JMESPathCheck('supportedProtocols[1]', "Http"), + JMESPathCheck('linkToDefaultDomain', "Enabled"), + JMESPathCheck('forwardingProtocol', "HttpsOnly"), + JMESPathCheck('httpsRedirect', "Enabled"), + JMESPathCheck('queryStringCachingBehavior', "UseQueryString"), + JMESPathCheck('compressionSettings.isCompressionEnabled', False), + JMESPathCheck('originGroup.id', origin_group_id), + JMESPathCheck('ruleSets[0].id', rule_set_id)] + options = f'--rule-sets {rule_set_name} --enable-compression False' + self.afd_route_update_cmd(resource_group, + profile_name, + endpoint_name, + route_name, + options=options, + checks=update_checks) + + update_checks = [JMESPathCheck('supportedProtocols[0]', "Https"), + JMESPathCheck('supportedProtocols[1]', "Http"), + JMESPathCheck('linkToDefaultDomain', "Enabled"), + JMESPathCheck('forwardingProtocol', "HttpsOnly"), + JMESPathCheck('httpsRedirect', "Disabled"), + JMESPathCheck('compressionSettings.isCompressionEnabled', False), + JMESPathCheck('originGroup.id', origin_group_id), + JMESPathCheck('length(ruleSets)', 0), + JMESPathCheck('queryStringCachingBehavior', "UseQueryString")] + options = '--rule-sets --https-redirect Disabled' + self.afd_route_update_cmd(resource_group, + profile_name, + endpoint_name, + route_name, + options=options, + checks=update_checks) + + self.afd_route_delete_cmd(resource_group, profile_name, endpoint_name, route_name) + + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_route_list_cmd(resource_group, profile_name, endpoint_name, list_checks) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_rule_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_rule_scenarios.py new file mode 100644 index 00000000000..5541eb66897 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_rule_scenarios.py @@ -0,0 +1,175 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + +from azure.mgmt.cdn.models import SkuName + + +class CdnAfdRuleScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_rule_set_crud(self, resource_group): + profile_name = self.create_random_name(prefix='profile', length=16) + self.afd_rule_set_list_cmd(resource_group, profile_name, expect_failure=True) + self.afd_profile_create_cmd(resource_group, profile_name) + + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_rule_set_list_cmd(resource_group, profile_name, checks=list_checks) + + rule_set_name = self.create_random_name(prefix='ruleset', length=16) + self.afd_rule_set_add_cmd(resource_group, rule_set_name, profile_name) + + list_checks = [JMESPathCheck('length(@)', 1)] + self.afd_rule_set_list_cmd(resource_group, profile_name, checks=list_checks) + + show_checks = [JMESPathCheck('name', rule_set_name), + JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_rule_set_show_cmd(resource_group, rule_set_name, profile_name, checks=show_checks) + + self.afd_rule_set_delete_cmd(resource_group, rule_set_name, profile_name) + + self.afd_rule_set_show_cmd(resource_group, rule_set_name, profile_name, expect_failure=True) + + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_rule_set_list_cmd(resource_group, profile_name, checks=list_checks) + + @ResourceGroupPreparer() + def test_afd_rule_crud(self, resource_group): + profile_name = self.create_random_name(prefix='profile', length=16) + self.afd_profile_create_cmd(resource_group, profile_name) + + rule_set_name = self.create_random_name(prefix='ruleset', length=16) + self.afd_rule_set_add_cmd(resource_group, rule_set_name, profile_name) + + rule_list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_rule_list_cmd(resource_group, rule_set_name, profile_name, checks=rule_list_checks) + + rule_name = 'r1' + rule_create_checks = [JMESPathCheck('order', 1), + JMESPathCheck('name', rule_name), + JMESPathCheck('length(conditions)', 1), + JMESPathCheck('conditions[0].name', "RemoteAddress"), + JMESPathCheck('conditions[0].parameters.operator', 'GeoMatch'), + JMESPathCheck('conditions[0].parameters.matchValues[0]', 'TH'), + JMESPathCheck('length(actions)', 1), + JMESPathCheck('actions[0].name', "CacheExpiration"), + JMESPathCheck('actions[0].parameters.cacheBehavior', 'BypassCache')] + self.afd_rule_add_cmd(resource_group, + rule_set_name, + rule_name, + profile_name, + options='--match-variable RemoteAddress --operator GeoMatch --match-values "TH" --action-name CacheExpiration --cache-behavior BypassCache --order 1', + checks=rule_create_checks) + rule_name1 = 'r2' + rule_create_checks = [JMESPathCheck('order', 2), + JMESPathCheck('name', rule_name1), + JMESPathCheck('length(conditions)', 1), + JMESPathCheck('conditions[0].name', "RequestScheme"), + JMESPathCheck('conditions[0].parameters.matchValues[0]', 'HTTP'), + JMESPathCheck('length(actions)', 1), + JMESPathCheck('actions[0].name', "UrlRedirect"), + JMESPathCheck('actions[0].parameters.redirectType', "Moved"), + JMESPathCheck('actions[0].parameters.destinationProtocol', 'Https')] + self.afd_rule_add_cmd(resource_group, + rule_set_name, + rule_name1, + profile_name, + options='--match-variable RequestScheme --match-values "HTTP" --action-name UrlRedirect --redirect-protocol Https --redirect-type Moved --order 2', + checks=rule_create_checks) + + rule_list_checks = [JMESPathCheck('length(@)', 2)] + self.afd_rule_list_cmd(resource_group, rule_set_name, profile_name, checks=rule_list_checks) + + self.afd_rule_delete_cmd(resource_group, rule_set_name, rule_name1, profile_name) + rule_list_checks = [JMESPathCheck('length(@)', 1)] + self.afd_rule_list_cmd(resource_group, rule_set_name, profile_name, checks=rule_list_checks) + + rule_update_checks = [JMESPathCheck('order', 1), + JMESPathCheck('name', rule_name), + JMESPathCheck('length(conditions)', 2), + JMESPathCheck('conditions[1].name', "RemoteAddress"), + JMESPathCheck('conditions[1].parameters.operator', 'GeoMatch'), + JMESPathCheck('conditions[1].parameters.matchValues[0]', 'TH'), + JMESPathCheck('conditions[1].parameters.matchValues[1]', 'US'), + JMESPathCheck('length(actions)', 1), + JMESPathCheck('actions[0].name', "CacheExpiration"), + JMESPathCheck('actions[0].parameters.cacheBehavior', 'BypassCache')] + self.afd_rule_add_condition_cmd(resource_group, + rule_set_name, + rule_name, + profile_name, + checks=rule_update_checks, + options='--match-variable RemoteAddress ' + '--operator GeoMatch --match-values "TH" "US"') + + rule_update_checks = [JMESPathCheck('order', 1), + JMESPathCheck('name', rule_name), + JMESPathCheck('length(conditions)', 2), + JMESPathCheck('conditions[1].name', "RemoteAddress"), + JMESPathCheck('conditions[1].parameters.operator', 'GeoMatch'), + JMESPathCheck('conditions[1].parameters.matchValues[0]', 'TH'), + JMESPathCheck('conditions[1].parameters.matchValues[1]', 'US'), + JMESPathCheck('length(actions)', 2), + JMESPathCheck('actions[0].name', "CacheExpiration"), + JMESPathCheck('actions[0].parameters.cacheBehavior', 'BypassCache'), + JMESPathCheck('actions[1].name', "UrlRewrite"), + JMESPathCheck('actions[1].parameters.sourcePattern', '/abc'), + JMESPathCheck('actions[1].parameters.destination', '/def')] + self.afd_rule_add_action_cmd(resource_group, + rule_set_name, + rule_name, + profile_name, + checks=rule_update_checks, + options='--action-name "UrlRewrite" ' + '--source-pattern "/abc" --destination "/def"') + + rule_update_checks = [JMESPathCheck('order', 1), + JMESPathCheck('name', rule_name), + JMESPathCheck('length(conditions)', 1), + JMESPathCheck('conditions[0].name', "RemoteAddress"), + JMESPathCheck('conditions[0].parameters.operator', 'GeoMatch'), + JMESPathCheck('conditions[0].parameters.matchValues[0]', 'TH'), + JMESPathCheck('conditions[0].parameters.matchValues[1]', 'US'), + JMESPathCheck('length(actions)', 2), + JMESPathCheck('actions[0].name', "CacheExpiration"), + JMESPathCheck('actions[0].parameters.cacheBehavior', 'BypassCache'), + JMESPathCheck('actions[1].name', "UrlRewrite"), + JMESPathCheck('actions[1].parameters.sourcePattern', '/abc'), + JMESPathCheck('actions[1].parameters.destination', '/def')] + self.afd_rule_remove_condition_cmd(resource_group, + rule_set_name, + rule_name, + profile_name, + 0, + checks=rule_update_checks) + + rule_update_checks = [JMESPathCheck('order', 1), + JMESPathCheck('name', rule_name), + JMESPathCheck('length(conditions)', 1), + JMESPathCheck('conditions[0].name', "RemoteAddress"), + JMESPathCheck('conditions[0].parameters.operator', 'GeoMatch'), + JMESPathCheck('conditions[0].parameters.matchValues[0]', 'TH'), + JMESPathCheck('conditions[0].parameters.matchValues[1]', 'US'), + JMESPathCheck('length(actions)', 1), + JMESPathCheck('actions[0].name', "UrlRewrite"), + JMESPathCheck('actions[0].parameters.sourcePattern', '/abc'), + JMESPathCheck('actions[0].parameters.destination', '/def')] + self.afd_rule_remove_action_cmd(resource_group, + rule_set_name, + rule_name, + profile_name, + 0, + checks=rule_update_checks) + + self.afd_rule_delete_cmd(resource_group, + rule_set_name, + rule_name, + profile_name) + + rule_list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_rule_list_cmd(resource_group, rule_set_name, profile_name, checks=rule_list_checks) + + self.afd_rule_set_delete_cmd(resource_group, rule_set_name, profile_name) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_secret_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_secret_scenarios.py new file mode 100644 index 00000000000..0c5a581254a --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_secret_scenarios.py @@ -0,0 +1,95 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + + +class CdnAfdSecretScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_secret_specific_version_crud(self, resource_group): + profile_name = self.create_random_name(prefix='profile', length=24) + self.afd_secret_list_cmd(resource_group, profile_name, expect_failure=True) + + # Create a standard Azure frontdoor profile + self.afd_profile_create_cmd(resource_group, profile_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_secret_list_cmd(resource_group, profile_name, checks=list_checks) + + # Create a secret + secret_name = self.create_random_name(prefix='secret', length=24) + secret_source = f"/subscriptions/{self.get_subscription_id()}/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi" + secret_version = "3528eb888f114c20930edbd56c7ed57c" + + checks = [JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_secret_create_cmd(resource_group, + profile_name, + secret_name, + secret_source, + use_latest_version=False, + secret_version=secret_version, + checks=checks) + + show_checks = [JMESPathCheck('name', secret_name), + JMESPathCheck('provisioningState', 'Succeeded'), + JMESPathCheck('parameters.type', 'CustomerCertificate'), + JMESPathCheck('parameters.secretVersion', secret_version), + JMESPathCheck('parameters.useLatestVersion', False)] + self.afd_secret_show_cmd(resource_group, profile_name, secret_name, checks=show_checks) + + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].name', secret_name), + JMESPathCheck('@[0].provisioningState', 'Succeeded')] + self.afd_secret_list_cmd(resource_group, profile_name, checks=list_checks) + + # Secret update is not supported in RP yet. + # update_checks = [JMESPathCheck('provisioningState', 'Succeeded'), + # JMESPathCheck('parameters.type', 'CustomerCertificate'), + # JMESPathCheck('parameters.secretVersion', None), + # JMESPathCheck('parameters.useLatestVersion', True)] + # self.afd_secret_update_cmd(resource_group, + # profile_name, + # secret_name, + # use_latest_version=True, + # checks=update_checks) + + # Delete the secret + self.afd_secret_delete_cmd(resource_group, profile_name, secret_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_secret_list_cmd(resource_group, profile_name, checks=list_checks) + + @ResourceGroupPreparer() + def test_afd_secret_latest_version_crud(self, resource_group): + # Create a standard Azure frontdoor profile + profile_name = self.create_random_name(prefix='profile', length=24) + self.afd_profile_create_cmd(resource_group, profile_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_secret_list_cmd(resource_group, profile_name, checks=list_checks) + + # Create a secret + secret_name = self.create_random_name(prefix='secret', length=24) + secret_source = f"/subscriptions/{self.get_subscription_id()}/resourceGroups/CliDevReservedGroup/providers/Microsoft.KeyVault/vaults/clibyoc/certificates/localdev-multi" + latest_version = "8191a537d089481d91f20dc0b1e59e0a" + checks = [JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_secret_create_cmd(resource_group, + profile_name, + secret_name, + secret_source, + use_latest_version=True, + secret_version=None, + checks=checks) + + show_checks = [JMESPathCheck('name', secret_name), + JMESPathCheck('provisioningState', 'Succeeded'), + JMESPathCheck('parameters.type', 'CustomerCertificate'), + JMESPathCheck('parameters.secretSource.id', secret_source), + JMESPathCheck('parameters.secretVersion', latest_version), + JMESPathCheck('parameters.useLatestVersion', True)] + self.afd_secret_show_cmd(resource_group, profile_name, secret_name, checks=show_checks) + + # Delete the secret + self.afd_secret_delete_cmd(resource_group, profile_name, secret_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_secret_list_cmd(resource_group, profile_name, checks=list_checks) diff --git a/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_security_policy_scenarios.py b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_security_policy_scenarios.py new file mode 100644 index 00000000000..6107a0dd0e0 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/cdn/tests/latest/test_afd_security_policy_scenarios.py @@ -0,0 +1,86 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +from azure.cli.testsdk import ResourceGroupPreparer, JMESPathCheck +from azure.cli.testsdk import ScenarioTest, record_only +from .afdx_scenario_mixin import CdnAfdScenarioMixin + + +class CdnAfdSecurityPolicyScenarioTest(CdnAfdScenarioMixin, ScenarioTest): + @ResourceGroupPreparer() + def test_afd_security_policy_crud(self, resource_group): + profile_name = 'profilesecuritytest' + self.afd_security_policy_list_cmd(resource_group, profile_name, expect_failure=True) + + # List get empty + self.afd_profile_create_cmd(resource_group, profile_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_security_policy_list_cmd(resource_group, profile_name, checks=list_checks) + + # Create an endpoint + endpoint1_name = self.create_random_name(prefix='endpoint1', length=24) + endpoint2_name = self.create_random_name(prefix='endpoint2', length=24) + origin_response_timeout_seconds = 100 + enabled_state = "Enabled" + endpoint_checks = [JMESPathCheck('originResponseTimeoutSeconds', 100), + JMESPathCheck('enabledState', 'Enabled')] + self.afd_endpoint_create_cmd(resource_group, + profile_name, + endpoint1_name, + origin_response_timeout_seconds, + enabled_state, + checks=endpoint_checks) + + self.afd_endpoint_create_cmd(resource_group, + profile_name, + endpoint2_name, + origin_response_timeout_seconds, + enabled_state, + checks=endpoint_checks) + + # Create a security policy + security_policy_name = self.create_random_name(prefix='security', length=24) + domain_ids = list() + domain_ids.append(f'/subscriptions/{self.get_subscription_id()}/resourcegroups/{resource_group}/providers/Microsoft.Cdn/profiles/{profile_name}/afdEndpoints/{endpoint1_name}') + domain_ids.append(f'/subscriptions/{self.get_subscription_id()}/resourcegroups/{resource_group}/providers/Microsoft.Cdn/profiles/{profile_name}/afdEndpoints/{endpoint2_name}') + waf_policy_id = f'/subscriptions/{self.get_subscription_id()}/resourcegroups/CliDevReservedGroup/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/SampleStandard' + + checks = [JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_security_policy_create_cmd(resource_group, + profile_name, + security_policy_name, + domain_ids, + waf_policy_id, + checks=checks) + + show_checks = [JMESPathCheck('name', security_policy_name), + JMESPathCheck('parameters.wafPolicy.id', waf_policy_id), + JMESPathCheck('length(parameters.associations[0].domains)', 2), + JMESPathCheck('parameters.associations[0].domains[0].id', domain_ids[0]), + JMESPathCheck('parameters.associations[0].domains[1].id', domain_ids[1]), + JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_security_policy_show_cmd(resource_group, profile_name, security_policy_name, checks=show_checks) + + list_checks = [JMESPathCheck('length(@)', 1), + JMESPathCheck('@[0].name', security_policy_name), + JMESPathCheck('@[0].provisioningState', 'Succeeded')] + self.afd_security_policy_list_cmd(resource_group, profile_name, checks=list_checks) + + # Update the security policy + update_checks = [JMESPathCheck('name', security_policy_name), + JMESPathCheck('parameters.wafPolicy.id', waf_policy_id), + JMESPathCheck('length(parameters.associations[0].domains)', 1), + JMESPathCheck('parameters.associations[0].domains[0].id', domain_ids[1]), + JMESPathCheck('provisioningState', 'Succeeded')] + self.afd_security_policy_update_cmd(resource_group, + profile_name, + security_policy_name, + [domain_ids[1]], + waf_policy_id, + checks=update_checks) + + # Delete the security policy + self.afd_security_policy_delete_cmd(resource_group, profile_name, security_policy_name) + list_checks = [JMESPathCheck('length(@)', 0)] + self.afd_security_policy_list_cmd(resource_group, profile_name, checks=list_checks) diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index 6f354685df1..69bd7cadc84 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -24,7 +24,7 @@ azure-mgmt-batch==9.0.0 azure-mgmt-batchai==2.0.0 azure-mgmt-billing==1.0.0 azure-mgmt-botservice==0.3.0 -azure-mgmt-cdn==5.2.0 +azure-mgmt-cdn==7.0.0 azure-mgmt-cognitiveservices==6.3.0 azure-mgmt-compute==18.1.0 azure-mgmt-consumption==2.0.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index 6f354685df1..69bd7cadc84 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -24,7 +24,7 @@ azure-mgmt-batch==9.0.0 azure-mgmt-batchai==2.0.0 azure-mgmt-billing==1.0.0 azure-mgmt-botservice==0.3.0 -azure-mgmt-cdn==5.2.0 +azure-mgmt-cdn==7.0.0 azure-mgmt-cognitiveservices==6.3.0 azure-mgmt-compute==18.1.0 azure-mgmt-consumption==2.0.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 60522ab6d28..b8d08503c0c 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -24,7 +24,7 @@ azure-mgmt-batch==9.0.0 azure-mgmt-batchai==2.0.0 azure-mgmt-billing==1.0.0 azure-mgmt-botservice==0.3.0 -azure-mgmt-cdn==5.2.0 +azure-mgmt-cdn==7.0.0 azure-mgmt-cognitiveservices==6.3.0 azure-mgmt-compute==18.1.0 azure-mgmt-consumption==2.0.0 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 5bf7aa20aa2..0ead3e58610 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -69,7 +69,7 @@ 'azure-mgmt-batchai~=2.0', 'azure-mgmt-billing==1.0.0', 'azure-mgmt-botservice~=0.3.0', - 'azure-mgmt-cdn==5.2.0', + 'azure-mgmt-cdn==7.0.0', 'azure-mgmt-cognitiveservices~=6.3.0', 'azure-mgmt-compute~=18.1', 'azure-mgmt-consumption~=2.0',