diff --git a/src/azure-cli/azure/cli/command_modules/network/_params.py b/src/azure-cli/azure/cli/command_modules/network/_params.py index 04bd8ca4f97..f9653e7d644 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_params.py +++ b/src/azure-cli/azure/cli/command_modules/network/_params.py @@ -397,11 +397,11 @@ def load_arguments(self, _): with self.argument_context('network dns record-set soa') as c: c.argument('host', options_list=['--host', '-t'], help='Host name.') c.argument('email', options_list=['--email', '-e'], help='Email address.') - c.argument('expire_time', options_list=['--expire-time', '-x'], help='Expire time (seconds).') - c.argument('minimum_ttl', options_list=['--minimum-ttl', '-m'], help='Minimum TTL (time-to-live, seconds).') - c.argument('refresh_time', options_list=['--refresh-time', '-f'], help='Refresh value (seconds).') - c.argument('retry_time', options_list=['--retry-time', '-r'], help='Retry time (seconds).') - c.argument('serial_number', options_list=['--serial-number', '-s'], help='Serial number.') + c.argument('expire_time', options_list=['--expire-time', '-x'], type=int, help='Expire time (seconds).') + c.argument('minimum_ttl', options_list=['--minimum-ttl', '-m'], type=int, help='Minimum TTL (time-to-live, seconds).') + c.argument('refresh_time', options_list=['--refresh-time', '-f'], type=int, help='Refresh value (seconds).') + c.argument('retry_time', options_list=['--retry-time', '-r'], type=int, help='Retry time (seconds).') + c.argument('serial_number', options_list=['--serial-number', '-s'], type=int, help='Serial number.') with self.argument_context('network dns record-set srv') as c: c.argument('priority', type=int, options_list=['--priority', '-p'], help='Priority metric.') diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/__cmd_group.py new file mode 100644 index 00000000000..b6a45372f10 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "network dns", +) +class __CMDGroup(AAZCommandGroup): + """Manage DNS domains in Azure. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/__init__.py new file mode 100644 index 00000000000..5a9d61963d6 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/__init__.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/__cmd_group.py new file mode 100644 index 00000000000..d0b0538c754 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "network dns record-set", +) +class __CMDGroup(AAZCommandGroup): + """Manage DNS records and record sets. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/__init__.py new file mode 100644 index 00000000000..3d2174ed2f2 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/__init__.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._list_by_type import * +from ._show import * +from ._update import * diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_create.py new file mode 100644 index 00000000000..adf8830bd72 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_create.py @@ -0,0 +1,680 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +class Create(AAZCommand): + """Create a record set within a DNS zone. + """ + + _aaz_info = { + "version": "2018-05-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnszones/{}/{}/{}", "2018-05-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.if_match = AAZStrArg( + options=["--if-match"], + help="The etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.", + ) + _args_schema.if_none_match = AAZStrArg( + options=["--if-none-match"], + help="Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored.", + ) + _args_schema.record_type = AAZStrArg( + options=["--record-type"], + help="The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).", + required=True, + enum={"A": "A", "AAAA": "AAAA", "CAA": "CAA", "CNAME": "CNAME", "MX": "MX", "NS": "NS", "PTR": "PTR", "SOA": "SOA", "SRV": "SRV", "TXT": "TXT"}, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="The name of the record set, relative to the name of the zone.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.zone_name = AAZStrArg( + options=["--zone-name"], + help="The name of the DNS zone (without a terminating dot).", + required=True, + ) + + # define Arg Group "Parameters" + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.aaaa_records = AAZListArg( + options=["--aaaa-records"], + arg_group="Properties", + help="The list of AAAA records in the record set.", + ) + _args_schema.a_records = AAZListArg( + options=["--a-records"], + arg_group="Properties", + help="The list of A records in the record set.", + ) + _args_schema.cname_record = AAZObjectArg( + options=["--cname-record"], + arg_group="Properties", + help="The CNAME record in the record set.", + ) + _args_schema.mx_records = AAZListArg( + options=["--mx-records"], + arg_group="Properties", + help="The list of MX records in the record set.", + ) + _args_schema.ns_records = AAZListArg( + options=["--ns-records"], + arg_group="Properties", + help="The list of NS records in the record set.", + ) + _args_schema.ptr_records = AAZListArg( + options=["--ptr-records"], + arg_group="Properties", + help="The list of PTR records in the record set.", + ) + _args_schema.soa_record = AAZObjectArg( + options=["--soa-record"], + arg_group="Properties", + help="The SOA record in the record set.", + ) + _args_schema.srv_records = AAZListArg( + options=["--srv-records"], + arg_group="Properties", + help="The list of SRV records in the record set.", + ) + _args_schema.ttl = AAZIntArg( + options=["--ttl"], + arg_group="Properties", + help="The TTL (time-to-live) of the records in the record set.", + ) + _args_schema.txt_records = AAZListArg( + options=["--txt-records"], + arg_group="Properties", + help="The list of TXT records in the record set.", + ) + _args_schema.caa_records = AAZListArg( + options=["--caa-records"], + arg_group="Properties", + help="The list of CAA records in the record set.", + ) + _args_schema.metadata = AAZDictArg( + options=["--metadata"], + arg_group="Properties", + help="The metadata attached to the record set.", + ) + _args_schema.target_resource = AAZObjectArg( + options=["--target-resource"], + arg_group="Properties", + help="A reference to an azure resource from where the dns resource value is taken.", + ) + + aaaa_records = cls._args_schema.aaaa_records + aaaa_records.Element = AAZObjectArg() + + _element = cls._args_schema.aaaa_records.Element + _element.ipv6_address = AAZStrArg( + options=["ipv6-address"], + help="The IPv6 address of this AAAA record.", + ) + + a_records = cls._args_schema.a_records + a_records.Element = AAZObjectArg() + + _element = cls._args_schema.a_records.Element + _element.ipv4_address = AAZStrArg( + options=["ipv4-address"], + help="The IPv4 address of this A record.", + ) + + cname_record = cls._args_schema.cname_record + cname_record.cname = AAZStrArg( + options=["cname"], + help="The canonical name for this CNAME record.", + ) + + mx_records = cls._args_schema.mx_records + mx_records.Element = AAZObjectArg() + + _element = cls._args_schema.mx_records.Element + _element.exchange = AAZStrArg( + options=["exchange"], + help="The domain name of the mail host for this MX record.", + ) + _element.preference = AAZIntArg( + options=["preference"], + help="The preference value for this MX record.", + ) + + ns_records = cls._args_schema.ns_records + ns_records.Element = AAZObjectArg() + + _element = cls._args_schema.ns_records.Element + _element.nsdname = AAZStrArg( + options=["nsdname"], + help="The name server name for this NS record.", + ) + + ptr_records = cls._args_schema.ptr_records + ptr_records.Element = AAZObjectArg() + + _element = cls._args_schema.ptr_records.Element + _element.ptrdname = AAZStrArg( + options=["ptrdname"], + help="The PTR target domain name for this PTR record.", + ) + + soa_record = cls._args_schema.soa_record + soa_record.email = AAZStrArg( + options=["email"], + help="The email contact for this SOA record.", + ) + soa_record.expire_time = AAZIntArg( + options=["expire-time"], + help="The expire time for this SOA record.", + ) + soa_record.host = AAZStrArg( + options=["host"], + help="The domain name of the authoritative name server for this SOA record.", + ) + soa_record.minimum_ttl = AAZIntArg( + options=["minimum-ttl"], + help="The minimum value for this SOA record. By convention this is used to determine the negative caching duration.", + ) + soa_record.refresh_time = AAZIntArg( + options=["refresh-time"], + help="The refresh value for this SOA record.", + ) + soa_record.retry_time = AAZIntArg( + options=["retry-time"], + help="The retry time for this SOA record.", + ) + soa_record.serial_number = AAZIntArg( + options=["serial-number"], + help="The serial number for this SOA record.", + ) + + srv_records = cls._args_schema.srv_records + srv_records.Element = AAZObjectArg() + + _element = cls._args_schema.srv_records.Element + _element.port = AAZIntArg( + options=["port"], + help="The port value for this SRV record.", + ) + _element.priority = AAZIntArg( + options=["priority"], + help="The priority value for this SRV record.", + ) + _element.target = AAZStrArg( + options=["target"], + help="The target domain name for this SRV record.", + ) + _element.weight = AAZIntArg( + options=["weight"], + help="The weight value for this SRV record.", + ) + + txt_records = cls._args_schema.txt_records + txt_records.Element = AAZObjectArg() + + _element = cls._args_schema.txt_records.Element + _element.value = AAZListArg( + options=["value"], + help="The text value of this TXT record.", + ) + + value = cls._args_schema.txt_records.Element.value + value.Element = AAZStrArg() + + caa_records = cls._args_schema.caa_records + caa_records.Element = AAZObjectArg() + + _element = cls._args_schema.caa_records.Element + _element.flags = AAZIntArg( + options=["flags"], + help="The flags for this CAA record as an integer between 0 and 255.", + ) + _element.tag = AAZStrArg( + options=["tag"], + help="The tag for this CAA record.", + ) + _element.value = AAZStrArg( + options=["value"], + help="The value for this CAA record.", + ) + + metadata = cls._args_schema.metadata + metadata.Element = AAZStrArg() + + target_resource = cls._args_schema.target_resource + target_resource.id = AAZStrArg( + options=["id"], + help="Resource Id.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.RecordSetsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class RecordSetsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "recordType", self.ctx.args.record_type, + required=True, + ), + **self.serialize_url_param( + "relativeRecordSetName", self.ctx.args.name, + skip_quote=True, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "zoneName", self.ctx.args.zone_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2018-05-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "If-Match", self.ctx.args.if_match, + ), + **self.serialize_header_param( + "If-None-Match", self.ctx.args.if_none_match, + ), + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("AAAARecords", AAZListType, ".aaaa_records") + properties.set_prop("ARecords", AAZListType, ".a_records") + properties.set_prop("CNAMERecord", AAZObjectType, ".cname_record") + properties.set_prop("MXRecords", AAZListType, ".mx_records") + properties.set_prop("NSRecords", AAZListType, ".ns_records") + properties.set_prop("PTRRecords", AAZListType, ".ptr_records") + properties.set_prop("SOARecord", AAZObjectType, ".soa_record") + properties.set_prop("SRVRecords", AAZListType, ".srv_records") + properties.set_prop("TTL", AAZIntType, ".ttl") + properties.set_prop("TXTRecords", AAZListType, ".txt_records") + properties.set_prop("caaRecords", AAZListType, ".caa_records") + properties.set_prop("metadata", AAZDictType, ".metadata") + properties.set_prop("targetResource", AAZObjectType, ".target_resource") + + aaaa_records = _builder.get(".properties.AAAARecords") + if aaaa_records is not None: + aaaa_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.AAAARecords[]") + if _elements is not None: + _elements.set_prop("ipv6Address", AAZStrType, ".ipv6_address") + + a_records = _builder.get(".properties.ARecords") + if a_records is not None: + a_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.ARecords[]") + if _elements is not None: + _elements.set_prop("ipv4Address", AAZStrType, ".ipv4_address") + + cname_record = _builder.get(".properties.CNAMERecord") + if cname_record is not None: + cname_record.set_prop("cname", AAZStrType, ".cname") + + mx_records = _builder.get(".properties.MXRecords") + if mx_records is not None: + mx_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.MXRecords[]") + if _elements is not None: + _elements.set_prop("exchange", AAZStrType, ".exchange") + _elements.set_prop("preference", AAZIntType, ".preference") + + ns_records = _builder.get(".properties.NSRecords") + if ns_records is not None: + ns_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.NSRecords[]") + if _elements is not None: + _elements.set_prop("nsdname", AAZStrType, ".nsdname") + + ptr_records = _builder.get(".properties.PTRRecords") + if ptr_records is not None: + ptr_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.PTRRecords[]") + if _elements is not None: + _elements.set_prop("ptrdname", AAZStrType, ".ptrdname") + + soa_record = _builder.get(".properties.SOARecord") + if soa_record is not None: + soa_record.set_prop("email", AAZStrType, ".email") + soa_record.set_prop("expireTime", AAZIntType, ".expire_time") + soa_record.set_prop("host", AAZStrType, ".host") + soa_record.set_prop("minimumTTL", AAZIntType, ".minimum_ttl") + soa_record.set_prop("refreshTime", AAZIntType, ".refresh_time") + soa_record.set_prop("retryTime", AAZIntType, ".retry_time") + soa_record.set_prop("serialNumber", AAZIntType, ".serial_number") + + srv_records = _builder.get(".properties.SRVRecords") + if srv_records is not None: + srv_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.SRVRecords[]") + if _elements is not None: + _elements.set_prop("port", AAZIntType, ".port") + _elements.set_prop("priority", AAZIntType, ".priority") + _elements.set_prop("target", AAZStrType, ".target") + _elements.set_prop("weight", AAZIntType, ".weight") + + txt_records = _builder.get(".properties.TXTRecords") + if txt_records is not None: + txt_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.TXTRecords[]") + if _elements is not None: + _elements.set_prop("value", AAZListType, ".value") + + value = _builder.get(".properties.TXTRecords[].value") + if value is not None: + value.set_elements(AAZStrType, ".") + + caa_records = _builder.get(".properties.caaRecords") + if caa_records is not None: + caa_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.caaRecords[]") + if _elements is not None: + _elements.set_prop("flags", AAZIntType, ".flags") + _elements.set_prop("tag", AAZStrType, ".tag") + _elements.set_prop("value", AAZStrType, ".value") + + metadata = _builder.get(".properties.metadata") + if metadata is not None: + metadata.set_elements(AAZStrType, ".") + + target_resource = _builder.get(".properties.targetResource") + if target_resource is not None: + target_resource.set_prop("id", AAZStrType, ".id") + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.etag = AAZStrType() + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.aaaa_records = AAZListType( + serialized_name="AAAARecords", + ) + properties.a_records = AAZListType( + serialized_name="ARecords", + ) + properties.cname_record = AAZObjectType( + serialized_name="CNAMERecord", + ) + properties.mx_records = AAZListType( + serialized_name="MXRecords", + ) + properties.ns_records = AAZListType( + serialized_name="NSRecords", + ) + properties.ptr_records = AAZListType( + serialized_name="PTRRecords", + ) + properties.soa_record = AAZObjectType( + serialized_name="SOARecord", + ) + properties.srv_records = AAZListType( + serialized_name="SRVRecords", + ) + properties.ttl = AAZIntType( + serialized_name="TTL", + ) + properties.txt_records = AAZListType( + serialized_name="TXTRecords", + ) + properties.caa_records = AAZListType( + serialized_name="caaRecords", + ) + properties.fqdn = AAZStrType( + flags={"read_only": True}, + ) + properties.metadata = AAZDictType() + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.target_resource = AAZObjectType( + serialized_name="targetResource", + ) + + aaaa_records = cls._schema_on_200_201.properties.aaaa_records + aaaa_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.aaaa_records.Element + _element.ipv6_address = AAZStrType( + serialized_name="ipv6Address", + ) + + a_records = cls._schema_on_200_201.properties.a_records + a_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.a_records.Element + _element.ipv4_address = AAZStrType( + serialized_name="ipv4Address", + ) + + cname_record = cls._schema_on_200_201.properties.cname_record + cname_record.cname = AAZStrType() + + mx_records = cls._schema_on_200_201.properties.mx_records + mx_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.mx_records.Element + _element.exchange = AAZStrType() + _element.preference = AAZIntType() + + ns_records = cls._schema_on_200_201.properties.ns_records + ns_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.ns_records.Element + _element.nsdname = AAZStrType() + + ptr_records = cls._schema_on_200_201.properties.ptr_records + ptr_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.ptr_records.Element + _element.ptrdname = AAZStrType() + + soa_record = cls._schema_on_200_201.properties.soa_record + soa_record.email = AAZStrType() + soa_record.expire_time = AAZIntType( + serialized_name="expireTime", + ) + soa_record.host = AAZStrType() + soa_record.minimum_ttl = AAZIntType( + serialized_name="minimumTTL", + ) + soa_record.refresh_time = AAZIntType( + serialized_name="refreshTime", + ) + soa_record.retry_time = AAZIntType( + serialized_name="retryTime", + ) + soa_record.serial_number = AAZIntType( + serialized_name="serialNumber", + ) + + srv_records = cls._schema_on_200_201.properties.srv_records + srv_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.srv_records.Element + _element.port = AAZIntType() + _element.priority = AAZIntType() + _element.target = AAZStrType() + _element.weight = AAZIntType() + + txt_records = cls._schema_on_200_201.properties.txt_records + txt_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.txt_records.Element + _element.value = AAZListType() + + value = cls._schema_on_200_201.properties.txt_records.Element.value + value.Element = AAZStrType() + + caa_records = cls._schema_on_200_201.properties.caa_records + caa_records.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.caa_records.Element + _element.flags = AAZIntType() + _element.tag = AAZStrType() + _element.value = AAZStrType() + + metadata = cls._schema_on_200_201.properties.metadata + metadata.Element = AAZStrType() + + target_resource = cls._schema_on_200_201.properties.target_resource + target_resource.id = AAZStrType() + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_delete.py new file mode 100644 index 00000000000..c13e018c9d8 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_delete.py @@ -0,0 +1,167 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +class Delete(AAZCommand): + """Delete a record set from a DNS zone. This operation cannot be undone. + """ + + _aaz_info = { + "version": "2018-05-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnszones/{}/{}/{}", "2018-05-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.if_match = AAZStrArg( + options=["--if-match"], + help="Etag of the record set. Omit this value to always delete the current record set. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.", + ) + _args_schema.record_type = AAZStrArg( + options=["--record-type"], + help="The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted).", + required=True, + id_part="child_type_1", + enum={"A": "A", "AAAA": "AAAA", "CAA": "CAA", "CNAME": "CNAME", "MX": "MX", "NS": "NS", "PTR": "PTR", "SOA": "SOA", "SRV": "SRV", "TXT": "TXT"}, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the record set, relative to the name of the zone.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.zone_name = AAZStrArg( + options=["-z", "--zone-name"], + help="Name of the DNS zone.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.RecordSetsDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class RecordSetsDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "recordType", self.ctx.args.record_type, + required=True, + ), + **self.serialize_url_param( + "relativeRecordSetName", self.ctx.args.name, + skip_quote=True, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "zoneName", self.ctx.args.zone_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2018-05-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "If-Match", self.ctx.args.if_match, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_list.py new file mode 100644 index 00000000000..2cb318a354c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_list.py @@ -0,0 +1,321 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "network dns record-set list", +) +class List(AAZCommand): + """List all record sets within a DNS zone. + + :example: List all "@" record sets within this zone. + az network dns record-set list -g MyResourceGroup -z www.mysite.com --query "[?name=='@']" + """ + + _aaz_info = { + "version": "2018-05-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnszones/{}/recordsets", "2018-05-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.zone_name = AAZStrArg( + options=["-z", "--zone-name"], + help="Name of the zone.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.RecordSetsListByDnsZone(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class RecordSetsListByDnsZone(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "zoneName", self.ctx.args.zone_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2018-05-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + flags={"read_only": True}, + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.etag = AAZStrType() + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.aaaa_records = AAZListType( + serialized_name="AAAARecords", + ) + properties.a_records = AAZListType( + serialized_name="ARecords", + ) + properties.cname_record = AAZObjectType( + serialized_name="CNAMERecord", + ) + properties.mx_records = AAZListType( + serialized_name="MXRecords", + ) + properties.ns_records = AAZListType( + serialized_name="NSRecords", + ) + properties.ptr_records = AAZListType( + serialized_name="PTRRecords", + ) + properties.soa_record = AAZObjectType( + serialized_name="SOARecord", + ) + properties.srv_records = AAZListType( + serialized_name="SRVRecords", + ) + properties.ttl = AAZIntType( + serialized_name="TTL", + ) + properties.txt_records = AAZListType( + serialized_name="TXTRecords", + ) + properties.caa_records = AAZListType( + serialized_name="caaRecords", + ) + properties.fqdn = AAZStrType( + flags={"read_only": True}, + ) + properties.metadata = AAZDictType() + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.target_resource = AAZObjectType( + serialized_name="targetResource", + ) + + aaaa_records = cls._schema_on_200.value.Element.properties.aaaa_records + aaaa_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.aaaa_records.Element + _element.ipv6_address = AAZStrType( + serialized_name="ipv6Address", + ) + + a_records = cls._schema_on_200.value.Element.properties.a_records + a_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.a_records.Element + _element.ipv4_address = AAZStrType( + serialized_name="ipv4Address", + ) + + cname_record = cls._schema_on_200.value.Element.properties.cname_record + cname_record.cname = AAZStrType() + + mx_records = cls._schema_on_200.value.Element.properties.mx_records + mx_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.mx_records.Element + _element.exchange = AAZStrType() + _element.preference = AAZIntType() + + ns_records = cls._schema_on_200.value.Element.properties.ns_records + ns_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.ns_records.Element + _element.nsdname = AAZStrType() + + ptr_records = cls._schema_on_200.value.Element.properties.ptr_records + ptr_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.ptr_records.Element + _element.ptrdname = AAZStrType() + + soa_record = cls._schema_on_200.value.Element.properties.soa_record + soa_record.email = AAZStrType() + soa_record.expire_time = AAZIntType( + serialized_name="expireTime", + ) + soa_record.host = AAZStrType() + soa_record.minimum_ttl = AAZIntType( + serialized_name="minimumTTL", + ) + soa_record.refresh_time = AAZIntType( + serialized_name="refreshTime", + ) + soa_record.retry_time = AAZIntType( + serialized_name="retryTime", + ) + soa_record.serial_number = AAZIntType( + serialized_name="serialNumber", + ) + + srv_records = cls._schema_on_200.value.Element.properties.srv_records + srv_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.srv_records.Element + _element.port = AAZIntType() + _element.priority = AAZIntType() + _element.target = AAZStrType() + _element.weight = AAZIntType() + + txt_records = cls._schema_on_200.value.Element.properties.txt_records + txt_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.txt_records.Element + _element.value = AAZListType() + + value = cls._schema_on_200.value.Element.properties.txt_records.Element.value + value.Element = AAZStrType() + + caa_records = cls._schema_on_200.value.Element.properties.caa_records + caa_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.caa_records.Element + _element.flags = AAZIntType() + _element.tag = AAZStrType() + _element.value = AAZStrType() + + metadata = cls._schema_on_200.value.Element.properties.metadata + metadata.Element = AAZStrType() + + target_resource = cls._schema_on_200.value.Element.properties.target_resource + target_resource.id = AAZStrType() + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_list_by_type.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_list_by_type.py new file mode 100644 index 00000000000..87f2998b9e5 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_list_by_type.py @@ -0,0 +1,339 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +class ListByType(AAZCommand): + """Get the record sets of a specified type in a DNS zone. + """ + + _aaz_info = { + "version": "2018-05-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnszones/{}/{}", "2018-05-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.record_type = AAZStrArg( + options=["--record-type"], + help="The type of record sets to enumerate.", + required=True, + enum={"A": "A", "AAAA": "AAAA", "CAA": "CAA", "CNAME": "CNAME", "MX": "MX", "NS": "NS", "PTR": "PTR", "SOA": "SOA", "SRV": "SRV", "TXT": "TXT"}, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.zone_name = AAZStrArg( + options=["--zone-name"], + help="The name of the DNS zone (without a terminating dot).", + required=True, + ) + _args_schema.recordsetnamesuffix = AAZStrArg( + options=["--recordsetnamesuffix"], + help="The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .", + ) + _args_schema.top = AAZIntArg( + options=["--top"], + help="The maximum number of record sets to return. If not specified, returns up to 100 record sets.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.RecordSetsListByType(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class RecordSetsListByType(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "recordType", self.ctx.args.record_type, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "zoneName", self.ctx.args.zone_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "$recordsetnamesuffix", self.ctx.args.recordsetnamesuffix, + ), + **self.serialize_query_param( + "$top", self.ctx.args.top, + ), + **self.serialize_query_param( + "api-version", "2018-05-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + flags={"read_only": True}, + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.etag = AAZStrType() + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.aaaa_records = AAZListType( + serialized_name="AAAARecords", + ) + properties.a_records = AAZListType( + serialized_name="ARecords", + ) + properties.cname_record = AAZObjectType( + serialized_name="CNAMERecord", + ) + properties.mx_records = AAZListType( + serialized_name="MXRecords", + ) + properties.ns_records = AAZListType( + serialized_name="NSRecords", + ) + properties.ptr_records = AAZListType( + serialized_name="PTRRecords", + ) + properties.soa_record = AAZObjectType( + serialized_name="SOARecord", + ) + properties.srv_records = AAZListType( + serialized_name="SRVRecords", + ) + properties.ttl = AAZIntType( + serialized_name="TTL", + ) + properties.txt_records = AAZListType( + serialized_name="TXTRecords", + ) + properties.caa_records = AAZListType( + serialized_name="caaRecords", + ) + properties.fqdn = AAZStrType( + flags={"read_only": True}, + ) + properties.metadata = AAZDictType() + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.target_resource = AAZObjectType( + serialized_name="targetResource", + ) + + aaaa_records = cls._schema_on_200.value.Element.properties.aaaa_records + aaaa_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.aaaa_records.Element + _element.ipv6_address = AAZStrType( + serialized_name="ipv6Address", + ) + + a_records = cls._schema_on_200.value.Element.properties.a_records + a_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.a_records.Element + _element.ipv4_address = AAZStrType( + serialized_name="ipv4Address", + ) + + cname_record = cls._schema_on_200.value.Element.properties.cname_record + cname_record.cname = AAZStrType() + + mx_records = cls._schema_on_200.value.Element.properties.mx_records + mx_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.mx_records.Element + _element.exchange = AAZStrType() + _element.preference = AAZIntType() + + ns_records = cls._schema_on_200.value.Element.properties.ns_records + ns_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.ns_records.Element + _element.nsdname = AAZStrType() + + ptr_records = cls._schema_on_200.value.Element.properties.ptr_records + ptr_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.ptr_records.Element + _element.ptrdname = AAZStrType() + + soa_record = cls._schema_on_200.value.Element.properties.soa_record + soa_record.email = AAZStrType() + soa_record.expire_time = AAZIntType( + serialized_name="expireTime", + ) + soa_record.host = AAZStrType() + soa_record.minimum_ttl = AAZIntType( + serialized_name="minimumTTL", + ) + soa_record.refresh_time = AAZIntType( + serialized_name="refreshTime", + ) + soa_record.retry_time = AAZIntType( + serialized_name="retryTime", + ) + soa_record.serial_number = AAZIntType( + serialized_name="serialNumber", + ) + + srv_records = cls._schema_on_200.value.Element.properties.srv_records + srv_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.srv_records.Element + _element.port = AAZIntType() + _element.priority = AAZIntType() + _element.target = AAZStrType() + _element.weight = AAZIntType() + + txt_records = cls._schema_on_200.value.Element.properties.txt_records + txt_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.txt_records.Element + _element.value = AAZListType() + + value = cls._schema_on_200.value.Element.properties.txt_records.Element.value + value.Element = AAZStrType() + + caa_records = cls._schema_on_200.value.Element.properties.caa_records + caa_records.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.caa_records.Element + _element.flags = AAZIntType() + _element.tag = AAZStrType() + _element.value = AAZStrType() + + metadata = cls._schema_on_200.value.Element.properties.metadata + metadata.Element = AAZStrType() + + target_resource = cls._schema_on_200.value.Element.properties.target_resource + target_resource.id = AAZStrType() + + return cls._schema_on_200 + + +class _ListByTypeHelper: + """Helper class for ListByType""" + + +__all__ = ["ListByType"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_show.py new file mode 100644 index 00000000000..5aeb0f674e8 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_show.py @@ -0,0 +1,328 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +class Show(AAZCommand): + """Get a record set. + """ + + _aaz_info = { + "version": "2018-05-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnszones/{}/{}/{}", "2018-05-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.record_type = AAZStrArg( + options=["--record-type"], + help="The type of DNS record in this record set.", + required=True, + id_part="child_type_1", + enum={"A": "A", "AAAA": "AAAA", "CAA": "CAA", "CNAME": "CNAME", "MX": "MX", "NS": "NS", "PTR": "PTR", "SOA": "SOA", "SRV": "SRV", "TXT": "TXT"}, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the record set, relative to the name of the zone.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.zone_name = AAZStrArg( + options=["-z", "--zone-name"], + help="Name of the DNS zone.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.RecordSetsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class RecordSetsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "recordType", self.ctx.args.record_type, + required=True, + ), + **self.serialize_url_param( + "relativeRecordSetName", self.ctx.args.name, + skip_quote=True, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "zoneName", self.ctx.args.zone_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2018-05-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.etag = AAZStrType() + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.aaaa_records = AAZListType( + serialized_name="AAAARecords", + ) + properties.a_records = AAZListType( + serialized_name="ARecords", + ) + properties.cname_record = AAZObjectType( + serialized_name="CNAMERecord", + ) + properties.mx_records = AAZListType( + serialized_name="MXRecords", + ) + properties.ns_records = AAZListType( + serialized_name="NSRecords", + ) + properties.ptr_records = AAZListType( + serialized_name="PTRRecords", + ) + properties.soa_record = AAZObjectType( + serialized_name="SOARecord", + ) + properties.srv_records = AAZListType( + serialized_name="SRVRecords", + ) + properties.ttl = AAZIntType( + serialized_name="TTL", + ) + properties.txt_records = AAZListType( + serialized_name="TXTRecords", + ) + properties.caa_records = AAZListType( + serialized_name="caaRecords", + ) + properties.fqdn = AAZStrType( + flags={"read_only": True}, + ) + properties.metadata = AAZDictType() + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.target_resource = AAZObjectType( + serialized_name="targetResource", + ) + + aaaa_records = cls._schema_on_200.properties.aaaa_records + aaaa_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.aaaa_records.Element + _element.ipv6_address = AAZStrType( + serialized_name="ipv6Address", + ) + + a_records = cls._schema_on_200.properties.a_records + a_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.a_records.Element + _element.ipv4_address = AAZStrType( + serialized_name="ipv4Address", + ) + + cname_record = cls._schema_on_200.properties.cname_record + cname_record.cname = AAZStrType() + + mx_records = cls._schema_on_200.properties.mx_records + mx_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.mx_records.Element + _element.exchange = AAZStrType() + _element.preference = AAZIntType() + + ns_records = cls._schema_on_200.properties.ns_records + ns_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.ns_records.Element + _element.nsdname = AAZStrType() + + ptr_records = cls._schema_on_200.properties.ptr_records + ptr_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.ptr_records.Element + _element.ptrdname = AAZStrType() + + soa_record = cls._schema_on_200.properties.soa_record + soa_record.email = AAZStrType() + soa_record.expire_time = AAZIntType( + serialized_name="expireTime", + ) + soa_record.host = AAZStrType() + soa_record.minimum_ttl = AAZIntType( + serialized_name="minimumTTL", + ) + soa_record.refresh_time = AAZIntType( + serialized_name="refreshTime", + ) + soa_record.retry_time = AAZIntType( + serialized_name="retryTime", + ) + soa_record.serial_number = AAZIntType( + serialized_name="serialNumber", + ) + + srv_records = cls._schema_on_200.properties.srv_records + srv_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.srv_records.Element + _element.port = AAZIntType() + _element.priority = AAZIntType() + _element.target = AAZStrType() + _element.weight = AAZIntType() + + txt_records = cls._schema_on_200.properties.txt_records + txt_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.txt_records.Element + _element.value = AAZListType() + + value = cls._schema_on_200.properties.txt_records.Element.value + value.Element = AAZStrType() + + caa_records = cls._schema_on_200.properties.caa_records + caa_records.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.caa_records.Element + _element.flags = AAZIntType() + _element.tag = AAZStrType() + _element.value = AAZStrType() + + metadata = cls._schema_on_200.properties.metadata + metadata.Element = AAZStrType() + + target_resource = cls._schema_on_200.properties.target_resource + target_resource.id = AAZStrType() + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_update.py new file mode 100644 index 00000000000..073c5d70d1c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_update.py @@ -0,0 +1,878 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +class Update(AAZCommand): + """Update a record set within a DNS zone. + """ + + _aaz_info = { + "version": "2018-05-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/dnszones/{}/{}/{}", "2018-05-01"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.if_match = AAZStrArg( + options=["--if-match"], + help="Etag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen etag value to prevent accidentally overwriting any concurrent changes.", + ) + _args_schema.if_none_match = AAZStrArg( + options=["--if-none-match"], + help="Set to `*` to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored.", + ) + _args_schema.record_type = AAZStrArg( + options=["--record-type"], + help="Type of DNS record in this record set.", + required=True, + id_part="child_type_1", + enum={"A": "A", "AAAA": "AAAA", "CAA": "CAA", "CNAME": "CNAME", "MX": "MX", "NS": "NS", "PTR": "PTR", "SOA": "SOA", "SRV": "SRV", "TXT": "TXT"}, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the record set, relative to the name of the zone.", + required=True, + id_part="child_name_1", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.zone_name = AAZStrArg( + options=["-z", "--zone-name"], + help="Name of the DNS zone.", + required=True, + id_part="name", + ) + _args_schema.ttl = AAZIntArg( + options=["--ttl"], + help="TTL of the records in the record set.", + nullable=True, + ) + _args_schema.metadata = AAZDictArg( + options=["--metadata"], + help="Metadata in space-separated key=value pairs. This overwrites any existing metadata.", + nullable=True, + ) + _args_schema.target_resource = AAZStrArg( + options=["--target-resource"], + help="ID of an Azure resource from which the DNS resource value is taken.", + nullable=True, + ) + + metadata = cls._args_schema.metadata + metadata.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "Parameters" + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.aaaa_records = AAZListArg( + options=["--aaaa-records"], + arg_group="Properties", + help="The list of AAAA records in the record set.", + nullable=True, + ) + _args_schema.a_records = AAZListArg( + options=["--a-records"], + arg_group="Properties", + help="The list of A records in the record set.", + nullable=True, + ) + _args_schema.cname_record = AAZObjectArg( + options=["--cname-record"], + arg_group="Properties", + help="The CNAME record in the record set.", + nullable=True, + ) + _args_schema.mx_records = AAZListArg( + options=["--mx-records"], + arg_group="Properties", + help="The list of MX records in the record set.", + nullable=True, + ) + _args_schema.ns_records = AAZListArg( + options=["--ns-records"], + arg_group="Properties", + help="The list of NS records in the record set.", + nullable=True, + ) + _args_schema.ptr_records = AAZListArg( + options=["--ptr-records"], + arg_group="Properties", + help="The list of PTR records in the record set.", + nullable=True, + ) + _args_schema.soa_record = AAZObjectArg( + options=["--soa-record"], + arg_group="Properties", + help="The SOA record in the record set.", + nullable=True, + ) + _args_schema.srv_records = AAZListArg( + options=["--srv-records"], + arg_group="Properties", + help="The list of SRV records in the record set.", + nullable=True, + ) + _args_schema.txt_records = AAZListArg( + options=["--txt-records"], + arg_group="Properties", + help="The list of TXT records in the record set.", + nullable=True, + ) + _args_schema.caa_records = AAZListArg( + options=["--caa-records"], + arg_group="Properties", + help="The list of CAA records in the record set.", + nullable=True, + ) + + aaaa_records = cls._args_schema.aaaa_records + aaaa_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.aaaa_records.Element + _element.ipv6_address = AAZStrArg( + options=["ipv6-address"], + help="The IPv6 address of this AAAA record.", + nullable=True, + ) + + a_records = cls._args_schema.a_records + a_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.a_records.Element + _element.ipv4_address = AAZStrArg( + options=["ipv4-address"], + help="The IPv4 address of this A record.", + nullable=True, + ) + + cname_record = cls._args_schema.cname_record + cname_record.cname = AAZStrArg( + options=["cname"], + help="The canonical name for this CNAME record.", + nullable=True, + ) + + mx_records = cls._args_schema.mx_records + mx_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.mx_records.Element + _element.exchange = AAZStrArg( + options=["exchange"], + help="The domain name of the mail host for this MX record.", + nullable=True, + ) + _element.preference = AAZIntArg( + options=["preference"], + help="The preference value for this MX record.", + nullable=True, + ) + + ns_records = cls._args_schema.ns_records + ns_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.ns_records.Element + _element.nsdname = AAZStrArg( + options=["nsdname"], + help="The name server name for this NS record.", + nullable=True, + ) + + ptr_records = cls._args_schema.ptr_records + ptr_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.ptr_records.Element + _element.ptrdname = AAZStrArg( + options=["ptrdname"], + help="The PTR target domain name for this PTR record.", + nullable=True, + ) + + soa_record = cls._args_schema.soa_record + soa_record.email = AAZStrArg( + options=["email"], + help="The email contact for this SOA record.", + nullable=True, + ) + soa_record.expire_time = AAZIntArg( + options=["expire-time"], + help="The expire time for this SOA record.", + nullable=True, + ) + soa_record.host = AAZStrArg( + options=["host"], + help="The domain name of the authoritative name server for this SOA record.", + nullable=True, + ) + soa_record.minimum_ttl = AAZIntArg( + options=["minimum-ttl"], + help="The minimum value for this SOA record. By convention this is used to determine the negative caching duration.", + nullable=True, + ) + soa_record.refresh_time = AAZIntArg( + options=["refresh-time"], + help="The refresh value for this SOA record.", + nullable=True, + ) + soa_record.retry_time = AAZIntArg( + options=["retry-time"], + help="The retry time for this SOA record.", + nullable=True, + ) + soa_record.serial_number = AAZIntArg( + options=["serial-number"], + help="The serial number for this SOA record.", + nullable=True, + ) + + srv_records = cls._args_schema.srv_records + srv_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.srv_records.Element + _element.port = AAZIntArg( + options=["port"], + help="The port value for this SRV record.", + nullable=True, + ) + _element.priority = AAZIntArg( + options=["priority"], + help="The priority value for this SRV record.", + nullable=True, + ) + _element.target = AAZStrArg( + options=["target"], + help="The target domain name for this SRV record.", + nullable=True, + ) + _element.weight = AAZIntArg( + options=["weight"], + help="The weight value for this SRV record.", + nullable=True, + ) + + txt_records = cls._args_schema.txt_records + txt_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.txt_records.Element + _element.value = AAZListArg( + options=["value"], + help="The text value of this TXT record.", + nullable=True, + ) + + value = cls._args_schema.txt_records.Element.value + value.Element = AAZStrArg( + nullable=True, + ) + + caa_records = cls._args_schema.caa_records + caa_records.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.caa_records.Element + _element.flags = AAZIntArg( + options=["flags"], + help="The flags for this CAA record as an integer between 0 and 255.", + nullable=True, + ) + _element.tag = AAZStrArg( + options=["tag"], + help="The tag for this CAA record.", + nullable=True, + ) + _element.value = AAZStrArg( + options=["value"], + help="The value for this CAA record.", + nullable=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.RecordSetsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.RecordSetsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class RecordSetsGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "recordType", self.ctx.args.record_type, + required=True, + ), + **self.serialize_url_param( + "relativeRecordSetName", self.ctx.args.name, + skip_quote=True, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "zoneName", self.ctx.args.zone_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2018-05-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_record_set_read(cls._schema_on_200) + + return cls._schema_on_200 + + class RecordSetsCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "recordType", self.ctx.args.record_type, + required=True, + ), + **self.serialize_url_param( + "relativeRecordSetName", self.ctx.args.name, + skip_quote=True, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + **self.serialize_url_param( + "zoneName", self.ctx.args.zone_name, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2018-05-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "If-Match", self.ctx.args.if_match, + ), + **self.serialize_header_param( + "If-None-Match", self.ctx.args.if_none_match, + ), + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_record_set_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("AAAARecords", AAZListType, ".aaaa_records") + properties.set_prop("ARecords", AAZListType, ".a_records") + properties.set_prop("CNAMERecord", AAZObjectType, ".cname_record") + properties.set_prop("MXRecords", AAZListType, ".mx_records") + properties.set_prop("NSRecords", AAZListType, ".ns_records") + properties.set_prop("PTRRecords", AAZListType, ".ptr_records") + properties.set_prop("SOARecord", AAZObjectType, ".soa_record") + properties.set_prop("SRVRecords", AAZListType, ".srv_records") + properties.set_prop("TTL", AAZIntType, ".ttl") + properties.set_prop("TXTRecords", AAZListType, ".txt_records") + properties.set_prop("caaRecords", AAZListType, ".caa_records") + properties.set_prop("metadata", AAZDictType, ".metadata") + properties.set_prop("targetResource", AAZObjectType) + + aaaa_records = _builder.get(".properties.AAAARecords") + if aaaa_records is not None: + aaaa_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.AAAARecords[]") + if _elements is not None: + _elements.set_prop("ipv6Address", AAZStrType, ".ipv6_address") + + a_records = _builder.get(".properties.ARecords") + if a_records is not None: + a_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.ARecords[]") + if _elements is not None: + _elements.set_prop("ipv4Address", AAZStrType, ".ipv4_address") + + cname_record = _builder.get(".properties.CNAMERecord") + if cname_record is not None: + cname_record.set_prop("cname", AAZStrType, ".cname") + + mx_records = _builder.get(".properties.MXRecords") + if mx_records is not None: + mx_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.MXRecords[]") + if _elements is not None: + _elements.set_prop("exchange", AAZStrType, ".exchange") + _elements.set_prop("preference", AAZIntType, ".preference") + + ns_records = _builder.get(".properties.NSRecords") + if ns_records is not None: + ns_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.NSRecords[]") + if _elements is not None: + _elements.set_prop("nsdname", AAZStrType, ".nsdname") + + ptr_records = _builder.get(".properties.PTRRecords") + if ptr_records is not None: + ptr_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.PTRRecords[]") + if _elements is not None: + _elements.set_prop("ptrdname", AAZStrType, ".ptrdname") + + soa_record = _builder.get(".properties.SOARecord") + if soa_record is not None: + soa_record.set_prop("email", AAZStrType, ".email") + soa_record.set_prop("expireTime", AAZIntType, ".expire_time") + soa_record.set_prop("host", AAZStrType, ".host") + soa_record.set_prop("minimumTTL", AAZIntType, ".minimum_ttl") + soa_record.set_prop("refreshTime", AAZIntType, ".refresh_time") + soa_record.set_prop("retryTime", AAZIntType, ".retry_time") + soa_record.set_prop("serialNumber", AAZIntType, ".serial_number") + + srv_records = _builder.get(".properties.SRVRecords") + if srv_records is not None: + srv_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.SRVRecords[]") + if _elements is not None: + _elements.set_prop("port", AAZIntType, ".port") + _elements.set_prop("priority", AAZIntType, ".priority") + _elements.set_prop("target", AAZStrType, ".target") + _elements.set_prop("weight", AAZIntType, ".weight") + + txt_records = _builder.get(".properties.TXTRecords") + if txt_records is not None: + txt_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.TXTRecords[]") + if _elements is not None: + _elements.set_prop("value", AAZListType, ".value") + + value = _builder.get(".properties.TXTRecords[].value") + if value is not None: + value.set_elements(AAZStrType, ".") + + caa_records = _builder.get(".properties.caaRecords") + if caa_records is not None: + caa_records.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.caaRecords[]") + if _elements is not None: + _elements.set_prop("flags", AAZIntType, ".flags") + _elements.set_prop("tag", AAZStrType, ".tag") + _elements.set_prop("value", AAZStrType, ".value") + + metadata = _builder.get(".properties.metadata") + if metadata is not None: + metadata.set_elements(AAZStrType, ".") + + target_resource = _builder.get(".properties.targetResource") + if target_resource is not None: + target_resource.set_prop("id", AAZStrType, ".target_resource") + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_record_set_read = None + + @classmethod + def _build_schema_record_set_read(cls, _schema): + if cls._schema_record_set_read is not None: + _schema.etag = cls._schema_record_set_read.etag + _schema.id = cls._schema_record_set_read.id + _schema.name = cls._schema_record_set_read.name + _schema.properties = cls._schema_record_set_read.properties + _schema.type = cls._schema_record_set_read.type + return + + cls._schema_record_set_read = _schema_record_set_read = AAZObjectType() + + record_set_read = _schema_record_set_read + record_set_read.etag = AAZStrType() + record_set_read.id = AAZStrType( + flags={"read_only": True}, + ) + record_set_read.name = AAZStrType( + flags={"read_only": True}, + ) + record_set_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + record_set_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_record_set_read.properties + properties.aaaa_records = AAZListType( + serialized_name="AAAARecords", + ) + properties.a_records = AAZListType( + serialized_name="ARecords", + ) + properties.cname_record = AAZObjectType( + serialized_name="CNAMERecord", + ) + properties.mx_records = AAZListType( + serialized_name="MXRecords", + ) + properties.ns_records = AAZListType( + serialized_name="NSRecords", + ) + properties.ptr_records = AAZListType( + serialized_name="PTRRecords", + ) + properties.soa_record = AAZObjectType( + serialized_name="SOARecord", + ) + properties.srv_records = AAZListType( + serialized_name="SRVRecords", + ) + properties.ttl = AAZIntType( + serialized_name="TTL", + ) + properties.txt_records = AAZListType( + serialized_name="TXTRecords", + ) + properties.caa_records = AAZListType( + serialized_name="caaRecords", + ) + properties.fqdn = AAZStrType( + flags={"read_only": True}, + ) + properties.metadata = AAZDictType() + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.target_resource = AAZObjectType( + serialized_name="targetResource", + ) + + aaaa_records = _schema_record_set_read.properties.aaaa_records + aaaa_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.aaaa_records.Element + _element.ipv6_address = AAZStrType( + serialized_name="ipv6Address", + ) + + a_records = _schema_record_set_read.properties.a_records + a_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.a_records.Element + _element.ipv4_address = AAZStrType( + serialized_name="ipv4Address", + ) + + cname_record = _schema_record_set_read.properties.cname_record + cname_record.cname = AAZStrType() + + mx_records = _schema_record_set_read.properties.mx_records + mx_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.mx_records.Element + _element.exchange = AAZStrType() + _element.preference = AAZIntType() + + ns_records = _schema_record_set_read.properties.ns_records + ns_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.ns_records.Element + _element.nsdname = AAZStrType() + + ptr_records = _schema_record_set_read.properties.ptr_records + ptr_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.ptr_records.Element + _element.ptrdname = AAZStrType() + + soa_record = _schema_record_set_read.properties.soa_record + soa_record.email = AAZStrType() + soa_record.expire_time = AAZIntType( + serialized_name="expireTime", + ) + soa_record.host = AAZStrType() + soa_record.minimum_ttl = AAZIntType( + serialized_name="minimumTTL", + ) + soa_record.refresh_time = AAZIntType( + serialized_name="refreshTime", + ) + soa_record.retry_time = AAZIntType( + serialized_name="retryTime", + ) + soa_record.serial_number = AAZIntType( + serialized_name="serialNumber", + ) + + srv_records = _schema_record_set_read.properties.srv_records + srv_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.srv_records.Element + _element.port = AAZIntType() + _element.priority = AAZIntType() + _element.target = AAZStrType() + _element.weight = AAZIntType() + + txt_records = _schema_record_set_read.properties.txt_records + txt_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.txt_records.Element + _element.value = AAZListType() + + value = _schema_record_set_read.properties.txt_records.Element.value + value.Element = AAZStrType() + + caa_records = _schema_record_set_read.properties.caa_records + caa_records.Element = AAZObjectType() + + _element = _schema_record_set_read.properties.caa_records.Element + _element.flags = AAZIntType() + _element.tag = AAZStrType() + _element.value = AAZStrType() + + metadata = _schema_record_set_read.properties.metadata + metadata.Element = AAZStrType() + + target_resource = _schema_record_set_read.properties.target_resource + target_resource.id = AAZStrType() + + _schema.etag = cls._schema_record_set_read.etag + _schema.id = cls._schema_record_set_read.id + _schema.name = cls._schema_record_set_read.name + _schema.properties = cls._schema_record_set_read.properties + _schema.type = cls._schema_record_set_read.type + + +__all__ = ["Update"] diff --git a/src/azure-cli/azure/cli/command_modules/network/commands.py b/src/azure-cli/azure/cli/command_modules/network/commands.py index f7596c57361..1d2d3e098dc 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -231,25 +231,32 @@ def load_command_table(self, _): g.custom_command('create', 'create_dns_zone', client_factory=cf_dns_mgmt_zones) g.generic_update_command('update', custom_func_name='update_dns_zone') - with self.command_group('network dns record-set') as g: - g.custom_command('list', 'list_dns_record_set', client_factory=cf_dns_mgmt_record_sets, transform=transform_dns_record_set_output) - api_version = str(get_api_version(self.cli_ctx, ResourceType.MGMT_NETWORK_DNS)) api_version = api_version.replace('-', '_') dns_doc_string = 'azure.mgmt.dns.v' + api_version + '.operations#RecordSetsOperations.create_or_update' - supported_records = ['a', 'aaaa', 'mx', 'ns', 'ptr', 'srv', 'txt'] - if self.supported_api_version(resource_type=ResourceType.MGMT_NETWORK_DNS, min_api='2018-02-01'): - supported_records.append('caa') + supported_records = ['a', 'aaaa', 'mx', 'ns', 'ptr', 'srv', 'txt', 'caa'] for record in supported_records: with self.command_group('network dns record-set {}'.format(record), network_dns_record_set_sdk, resource_type=ResourceType.MGMT_NETWORK_DNS) as g: g.show_command('show', 'get', transform=transform_dns_record_set_output) g.command('delete', 'delete', confirmation=True) - g.custom_command('list', 'list_dns_record_set', client_factory=cf_dns_mgmt_record_sets, transform=transform_dns_record_set_output, table_transformer=transform_dns_record_set_table_output) + g.custom_command('list', 'list_dns_record_set', transform=transform_dns_record_set_output, table_transformer=transform_dns_record_set_table_output) g.custom_command('create', 'create_dns_record_set', transform=transform_dns_record_set_output, doc_string_source=dns_doc_string) g.custom_command('add-record', 'add_dns_{}_record'.format(record), transform=transform_dns_record_set_output) g.custom_command('remove-record', 'remove_dns_{}_record'.format(record), transform=transform_dns_record_set_output) - g.generic_update_command('update', custom_func_name='update_dns_record_set', transform=transform_dns_record_set_output) + + from .operations.dns import RecordSetAUpdate as DNSRecordSetAUpdate, RecordSetAAAAUpdate as DNSRecordSetAAAAUpdate, \ + RecordSetMXUpdate as DNSRecordSetMXUpdate, RecordSetNSUpdate as DNSRecordSetNSUpdate, \ + RecordSetPTRUpdate as DNSRecordSetPTRUpdate, RecordSetSRVUpdate as DNSRecordSetSRVUpdate, \ + RecordSetTXTUpdate as DNSRecordSetTXTUpdate, RecordSetCAAUpdate as DNSRecordSetCAAUpdate + self.command_table["network dns record-set a update"] = DNSRecordSetAUpdate(loader=self) + self.command_table["network dns record-set aaaa update"] = DNSRecordSetAAAAUpdate(loader=self) + self.command_table["network dns record-set mx update"] = DNSRecordSetMXUpdate(loader=self) + self.command_table["network dns record-set ns update"] = DNSRecordSetNSUpdate(loader=self) + self.command_table["network dns record-set ptr update"] = DNSRecordSetPTRUpdate(loader=self) + self.command_table["network dns record-set srv update"] = DNSRecordSetSRVUpdate(loader=self) + self.command_table["network dns record-set txt update"] = DNSRecordSetTXTUpdate(loader=self) + self.command_table["network dns record-set caa update"] = DNSRecordSetCAAUpdate(loader=self) with self.command_group('network dns record-set soa', network_dns_record_set_sdk) as g: g.show_command('show', 'get', transform=transform_dns_record_set_output) diff --git a/src/azure-cli/azure/cli/command_modules/network/custom.py b/src/azure-cli/azure/cli/command_modules/network/custom.py index 56bf17b6d0e..cfe2fb024d0 100644 --- a/src/azure-cli/azure/cli/command_modules/network/custom.py +++ b/src/azure-cli/azure/cli/command_modules/network/custom.py @@ -19,7 +19,7 @@ from azure.cli.core.util import CLIError, sdk_no_wait from azure.cli.core.azclierror import InvalidArgumentValueError, ValidationError, \ UnrecognizedArgumentError, ResourceNotFoundError, ArgumentUsageError -from azure.cli.core.profiles import ResourceType, supported_api_version +from azure.cli.core.profiles import ResourceType from azure.cli.command_modules.network.zone_file.parse_zone_file import parse_zone_file from azure.cli.command_modules.network.zone_file.make_zone_file import make_zone_file @@ -62,6 +62,8 @@ Add as _WAFCustomRuleMatchConditionAdd from .aaz.latest.network.application_gateway.waf_policy.policy_setting import Update as _WAFPolicySettingUpdate from .aaz.latest.network.custom_ip.prefix import Update as _CustomIpPrefixUpdate +from .aaz.latest.network.dns.record_set import Create as _DNSRecordSetCreate, Delete as _DNSRecordSetDelete, \ + ListByType as _DNSRecordSetListByType, Show as _DNSRecordSetShow, Update as _DNSRecordSetUpdate from .aaz.latest.network.express_route import Create as _ExpressRouteCreate, Update as _ExpressRouteUpdate from .aaz.latest.network.express_route.gateway import Create as _ExpressRouteGatewayCreate, \ Update as _ExpressRouteGatewayUpdate @@ -2411,6 +2413,27 @@ def update_ddos_plan(cmd, resource_group_name, ddos_plan_name, tags=None, vnets= # region DNS Commands # add delegation name server record for the created child zone in it's parent zone. +def _to_snake(s): + import re + s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', s) + + return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() + + +def _convert_to_snake_case(element): + if isinstance(element, dict): + ret = dict() + for k, v in element.items(): + ret[_to_snake(k)] = _convert_to_snake_case(v) + + return ret + + if isinstance(element, list): + return [_convert_to_snake_case(i) for i in element] + + return element + + def add_dns_delegation(cmd, child_zone, parent_zone, child_rg, child_zone_name): """ :param child_zone: the zone object corresponding to the child that is created. @@ -2490,25 +2513,29 @@ def list_dns_zones(cmd, resource_group_name=None): def create_dns_record_set(cmd, resource_group_name, zone_name, record_set_name, record_set_type, metadata=None, if_match=None, if_none_match=None, ttl=3600, target_resource=None): + record_set = { + "ttl": ttl, + "metadata": metadata, + "target_resource": {"id": target_resource} if target_resource else None + } - RecordSet = cmd.get_models('RecordSet', resource_type=ResourceType.MGMT_NETWORK_DNS) - SubResource = cmd.get_models('SubResource', resource_type=ResourceType.MGMT_NETWORK_DNS) - client = get_mgmt_service_client(cmd.cli_ctx, ResourceType.MGMT_NETWORK_DNS).record_sets - record_set = RecordSet( - ttl=ttl, - metadata=metadata, - target_resource=SubResource(id=target_resource) if target_resource else None - ) - return client.create_or_update(resource_group_name, zone_name, record_set_name, - record_set_type, record_set, if_match=if_match, - if_none_match='*' if if_none_match else None) - + return _DNSRecordSetCreate(cli_ctx=cmd.cli_ctx)(command_args={ + "name": record_set_name, + "zone_name": zone_name, + "resource_group": resource_group_name, + "record_type": record_set_type, + "if_match": if_match, + "if_none_match": "*" if if_none_match else None, + **record_set + }) -def list_dns_record_set(client, resource_group_name, zone_name, record_type=None): - if record_type: - return client.list_by_type(resource_group_name, zone_name, record_type) - return client.list_by_dns_zone(resource_group_name, zone_name) +def list_dns_record_set(cmd, resource_group_name, zone_name, record_type): + return _DNSRecordSetListByType(cli_ctx=cmd.cli_ctx)(command_args={ + "record_type": record_type, + "resource_group": resource_group_name, + "zone_name": zone_name + }) def update_dns_record_set(instance, cmd, metadata=None, target_resource=None): @@ -2524,18 +2551,19 @@ def update_dns_record_set(instance, cmd, metadata=None, target_resource=None): def _type_to_property_name(key): type_dict = { - 'a': 'a_records', - 'aaaa': 'aaaa_records', - 'caa': 'caa_records', - 'cname': 'cname_record', - 'mx': 'mx_records', - 'ns': 'ns_records', - 'ptr': 'ptr_records', - 'soa': 'soa_record', - 'spf': 'txt_records', - 'srv': 'srv_records', - 'txt': 'txt_records', - 'alias': 'target_resource', + # `record_type`: (`snake_case`, `camel_case`) + 'a': ('a_records', "ARecords"), + 'aaaa': ('aaaa_records', "AAAARecords"), + 'caa': ('caa_records', "caaRecords"), + 'cname': ('cname_record', "CNAMERecord"), + 'mx': ('mx_records', "MXRecords"), + 'ns': ('ns_records', "NSRecords"), + 'ptr': ('ptr_records', "PTRRecords"), + 'soa': ('soa_record', "SOARecord"), + 'spf': ('txt_records', "TXTRecords"), + 'srv': ('srv_records', "SRVRecords"), + 'txt': ('txt_records', "TXTRecords"), + 'alias': ('target_resource', "targetResource"), } return type_dict[key.lower()] @@ -2556,7 +2584,7 @@ def export_zone(cmd, resource_group_name, zone_name, file_name=None): # pylint: for record_set in record_sets: record_type = record_set.type.rsplit('/', 1)[1].lower() record_set_name = record_set.name - record_data = getattr(record_set, _type_to_property_name(record_type), None) + record_data = getattr(record_set, _type_to_property_name(record_type)[0], None) if not record_data: record_data = [] @@ -2630,62 +2658,34 @@ def export_zone(cmd, resource_group_name, zone_name, file_name=None): # pylint: # pylint: disable=too-many-return-statements, inconsistent-return-statements, too-many-branches def _build_record(cmd, data): - ( - AaaaRecord, - ARecord, - CaaRecord, - CnameRecord, - MxRecord, - NsRecord, - PtrRecord, - SoaRecord, - SrvRecord, - TxtRecord, - SubResource, - ) = cmd.get_models( - "AaaaRecord", - "ARecord", - "CaaRecord", - "CnameRecord", - "MxRecord", - "NsRecord", - "PtrRecord", - "SoaRecord", - "SrvRecord", - "TxtRecord", - "SubResource", - resource_type=ResourceType.MGMT_NETWORK_DNS, - ) record_type = data['delim'].lower() try: if record_type == 'aaaa': - return AaaaRecord(ipv6_address=data['ip']) + return {"ipv6_address": data["ip"]} if record_type == 'a': - return ARecord(ipv4_address=data['ip']) - if (record_type == 'caa' and - supported_api_version(cmd.cli_ctx, ResourceType.MGMT_NETWORK_DNS, min_api='2018-03-01-preview')): - return CaaRecord(value=data['val'], flags=int(data['flags']), tag=data['tag']) + return {"ipv4_address": data["ip"]} + if record_type == 'caa': + return {"value": data["val"], "flags": int(data["flags"]), "tag": data["tag"]} if record_type == 'cname': - return CnameRecord(cname=data['alias']) + return {"cname": data["alias"]} if record_type == 'mx': - return MxRecord(preference=data['preference'], exchange=data['host']) + return {"preference": data["preference"], "exchange": data["host"]} if record_type == 'ns': - return NsRecord(nsdname=data['host']) + return {"nsdname": data["host"]} if record_type == 'ptr': - return PtrRecord(ptrdname=data['host']) + return {"ptrdname": data["host"]} if record_type == 'soa': - return SoaRecord(host=data['host'], email=data['email'], serial_number=data['serial'], - refresh_time=data['refresh'], retry_time=data['retry'], expire_time=data['expire'], - minimum_ttl=data['minimum']) + return {"host": data["host"], "email": data["email"], "serial_number": data["serial"], + "refresh_time": data["refresh"], "retry_time": data["retry"], "expire_time": data["expire"], + "minimum_ttl": data["minimum"]} if record_type == 'srv': - return SrvRecord( - priority=int(data['priority']), weight=int(data['weight']), port=int(data['port']), - target=data['target']) + return {"priority": int(data["priority"]), "weight": int(data["weight"]), "port": int(data["port"]), + "target": data["target"]} if record_type in ['txt', 'spf']: text_data = data['txt'] - return TxtRecord(value=text_data) if isinstance(text_data, list) else TxtRecord(value=[text_data]) + return {"value": text_data} if isinstance(text_data, list) else {"value": [text_data]} if record_type == 'alias': - return SubResource(id=data["resourceId"]) + return {"id": data["resourceId"]} except KeyError as ke: raise CLIError("The {} record '{}' is missing a property. {}" .format(record_type, data['name'], ke)) @@ -2697,7 +2697,6 @@ def import_zone(cmd, resource_group_name, zone_name, file_name): from azure.core.exceptions import HttpResponseError import sys logger.warning("In the future, zone name will be case insensitive.") - RecordSet = cmd.get_models('RecordSet', resource_type=ResourceType.MGMT_NETWORK_DNS) from azure.cli.core.azclierror import FileOperationError, UnclassifiedUserFault try: @@ -2751,7 +2750,7 @@ def import_zone(cmd, resource_group_name, zone_name, file_name): 'imported at this time. Skipping...', relative_record_set_name) continue - record_set = RecordSet(ttl=record_set_ttl) + record_set = {"ttl": record_set_ttl} record_sets[record_set_key] = record_set _add_record(record_set, record, record_set_type, is_list=record_set_type.lower() not in ['soa', 'cname', 'alias']) @@ -2761,7 +2760,7 @@ def import_zone(cmd, resource_group_name, zone_name, file_name): rs_name, rs_type = key.lower().rsplit('.', 1) rs_name = rs_name[:-(len(origin) + 1)] if rs_name != origin else '@' try: - record_count = len(getattr(rs, _type_to_property_name(rs_type))) + record_count = len(rs[_type_to_property_name(rs_type)[0]]) except TypeError: record_count = 1 total_records += record_count @@ -2780,16 +2779,16 @@ def import_zone(cmd, resource_group_name, zone_name, file_name): rs_name = rs_name[:-(len(origin) + 1)] try: - record_count = len(getattr(rs, _type_to_property_name(rs_type))) + record_count = len(rs[_type_to_property_name(rs_type)[0]]) except TypeError: record_count = 1 if rs_name == '@' and rs_type == 'soa': root_soa = client.record_sets.get(resource_group_name, zone_name, '@', 'SOA') - rs.soa_record.host = root_soa.soa_record.host + rs["soa_record"]["host"] = root_soa.soa_record.host rs_name = '@' elif rs_name == '@' and rs_type == 'ns': root_ns = client.record_sets.get(resource_group_name, zone_name, '@', 'NS') - root_ns.ttl = rs.ttl + root_ns.ttl = rs["ttl"] rs = root_ns rs_type = rs.type.rsplit('/', 1)[1] try: @@ -2806,8 +2805,7 @@ def import_zone(cmd, resource_group_name, zone_name, file_name): def add_dns_aaaa_record(cmd, resource_group_name, zone_name, record_set_name, ipv6_address, ttl=3600, if_none_match=None): - AaaaRecord = cmd.get_models('AaaaRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = AaaaRecord(ipv6_address=ipv6_address) + record = {"ipv6_address": ipv6_address} record_type = 'aaaa' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, ttl=ttl, if_none_match=if_none_match) @@ -2815,8 +2813,7 @@ def add_dns_aaaa_record(cmd, resource_group_name, zone_name, record_set_name, ip def add_dns_a_record(cmd, resource_group_name, zone_name, record_set_name, ipv4_address, ttl=3600, if_none_match=None): - ARecord = cmd.get_models('ARecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = ARecord(ipv4_address=ipv4_address) + record = {"ipv4_address": ipv4_address} record_type = 'a' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, 'arecords', ttl=ttl, if_none_match=if_none_match) @@ -2824,16 +2821,14 @@ def add_dns_a_record(cmd, resource_group_name, zone_name, record_set_name, ipv4_ def add_dns_caa_record(cmd, resource_group_name, zone_name, record_set_name, value, flags, tag, ttl=3600, if_none_match=None): - CaaRecord = cmd.get_models('CaaRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = CaaRecord(flags=flags, tag=tag, value=value) + record = {"flags": flags, "tag": tag, "value": value} record_type = 'caa' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, ttl=ttl, if_none_match=if_none_match) def add_dns_cname_record(cmd, resource_group_name, zone_name, record_set_name, cname, ttl=3600, if_none_match=None): - CnameRecord = cmd.get_models('CnameRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = CnameRecord(cname=cname) + record = {"cname": cname} record_type = 'cname' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, is_list=False, ttl=ttl, if_none_match=if_none_match) @@ -2841,8 +2836,7 @@ def add_dns_cname_record(cmd, resource_group_name, zone_name, record_set_name, c def add_dns_mx_record(cmd, resource_group_name, zone_name, record_set_name, preference, exchange, ttl=3600, if_none_match=None): - MxRecord = cmd.get_models('MxRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = MxRecord(preference=int(preference), exchange=exchange) + record = {"preference": int(preference), "exchange": exchange} record_type = 'mx' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, ttl=ttl, if_none_match=if_none_match) @@ -2850,16 +2844,14 @@ def add_dns_mx_record(cmd, resource_group_name, zone_name, record_set_name, pref def add_dns_ns_record(cmd, resource_group_name, zone_name, record_set_name, dname, subscription_id=None, ttl=3600, if_none_match=None): - NsRecord = cmd.get_models('NsRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = NsRecord(nsdname=dname) + record = {"nsdname": dname} record_type = 'ns' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, subscription_id=subscription_id, ttl=ttl, if_none_match=if_none_match) def add_dns_ptr_record(cmd, resource_group_name, zone_name, record_set_name, dname, ttl=3600, if_none_match=None): - PtrRecord = cmd.get_models('PtrRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = PtrRecord(ptrdname=dname) + record = {"ptrdname": dname} record_type = 'ptr' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, ttl=ttl, if_none_match=if_none_match) @@ -2871,17 +2863,23 @@ def update_dns_soa_record(cmd, resource_group_name, zone_name, host=None, email= record_set_name = '@' record_type = 'soa' - ncf = get_mgmt_service_client(cmd.cli_ctx, ResourceType.MGMT_NETWORK_DNS).record_sets - record_set = ncf.get(resource_group_name, zone_name, record_set_name, record_type) - record = record_set.soa_record + from .aaz.latest.network.dns.record_set import Show + record_set = Show(cli_ctx=cmd.cli_ctx)(command_args={ + "name": record_set_name, + "zone_name": zone_name, + "resource_group": resource_group_name, + "record_type": record_type + }) - record.host = host or record.host - record.email = email or record.email - record.serial_number = serial_number or record.serial_number - record.refresh_time = refresh_time or record.refresh_time - record.retry_time = retry_time or record.retry_time - record.expire_time = expire_time or record.expire_time - record.minimum_ttl = minimum_ttl or record.minimum_ttl + record_camal = record_set["SOARecord"] + record = dict() + record["host"] = host or record_camal.get("host", None) + record["email"] = email or record_camal.get("email", None) + record["serial_number"] = serial_number or record_camal.get("serialNumber", None) + record["refresh_time"] = refresh_time or record_camal.get("refreshTime", None) + record["retry_time"] = retry_time or record_camal.get("retryTime", None) + record["expire_time"] = expire_time or record_camal.get("expireTime", None) + record["minimum_ttl"] = minimum_ttl or record_camal.get("minimumTTL", None) return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, is_list=False, if_none_match=if_none_match) @@ -2889,25 +2887,23 @@ def update_dns_soa_record(cmd, resource_group_name, zone_name, host=None, email= def add_dns_srv_record(cmd, resource_group_name, zone_name, record_set_name, priority, weight, port, target, if_none_match=None): - SrvRecord = cmd.get_models('SrvRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = SrvRecord(priority=priority, weight=weight, port=port, target=target) + record = {"priority": priority, "weight": weight, "port": port, "target": target} record_type = 'srv' return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, if_none_match=if_none_match) def add_dns_txt_record(cmd, resource_group_name, zone_name, record_set_name, value, if_none_match=None): - TxtRecord = cmd.get_models('TxtRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = TxtRecord(value=value) + record = {"value": value} record_type = 'txt' - long_text = ''.join(x for x in record.value) + long_text = ''.join(x for x in record["value"]) original_len = len(long_text) - record.value = [] + record["value"] = [] while len(long_text) > 255: - record.value.append(long_text[:255]) + record["value"].append(long_text[:255]) long_text = long_text[255:] - record.value.append(long_text) - final_str = ''.join(record.value) + record["value"].append(long_text) + final_str = ''.join(record["value"]) final_len = len(final_str) assert original_len == final_len return _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, @@ -2916,8 +2912,7 @@ def add_dns_txt_record(cmd, resource_group_name, zone_name, record_set_name, val def remove_dns_aaaa_record(cmd, resource_group_name, zone_name, record_set_name, ipv6_address, keep_empty_record_set=False): - AaaaRecord = cmd.get_models('AaaaRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = AaaaRecord(ipv6_address=ipv6_address) + record = {"ipv6_address": ipv6_address} record_type = 'aaaa' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2925,8 +2920,7 @@ def remove_dns_aaaa_record(cmd, resource_group_name, zone_name, record_set_name, def remove_dns_a_record(cmd, resource_group_name, zone_name, record_set_name, ipv4_address, keep_empty_record_set=False): - ARecord = cmd.get_models('ARecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = ARecord(ipv4_address=ipv4_address) + record = {"ipv4_address": ipv4_address} record_type = 'a' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2934,8 +2928,7 @@ def remove_dns_a_record(cmd, resource_group_name, zone_name, record_set_name, ip def remove_dns_caa_record(cmd, resource_group_name, zone_name, record_set_name, value, flags, tag, keep_empty_record_set=False): - CaaRecord = cmd.get_models('CaaRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = CaaRecord(flags=flags, tag=tag, value=value) + record = {"flags": flags, "tag": tag, "value": value} record_type = 'caa' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2943,8 +2936,7 @@ def remove_dns_caa_record(cmd, resource_group_name, zone_name, record_set_name, def remove_dns_cname_record(cmd, resource_group_name, zone_name, record_set_name, cname, keep_empty_record_set=False): - CnameRecord = cmd.get_models('CnameRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = CnameRecord(cname=cname) + record = {"cname": cname} record_type = 'cname' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, is_list=False, keep_empty_record_set=keep_empty_record_set) @@ -2952,8 +2944,7 @@ def remove_dns_cname_record(cmd, resource_group_name, zone_name, record_set_name def remove_dns_mx_record(cmd, resource_group_name, zone_name, record_set_name, preference, exchange, keep_empty_record_set=False): - MxRecord = cmd.get_models('MxRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = MxRecord(preference=int(preference), exchange=exchange) + record = {"preference": int(preference), "exchange": exchange} record_type = 'mx' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2961,8 +2952,7 @@ def remove_dns_mx_record(cmd, resource_group_name, zone_name, record_set_name, p def remove_dns_ns_record(cmd, resource_group_name, zone_name, record_set_name, dname, keep_empty_record_set=False): - NsRecord = cmd.get_models('NsRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = NsRecord(nsdname=dname) + record = {"nsdname": dname} record_type = 'ns' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2970,8 +2960,7 @@ def remove_dns_ns_record(cmd, resource_group_name, zone_name, record_set_name, d def remove_dns_ptr_record(cmd, resource_group_name, zone_name, record_set_name, dname, keep_empty_record_set=False): - PtrRecord = cmd.get_models('PtrRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = PtrRecord(ptrdname=dname) + record = {"ptrdname": dname} record_type = 'ptr' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2979,8 +2968,7 @@ def remove_dns_ptr_record(cmd, resource_group_name, zone_name, record_set_name, def remove_dns_srv_record(cmd, resource_group_name, zone_name, record_set_name, priority, weight, port, target, keep_empty_record_set=False): - SrvRecord = cmd.get_models('SrvRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = SrvRecord(priority=priority, weight=weight, port=port, target=target) + record = {"priority": priority, "weight": weight, "port": port, "target": target} record_type = 'srv' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2988,8 +2976,7 @@ def remove_dns_srv_record(cmd, resource_group_name, zone_name, record_set_name, def remove_dns_txt_record(cmd, resource_group_name, zone_name, record_set_name, value, keep_empty_record_set=False): - TxtRecord = cmd.get_models('TxtRecord', resource_type=ResourceType.MGMT_NETWORK_DNS) - record = TxtRecord(value=value) + record = {"value": value} record_type = 'txt' return _remove_record(cmd.cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set=keep_empty_record_set) @@ -2997,69 +2984,63 @@ def remove_dns_txt_record(cmd, resource_group_name, zone_name, record_set_name, def _check_a_record_exist(record, exist_list): for r in exist_list: - if r.ipv4_address == record.ipv4_address: + if r["ipv4_address"] == record["ipv4_address"]: return True return False def _check_aaaa_record_exist(record, exist_list): for r in exist_list: - if r.ipv6_address == record.ipv6_address: + if r["ipv6_address"] == record["ipv6_address"]: return True return False def _check_caa_record_exist(record, exist_list): for r in exist_list: - if (r.flags == record.flags and - r.tag == record.tag and - r.value == record.value): + if (r["flags"], r["tag"], r["value"]) == (record["flags"], record["tag"], record["value"]): return True return False def _check_cname_record_exist(record, exist_list): for r in exist_list: - if r.cname == record.cname: + if r["cname"] == record["cname"]: return True return False def _check_mx_record_exist(record, exist_list): for r in exist_list: - if (r.preference == record.preference and - r.exchange == record.exchange): + if (r["preference"], r["exchange"]) == (record["preference"], record["exchange"]): return True return False def _check_ns_record_exist(record, exist_list): for r in exist_list: - if r.nsdname == record.nsdname: + if r["nsdname"] == record["nsdname"]: return True return False def _check_ptr_record_exist(record, exist_list): for r in exist_list: - if r.ptrdname == record.ptrdname: + if r["ptrdname"] == record["ptrdname"]: return True return False def _check_srv_record_exist(record, exist_list): for r in exist_list: - if (r.priority == record.priority and - r.weight == record.weight and - r.port == record.port and - r.target == record.target): + if (r["priority"], r["weight"], r["port"], r["target"]) == (record["priority"], record["weight"], record["port"], record["target"]): return True return False def _check_txt_record_exist(record, exist_list): for r in exist_list: - if r.value == record.value: + if r["value"] == record["value"]: return True return False @@ -3069,70 +3050,103 @@ def _record_exist_func(record_type): def _add_record(record_set, record, record_type, is_list=False): - record_property = _type_to_property_name(record_type) + record_property, _ = _type_to_property_name(record_type) if is_list: - record_list = getattr(record_set, record_property) + record_list = record_set.get(record_property, None) if record_list is None: - setattr(record_set, record_property, []) - record_list = getattr(record_set, record_property) + record_set[record_property] = [] + record_list = [] _record_exist = _record_exist_func(record_type) if not _record_exist(record, record_list): - record_list.append(record) + record_set[record_property].append(record) else: - setattr(record_set, record_property, record) + record_set[record_property] = record def _add_save_record(cmd, record, record_type, record_set_name, resource_group_name, zone_name, is_list=True, subscription_id=None, ttl=None, if_none_match=None): from azure.core.exceptions import HttpResponseError - ncf = get_mgmt_service_client(cmd.cli_ctx, ResourceType.MGMT_NETWORK_DNS, - subscription_id=subscription_id).record_sets + record_snake, record_camel = _type_to_property_name(record_type) try: - record_set = ncf.get(resource_group_name, zone_name, record_set_name, record_type) + ret = _DNSRecordSetShow(cli_ctx=cmd.cli_ctx)(command_args={ + "name": record_set_name, + "zone_name": zone_name, + "subscription": subscription_id, + "resource_group": resource_group_name, + "record_type": record_type + }) + record_set = dict() + record_set["ttl"] = ret.get("TTL", None) + record_set[record_snake] = ret.get(record_camel, None) + record_set = _convert_to_snake_case(record_set) except HttpResponseError: - RecordSet = cmd.get_models('RecordSet', resource_type=ResourceType.MGMT_NETWORK_DNS) - record_set = RecordSet(ttl=3600) + record_set = {"ttl": 3600} if ttl is not None: - record_set.ttl = ttl + record_set["ttl"] = ttl _add_record(record_set, record, record_type, is_list) - return ncf.create_or_update(resource_group_name, zone_name, record_set_name, - record_type, record_set, - if_none_match='*' if if_none_match else None) + return _DNSRecordSetCreate(cli_ctx=cmd.cli_ctx)(command_args={ + "name": record_set_name, + "zone_name": zone_name, + "subscription": subscription_id, + "resource_group": resource_group_name, + "record_type": record_type, + "if_none_match": "*" if if_none_match else None, + **record_set + }) def _remove_record(cli_ctx, record, record_type, record_set_name, resource_group_name, zone_name, keep_empty_record_set, is_list=True): - ncf = get_mgmt_service_client(cli_ctx, ResourceType.MGMT_NETWORK_DNS).record_sets - record_set = ncf.get(resource_group_name, zone_name, record_set_name, record_type) - record_property = _type_to_property_name(record_type) + record_snake, record_camel = _type_to_property_name(record_type) + ret = _DNSRecordSetShow(cli_ctx=cli_ctx)(command_args={ + "name": record_set_name, + "zone_name": zone_name, + "resource_group": resource_group_name, + "record_type": record_type + }) + record_set = dict() + record_set["ttl"] = ret.get("TTL", None) + record_set[record_snake] = ret.get(record_camel, None) + record_set = _convert_to_snake_case(record_set) if is_list: - record_list = getattr(record_set, record_property) + record_list = record_set[record_snake] if record_list is not None: - keep_list = [r for r in record_list - if not dict_matches_filter(r.__dict__, record.__dict__)] + keep_list = [r for r in record_list if not dict_matches_filter(r, record)] if len(keep_list) == len(record_list): raise CLIError('Record {} not found.'.format(str(record))) - setattr(record_set, record_property, keep_list) + + record_set[record_snake] = keep_list else: - setattr(record_set, record_property, None) + record_set[record_snake] = None if is_list: - records_remaining = len(getattr(record_set, record_property)) + records_remaining = len(record_set[record_snake]) else: - records_remaining = 1 if getattr(record_set, record_property) is not None else 0 + records_remaining = 1 if record_set[record_snake] is not None else 0 if not records_remaining and not keep_empty_record_set: logger.info('Removing empty %s record set: %s', record_type, record_set_name) - return ncf.delete(resource_group_name, zone_name, record_set_name, record_type) + return _DNSRecordSetDelete(cli_ctx=cli_ctx)(command_args={ + "name": record_set_name, + "zone_name": zone_name, + "resource_group": resource_group_name, + "record_type": record_type + }) - return ncf.create_or_update(resource_group_name, zone_name, record_set_name, record_type, record_set) + return _DNSRecordSetUpdate(cli_ctx=cli_ctx)(command_args={ + "name": record_set_name, + "zone_name": zone_name, + "resource_group": resource_group_name, + "record_type": record_type, + **record_set + }) def dict_matches_filter(d, filter_dict): diff --git a/src/azure-cli/azure/cli/command_modules/network/operations/dns.py b/src/azure-cli/azure/cli/command_modules/network/operations/dns.py new file mode 100644 index 00000000000..8ccab1338de --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/operations/dns.py @@ -0,0 +1,143 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long, protected-access, too-few-public-methods +from knack.log import get_logger + +from azure.cli.core.aaz import has_value, register_command, AAZResourceIdArgFormat +from ..aaz.latest.network.dns.record_set import Update as _RecordSetUpdate + +logger = get_logger(__name__) + + +class EmptyResourceIdArgFormat(AAZResourceIdArgFormat): + def __call__(self, ctx, value): + if value._data == "": + logger.warning("It's recommended to detach it by null, empty string (\"\") will be deprecated.") + value._data = None + return super().__call__(ctx, value) + + +class RecordSetUpdate(_RecordSetUpdate): + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + args_schema = super()._build_arguments_schema(*args, **kwargs) + args_schema.target_resource._fmt = EmptyResourceIdArgFormat() + + args_schema.record_type._required = False + args_schema.record_type._registered = False + + args_schema.ttl._registered = False + args_schema.a_records._registered = False + args_schema.aaaa_records._registered = False + args_schema.caa_records._registered = False + args_schema.cname_record._registered = False + args_schema.mx_records._registered = False + args_schema.ns_records._registered = False + args_schema.ptr_records._registered = False + args_schema.soa_record._registered = False + args_schema.srv_records._registered = False + args_schema.txt_records._registered = False + return args_schema + + def post_instance_update(self, instance): + if not has_value(instance.properties.target_resource.id): + instance.properties.target_resource = None + + +@register_command("network dns record-set a update") +class RecordSetAUpdate(RecordSetUpdate): + """ Update an A record set. + + :example: Update an A record set. + az network dns record-set a update -g MyResourceGroup -n MyRecordSet -z www.mysite.com --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "A" + + +@register_command("network dns record-set aaaa update") +class RecordSetAAAAUpdate(RecordSetUpdate): + """ Update an AAAA record set. + + :example: Update an AAAA record set. + az network dns record-set aaaa update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "AAAA" + + +@register_command("network dns record-set mx update") +class RecordSetMXUpdate(RecordSetUpdate): + """ Update an MX record set. + + :example: Update an MX record set. + az network dns record-set mx update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "MX" + + +@register_command("network dns record-set ns update") +class RecordSetNSUpdate(RecordSetUpdate): + """ Update an NS record set. + + :example: Update an NS record set. + az network dns record-set ns update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "NS" + + +@register_command("network dns record-set ptr update") +class RecordSetPTRUpdate(RecordSetUpdate): + """ Update a PTR record set. + + :example: Update a PTR record set. + az network dns record-set ptr update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "PTR" + + +@register_command("network dns record-set srv update") +class RecordSetSRVUpdate(RecordSetUpdate): + """ Update an SRV record set. + + :example: Update an SRV record set. + az network dns record-set srv update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "SRV" + + +@register_command("network dns record-set txt update") +class RecordSetTXTUpdate(RecordSetUpdate): + """ Update a TXT record set. + + :example: Update a TXT record set. + az network dns record-set txt update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "TXT" + + +@register_command("network dns record-set caa update") +class RecordSetCAAUpdate(RecordSetUpdate): + """ Update a CAA record set. + + :example: Update a CAA record set. + az network dns record-set caa update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam + """ + def pre_operations(self): + args = self.ctx.args + args.record_type = "CAA" diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns.yaml index 00f7f98e565..817e2b72e7f 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns.yaml @@ -11,21 +11,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/dnszones?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_dns_zone2_importzhsfq5rvr3tseal24mbjw6ldv3x3cse4vqw3cqe3h344x5lb7ksqxii\/providers\/Microsoft.Network\/dnszones\/zone2.com","name":"zone2.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-fc96-544085bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":38,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_dns_zone5_importf2wj75fv5ocok6bymqpjxj2iydmmma2jtqper7qirp36y74ijfzqrjl\/providers\/Microsoft.Network\/dnszones\/zone5.com","name":"zone5.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-5845-f65e85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-01.azure-dns.com.","ns2-01.azure-dns.net.","ns3-01.azure-dns.org.","ns4-01.azure-dns.info."],"numberOfRecordSets":19,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_dns_zone7_importf7vk5dgf5mxa7t7k36srxc46rpp2ddb4iahhomz6fnymflgzio7lhly\/providers\/Microsoft.Network\/dnszones\/zone7.com","name":"zone7.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-5bd3-676085bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":5,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_dns_zone8_importuywhtthtqjvqanfxkeuy4pffmdd25tmxyg26rh3qfzyqvemspkilzqa\/providers\/Microsoft.Network\/dnszones\/zone8.com","name":"zone8.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-a40c-bd5e85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-05.azure-dns.com.","ns2-05.azure-dns.net.","ns3-05.azure-dns.org.","ns4-05.azure-dns.info."],"numberOfRecordSets":4,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_dns_zone9_importfljjgf2vsuhgob7ubmohb7dyqgsjypsb43ielnjhm5f3u3q3e7nvw6y\/providers\/Microsoft.Network\/dnszones\/zone9.com","name":"zone9.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-3f99-027485bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-09.azure-dns.com.","ns2-09.azure-dns.net.","ns3-09.azure-dns.org.","ns4-09.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias36ytohtazqnotslsgztn5jmedo76jzd57xzqn5eeg2otl7pbyd7p7omva\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com","name":"mytestzone1.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-76c3-5d6e85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-06.azure-dns.com.","ns2-06.azure-dns.net.","ns3-06.azure-dns.org.","ns4-06.azure-dns.info."],"numberOfRecordSets":3,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dnsdqqm4aetetb37rrdc7ph3cooeafdeatvcnlsdworrqmkitt43swsxxj4yqtyeps\/providers\/Microsoft.Network\/dnszones\/books.com","name":"books.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-2889-b96a85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-03.azure-dns.com.","ns2-03.azure-dns.net.","ns3-03.azure-dns.org.","ns4-03.azure-dns.info."],"numberOfRecordSets":3,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dnsdqqm4aetetb37rrdc7ph3cooeafdeatvcnlsdworrqmkitt43swsxxj4yqtyeps\/providers\/Microsoft.Network\/dnszones\/nursery.books.com","name":"nursery.books.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-7eab-8b7085bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-06.azure-dns.com.","ns2-06.azure-dns.net.","ns3-06.azure-dns.org.","ns4-06.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/zhwen-domain\/providers\/Microsoft.Network\/dnszones\/emoranran.com","name":"emoranran.com","type":"Microsoft.Network\/dnszones","etag":"0fcd0dad-a80d-4b69-880f-dbb78cd1a216","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-06.azure-dns.com.","ns2-06.azure-dns.net.","ns3-06.azure-dns.org.","ns4-06.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' headers: cache-control: - private content-length: - - '4665' + - '534' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:50:44 GMT + - Tue, 04 Apr 2023 03:54:37 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-entities-read: - - '59992' + - '59999' x-ms-ratelimit-remaining-subscription-resource-requests: - '499' x-powered-by: @@ -63,23 +63,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-83cd-067a85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-03.azure-dns.com.","ns2-03.azure-dns.net.","ns3-03.azure-dns.org.","ns4-03.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"82678760-67df-474e-8b10-0ae8cc06d2d7","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' headers: cache-control: - private content-length: - - '581' + - '524' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:50:53 GMT + - Tue, 04 Apr 2023 03:55:00 GMT etag: - - 00000002-0000-0000-83cd-067a85bed701 + - 82678760-67df-474e-8b10-0ae8cc06d2d7 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -107,21 +107,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-83cd-067a85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-03.azure-dns.com.","ns2-03.azure-dns.net.","ns3-03.azure-dns.org.","ns4-03.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"82678760-67df-474e-8b10-0ae8cc06d2d7","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' headers: cache-control: - private content-length: - - '593' + - '536' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:50:54 GMT + - Tue, 04 Apr 2023 03:55:01 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -155,23 +155,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-83cd-067a85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-03.azure-dns.com.","ns2-03.azure-dns.net.","ns3-03.azure-dns.org.","ns4-03.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"82678760-67df-474e-8b10-0ae8cc06d2d7","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' headers: cache-control: - private content-length: - - '581' + - '524' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:50:56 GMT + - Tue, 04 Apr 2023 03:55:03 GMT etag: - - 00000002-0000-0000-83cd-067a85bed701 + - 82678760-67df-474e-8b10-0ae8cc06d2d7 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -207,23 +207,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"12e3c92c-56a1-4cc9-9cb8-02517f6af15f","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"26fa1f03-db0e-4732-89b1-bd5d194a0198","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '439' + - '382' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:50:57 GMT + - Tue, 04 Apr 2023 03:55:04 GMT etag: - - 12e3c92c-56a1-4cc9-9cb8-02517f6af15f + - 26fa1f03-db0e-4732-89b1-bd5d194a0198 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -251,23 +251,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"12e3c92c-56a1-4cc9-9cb8-02517f6af15f","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"26fa1f03-db0e-4732-89b1-bd5d194a0198","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '439' + - '382' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:50:59 GMT + - Tue, 04 Apr 2023 03:55:05 GMT etag: - - 12e3c92c-56a1-4cc9-9cb8-02517f6af15f + - 26fa1f03-db0e-4732-89b1-bd5d194a0198 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -286,8 +286,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "12e3c92c-56a1-4cc9-9cb8-02517f6af15f", "properties": {"TTL": - 3600, "targetResource": {}, "ARecords": [{"ipv4Address": "10.0.0.10"}]}}' + body: '{"properties": {"ARecords": [{"ipv4Address": "10.0.0.10"}], "TTL": 3600}}' headers: Accept: - application/json @@ -298,29 +297,29 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '73' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"dd5da4de-7789-4ce1-8d2b-63dba1bc5e48","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"378d000a-287f-4170-a4e6-5a0877201fa4","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '409' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:00 GMT + - Tue, 04 Apr 2023 03:55:08 GMT etag: - - dd5da4de-7789-4ce1-8d2b-63dba1bc5e48 + - 378d000a-287f-4170-a4e6-5a0877201fa4 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -352,23 +351,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"dd5da4de-7789-4ce1-8d2b-63dba1bc5e48","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"378d000a-287f-4170-a4e6-5a0877201fa4","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '409' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:01 GMT + - Tue, 04 Apr 2023 03:55:09 GMT etag: - - dd5da4de-7789-4ce1-8d2b-63dba1bc5e48 + - 378d000a-287f-4170-a4e6-5a0877201fa4 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -387,8 +386,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "dd5da4de-7789-4ce1-8d2b-63dba1bc5e48", "properties": {"TTL": - 3600, "targetResource": {}, "ARecords": [{"ipv4Address": "10.0.0.10"}]}}' + body: '{"properties": {"ARecords": [{"ipv4Address": "10.0.0.10"}], "TTL": 3600}}' headers: Accept: - application/json @@ -399,29 +397,29 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '73' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"9568d917-94d7-46a2-8b06-9af840dc7a94","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"0934516c-b0da-4292-b044-ade006dc2ede","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '409' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:02 GMT + - Tue, 04 Apr 2023 03:55:11 GMT etag: - - 9568d917-94d7-46a2-8b06-9af840dc7a94 + - 0934516c-b0da-4292-b044-ade006dc2ede server: - Microsoft-IIS/10.0 strict-transport-security: @@ -453,7 +451,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsaalt?api-version=2018-05-01 response: @@ -464,11 +462,11 @@ interactions: cache-control: - private content-length: - - '229' + - '172' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:04 GMT + - Tue, 04 Apr 2023 03:55:12 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -483,7 +481,7 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "ARecords": [{"ipv4Address": "10.0.0.10"}]}}' + body: '{"properties": {"ARecords": [{"ipv4Address": "10.0.0.10"}], "TTL": 3600}}' headers: Accept: - application/json @@ -500,23 +498,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsaalt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsaalt","name":"myrsaalt","type":"Microsoft.Network\/dnszones\/A","etag":"128e6fe3-850d-4c59-b031-f9796fed85ec","properties":{"fqdn":"myrsaalt.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsaalt","name":"myrsaalt","type":"Microsoft.Network\/dnszones\/A","etag":"221c4d86-abf5-4f76-b110-04d2316a34a3","properties":{"fqdn":"myrsaalt.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '475' + - '418' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:05 GMT + - Tue, 04 Apr 2023 03:55:14 GMT etag: - - 128e6fe3-850d-4c59-b031-f9796fed85ec + - 221c4d86-abf5-4f76-b110-04d2316a34a3 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -548,23 +546,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"4ba61344-d9c0-460b-a4bb-7329cdf6d681","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"bab9231e-81fa-43db-bc07-f1dc7a12512c","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '457' + - '400' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:07 GMT + - Tue, 04 Apr 2023 03:55:16 GMT etag: - - 4ba61344-d9c0-460b-a4bb-7329cdf6d681 + - bab9231e-81fa-43db-bc07-f1dc7a12512c server: - Microsoft-IIS/10.0 strict-transport-security: @@ -592,23 +590,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"4ba61344-d9c0-460b-a4bb-7329cdf6d681","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"bab9231e-81fa-43db-bc07-f1dc7a12512c","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '457' + - '400' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:08 GMT + - Tue, 04 Apr 2023 03:55:18 GMT etag: - - 4ba61344-d9c0-460b-a4bb-7329cdf6d681 + - bab9231e-81fa-43db-bc07-f1dc7a12512c server: - Microsoft-IIS/10.0 strict-transport-security: @@ -627,8 +625,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "4ba61344-d9c0-460b-a4bb-7329cdf6d681", "properties": {"TTL": - 3600, "targetResource": {}, "AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}]}}' + body: '{"properties": {"AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}], + "TTL": 3600}}' headers: Accept: - application/json @@ -639,29 +637,29 @@ interactions: Connection: - keep-alive Content-Length: - - '157' + - '87' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"c82aac2d-b0bb-4ca4-925c-fd19df0edeb3","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"4384b5a8-83e6-43a2-b1c3-4894334f5673","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '495' + - '438' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:09 GMT + - Tue, 04 Apr 2023 03:55:20 GMT etag: - - c82aac2d-b0bb-4ca4-925c-fd19df0edeb3 + - 4384b5a8-83e6-43a2-b1c3-4894334f5673 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -693,23 +691,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"c82aac2d-b0bb-4ca4-925c-fd19df0edeb3","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"4384b5a8-83e6-43a2-b1c3-4894334f5673","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '495' + - '438' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:11 GMT + - Tue, 04 Apr 2023 03:55:21 GMT etag: - - c82aac2d-b0bb-4ca4-925c-fd19df0edeb3 + - 4384b5a8-83e6-43a2-b1c3-4894334f5673 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -728,8 +726,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "c82aac2d-b0bb-4ca4-925c-fd19df0edeb3", "properties": {"TTL": - 3600, "targetResource": {}, "AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}]}}' + body: '{"properties": {"AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}], + "TTL": 3600}}' headers: Accept: - application/json @@ -740,29 +738,29 @@ interactions: Connection: - keep-alive Content-Length: - - '157' + - '87' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"d305299b-091e-437a-bfb8-576ef3b472dc","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"b1ced9af-fb40-4f50-bf74-bd341dce5f5d","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '495' + - '438' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:12 GMT + - Tue, 04 Apr 2023 03:55:24 GMT etag: - - d305299b-091e-437a-bfb8-576ef3b472dc + - b1ced9af-fb40-4f50-bf74-bd341dce5f5d server: - Microsoft-IIS/10.0 strict-transport-security: @@ -794,7 +792,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaaalt?api-version=2018-05-01 response: @@ -805,11 +803,11 @@ interactions: cache-control: - private content-length: - - '232' + - '175' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:13 GMT + - Tue, 04 Apr 2023 03:55:25 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -824,7 +822,8 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}]}}' + body: '{"properties": {"AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}], + "TTL": 3600}}' headers: Accept: - application/json @@ -841,23 +840,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaaalt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaaalt","name":"myrsaaaaalt","type":"Microsoft.Network\/dnszones\/AAAA","etag":"12d2d232-cd8e-4575-ad4c-67c924a2a124","properties":{"fqdn":"myrsaaaaalt.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaaalt","name":"myrsaaaaalt","type":"Microsoft.Network\/dnszones\/AAAA","etag":"7e6ef8a3-d1e4-4463-a534-16e73d24ee38","properties":{"fqdn":"myrsaaaaalt.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '504' + - '447' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:15 GMT + - Tue, 04 Apr 2023 03:55:27 GMT etag: - - 12d2d232-cd8e-4575-ad4c-67c924a2a124 + - 7e6ef8a3-d1e4-4463-a534-16e73d24ee38 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -889,23 +888,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"1a73df5f-8197-411a-9ac2-66b6f4030ea9","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"56adcbcf-43c1-4385-9b03-1109703aa0b5","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:18 GMT + - Tue, 04 Apr 2023 03:55:29 GMT etag: - - 1a73df5f-8197-411a-9ac2-66b6f4030ea9 + - 56adcbcf-43c1-4385-9b03-1109703aa0b5 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -933,23 +932,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"1a73df5f-8197-411a-9ac2-66b6f4030ea9","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"56adcbcf-43c1-4385-9b03-1109703aa0b5","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:19 GMT + - Tue, 04 Apr 2023 03:55:30 GMT etag: - - 1a73df5f-8197-411a-9ac2-66b6f4030ea9 + - 56adcbcf-43c1-4385-9b03-1109703aa0b5 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -968,9 +967,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "1a73df5f-8197-411a-9ac2-66b6f4030ea9", "properties": {"TTL": - 3600, "targetResource": {}, "caaRecords": [{"flags": 0, "tag": "foo", "value": - "my value"}]}}' + body: '{"properties": {"TTL": 3600, "caaRecords": [{"flags": 0, "tag": "foo", + "value": "my value"}]}}' headers: Accept: - application/json @@ -981,30 +979,30 @@ interactions: Connection: - keep-alive Content-Length: - - '164' + - '94' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"0eec454e-5d6c-4e82-a038-8254a4e92cb8","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"970000d2-66ad-4d55-88a1-c5098bd4ae99","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my value"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '493' + - '436' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:21 GMT + - Tue, 04 Apr 2023 03:55:32 GMT etag: - - 0eec454e-5d6c-4e82-a038-8254a4e92cb8 + - 970000d2-66ad-4d55-88a1-c5098bd4ae99 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1036,24 +1034,24 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"0eec454e-5d6c-4e82-a038-8254a4e92cb8","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"970000d2-66ad-4d55-88a1-c5098bd4ae99","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my value"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '493' + - '436' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:22 GMT + - Tue, 04 Apr 2023 03:55:33 GMT etag: - - 0eec454e-5d6c-4e82-a038-8254a4e92cb8 + - 970000d2-66ad-4d55-88a1-c5098bd4ae99 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1072,9 +1070,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "0eec454e-5d6c-4e82-a038-8254a4e92cb8", "properties": {"TTL": - 3600, "targetResource": {}, "caaRecords": [{"flags": 0, "tag": "foo", "value": - "my value"}]}}' + body: '{"properties": {"TTL": 3600, "caaRecords": [{"flags": 0, "tag": "foo", + "value": "my value"}]}}' headers: Accept: - application/json @@ -1085,30 +1082,30 @@ interactions: Connection: - keep-alive Content-Length: - - '164' + - '94' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"623bcd21-d1f8-45e9-a6a0-c1fd2f24bd80","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"41774610-1846-49da-8275-989491316cc5","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my value"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '493' + - '436' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:23 GMT + - Tue, 04 Apr 2023 03:55:35 GMT etag: - - 623bcd21-d1f8-45e9-a6a0-c1fd2f24bd80 + - 41774610-1846-49da-8275-989491316cc5 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1140,7 +1137,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaaalt?api-version=2018-05-01 response: @@ -1151,11 +1148,11 @@ interactions: cache-control: - private content-length: - - '231' + - '174' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:25 GMT + - Tue, 04 Apr 2023 03:55:37 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1188,24 +1185,24 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaaalt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaaalt","name":"myrscaaalt","type":"Microsoft.Network\/dnszones\/CAA","etag":"eba51268-25aa-4921-88d9-d9eedd8968cd","properties":{"fqdn":"myrscaaalt.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaaalt","name":"myrscaaalt","type":"Microsoft.Network\/dnszones\/CAA","etag":"2d2aa2c9-5735-44af-b15e-03b9622e222b","properties":{"fqdn":"myrscaaalt.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my value"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '502' + - '445' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:26 GMT + - Tue, 04 Apr 2023 03:55:39 GMT etag: - - eba51268-25aa-4921-88d9-d9eedd8968cd + - 2d2aa2c9-5735-44af-b15e-03b9622e222b server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1237,23 +1234,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"6f4b0067-5341-4aa0-ac1e-aa2474ad7beb","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"9776d060-4cd6-4d73-a802-ab57f846156c","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '445' + - '388' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:28 GMT + - Tue, 04 Apr 2023 03:55:41 GMT etag: - - 6f4b0067-5341-4aa0-ac1e-aa2474ad7beb + - 9776d060-4cd6-4d73-a802-ab57f846156c server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1261,7 +1258,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' x-powered-by: - ASP.NET status: @@ -1281,23 +1278,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"6f4b0067-5341-4aa0-ac1e-aa2474ad7beb","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"9776d060-4cd6-4d73-a802-ab57f846156c","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '445' + - '388' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:29 GMT + - Tue, 04 Apr 2023 03:55:42 GMT etag: - - 6f4b0067-5341-4aa0-ac1e-aa2474ad7beb + - 9776d060-4cd6-4d73-a802-ab57f846156c server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1316,8 +1313,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "6f4b0067-5341-4aa0-ac1e-aa2474ad7beb", "properties": {"TTL": - 3600, "targetResource": {}, "CNAMERecord": {"cname": "mycname"}}}' + body: '{"properties": {"CNAMERecord": {"cname": "mycname"}, "TTL": 3600}}' headers: Accept: - application/json @@ -1328,29 +1324,29 @@ interactions: Connection: - keep-alive Content-Length: - - '136' + - '66' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"25233c0b-1f6d-4db6-9913-04a1cfca9785","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"06841962-e3a0-42e2-b7c3-af7baf1b508c","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '479' + - '422' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:31 GMT + - Tue, 04 Apr 2023 03:55:44 GMT etag: - - 25233c0b-1f6d-4db6-9913-04a1cfca9785 + - 06841962-e3a0-42e2-b7c3-af7baf1b508c server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1382,23 +1378,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"25233c0b-1f6d-4db6-9913-04a1cfca9785","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"06841962-e3a0-42e2-b7c3-af7baf1b508c","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '479' + - '422' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:33 GMT + - Tue, 04 Apr 2023 03:55:45 GMT etag: - - 25233c0b-1f6d-4db6-9913-04a1cfca9785 + - 06841962-e3a0-42e2-b7c3-af7baf1b508c server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1417,8 +1413,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "25233c0b-1f6d-4db6-9913-04a1cfca9785", "properties": {"TTL": - 3600, "targetResource": {}, "CNAMERecord": {"cname": "mycname"}}}' + body: '{"properties": {"CNAMERecord": {"cname": "mycname"}, "TTL": 3600}}' headers: Accept: - application/json @@ -1429,29 +1424,29 @@ interactions: Connection: - keep-alive Content-Length: - - '136' + - '66' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"2b2b840a-b3d8-480b-88a0-c093e9f93f94","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"4a4dee10-02f2-466d-8eba-74bbe388aaf1","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '479' + - '422' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:34 GMT + - Tue, 04 Apr 2023 03:55:48 GMT etag: - - 2b2b840a-b3d8-480b-88a0-c093e9f93f94 + - 4a4dee10-02f2-466d-8eba-74bbe388aaf1 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1463,7 +1458,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' x-powered-by: - ASP.NET status: @@ -1483,7 +1478,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscnamealt?api-version=2018-05-01 response: @@ -1494,11 +1489,11 @@ interactions: cache-control: - private content-length: - - '233' + - '176' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:35 GMT + - Tue, 04 Apr 2023 03:55:48 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1506,14 +1501,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "CNAMERecord": {"cname": "mycname"}}}' + body: '{"properties": {"CNAMERecord": {"cname": "mycname"}, "TTL": 3600}}' headers: Accept: - application/json @@ -1530,23 +1525,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscnamealt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscnamealt","name":"myrscnamealt","type":"Microsoft.Network\/dnszones\/CNAME","etag":"17eafd1a-914d-4dca-b44a-09e17b73122b","properties":{"fqdn":"myrscnamealt.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscnamealt","name":"myrscnamealt","type":"Microsoft.Network\/dnszones\/CNAME","etag":"796b824a-a399-4d8c-a7db-2694a2daefd1","properties":{"fqdn":"myrscnamealt.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '488' + - '431' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:36 GMT + - Tue, 04 Apr 2023 03:55:49 GMT etag: - - 17eafd1a-914d-4dca-b44a-09e17b73122b + - 796b824a-a399-4d8c-a7db-2694a2daefd1 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1554,7 +1549,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' x-powered-by: - ASP.NET status: @@ -1578,23 +1573,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"a44dc7a2-121f-45f5-ba78-0577e472c418","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"7825ee8b-fd01-4faf-b27c-5ddfe937d499","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '445' + - '388' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:38 GMT + - Tue, 04 Apr 2023 03:55:52 GMT etag: - - a44dc7a2-121f-45f5-ba78-0577e472c418 + - 7825ee8b-fd01-4faf-b27c-5ddfe937d499 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1622,23 +1617,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"a44dc7a2-121f-45f5-ba78-0577e472c418","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"7825ee8b-fd01-4faf-b27c-5ddfe937d499","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '445' + - '388' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:39 GMT + - Tue, 04 Apr 2023 03:55:54 GMT etag: - - a44dc7a2-121f-45f5-ba78-0577e472c418 + - 7825ee8b-fd01-4faf-b27c-5ddfe937d499 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1657,8 +1652,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "a44dc7a2-121f-45f5-ba78-0577e472c418", "properties": {"TTL": - 3600, "targetResource": {}, "MXRecords": [{"preference": 13, "exchange": "12"}]}}' + body: '{"properties": {"MXRecords": [{"exchange": "12", "preference": 13}], "TTL": + 3600}}' headers: Accept: - application/json @@ -1669,29 +1664,29 @@ interactions: Connection: - keep-alive Content-Length: - - '152' + - '82' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"5436cac9-2c4b-4db6-b3a9-35a4cdb60941","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"f5b8af9c-fa4f-4e61-85a5-67696f5045f3","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '478' + - '421' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:40 GMT + - Tue, 04 Apr 2023 03:55:55 GMT etag: - - 5436cac9-2c4b-4db6-b3a9-35a4cdb60941 + - f5b8af9c-fa4f-4e61-85a5-67696f5045f3 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1703,7 +1698,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' x-powered-by: - ASP.NET status: @@ -1723,23 +1718,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"5436cac9-2c4b-4db6-b3a9-35a4cdb60941","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"f5b8af9c-fa4f-4e61-85a5-67696f5045f3","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '478' + - '421' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:41 GMT + - Tue, 04 Apr 2023 03:55:57 GMT etag: - - 5436cac9-2c4b-4db6-b3a9-35a4cdb60941 + - f5b8af9c-fa4f-4e61-85a5-67696f5045f3 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1758,8 +1753,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "5436cac9-2c4b-4db6-b3a9-35a4cdb60941", "properties": {"TTL": - 3600, "targetResource": {}, "MXRecords": [{"preference": 13, "exchange": "12"}]}}' + body: '{"properties": {"MXRecords": [{"exchange": "12", "preference": 13}], "TTL": + 3600}}' headers: Accept: - application/json @@ -1770,29 +1765,29 @@ interactions: Connection: - keep-alive Content-Length: - - '152' + - '82' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"fa290085-f9c5-42fd-a19d-566071866852","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"3290d8d6-a02f-4389-a72f-2cd0aafe4f74","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '478' + - '421' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:42 GMT + - Tue, 04 Apr 2023 03:55:59 GMT etag: - - fa290085-f9c5-42fd-a19d-566071866852 + - 3290d8d6-a02f-4389-a72f-2cd0aafe4f74 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1824,7 +1819,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmxalt?api-version=2018-05-01 response: @@ -1835,11 +1830,11 @@ interactions: cache-control: - private content-length: - - '230' + - '173' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:44 GMT + - Tue, 04 Apr 2023 03:56:01 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1854,8 +1849,8 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "MXRecords": [{"preference": 13, "exchange": - "12"}]}}' + body: '{"properties": {"MXRecords": [{"exchange": "12", "preference": 13}], "TTL": + 3600}}' headers: Accept: - application/json @@ -1872,23 +1867,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmxalt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmxalt","name":"myrsmxalt","type":"Microsoft.Network\/dnszones\/MX","etag":"7faa2518-6aeb-4b91-9c31-e3f92c219a8f","properties":{"fqdn":"myrsmxalt.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmxalt","name":"myrsmxalt","type":"Microsoft.Network\/dnszones\/MX","etag":"e6b16267-0f90-487c-9a57-4adb5972c837","properties":{"fqdn":"myrsmxalt.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '487' + - '430' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:45 GMT + - Tue, 04 Apr 2023 03:56:03 GMT etag: - - 7faa2518-6aeb-4b91-9c31-e3f92c219a8f + - e6b16267-0f90-487c-9a57-4adb5972c837 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1920,23 +1915,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"f2189968-a538-46f8-8f8d-7dca9b917200","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"1248dd2a-12cf-4b45-86b6-ec51c826168e","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '445' + - '388' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:47 GMT + - Tue, 04 Apr 2023 03:56:05 GMT etag: - - f2189968-a538-46f8-8f8d-7dca9b917200 + - 1248dd2a-12cf-4b45-86b6-ec51c826168e server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1964,23 +1959,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"f2189968-a538-46f8-8f8d-7dca9b917200","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"1248dd2a-12cf-4b45-86b6-ec51c826168e","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '445' + - '388' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:48 GMT + - Tue, 04 Apr 2023 03:56:05 GMT etag: - - f2189968-a538-46f8-8f8d-7dca9b917200 + - 1248dd2a-12cf-4b45-86b6-ec51c826168e server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1999,8 +1994,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "f2189968-a538-46f8-8f8d-7dca9b917200", "properties": {"TTL": - 3600, "targetResource": {}, "NSRecords": [{"nsdname": "foobar.com"}]}}' + body: '{"properties": {"NSRecords": [{"nsdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -2011,29 +2005,29 @@ interactions: Connection: - keep-alive Content-Length: - - '141' + - '71' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"2ff6eb87-bf29-4f42-8cb7-9eb58b07823b","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"60ce26cb-d7e2-48ef-ba2a-4838ddcb0ba5","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '469' + - '412' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:50 GMT + - Tue, 04 Apr 2023 03:56:08 GMT etag: - - 2ff6eb87-bf29-4f42-8cb7-9eb58b07823b + - 60ce26cb-d7e2-48ef-ba2a-4838ddcb0ba5 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2065,23 +2059,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"2ff6eb87-bf29-4f42-8cb7-9eb58b07823b","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"60ce26cb-d7e2-48ef-ba2a-4838ddcb0ba5","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '469' + - '412' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:51 GMT + - Tue, 04 Apr 2023 03:56:09 GMT etag: - - 2ff6eb87-bf29-4f42-8cb7-9eb58b07823b + - 60ce26cb-d7e2-48ef-ba2a-4838ddcb0ba5 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2100,8 +2094,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "2ff6eb87-bf29-4f42-8cb7-9eb58b07823b", "properties": {"TTL": - 3600, "targetResource": {}, "NSRecords": [{"nsdname": "foobar.com"}]}}' + body: '{"properties": {"NSRecords": [{"nsdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -2112,29 +2105,29 @@ interactions: Connection: - keep-alive Content-Length: - - '141' + - '71' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"97f05a96-1417-414e-83c2-774539883394","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"eefb3fba-6341-40aa-bc23-1de123cbfc31","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '469' + - '412' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:52 GMT + - Tue, 04 Apr 2023 03:56:11 GMT etag: - - 97f05a96-1417-414e-83c2-774539883394 + - eefb3fba-6341-40aa-bc23-1de123cbfc31 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2166,7 +2159,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsnsalt?api-version=2018-05-01 response: @@ -2177,11 +2170,11 @@ interactions: cache-control: - private content-length: - - '230' + - '173' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:53 GMT + - Tue, 04 Apr 2023 03:56:13 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2196,7 +2189,7 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "NSRecords": [{"nsdname": "foobar.com"}]}}' + body: '{"properties": {"NSRecords": [{"nsdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -2213,23 +2206,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsnsalt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsnsalt","name":"myrsnsalt","type":"Microsoft.Network\/dnszones\/NS","etag":"9791b3b2-7d3b-468b-bc95-19fe98d8908c","properties":{"fqdn":"myrsnsalt.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsnsalt","name":"myrsnsalt","type":"Microsoft.Network\/dnszones\/NS","etag":"00f6a640-8afe-4e46-99d9-c5ec599e430c","properties":{"fqdn":"myrsnsalt.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '478' + - '421' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:54 GMT + - Tue, 04 Apr 2023 03:56:15 GMT etag: - - 9791b3b2-7d3b-468b-bc95-19fe98d8908c + - 00f6a640-8afe-4e46-99d9-c5ec599e430c server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2261,23 +2254,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"27acc11f-0817-4862-93b8-46653e288492","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"ebb8092f-6fc5-423d-ab9b-392b07a7f1ba","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:56 GMT + - Tue, 04 Apr 2023 03:56:17 GMT etag: - - 27acc11f-0817-4862-93b8-46653e288492 + - ebb8092f-6fc5-423d-ab9b-392b07a7f1ba server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2305,23 +2298,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"27acc11f-0817-4862-93b8-46653e288492","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"ebb8092f-6fc5-423d-ab9b-392b07a7f1ba","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:57 GMT + - Tue, 04 Apr 2023 03:56:19 GMT etag: - - 27acc11f-0817-4862-93b8-46653e288492 + - ebb8092f-6fc5-423d-ab9b-392b07a7f1ba server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2340,8 +2333,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "27acc11f-0817-4862-93b8-46653e288492", "properties": {"TTL": - 3600, "targetResource": {}, "PTRRecords": [{"ptrdname": "foobar.com"}]}}' + body: '{"properties": {"PTRRecords": [{"ptrdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -2352,29 +2344,29 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '73' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"bc987b7c-6e46-48e3-9c24-3505a3ac3913","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"bae81dd3-ad60-49cc-8ad0-b68bde3b2cd8","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '476' + - '419' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:58 GMT + - Tue, 04 Apr 2023 03:56:21 GMT etag: - - bc987b7c-6e46-48e3-9c24-3505a3ac3913 + - bae81dd3-ad60-49cc-8ad0-b68bde3b2cd8 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2386,7 +2378,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' x-powered-by: - ASP.NET status: @@ -2406,23 +2398,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"bc987b7c-6e46-48e3-9c24-3505a3ac3913","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"bae81dd3-ad60-49cc-8ad0-b68bde3b2cd8","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '476' + - '419' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:01 GMT + - Tue, 04 Apr 2023 03:56:22 GMT etag: - - bc987b7c-6e46-48e3-9c24-3505a3ac3913 + - bae81dd3-ad60-49cc-8ad0-b68bde3b2cd8 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2441,8 +2433,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "bc987b7c-6e46-48e3-9c24-3505a3ac3913", "properties": {"TTL": - 3600, "targetResource": {}, "PTRRecords": [{"ptrdname": "foobar.com"}]}}' + body: '{"properties": {"PTRRecords": [{"ptrdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -2453,29 +2444,29 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '73' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"375bcf06-0e0b-4fb8-8e7f-3bd419a51eb0","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"3bce2183-86f5-4e69-ba0a-701df2762da2","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '476' + - '419' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:02 GMT + - Tue, 04 Apr 2023 03:56:23 GMT etag: - - 375bcf06-0e0b-4fb8-8e7f-3bd419a51eb0 + - 3bce2183-86f5-4e69-ba0a-701df2762da2 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2507,7 +2498,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptralt?api-version=2018-05-01 response: @@ -2518,11 +2509,11 @@ interactions: cache-control: - private content-length: - - '231' + - '174' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:03 GMT + - Tue, 04 Apr 2023 03:56:25 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2537,7 +2528,7 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "PTRRecords": [{"ptrdname": "foobar.com"}]}}' + body: '{"properties": {"PTRRecords": [{"ptrdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -2554,23 +2545,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptralt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptralt","name":"myrsptralt","type":"Microsoft.Network\/dnszones\/PTR","etag":"5c418d3e-f070-4239-ac92-ca62d79bc9c6","properties":{"fqdn":"myrsptralt.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptralt","name":"myrsptralt","type":"Microsoft.Network\/dnszones\/PTR","etag":"dc670845-3b27-4965-9bb4-565329bfb025","properties":{"fqdn":"myrsptralt.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '485' + - '428' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:04 GMT + - Tue, 04 Apr 2023 03:56:26 GMT etag: - - 5c418d3e-f070-4239-ac92-ca62d79bc9c6 + - dc670845-3b27-4965-9bb4-565329bfb025 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2602,23 +2593,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"81e41262-1d6a-4109-b678-bdcbf946b6e9","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"5ec228d9-4a97-4a19-ab65-b868a84272e3","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:06 GMT + - Tue, 04 Apr 2023 03:56:29 GMT etag: - - 81e41262-1d6a-4109-b678-bdcbf946b6e9 + - 5ec228d9-4a97-4a19-ab65-b868a84272e3 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2626,7 +2617,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' x-powered-by: - ASP.NET status: @@ -2646,23 +2637,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"81e41262-1d6a-4109-b678-bdcbf946b6e9","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"5ec228d9-4a97-4a19-ab65-b868a84272e3","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:08 GMT + - Tue, 04 Apr 2023 03:56:29 GMT etag: - - 81e41262-1d6a-4109-b678-bdcbf946b6e9 + - 5ec228d9-4a97-4a19-ab65-b868a84272e3 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2681,9 +2672,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "81e41262-1d6a-4109-b678-bdcbf946b6e9", "properties": {"TTL": - 3600, "targetResource": {}, "SRVRecords": [{"priority": 1, "weight": 50, "port": - 1234, "target": "target.com"}]}}' + body: '{"properties": {"SRVRecords": [{"port": 1234, "priority": 1, "target": + "target.com", "weight": 50}], "TTL": 3600}}' headers: Accept: - application/json @@ -2694,29 +2684,29 @@ interactions: Connection: - keep-alive Content-Length: - - '184' + - '114' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"5bc7054f-3630-4067-8820-32ec14c18800","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"567a2de6-559d-46f3-9ba1-003a71a3f6ff","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '511' + - '454' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:09 GMT + - Tue, 04 Apr 2023 03:56:32 GMT etag: - - 5bc7054f-3630-4067-8820-32ec14c18800 + - 567a2de6-559d-46f3-9ba1-003a71a3f6ff server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2748,23 +2738,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"5bc7054f-3630-4067-8820-32ec14c18800","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"567a2de6-559d-46f3-9ba1-003a71a3f6ff","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '511' + - '454' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:10 GMT + - Tue, 04 Apr 2023 03:56:33 GMT etag: - - 5bc7054f-3630-4067-8820-32ec14c18800 + - 567a2de6-559d-46f3-9ba1-003a71a3f6ff server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2783,9 +2773,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "5bc7054f-3630-4067-8820-32ec14c18800", "properties": {"TTL": - 3600, "targetResource": {}, "SRVRecords": [{"priority": 1, "weight": 50, "port": - 1234, "target": "target.com"}]}}' + body: '{"properties": {"SRVRecords": [{"port": 1234, "priority": 1, "target": + "target.com", "weight": 50}], "TTL": 3600}}' headers: Accept: - application/json @@ -2796,29 +2785,29 @@ interactions: Connection: - keep-alive Content-Length: - - '184' + - '114' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"b0af75e3-8f9a-4273-93e2-675111c76477","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"d2c74017-e783-4b93-9f66-dcf55248ca91","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '511' + - '454' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:12 GMT + - Tue, 04 Apr 2023 03:56:34 GMT etag: - - b0af75e3-8f9a-4273-93e2-675111c76477 + - d2c74017-e783-4b93-9f66-dcf55248ca91 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2850,7 +2839,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrvalt?api-version=2018-05-01 response: @@ -2861,11 +2850,11 @@ interactions: cache-control: - private content-length: - - '231' + - '174' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:14 GMT + - Tue, 04 Apr 2023 03:56:36 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2880,8 +2869,8 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "SRVRecords": [{"priority": 1, "weight": 50, - "port": 1234, "target": "target.com"}]}}' + body: '{"properties": {"SRVRecords": [{"port": 1234, "priority": 1, "target": + "target.com", "weight": 50}], "TTL": 3600}}' headers: Accept: - application/json @@ -2898,23 +2887,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrvalt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrvalt","name":"myrssrvalt","type":"Microsoft.Network\/dnszones\/SRV","etag":"8b7f9c98-c1b1-4c44-80c8-057a8ff7ad36","properties":{"fqdn":"myrssrvalt.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrvalt","name":"myrssrvalt","type":"Microsoft.Network\/dnszones\/SRV","etag":"b96d5857-0a92-4121-a22f-1eee3653eed4","properties":{"fqdn":"myrssrvalt.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '520' + - '463' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:15 GMT + - Tue, 04 Apr 2023 03:56:38 GMT etag: - - 8b7f9c98-c1b1-4c44-80c8-057a8ff7ad36 + - b96d5857-0a92-4121-a22f-1eee3653eed4 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2946,23 +2935,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"88a652bd-71b5-4b96-bd22-1669079880c2","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"eef2b4f6-d6f3-4484-839a-b9267c507460","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:16 GMT + - Tue, 04 Apr 2023 03:56:39 GMT etag: - - 88a652bd-71b5-4b96-bd22-1669079880c2 + - eef2b4f6-d6f3-4484-839a-b9267c507460 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2990,23 +2979,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"88a652bd-71b5-4b96-bd22-1669079880c2","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"eef2b4f6-d6f3-4484-839a-b9267c507460","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '451' + - '394' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:19 GMT + - Tue, 04 Apr 2023 03:56:40 GMT etag: - - 88a652bd-71b5-4b96-bd22-1669079880c2 + - eef2b4f6-d6f3-4484-839a-b9267c507460 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3018,15 +3007,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: code: 200 message: OK - request: - body: '{"etag": "88a652bd-71b5-4b96-bd22-1669079880c2", "properties": {"TTL": - 3600, "targetResource": {}, "TXTRecords": [{"value": ["some_text"]}]}}' + body: '{"properties": {"TTL": 3600, "TXTRecords": [{"value": ["some_text"]}]}}' headers: Accept: - application/json @@ -3037,29 +3025,29 @@ interactions: Connection: - keep-alive Content-Length: - - '141' + - '71' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"7b17269c-7d8f-4d06-95e2-c660dbb7123d","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"cf4764dc-fca7-45d1-8585-7b6205506b61","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '474' + - '417' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:20 GMT + - Tue, 04 Apr 2023 03:56:42 GMT etag: - - 7b17269c-7d8f-4d06-95e2-c660dbb7123d + - cf4764dc-fca7-45d1-8585-7b6205506b61 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3071,7 +3059,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' x-powered-by: - ASP.NET status: @@ -3091,23 +3079,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"7b17269c-7d8f-4d06-95e2-c660dbb7123d","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"cf4764dc-fca7-45d1-8585-7b6205506b61","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '474' + - '417' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:21 GMT + - Tue, 04 Apr 2023 03:56:43 GMT etag: - - 7b17269c-7d8f-4d06-95e2-c660dbb7123d + - cf4764dc-fca7-45d1-8585-7b6205506b61 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3126,8 +3114,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "7b17269c-7d8f-4d06-95e2-c660dbb7123d", "properties": {"TTL": - 3600, "targetResource": {}, "TXTRecords": [{"value": ["some_text"]}]}}' + body: '{"properties": {"TTL": 3600, "TXTRecords": [{"value": ["some_text"]}]}}' headers: Accept: - application/json @@ -3138,29 +3125,29 @@ interactions: Connection: - keep-alive Content-Length: - - '141' + - '71' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"bb0e9edc-a0ec-43aa-9875-938693d2f406","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"95e25743-d985-4153-8eb2-7f4f3db81800","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '474' + - '417' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:23 GMT + - Tue, 04 Apr 2023 03:56:45 GMT etag: - - bb0e9edc-a0ec-43aa-9875-938693d2f406 + - 95e25743-d985-4153-8eb2-7f4f3db81800 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3172,7 +3159,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' x-powered-by: - ASP.NET status: @@ -3192,7 +3179,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxtalt?api-version=2018-05-01 response: @@ -3203,11 +3190,11 @@ interactions: cache-control: - private content-length: - - '231' + - '174' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:24 GMT + - Tue, 04 Apr 2023 03:56:45 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3239,23 +3226,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxtalt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxtalt","name":"myrstxtalt","type":"Microsoft.Network\/dnszones\/TXT","etag":"72115e97-0f44-4802-b49c-14dd3a0bcc01","properties":{"fqdn":"myrstxtalt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxtalt","name":"myrstxtalt","type":"Microsoft.Network\/dnszones\/TXT","etag":"a50fce9b-b61f-427c-ab5c-94975d0e56c2","properties":{"fqdn":"myrstxtalt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '483' + - '426' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:25 GMT + - Tue, 04 Apr 2023 03:56:47 GMT etag: - - 72115e97-0f44-4802-b49c-14dd3a0bcc01 + - a50fce9b-b61f-427c-ab5c-94975d0e56c2 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3263,7 +3250,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11994' + - '11998' x-powered-by: - ASP.NET status: @@ -3283,23 +3270,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"9568d917-94d7-46a2-8b06-9af840dc7a94","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"0934516c-b0da-4292-b044-ade006dc2ede","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '409' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:27 GMT + - Tue, 04 Apr 2023 03:56:48 GMT etag: - - 9568d917-94d7-46a2-8b06-9af840dc7a94 + - 0934516c-b0da-4292-b044-ade006dc2ede server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3318,9 +3305,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "9568d917-94d7-46a2-8b06-9af840dc7a94", "properties": {"TTL": - 3600, "targetResource": {}, "ARecords": [{"ipv4Address": "10.0.0.10"}, {"ipv4Address": - "10.0.0.11"}]}}' + body: '{"properties": {"ARecords": [{"ipv4Address": "10.0.0.10"}, {"ipv4Address": + "10.0.0.11"}], "TTL": 3600}}' headers: Accept: - application/json @@ -3331,29 +3317,29 @@ interactions: Connection: - keep-alive Content-Length: - - '173' + - '103' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"c963eab1-f4fd-4550-8b7e-12d07351f726","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"f378e752-ad21-4efa-a3a2-b192c1ef2014","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '494' + - '437' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:28 GMT + - Tue, 04 Apr 2023 03:56:51 GMT etag: - - c963eab1-f4fd-4550-8b7e-12d07351f726 + - f378e752-ad21-4efa-a3a2-b192c1ef2014 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3386,23 +3372,23 @@ interactions: - -g --zone-name --email --expire-time --minimum-ttl --refresh-time --retry-time --serial-number User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/soa/@?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"f246cd61-134d-4152-9c98-289c622877e0","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-03.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"b828b5df-da50-4237-82d7-f814005a5a45","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-04.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '594' + - '537' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:30 GMT + - Tue, 04 Apr 2023 03:56:52 GMT etag: - - f246cd61-134d-4152-9c98-289c622877e0 + - b828b5df-da50-4237-82d7-f814005a5a45 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3435,23 +3421,23 @@ interactions: - -g --zone-name --email --expire-time --minimum-ttl --refresh-time --retry-time --serial-number User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/soa/@?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"f246cd61-134d-4152-9c98-289c622877e0","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-03.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"b828b5df-da50-4237-82d7-f814005a5a45","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-04.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '594' + - '537' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:30 GMT + - Tue, 04 Apr 2023 03:56:53 GMT etag: - - f246cd61-134d-4152-9c98-289c622877e0 + - b828b5df-da50-4237-82d7-f814005a5a45 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3470,10 +3456,9 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "f246cd61-134d-4152-9c98-289c622877e0", "properties": {"TTL": - 3600, "targetResource": {}, "SOARecord": {"host": "ns1-03.azure-dns.com.", "email": - "foo.com", "serialNumber": 123, "refreshTime": 60, "retryTime": 90, "expireTime": - 30, "minimumTTL": 20}}}' + body: '{"properties": {"SOARecord": {"email": "foo.com", "expireTime": 30, "host": + "ns1-04.azure-dns.com.", "minimumTTL": 20, "refreshTime": 60, "retryTime": 90, + "serialNumber": 123}, "TTL": 3600}}' headers: Accept: - application/json @@ -3484,30 +3469,30 @@ interactions: Connection: - keep-alive Content-Length: - - '260' + - '190' Content-Type: - application/json ParameterSetName: - -g --zone-name --email --expire-time --minimum-ttl --refresh-time --retry-time --serial-number User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/soa/@?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"d06834b0-aa25-452b-aa4b-d908edd1b87a","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-03.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"21f0f3cd-34e2-490e-8fa7-ebe88908ec0f","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-04.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '561' + - '504' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:33 GMT + - Tue, 04 Apr 2023 03:56:54 GMT etag: - - d06834b0-aa25-452b-aa4b-d908edd1b87a + - 21f0f3cd-34e2-490e-8fa7-ebe88908ec0f server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3539,7 +3524,7 @@ interactions: ParameterSetName: - -g -z -n -v User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/longtxt?api-version=2018-05-01 response: @@ -3550,11 +3535,11 @@ interactions: cache-control: - private content-length: - - '228' + - '171' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:33 GMT + - Tue, 04 Apr 2023 03:56:56 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3587,23 +3572,23 @@ interactions: ParameterSetName: - -g -z -n -v User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/longtxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"67c2ee19-60c8-4442-b467-889414673d7b","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"3e24beb5-462c-45df-93f1-7bfdfa2e0e1f","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '968' + - '911' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:34 GMT + - Tue, 04 Apr 2023 03:56:57 GMT etag: - - 67c2ee19-60c8-4442-b467-889414673d7b + - 3e24beb5-462c-45df-93f1-7bfdfa2e0e1f server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3631,23 +3616,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-83cd-067a85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-03.azure-dns.com.","ns2-03.azure-dns.net.","ns3-03.azure-dns.org.","ns4-03.azure-dns.info."],"numberOfRecordSets":21,"zoneType":"Public"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"82678760-67df-474e-8b10-0ae8cc06d2d7","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":21,"zoneType":"Public"}}' headers: cache-control: - private content-length: - - '582' + - '525' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:36 GMT + - Tue, 04 Apr 2023 03:56:58 GMT etag: - - 00000002-0000-0000-83cd-067a85bed701 + - 82678760-67df-474e-8b10-0ae8cc06d2d7 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3679,23 +3664,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"c963eab1-f4fd-4550-8b7e-12d07351f726","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"f378e752-ad21-4efa-a3a2-b192c1ef2014","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '494' + - '437' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:38 GMT + - Tue, 04 Apr 2023 03:56:59 GMT etag: - - c963eab1-f4fd-4550-8b7e-12d07351f726 + - f378e752-ad21-4efa-a3a2-b192c1ef2014 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3727,23 +3712,23 @@ interactions: ParameterSetName: - -g -z User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/recordsets?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/@","name":"@","type":"Microsoft.Network\/dnszones\/NS","etag":"986a6e83-5ca8-400a-b65d-ba51558a6f6c","properties":{"fqdn":"myzonex.com.","TTL":172800,"NSRecords":[{"nsdname":"ns1-03.azure-dns.com."},{"nsdname":"ns2-03.azure-dns.net."},{"nsdname":"ns3-03.azure-dns.org."},{"nsdname":"ns4-03.azure-dns.info."}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"d06834b0-aa25-452b-aa4b-d908edd1b87a","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-03.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"67c2ee19-60c8-4442-b467-889414673d7b","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"c963eab1-f4fd-4550-8b7e-12d07351f726","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"d305299b-091e-437a-bfb8-576ef3b472dc","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaaalt","name":"myrsaaaaalt","type":"Microsoft.Network\/dnszones\/AAAA","etag":"12d2d232-cd8e-4575-ad4c-67c924a2a124","properties":{"fqdn":"myrsaaaaalt.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsaalt","name":"myrsaalt","type":"Microsoft.Network\/dnszones\/A","etag":"128e6fe3-850d-4c59-b031-f9796fed85ec","properties":{"fqdn":"myrsaalt.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"623bcd21-d1f8-45e9-a6a0-c1fd2f24bd80","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my - value"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaaalt","name":"myrscaaalt","type":"Microsoft.Network\/dnszones\/CAA","etag":"eba51268-25aa-4921-88d9-d9eedd8968cd","properties":{"fqdn":"myrscaaalt.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my - value"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"2b2b840a-b3d8-480b-88a0-c093e9f93f94","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscnamealt","name":"myrscnamealt","type":"Microsoft.Network\/dnszones\/CNAME","etag":"17eafd1a-914d-4dca-b44a-09e17b73122b","properties":{"fqdn":"myrscnamealt.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"fa290085-f9c5-42fd-a19d-566071866852","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmxalt","name":"myrsmxalt","type":"Microsoft.Network\/dnszones\/MX","etag":"7faa2518-6aeb-4b91-9c31-e3f92c219a8f","properties":{"fqdn":"myrsmxalt.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"97f05a96-1417-414e-83c2-774539883394","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsnsalt","name":"myrsnsalt","type":"Microsoft.Network\/dnszones\/NS","etag":"9791b3b2-7d3b-468b-bc95-19fe98d8908c","properties":{"fqdn":"myrsnsalt.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"375bcf06-0e0b-4fb8-8e7f-3bd419a51eb0","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptralt","name":"myrsptralt","type":"Microsoft.Network\/dnszones\/PTR","etag":"5c418d3e-f070-4239-ac92-ca62d79bc9c6","properties":{"fqdn":"myrsptralt.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"b0af75e3-8f9a-4273-93e2-675111c76477","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrvalt","name":"myrssrvalt","type":"Microsoft.Network\/dnszones\/SRV","etag":"8b7f9c98-c1b1-4c44-80c8-057a8ff7ad36","properties":{"fqdn":"myrssrvalt.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"bb0e9edc-a0ec-43aa-9875-938693d2f406","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxtalt","name":"myrstxtalt","type":"Microsoft.Network\/dnszones\/TXT","etag":"72115e97-0f44-4802-b49c-14dd3a0bcc01","properties":{"fqdn":"myrstxtalt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/@","name":"@","type":"Microsoft.Network\/dnszones\/NS","etag":"1f59f10d-aa15-4300-824a-763d7761bfc5","properties":{"fqdn":"myzonex.com.","TTL":172800,"NSRecords":[{"nsdname":"ns1-04.azure-dns.com."},{"nsdname":"ns2-04.azure-dns.net."},{"nsdname":"ns3-04.azure-dns.org."},{"nsdname":"ns4-04.azure-dns.info."}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"21f0f3cd-34e2-490e-8fa7-ebe88908ec0f","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-04.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"3e24beb5-462c-45df-93f1-7bfdfa2e0e1f","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"f378e752-ad21-4efa-a3a2-b192c1ef2014","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"b1ced9af-fb40-4f50-bf74-bd341dce5f5d","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaaalt","name":"myrsaaaaalt","type":"Microsoft.Network\/dnszones\/AAAA","etag":"7e6ef8a3-d1e4-4463-a534-16e73d24ee38","properties":{"fqdn":"myrsaaaaalt.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsaalt","name":"myrsaalt","type":"Microsoft.Network\/dnszones\/A","etag":"221c4d86-abf5-4f76-b110-04d2316a34a3","properties":{"fqdn":"myrsaalt.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"41774610-1846-49da-8275-989491316cc5","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + value"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaaalt","name":"myrscaaalt","type":"Microsoft.Network\/dnszones\/CAA","etag":"2d2aa2c9-5735-44af-b15e-03b9622e222b","properties":{"fqdn":"myrscaaalt.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + value"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"4a4dee10-02f2-466d-8eba-74bbe388aaf1","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscnamealt","name":"myrscnamealt","type":"Microsoft.Network\/dnszones\/CNAME","etag":"796b824a-a399-4d8c-a7db-2694a2daefd1","properties":{"fqdn":"myrscnamealt.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"3290d8d6-a02f-4389-a72f-2cd0aafe4f74","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmxalt","name":"myrsmxalt","type":"Microsoft.Network\/dnszones\/MX","etag":"e6b16267-0f90-487c-9a57-4adb5972c837","properties":{"fqdn":"myrsmxalt.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"eefb3fba-6341-40aa-bc23-1de123cbfc31","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsnsalt","name":"myrsnsalt","type":"Microsoft.Network\/dnszones\/NS","etag":"00f6a640-8afe-4e46-99d9-c5ec599e430c","properties":{"fqdn":"myrsnsalt.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"3bce2183-86f5-4e69-ba0a-701df2762da2","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptralt","name":"myrsptralt","type":"Microsoft.Network\/dnszones\/PTR","etag":"dc670845-3b27-4965-9bb4-565329bfb025","properties":{"fqdn":"myrsptralt.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"d2c74017-e783-4b93-9f66-dcf55248ca91","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrvalt","name":"myrssrvalt","type":"Microsoft.Network\/dnszones\/SRV","etag":"b96d5857-0a92-4121-a22f-1eee3653eed4","properties":{"fqdn":"myrssrvalt.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"95e25743-d985-4153-8eb2-7f4f3db81800","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxtalt","name":"myrstxtalt","type":"Microsoft.Network\/dnszones\/TXT","etag":"a50fce9b-b61f-427c-ab5c-94975d0e56c2","properties":{"fqdn":"myrstxtalt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' headers: cache-control: - private content-length: - - '10926' + - '9729' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:39 GMT + - Tue, 04 Apr 2023 03:57:00 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3755,9 +3740,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-entities-read: - - '59974' + - '59979' x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -3777,21 +3762,21 @@ interactions: ParameterSetName: - -g -z User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"67c2ee19-60c8-4442-b467-889414673d7b","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"bb0e9edc-a0ec-43aa-9875-938693d2f406","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxtalt","name":"myrstxtalt","type":"Microsoft.Network\/dnszones\/TXT","etag":"72115e97-0f44-4802-b49c-14dd3a0bcc01","properties":{"fqdn":"myrstxtalt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"3e24beb5-462c-45df-93f1-7bfdfa2e0e1f","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"95e25743-d985-4153-8eb2-7f4f3db81800","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxtalt","name":"myrstxtalt","type":"Microsoft.Network\/dnszones\/TXT","etag":"a50fce9b-b61f-427c-ab5c-94975d0e56c2","properties":{"fqdn":"myrstxtalt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' headers: cache-control: - private content-length: - - '1939' + - '1768' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:40 GMT + - Tue, 04 Apr 2023 03:57:01 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3805,7 +3790,55 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-entities-read: - '59997' x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network dns record-set a remove-record + Connection: + - keep-alive + ParameterSetName: + - -g --zone-name --record-set-name --ipv4-address + User-Agent: + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 + response: + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"f378e752-ad21-4efa-a3a2-b192c1ef2014","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - private + content-length: + - '437' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 04 Apr 2023 03:57:02 GMT + etag: + - f378e752-ad21-4efa-a3a2-b192c1ef2014 + server: + - Microsoft-IIS/10.0 + 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: + - '499' x-powered-by: - ASP.NET status: @@ -3825,23 +3858,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"c963eab1-f4fd-4550-8b7e-12d07351f726","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"f378e752-ad21-4efa-a3a2-b192c1ef2014","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '494' + - '437' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:42 GMT + - Tue, 04 Apr 2023 03:57:02 GMT etag: - - c963eab1-f4fd-4550-8b7e-12d07351f726 + - f378e752-ad21-4efa-a3a2-b192c1ef2014 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3860,8 +3893,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "c963eab1-f4fd-4550-8b7e-12d07351f726", "properties": {"TTL": - 3600, "targetResource": {}, "ARecords": [{"ipv4Address": "10.0.0.11"}]}}' + body: '{"etag": "f378e752-ad21-4efa-a3a2-b192c1ef2014", "properties": {"ARecords": + [{"ipv4Address": "10.0.0.11"}], "TTL": 3600, "targetResource": {}}}' headers: Accept: - application/json @@ -3878,23 +3911,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"3e3fcfa7-776d-42c7-8135-2335d70172c1","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"fb2aa6f1-08af-4962-968c-1e2d50b7537e","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '409' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:43 GMT + - Tue, 04 Apr 2023 03:57:03 GMT etag: - - 3e3fcfa7-776d-42c7-8135-2335d70172c1 + - fb2aa6f1-08af-4962-968c-1e2d50b7537e server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3906,7 +3939,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11991' + - '11998' x-powered-by: - ASP.NET status: @@ -3926,23 +3959,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"d305299b-091e-437a-bfb8-576ef3b472dc","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"b1ced9af-fb40-4f50-bf74-bd341dce5f5d","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '495' + - '438' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:44 GMT + - Tue, 04 Apr 2023 03:57:05 GMT etag: - - d305299b-091e-437a-bfb8-576ef3b472dc + - b1ced9af-fb40-4f50-bf74-bd341dce5f5d server: - Microsoft-IIS/10.0 strict-transport-security: @@ -3964,7 +3997,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -3976,7 +4009,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: @@ -3988,7 +4021,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:45 GMT + - Tue, 04 Apr 2023 03:57:06 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4016,24 +4049,24 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"623bcd21-d1f8-45e9-a6a0-c1fd2f24bd80","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"41774610-1846-49da-8275-989491316cc5","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my value"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '493' + - '436' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:46 GMT + - Tue, 04 Apr 2023 03:57:06 GMT etag: - - 623bcd21-d1f8-45e9-a6a0-c1fd2f24bd80 + - 41774610-1846-49da-8275-989491316cc5 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4045,7 +4078,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -4055,7 +4088,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4067,7 +4100,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: @@ -4079,7 +4112,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:47 GMT + - Tue, 04 Apr 2023 03:57:09 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4087,7 +4120,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' x-powered-by: - ASP.NET status: @@ -4107,23 +4140,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"2b2b840a-b3d8-480b-88a0-c093e9f93f94","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"4a4dee10-02f2-466d-8eba-74bbe388aaf1","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '479' + - '422' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:49 GMT + - Tue, 04 Apr 2023 03:57:10 GMT etag: - - 2b2b840a-b3d8-480b-88a0-c093e9f93f94 + - 4a4dee10-02f2-466d-8eba-74bbe388aaf1 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4145,7 +4178,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4157,7 +4190,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: @@ -4169,7 +4202,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:50 GMT + - Tue, 04 Apr 2023 03:57:12 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4197,23 +4230,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"fa290085-f9c5-42fd-a19d-566071866852","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"3290d8d6-a02f-4389-a72f-2cd0aafe4f74","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '478' + - '421' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:51 GMT + - Tue, 04 Apr 2023 03:57:13 GMT etag: - - fa290085-f9c5-42fd-a19d-566071866852 + - 3290d8d6-a02f-4389-a72f-2cd0aafe4f74 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4235,7 +4268,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4247,7 +4280,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: @@ -4259,7 +4292,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:53 GMT + - Tue, 04 Apr 2023 03:57:15 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4287,23 +4320,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"97f05a96-1417-414e-83c2-774539883394","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"eefb3fba-6341-40aa-bc23-1de123cbfc31","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '469' + - '412' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:54 GMT + - Tue, 04 Apr 2023 03:57:17 GMT etag: - - 97f05a96-1417-414e-83c2-774539883394 + - eefb3fba-6341-40aa-bc23-1de123cbfc31 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4315,7 +4348,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '495' + - '499' x-powered-by: - ASP.NET status: @@ -4325,7 +4358,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4337,7 +4370,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: @@ -4349,7 +4382,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:55 GMT + - Tue, 04 Apr 2023 03:57:18 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4377,23 +4410,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"375bcf06-0e0b-4fb8-8e7f-3bd419a51eb0","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"3bce2183-86f5-4e69-ba0a-701df2762da2","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '476' + - '419' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:57 GMT + - Tue, 04 Apr 2023 03:57:20 GMT etag: - - 375bcf06-0e0b-4fb8-8e7f-3bd419a51eb0 + - 3bce2183-86f5-4e69-ba0a-701df2762da2 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4405,7 +4438,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -4415,7 +4448,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4427,7 +4460,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: @@ -4439,7 +4472,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:58 GMT + - Tue, 04 Apr 2023 03:57:21 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4467,23 +4500,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"b0af75e3-8f9a-4273-93e2-675111c76477","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"d2c74017-e783-4b93-9f66-dcf55248ca91","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '511' + - '454' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:59 GMT + - Tue, 04 Apr 2023 03:57:22 GMT etag: - - b0af75e3-8f9a-4273-93e2-675111c76477 + - d2c74017-e783-4b93-9f66-dcf55248ca91 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4505,7 +4538,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4517,7 +4550,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: @@ -4529,7 +4562,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:53:00 GMT + - Tue, 04 Apr 2023 03:57:24 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4557,23 +4590,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"bb0e9edc-a0ec-43aa-9875-938693d2f406","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"95e25743-d985-4153-8eb2-7f4f3db81800","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '474' + - '417' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:53:02 GMT + - Tue, 04 Apr 2023 03:57:26 GMT etag: - - bb0e9edc-a0ec-43aa-9875-938693d2f406 + - 95e25743-d985-4153-8eb2-7f4f3db81800 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4595,7 +4628,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4607,7 +4640,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: @@ -4619,7 +4652,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:53:03 GMT + - Tue, 04 Apr 2023 03:57:27 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4647,23 +4680,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"3e3fcfa7-776d-42c7-8135-2335d70172c1","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"fb2aa6f1-08af-4962-968c-1e2d50b7537e","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '409' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:53:04 GMT + - Tue, 04 Apr 2023 03:57:29 GMT etag: - - 3e3fcfa7-776d-42c7-8135-2335d70172c1 + - fb2aa6f1-08af-4962-968c-1e2d50b7537e server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4675,7 +4708,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -4695,23 +4728,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"3e3fcfa7-776d-42c7-8135-2335d70172c1","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"fb2aa6f1-08af-4962-968c-1e2d50b7537e","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '409' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:53:05 GMT + - Tue, 04 Apr 2023 03:57:30 GMT etag: - - 3e3fcfa7-776d-42c7-8135-2335d70172c1 + - fb2aa6f1-08af-4962-968c-1e2d50b7537e server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4733,7 +4766,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -4745,7 +4778,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: @@ -4757,7 +4790,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:53:06 GMT + - Tue, 04 Apr 2023 03:57:31 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4785,7 +4818,7 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: @@ -4796,11 +4829,11 @@ interactions: cache-control: - private content-length: - - '226' + - '169' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:53:08 GMT + - Tue, 04 Apr 2023 03:57:33 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4830,7 +4863,7 @@ interactions: ParameterSetName: - -n -g --zone-name -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: @@ -4840,7 +4873,7 @@ interactions: cache-control: - private date: - - Mon, 11 Oct 2021 09:53:09 GMT + - Tue, 04 Apr 2023 03:57:35 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4870,7 +4903,7 @@ interactions: ParameterSetName: - -n -g --zone-name -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: @@ -4880,7 +4913,7 @@ interactions: cache-control: - private date: - - Mon, 11 Oct 2021 09:53:11 GMT + - Tue, 04 Apr 2023 03:57:37 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4910,7 +4943,7 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: @@ -4918,15 +4951,15 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsOperationStatuses/delzone637695427943797803c767fe49?api-version=2018-05-01 + - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsOperationStatuses/bdw|63|00000000-0000-0000-0000-000000000004;169816;myzonex.com;Regulardelzone6381617747618170695875d4f2?api-version=2018-05-01 cache-control: - private content-length: - '0' date: - - Mon, 11 Oct 2021 09:53:14 GMT + - Tue, 04 Apr 2023 03:58:00 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsOperationResults/delzone637695427943797803c767fe49?api-version=2018-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsOperationResults/bdw%7C63%7C00000000-0000-0000-0000-000000000004;169816;myzonex.com;Regulardelzone6381617747618170695875d4f2?api-version=2018-05-01 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4934,7 +4967,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' x-powered-by: - ASP.NET status: @@ -4954,9 +4987,9 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsOperationStatuses/delzone637695427943797803c767fe49?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns000001/providers/Microsoft.Network/dnsOperationStatuses/bdw%7C63%7C00000000-0000-0000-0000-000000000004;169816;myzonex.com;Regulardelzone6381617747618170695875d4f2?api-version=2018-05-01 response: body: string: '{"status":"Succeeded"}' @@ -4968,7 +5001,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:53:17 GMT + - Tue, 04 Apr 2023 03:58:03 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -4980,7 +5013,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '497' + - '499' x-powered-by: - ASP.NET status: diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_alias.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_alias.yaml index 250b7c9e710..956f8107a8c 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_alias.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_alias.yaml @@ -17,12 +17,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.45.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.46.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_alias000001/providers/Microsoft.Network/dnsZones/mytestzone1.com?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com","name":"mytestzone1.com","type":"Microsoft.Network\/dnszones","etag":"31f1639d-f94e-4cbf-83d6-b083aa0d45e1","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-09.azure-dns.com.","ns2-09.azure-dns.net.","ns3-09.azure-dns.org.","ns4-09.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com","name":"mytestzone1.com","type":"Microsoft.Network\/dnszones","etag":"f26a5543-f6a7-4d58-9d91-8bb49e0b5fe1","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-02.azure-dns.com.","ns2-02.azure-dns.net.","ns3-02.azure-dns.org.","ns4-02.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' headers: cache-control: - private @@ -31,9 +31,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 27 Feb 2023 09:33:14 GMT + - Mon, 03 Apr 2023 08:17:19 GMT etag: - - 31f1639d-f94e-4cbf-83d6-b083aa0d45e1 + - f26a5543-f6a7-4d58-9d91-8bb49e0b5fe1 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -68,7 +68,7 @@ interactions: ParameterSetName: - -g -n --unique-dns-name --routing-method User-Agent: - - AZURECLI/2.45.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_alias000001/providers/Microsoft.Network/trafficmanagerprofiles/tm1?api-version=2022-04-01-preview response: @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 27 Feb 2023 09:33:23 GMT + - Mon, 03 Apr 2023 08:17:24 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -116,12 +116,12 @@ interactions: ParameterSetName: - -g -z -n --target-resource User-Agent: - - AZURECLI/2.45.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_alias000001/providers/Microsoft.Network/dnsZones/mytestzone1.com/a/a1?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com\/A\/a1","name":"a1","type":"Microsoft.Network\/dnszones\/A","etag":"53343fe4-0057-4a99-a9b6-871c5fe81e1b","properties":{"fqdn":"a1.mytestzone1.com.","TTL":30,"targetResource":{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/trafficManagerProfiles\/tm1"},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com\/A\/a1","name":"a1","type":"Microsoft.Network\/dnszones\/A","etag":"23a65064-ad51-4e0a-8f0d-5cdb74e10621","properties":{"fqdn":"a1.mytestzone1.com.","TTL":30,"targetResource":{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/trafficManagerProfiles\/tm1"},"provisioningState":"Succeeded"}}' headers: cache-control: - private @@ -130,9 +130,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 27 Feb 2023 09:33:51 GMT + - Mon, 03 Apr 2023 08:17:54 GMT etag: - - 53343fe4-0057-4a99-a9b6-871c5fe81e1b + - 23a65064-ad51-4e0a-8f0d-5cdb74e10621 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -160,12 +160,12 @@ interactions: ParameterSetName: - -g -z -n --target-resource User-Agent: - - AZURECLI/2.45.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_alias000001/providers/Microsoft.Network/dnsZones/mytestzone1.com/a/a1?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_alias000001/providers/Microsoft.Network/dnsZones/mytestzone1.com/A/a1?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com\/A\/a1","name":"a1","type":"Microsoft.Network\/dnszones\/A","etag":"53343fe4-0057-4a99-a9b6-871c5fe81e1b","properties":{"fqdn":"a1.mytestzone1.com.","TTL":30,"targetResource":{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/trafficManagerProfiles\/tm1"},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com\/A\/a1","name":"a1","type":"Microsoft.Network\/dnszones\/A","etag":"23a65064-ad51-4e0a-8f0d-5cdb74e10621","properties":{"fqdn":"a1.mytestzone1.com.","TTL":30,"targetResource":{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/trafficManagerProfiles\/tm1"},"provisioningState":"Succeeded"}}' headers: cache-control: - private @@ -174,9 +174,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 27 Feb 2023 09:33:52 GMT + - Mon, 03 Apr 2023 08:17:55 GMT etag: - - 53343fe4-0057-4a99-a9b6-871c5fe81e1b + - 23a65064-ad51-4e0a-8f0d-5cdb74e10621 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -195,7 +195,7 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "53343fe4-0057-4a99-a9b6-871c5fe81e1b", "properties": {"TTL": + body: '{"etag": "23a65064-ad51-4e0a-8f0d-5cdb74e10621", "properties": {"TTL": 30}}' headers: Accept: @@ -213,12 +213,12 @@ interactions: ParameterSetName: - -g -z -n --target-resource User-Agent: - - AZURECLI/2.45.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) + - AZURECLI/2.46.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_alias000001/providers/Microsoft.Network/dnsZones/mytestzone1.com/a/a1?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_alias000001/providers/Microsoft.Network/dnsZones/mytestzone1.com/A/a1?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com\/A\/a1","name":"a1","type":"Microsoft.Network\/dnszones\/A","etag":"07b4611e-2c71-42ff-90bd-5b0b60978f5e","properties":{"fqdn":"a1.mytestzone1.com.","TTL":30,"ARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias000001\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com\/A\/a1","name":"a1","type":"Microsoft.Network\/dnszones\/A","etag":"cfc2d883-370b-438a-a3a4-2cde6ce9f201","properties":{"fqdn":"a1.mytestzone1.com.","TTL":30,"ARecords":[],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private @@ -227,9 +227,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 27 Feb 2023 09:34:20 GMT + - Mon, 03 Apr 2023 08:18:28 GMT etag: - - 07b4611e-2c71-42ff-90bd-5b0b60978f5e + - cfc2d883-370b-438a-a3a4-2cde6ce9f201 server: - Microsoft-IIS/10.0 strict-transport-security: diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_if_none_match.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_if_none_match.yaml index 275b30bffba..456495ad529 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_if_none_match.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_dns_if_none_match.yaml @@ -11,21 +11,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/dnszones?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_dns_zone5_importf2wj75fv5ocok6bymqpjxj2iydmmma2jtqper7qirp36y74ijfzqrjl\/providers\/Microsoft.Network\/dnszones\/zone5.com","name":"zone5.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-5845-f65e85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-01.azure-dns.com.","ns2-01.azure-dns.net.","ns3-01.azure-dns.org.","ns4-01.azure-dns.info."],"numberOfRecordSets":19,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_alias36ytohtazqnotslsgztn5jmedo76jzd57xzqn5eeg2otl7pbyd7p7omva\/providers\/Microsoft.Network\/dnszones\/mytestzone1.com","name":"mytestzone1.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-76c3-5d6e85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-06.azure-dns.com.","ns2-06.azure-dns.net.","ns3-06.azure-dns.org.","ns4-06.azure-dns.info."],"numberOfRecordSets":3,"zoneType":"Public"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dnsh5wpqn4olo7mm6xnu3fxjemdeoi5aubk24wnhhds5vp25j6qbbkprhadetjw2ga\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-83cd-067a85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-03.azure-dns.com.","ns2-03.azure-dns.net.","ns3-03.azure-dns.org.","ns4-03.azure-dns.info."],"numberOfRecordSets":7,"zoneType":"Public"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/zhwen-domain\/providers\/Microsoft.Network\/dnszones\/emoranran.com","name":"emoranran.com","type":"Microsoft.Network\/dnszones","etag":"0fcd0dad-a80d-4b69-880f-dbb78cd1a216","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-06.azure-dns.com.","ns2-06.azure-dns.net.","ns3-06.azure-dns.org.","ns4-06.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' headers: cache-control: - private content-length: - - '1762' + - '534' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:24 GMT + - Tue, 28 Mar 2023 08:44:16 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-entities-read: - - '59997' + - '59999' x-ms-ratelimit-remaining-subscription-resource-requests: - '499' x-powered-by: @@ -63,23 +63,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-852a-ff8f85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-05.azure-dns.com.","ns2-05.azure-dns.net.","ns3-05.azure-dns.org.","ns4-05.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"9a618255-a0e5-4e04-9d86-931b526afe17","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' headers: cache-control: - private content-length: - - '581' + - '538' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:29 GMT + - Tue, 28 Mar 2023 08:44:40 GMT etag: - - 00000002-0000-0000-852a-ff8f85bed701 + - 9a618255-a0e5-4e04-9d86-931b526afe17 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -87,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' x-powered-by: - ASP.NET status: @@ -107,21 +107,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-852a-ff8f85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-05.azure-dns.com.","ns2-05.azure-dns.net.","ns3-05.azure-dns.org.","ns4-05.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"9a618255-a0e5-4e04-9d86-931b526afe17","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' headers: cache-control: - private content-length: - - '593' + - '550' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:30 GMT + - Tue, 28 Mar 2023 08:44:41 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -155,23 +155,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-852a-ff8f85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-05.azure-dns.com.","ns2-05.azure-dns.net.","ns3-05.azure-dns.org.","ns4-05.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"9a618255-a0e5-4e04-9d86-931b526afe17","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' headers: cache-control: - private content-length: - - '581' + - '538' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:31 GMT + - Tue, 28 Mar 2023 08:44:42 GMT etag: - - 00000002-0000-0000-852a-ff8f85bed701 + - 9a618255-a0e5-4e04-9d86-931b526afe17 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -203,7 +203,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: @@ -215,11 +215,11 @@ interactions: cache-control: - private content-length: - - '226' + - '183' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:33 GMT + - Tue, 28 Mar 2023 08:44:44 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -234,7 +234,7 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "ARecords": [{"ipv4Address": "10.0.0.10"}]}}' + body: '{"properties": {"ARecords": [{"ipv4Address": "10.0.0.10"}], "TTL": 3600}}' headers: Accept: - application/json @@ -253,23 +253,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"46f1e3c8-8fbe-4eea-b8b5-25ab250b9be1","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"6a223d19-447e-4ee4-b445-d5375b07e3ff","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '423' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:34 GMT + - Tue, 28 Mar 2023 08:44:45 GMT etag: - - 46f1e3c8-8fbe-4eea-b8b5-25ab250b9be1 + - 6a223d19-447e-4ee4-b445-d5375b07e3ff server: - Microsoft-IIS/10.0 strict-transport-security: @@ -297,7 +297,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: @@ -309,11 +309,11 @@ interactions: cache-control: - private content-length: - - '229' + - '186' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:35 GMT + - Tue, 28 Mar 2023 08:44:46 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -328,7 +328,8 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}]}}' + body: '{"properties": {"AAAARecords": [{"ipv6Address": "2001:db8:0:1:1:1:1:1"}], + "TTL": 3600}}' headers: Accept: - application/json @@ -347,23 +348,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"23dda3b0-36b4-4b9b-90ff-88fb7ffa5c42","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"a5949860-37ad-4d71-ae03-6981847a29df","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '495' + - '452' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:36 GMT + - Tue, 28 Mar 2023 08:44:48 GMT etag: - - 23dda3b0-36b4-4b9b-90ff-88fb7ffa5c42 + - a5949860-37ad-4d71-ae03-6981847a29df server: - Microsoft-IIS/10.0 strict-transport-security: @@ -391,7 +392,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: @@ -403,11 +404,11 @@ interactions: cache-control: - private content-length: - - '228' + - '185' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:38 GMT + - Tue, 28 Mar 2023 08:44:50 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -442,24 +443,24 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"1064df68-c098-415b-ad79-f6fd56c5e396","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"a1cf91c0-1c10-410a-ba42-bb6d466b84c2","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my value"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '493' + - '450' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:39 GMT + - Tue, 28 Mar 2023 08:44:53 GMT etag: - - 1064df68-c098-415b-ad79-f6fd56c5e396 + - a1cf91c0-1c10-410a-ba42-bb6d466b84c2 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -487,7 +488,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: @@ -499,11 +500,11 @@ interactions: cache-control: - private content-length: - - '230' + - '187' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:41 GMT + - Tue, 28 Mar 2023 08:44:53 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -518,7 +519,7 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "CNAMERecord": {"cname": "mycname"}}}' + body: '{"properties": {"CNAMERecord": {"cname": "mycname"}, "TTL": 3600}}' headers: Accept: - application/json @@ -537,23 +538,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"419c38dc-f143-400f-b9c3-f7a87f76bae7","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"d1ea28f5-2677-4084-82fd-6cc52d1c0947","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '479' + - '436' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:42 GMT + - Tue, 28 Mar 2023 08:44:55 GMT etag: - - 419c38dc-f143-400f-b9c3-f7a87f76bae7 + - d1ea28f5-2677-4084-82fd-6cc52d1c0947 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -581,7 +582,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: @@ -593,11 +594,11 @@ interactions: cache-control: - private content-length: - - '227' + - '184' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:43 GMT + - Tue, 28 Mar 2023 08:44:57 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -612,8 +613,8 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "MXRecords": [{"preference": 13, "exchange": - "12"}]}}' + body: '{"properties": {"MXRecords": [{"exchange": "12", "preference": 13}], "TTL": + 3600}}' headers: Accept: - application/json @@ -632,23 +633,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"92b2208b-cb55-49ad-8ce2-88acdb9b7acd","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"10df1e8f-4278-4d0d-a1b5-fcd563047d27","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '478' + - '435' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:45 GMT + - Tue, 28 Mar 2023 08:44:59 GMT etag: - - 92b2208b-cb55-49ad-8ce2-88acdb9b7acd + - 10df1e8f-4278-4d0d-a1b5-fcd563047d27 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -676,7 +677,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: @@ -688,11 +689,11 @@ interactions: cache-control: - private content-length: - - '227' + - '184' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:46 GMT + - Tue, 28 Mar 2023 08:44:59 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -707,7 +708,7 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "NSRecords": [{"nsdname": "foobar.com"}]}}' + body: '{"properties": {"NSRecords": [{"nsdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -726,23 +727,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"fdd3cc6e-b500-4d59-8bb8-00b95925042e","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"679279cb-460d-4b11-a9c4-07e611aa9603","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '469' + - '426' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:47 GMT + - Tue, 28 Mar 2023 08:45:01 GMT etag: - - fdd3cc6e-b500-4d59-8bb8-00b95925042e + - 679279cb-460d-4b11-a9c4-07e611aa9603 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -770,7 +771,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: @@ -782,11 +783,11 @@ interactions: cache-control: - private content-length: - - '228' + - '185' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:48 GMT + - Tue, 28 Mar 2023 08:45:03 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -801,7 +802,7 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "PTRRecords": [{"ptrdname": "foobar.com"}]}}' + body: '{"properties": {"PTRRecords": [{"ptrdname": "foobar.com"}], "TTL": 3600}}' headers: Accept: - application/json @@ -820,23 +821,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"458d1438-3669-4285-bb79-45dc7ce21d34","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"112735cb-5890-4712-9cbe-8778d4e2274f","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '476' + - '433' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:49 GMT + - Tue, 28 Mar 2023 08:45:05 GMT etag: - - 458d1438-3669-4285-bb79-45dc7ce21d34 + - 112735cb-5890-4712-9cbe-8778d4e2274f server: - Microsoft-IIS/10.0 strict-transport-security: @@ -844,7 +845,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' x-powered-by: - ASP.NET status: @@ -864,7 +865,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: @@ -876,11 +877,11 @@ interactions: cache-control: - private content-length: - - '228' + - '185' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:51 GMT + - Tue, 28 Mar 2023 08:45:06 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -895,8 +896,8 @@ interactions: code: 404 message: Not Found - request: - body: '{"properties": {"TTL": 3600, "SRVRecords": [{"priority": 1, "weight": 50, - "port": 1234, "target": "target.com"}]}}' + body: '{"properties": {"SRVRecords": [{"port": 1234, "priority": 1, "target": + "target.com", "weight": 50}], "TTL": 3600}}' headers: Accept: - application/json @@ -915,23 +916,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"14e6fd84-fc88-4c11-8c41-4f8003c29774","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"b33e0420-4c91-4cce-ad61-6d0f6b5e4e70","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '511' + - '468' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:52 GMT + - Tue, 28 Mar 2023 08:45:07 GMT etag: - - 14e6fd84-fc88-4c11-8c41-4f8003c29774 + - b33e0420-4c91-4cce-ad61-6d0f6b5e4e70 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -959,7 +960,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: @@ -971,11 +972,11 @@ interactions: cache-control: - private content-length: - - '228' + - '185' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:54 GMT + - Tue, 28 Mar 2023 08:45:09 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1009,23 +1010,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value --if-none-match User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"28bb1892-3383-41a9-adeb-962c8df0536f","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"d6928ec0-bd4d-4441-aa1e-63df4381f5ae","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '474' + - '431' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:56 GMT + - Tue, 28 Mar 2023 08:45:11 GMT etag: - - 28bb1892-3383-41a9-adeb-962c8df0536f + - d6928ec0-bd4d-4441-aa1e-63df4381f5ae server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1033,7 +1034,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11996' + - '11999' x-powered-by: - ASP.NET status: @@ -1053,23 +1054,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"46f1e3c8-8fbe-4eea-b8b5-25ab250b9be1","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"6a223d19-447e-4ee4-b445-d5375b07e3ff","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '423' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:56 GMT + - Tue, 28 Mar 2023 08:45:12 GMT etag: - - 46f1e3c8-8fbe-4eea-b8b5-25ab250b9be1 + - 6a223d19-447e-4ee4-b445-d5375b07e3ff server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1088,9 +1089,8 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "46f1e3c8-8fbe-4eea-b8b5-25ab250b9be1", "properties": {"TTL": - 3600, "targetResource": {}, "ARecords": [{"ipv4Address": "10.0.0.10"}, {"ipv4Address": - "10.0.0.11"}]}}' + body: '{"properties": {"ARecords": [{"ipv4Address": "10.0.0.10"}, {"ipv4Address": + "10.0.0.11"}], "TTL": 3600}}' headers: Accept: - application/json @@ -1101,29 +1101,29 @@ interactions: Connection: - keep-alive Content-Length: - - '173' + - '103' Content-Type: - application/json ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"0eef1fb7-26ca-4aa6-b012-94e5eb8ce290","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"94866481-a6a5-4c92-89ab-e1b388813ab0","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '494' + - '451' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:58 GMT + - Tue, 28 Mar 2023 08:45:14 GMT etag: - - 0eef1fb7-26ca-4aa6-b012-94e5eb8ce290 + - 94866481-a6a5-4c92-89ab-e1b388813ab0 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1135,7 +1135,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' x-powered-by: - ASP.NET status: @@ -1156,23 +1156,23 @@ interactions: - -g --zone-name --email --expire-time --minimum-ttl --refresh-time --retry-time --serial-number User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/soa/@?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"aa22e03a-9cbd-4878-bd88-748c748e9b9c","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-05.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"86cd6d66-e494-4f02-b7c4-f0739ad2c57e","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-07.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '594' + - '551' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:51:59 GMT + - Tue, 28 Mar 2023 08:45:14 GMT etag: - - aa22e03a-9cbd-4878-bd88-748c748e9b9c + - 86cd6d66-e494-4f02-b7c4-f0739ad2c57e server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1184,7 +1184,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -1205,23 +1205,23 @@ interactions: - -g --zone-name --email --expire-time --minimum-ttl --refresh-time --retry-time --serial-number User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/soa/@?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"aa22e03a-9cbd-4878-bd88-748c748e9b9c","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-05.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"86cd6d66-e494-4f02-b7c4-f0739ad2c57e","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-07.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '594' + - '551' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:01 GMT + - Tue, 28 Mar 2023 08:45:16 GMT etag: - - aa22e03a-9cbd-4878-bd88-748c748e9b9c + - 86cd6d66-e494-4f02-b7c4-f0739ad2c57e server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1240,10 +1240,9 @@ interactions: code: 200 message: OK - request: - body: '{"etag": "aa22e03a-9cbd-4878-bd88-748c748e9b9c", "properties": {"TTL": - 3600, "targetResource": {}, "SOARecord": {"host": "ns1-05.azure-dns.com.", "email": - "foo.com", "serialNumber": 123, "refreshTime": 60, "retryTime": 90, "expireTime": - 30, "minimumTTL": 20}}}' + body: '{"properties": {"SOARecord": {"email": "foo.com", "expireTime": 30, "host": + "ns1-07.azure-dns.com.", "minimumTTL": 20, "refreshTime": 60, "retryTime": 90, + "serialNumber": 123}, "TTL": 3600}}' headers: Accept: - application/json @@ -1254,30 +1253,30 @@ interactions: Connection: - keep-alive Content-Length: - - '260' + - '190' Content-Type: - application/json ParameterSetName: - -g --zone-name --email --expire-time --minimum-ttl --refresh-time --retry-time --serial-number User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/soa/@?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"d9f6c555-1027-403e-9ae6-04836113a687","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-05.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"4a3aa7d6-76d4-496e-aabc-5f2c7dafff32","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-07.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '561' + - '518' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:02 GMT + - Tue, 28 Mar 2023 08:45:17 GMT etag: - - d9f6c555-1027-403e-9ae6-04836113a687 + - 4a3aa7d6-76d4-496e-aabc-5f2c7dafff32 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1309,7 +1308,7 @@ interactions: ParameterSetName: - -g -z -n -v User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/longtxt?api-version=2018-05-01 response: @@ -1321,11 +1320,11 @@ interactions: cache-control: - private content-length: - - '228' + - '185' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:03 GMT + - Tue, 28 Mar 2023 08:45:18 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1358,23 +1357,23 @@ interactions: ParameterSetName: - -g -z -n -v User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/longtxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"66a95218-75dc-4793-a8d8-46121b257970","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"54f01c09-8a58-4fa8-86f4-6980501fecbd","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '968' + - '925' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:05 GMT + - Tue, 28 Mar 2023 08:45:20 GMT etag: - - 66a95218-75dc-4793-a8d8-46121b257970 + - 54f01c09-8a58-4fa8-86f4-6980501fecbd server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1382,7 +1381,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' x-powered-by: - ASP.NET status: @@ -1402,23 +1401,23 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-852a-ff8f85bed701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-05.azure-dns.com.","ns2-05.azure-dns.net.","ns3-05.azure-dns.org.","ns4-05.azure-dns.info."],"numberOfRecordSets":12,"zoneType":"Public"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com","name":"myzonex.com","type":"Microsoft.Network\/dnszones","etag":"9a618255-a0e5-4e04-9d86-931b526afe17","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":12,"zoneType":"Public"}}' headers: cache-control: - private content-length: - - '582' + - '539' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:06 GMT + - Tue, 28 Mar 2023 08:45:22 GMT etag: - - 00000002-0000-0000-852a-ff8f85bed701 + - 9a618255-a0e5-4e04-9d86-931b526afe17 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1430,7 +1429,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -1450,23 +1449,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"0eef1fb7-26ca-4aa6-b012-94e5eb8ce290","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"94866481-a6a5-4c92-89ab-e1b388813ab0","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '494' + - '451' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:07 GMT + - Tue, 28 Mar 2023 08:45:22 GMT etag: - - 0eef1fb7-26ca-4aa6-b012-94e5eb8ce290 + - 94866481-a6a5-4c92-89ab-e1b388813ab0 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1478,7 +1477,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -1498,22 +1497,22 @@ interactions: ParameterSetName: - -g -z User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/recordsets?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/@","name":"@","type":"Microsoft.Network\/dnszones\/NS","etag":"a6a3da68-c6a1-420a-9baa-87c291dc4c26","properties":{"fqdn":"myzonex.com.","TTL":172800,"NSRecords":[{"nsdname":"ns1-05.azure-dns.com."},{"nsdname":"ns2-05.azure-dns.net."},{"nsdname":"ns3-05.azure-dns.org."},{"nsdname":"ns4-05.azure-dns.info."}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"d9f6c555-1027-403e-9ae6-04836113a687","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-05.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"66a95218-75dc-4793-a8d8-46121b257970","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"0eef1fb7-26ca-4aa6-b012-94e5eb8ce290","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"23dda3b0-36b4-4b9b-90ff-88fb7ffa5c42","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"1064df68-c098-415b-ad79-f6fd56c5e396","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my - value"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"419c38dc-f143-400f-b9c3-f7a87f76bae7","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"92b2208b-cb55-49ad-8ce2-88acdb9b7acd","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"fdd3cc6e-b500-4d59-8bb8-00b95925042e","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"458d1438-3669-4285-bb79-45dc7ce21d34","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"14e6fd84-fc88-4c11-8c41-4f8003c29774","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"28bb1892-3383-41a9-adeb-962c8df0536f","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/@","name":"@","type":"Microsoft.Network\/dnszones\/NS","etag":"da322b9b-9a35-4302-970e-bf940741d662","properties":{"fqdn":"myzonex.com.","TTL":172800,"NSRecords":[{"nsdname":"ns1-07.azure-dns.com."},{"nsdname":"ns2-07.azure-dns.net."},{"nsdname":"ns3-07.azure-dns.org."},{"nsdname":"ns4-07.azure-dns.info."}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"4a3aa7d6-76d4-496e-aabc-5f2c7dafff32","properties":{"fqdn":"myzonex.com.","TTL":3600,"SOARecord":{"email":"foo.com","expireTime":30,"host":"ns1-07.azure-dns.com.","minimumTTL":20,"refreshTime":60,"retryTime":90,"serialNumber":123},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"54f01c09-8a58-4fa8-86f4-6980501fecbd","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"94866481-a6a5-4c92-89ab-e1b388813ab0","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"a5949860-37ad-4d71-ae03-6981847a29df","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"a1cf91c0-1c10-410a-ba42-bb6d466b84c2","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + value"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"d1ea28f5-2677-4084-82fd-6cc52d1c0947","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"10df1e8f-4278-4d0d-a1b5-fcd563047d27","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"679279cb-460d-4b11-a9c4-07e611aa9603","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"112735cb-5890-4712-9cbe-8778d4e2274f","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"b33e0420-4c91-4cce-ad61-6d0f6b5e4e70","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"d6928ec0-bd4d-4441-aa1e-63df4381f5ae","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' headers: cache-control: - private content-length: - - '6495' + - '5979' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:08 GMT + - Tue, 28 Mar 2023 08:45:23 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1547,21 +1546,21 @@ interactions: ParameterSetName: - -g -z User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt?api-version=2018-05-01 response: body: - string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"66a95218-75dc-4793-a8d8-46121b257970","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"28bb1892-3383-41a9-adeb-962c8df0536f","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/longtxt","name":"longtxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"54f01c09-8a58-4fa8-86f4-6980501fecbd","properties":{"fqdn":"longtxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234","56789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"]}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"d6928ec0-bd4d-4441-aa1e-63df4381f5ae","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}]}' headers: cache-control: - private content-length: - - '1455' + - '1369' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:10 GMT + - Tue, 28 Mar 2023 08:45:23 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1595,23 +1594,71 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 + response: + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"94866481-a6a5-4c92-89ab-e1b388813ab0","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - private + content-length: + - '451' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Mar 2023 08:45:24 GMT + etag: + - 94866481-a6a5-4c92-89ab-e1b388813ab0 + server: + - Microsoft-IIS/10.0 + 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: + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network dns record-set a remove-record + Connection: + - keep-alive + ParameterSetName: + - -g --zone-name --record-set-name --ipv4-address + User-Agent: + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"0eef1fb7-26ca-4aa6-b012-94e5eb8ce290","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"94866481-a6a5-4c92-89ab-e1b388813ab0","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.10"},{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '494' + - '451' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:12 GMT + - Tue, 28 Mar 2023 08:45:25 GMT etag: - - 0eef1fb7-26ca-4aa6-b012-94e5eb8ce290 + - 94866481-a6a5-4c92-89ab-e1b388813ab0 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1623,15 +1670,15 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: code: 200 message: OK - request: - body: '{"etag": "0eef1fb7-26ca-4aa6-b012-94e5eb8ce290", "properties": {"TTL": - 3600, "targetResource": {}, "ARecords": [{"ipv4Address": "10.0.0.11"}]}}' + body: '{"etag": "94866481-a6a5-4c92-89ab-e1b388813ab0", "properties": {"ARecords": + [{"ipv4Address": "10.0.0.11"}], "TTL": 3600, "targetResource": {}}}' headers: Accept: - application/json @@ -1648,23 +1695,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"e5baa5be-0679-433f-83e1-9b1247cf609a","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"b1f94be1-59a9-4f50-ac6c-af230979797f","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '423' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:14 GMT + - Tue, 28 Mar 2023 08:45:27 GMT etag: - - e5baa5be-0679-433f-83e1-9b1247cf609a + - b1f94be1-59a9-4f50-ac6c-af230979797f server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1676,7 +1723,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' x-powered-by: - ASP.NET status: @@ -1696,23 +1743,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"23dda3b0-36b4-4b9b-90ff-88fb7ffa5c42","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/AAAA\/myrsaaaa","name":"myrsaaaa","type":"Microsoft.Network\/dnszones\/AAAA","etag":"a5949860-37ad-4d71-ae03-6981847a29df","properties":{"fqdn":"myrsaaaa.myzonex.com.","TTL":3600,"AAAARecords":[{"ipv6Address":"2001:db8:0:1:1:1:1:1"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '495' + - '452' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:14 GMT + - Tue, 28 Mar 2023 08:45:28 GMT etag: - - 23dda3b0-36b4-4b9b-90ff-88fb7ffa5c42 + - a5949860-37ad-4d71-ae03-6981847a29df server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1734,7 +1781,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1746,7 +1793,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv6-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/aaaa/myrsaaaa?api-version=2018-05-01 response: @@ -1758,7 +1805,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:16 GMT + - Tue, 28 Mar 2023 08:45:30 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1786,24 +1833,24 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"1064df68-c098-415b-ad79-f6fd56c5e396","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CAA\/myrscaa","name":"myrscaa","type":"Microsoft.Network\/dnszones\/CAA","etag":"a1cf91c0-1c10-410a-ba42-bb6d466b84c2","properties":{"fqdn":"myrscaa.myzonex.com.","TTL":3600,"caaRecords":[{"flags":0,"tag":"foo","value":"my value"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '493' + - '450' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:18 GMT + - Tue, 28 Mar 2023 08:45:31 GMT etag: - - 1064df68-c098-415b-ad79-f6fd56c5e396 + - a1cf91c0-1c10-410a-ba42-bb6d466b84c2 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1825,7 +1872,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1837,7 +1884,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --flags --tag --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/caa/myrscaa?api-version=2018-05-01 response: @@ -1849,7 +1896,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:19 GMT + - Tue, 28 Mar 2023 08:45:33 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1877,23 +1924,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"419c38dc-f143-400f-b9c3-f7a87f76bae7","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/CNAME\/myrscname","name":"myrscname","type":"Microsoft.Network\/dnszones\/CNAME","etag":"d1ea28f5-2677-4084-82fd-6cc52d1c0947","properties":{"fqdn":"myrscname.myzonex.com.","TTL":3600,"CNAMERecord":{"cname":"mycname"},"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '479' + - '436' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:20 GMT + - Tue, 28 Mar 2023 08:45:34 GMT etag: - - 419c38dc-f143-400f-b9c3-f7a87f76bae7 + - d1ea28f5-2677-4084-82fd-6cc52d1c0947 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1915,7 +1962,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -1927,7 +1974,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --cname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: @@ -1939,7 +1986,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:21 GMT + - Tue, 28 Mar 2023 08:45:35 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1967,23 +2014,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"92b2208b-cb55-49ad-8ce2-88acdb9b7acd","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/MX\/myrsmx","name":"myrsmx","type":"Microsoft.Network\/dnszones\/MX","etag":"10df1e8f-4278-4d0d-a1b5-fcd563047d27","properties":{"fqdn":"myrsmx.myzonex.com.","TTL":3600,"MXRecords":[{"exchange":"12","preference":13}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '478' + - '435' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:23 GMT + - Tue, 28 Mar 2023 08:45:36 GMT etag: - - 92b2208b-cb55-49ad-8ce2-88acdb9b7acd + - 10df1e8f-4278-4d0d-a1b5-fcd563047d27 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -1995,7 +2042,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -2005,7 +2052,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2017,7 +2064,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --exchange --preference User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/mx/myrsmx?api-version=2018-05-01 response: @@ -2029,7 +2076,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:24 GMT + - Tue, 28 Mar 2023 08:45:37 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2057,23 +2104,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"fdd3cc6e-b500-4d59-8bb8-00b95925042e","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/NS\/myrsns","name":"myrsns","type":"Microsoft.Network\/dnszones\/NS","etag":"679279cb-460d-4b11-a9c4-07e611aa9603","properties":{"fqdn":"myrsns.myzonex.com.","TTL":3600,"NSRecords":[{"nsdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '469' + - '426' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:25 GMT + - Tue, 28 Mar 2023 08:45:39 GMT etag: - - fdd3cc6e-b500-4d59-8bb8-00b95925042e + - 679279cb-460d-4b11-a9c4-07e611aa9603 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2085,7 +2132,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -2095,7 +2142,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2107,7 +2154,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --nsdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ns/myrsns?api-version=2018-05-01 response: @@ -2119,7 +2166,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:27 GMT + - Tue, 28 Mar 2023 08:45:41 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2147,23 +2194,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"458d1438-3669-4285-bb79-45dc7ce21d34","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/PTR\/myrsptr","name":"myrsptr","type":"Microsoft.Network\/dnszones\/PTR","etag":"112735cb-5890-4712-9cbe-8778d4e2274f","properties":{"fqdn":"myrsptr.myzonex.com.","TTL":3600,"PTRRecords":[{"ptrdname":"foobar.com"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '476' + - '433' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:28 GMT + - Tue, 28 Mar 2023 08:45:42 GMT etag: - - 458d1438-3669-4285-bb79-45dc7ce21d34 + - 112735cb-5890-4712-9cbe-8778d4e2274f server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2185,7 +2232,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2197,7 +2244,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ptrdname User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/ptr/myrsptr?api-version=2018-05-01 response: @@ -2209,7 +2256,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:30 GMT + - Tue, 28 Mar 2023 08:45:44 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2237,23 +2284,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"14e6fd84-fc88-4c11-8c41-4f8003c29774","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/SRV\/myrssrv","name":"myrssrv","type":"Microsoft.Network\/dnszones\/SRV","etag":"b33e0420-4c91-4cce-ad61-6d0f6b5e4e70","properties":{"fqdn":"myrssrv.myzonex.com.","TTL":3600,"SRVRecords":[{"port":1234,"priority":1,"target":"target.com","weight":50}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '511' + - '468' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:31 GMT + - Tue, 28 Mar 2023 08:45:44 GMT etag: - - 14e6fd84-fc88-4c11-8c41-4f8003c29774 + - b33e0420-4c91-4cce-ad61-6d0f6b5e4e70 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2275,7 +2322,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2287,7 +2334,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --port --priority --target --weight User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/srv/myrssrv?api-version=2018-05-01 response: @@ -2299,7 +2346,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:32 GMT + - Tue, 28 Mar 2023 08:45:46 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2327,23 +2374,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"28bb1892-3383-41a9-adeb-962c8df0536f","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/TXT\/myrstxt","name":"myrstxt","type":"Microsoft.Network\/dnszones\/TXT","etag":"d6928ec0-bd4d-4441-aa1e-63df4381f5ae","properties":{"fqdn":"myrstxt.myzonex.com.","TTL":3600,"TXTRecords":[{"value":["some_text"]}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '474' + - '431' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:34 GMT + - Tue, 28 Mar 2023 08:45:47 GMT etag: - - 28bb1892-3383-41a9-adeb-962c8df0536f + - d6928ec0-bd4d-4441-aa1e-63df4381f5ae server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2365,7 +2412,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2377,7 +2424,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --value User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/txt/myrstxt?api-version=2018-05-01 response: @@ -2389,7 +2436,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:35 GMT + - Tue, 28 Mar 2023 08:45:49 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2417,23 +2464,23 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"e5baa5be-0679-433f-83e1-9b1247cf609a","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"b1f94be1-59a9-4f50-ac6c-af230979797f","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '423' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:35 GMT + - Tue, 28 Mar 2023 08:45:50 GMT etag: - - e5baa5be-0679-433f-83e1-9b1247cf609a + - b1f94be1-59a9-4f50-ac6c-af230979797f server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2465,23 +2512,23 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: body: - string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"e5baa5be-0679-433f-83e1-9b1247cf609a","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/cli_test_dns_if_none_match000001\/providers\/Microsoft.Network\/dnszones\/myzonex.com\/A\/myrsa","name":"myrsa","type":"Microsoft.Network\/dnszones\/A","etag":"b1f94be1-59a9-4f50-ac6c-af230979797f","properties":{"fqdn":"myrsa.myzonex.com.","TTL":3600,"ARecords":[{"ipv4Address":"10.0.0.11"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: cache-control: - private content-length: - - '466' + - '423' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:37 GMT + - Tue, 28 Mar 2023 08:45:52 GMT etag: - - e5baa5be-0679-433f-83e1-9b1247cf609a + - b1f94be1-59a9-4f50-ac6c-af230979797f server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2503,7 +2550,7 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: @@ -2515,7 +2562,7 @@ interactions: ParameterSetName: - -g --zone-name --record-set-name --ipv4-address User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: @@ -2527,7 +2574,7 @@ interactions: content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:38 GMT + - Tue, 28 Mar 2023 08:45:52 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2555,7 +2602,7 @@ interactions: ParameterSetName: - -n -g --zone-name User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: @@ -2567,11 +2614,11 @@ interactions: cache-control: - private content-length: - - '226' + - '183' content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:40 GMT + - Tue, 28 Mar 2023 08:45:54 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2579,7 +2626,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '498' + - '499' x-powered-by: - ASP.NET status: @@ -2601,7 +2648,7 @@ interactions: ParameterSetName: - -n -g --zone-name -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/a/myrsa?api-version=2018-05-01 response: @@ -2611,7 +2658,7 @@ interactions: cache-control: - private date: - - Mon, 11 Oct 2021 09:52:41 GMT + - Tue, 28 Mar 2023 08:45:55 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2641,7 +2688,7 @@ interactions: ParameterSetName: - -n -g --zone-name -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com/cname/myrscname?api-version=2018-05-01 response: @@ -2651,7 +2698,7 @@ interactions: cache-control: - private date: - - Mon, 11 Oct 2021 09:52:42 GMT + - Tue, 28 Mar 2023 08:45:56 GMT server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2681,7 +2728,7 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsZones/myzonex.com?api-version=2018-05-01 response: @@ -2689,15 +2736,15 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsOperationStatuses/delzone6376954276657855057c7f8f85?api-version=2018-05-01 + - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsOperationStatuses/bdw|63|00000000-0000-0000-0000-000000000007;158035;myzonex.com;Regulardelzone63815589974915259086633b42?api-version=2018-05-01 cache-control: - private content-length: - '0' date: - - Mon, 11 Oct 2021 09:52:46 GMT + - Tue, 28 Mar 2023 08:46:19 GMT location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsOperationResults/delzone6376954276657855057c7f8f85?api-version=2018-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsOperationResults/bdw%7C63%7C00000000-0000-0000-0000-000000000007;158035;myzonex.com;Regulardelzone63815589974915259086633b42?api-version=2018-05-01 server: - Microsoft-IIS/10.0 strict-transport-security: @@ -2725,9 +2772,9 @@ interactions: ParameterSetName: - -g -n -y User-Agent: - - AZURECLI/2.29.0 azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.3 (Windows-10-10.0.18362-SP0) + - AZURECLI/2.46.0 (PIP) azsdk-python-azure-mgmt-dns/8.0.0 Python/3.8.10 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsOperationStatuses/delzone6376954276657855057c7f8f85?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dns_if_none_match000001/providers/Microsoft.Network/dnsOperationStatuses/bdw%7C63%7C00000000-0000-0000-0000-000000000007;158035;myzonex.com;Regulardelzone63815589974915259086633b42?api-version=2018-05-01 response: body: string: '{"status":"Succeeded"}' @@ -2739,7 +2786,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Oct 2021 09:52:49 GMT + - Tue, 28 Mar 2023 08:46:22 GMT server: - Microsoft-IIS/10.0 strict-transport-security: