From 3d32536b7f0249cee5e363ba982e6277bfd9a62d Mon Sep 17 00:00:00 2001 From: necusjz Date: Mon, 11 Jul 2022 14:47:20 +0800 Subject: [PATCH 1/7] initial generation --- .../cli/command_modules/network/__init__.py | 11 + .../cli/command_modules/network/_help.py | 30 - .../command_modules/network/aaz/__init__.py | 6 + .../network/aaz/latest/__init__.py | 6 + .../network/aaz/latest/network/__cmd_group.py | 23 + .../network/aaz/latest/network/__init__.py | 11 + .../security_partner_provider/__cmd_group.py | 23 + .../security_partner_provider/__init__.py | 16 + .../security_partner_provider/_create.py | 255 +++ .../security_partner_provider/_delete.py | 147 ++ .../security_partner_provider/_list.py | 310 +++ .../security_partner_provider/_show.py | 185 ++ .../security_partner_provider/_update.py | 397 ++++ .../cli/command_modules/network/commands.py | 8 +- ...est_network_security_partner_provider.yaml | 1854 +---------------- .../tests/latest/test_network_commands.py | 9 +- 16 files changed, 1488 insertions(+), 1803 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/__init__.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/__init__.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__cmd_group.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__init__.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__cmd_group.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py diff --git a/src/azure-cli/azure/cli/command_modules/network/__init__.py b/src/azure-cli/azure/cli/command_modules/network/__init__.py index a5f528d086c..25339cb5628 100644 --- a/src/azure-cli/azure/cli/command_modules/network/__init__.py +++ b/src/azure-cli/azure/cli/command_modules/network/__init__.py @@ -31,6 +31,17 @@ def __init__(self, cli_ctx=None): def load_command_table(self, args): from azure.cli.command_modules.network.commands import load_command_table + from azure.cli.core.aaz import load_aaz_command_table + try: + from . import aaz + except ImportError: + aaz = None + if aaz: + load_aaz_command_table( + loader=self, + aaz_pkg_name=aaz.__name__, + args=args + ) load_command_table(self, args) return self.command_table diff --git a/src/azure-cli/azure/cli/command_modules/network/_help.py b/src/azure-cli/azure/cli/command_modules/network/_help.py index 5a8c31e02f1..0242f129e31 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_help.py +++ b/src/azure-cli/azure/cli/command_modules/network/_help.py @@ -7559,36 +7559,6 @@ az network bastion tunnel --name MyBastionHost --resource-group MyResourceGroup --target-resource-id vmResourceId --resource-port 22 --port 50022 """ -helps['network security-partner-provider'] = """ -type: group -short-summary: Manage Azure security partner provider. -""" - -helps['network security-partner-provider create'] = """ -type: command -short-summary: Create a Azure security partner provider. -""" - -helps['network security-partner-provider update'] = """ -type: command -short-summary: Update a Azure security partner provider. -""" - -helps['network security-partner-provider delete'] = """ -type: command -short-summary: Delete a Azure security partner provider. -""" - -helps['network security-partner-provider list'] = """ -type: command -short-summary: List all Azure security partner provider. -""" - -helps['network security-partner-provider show'] = """ -type: command -short-summary: Show a Azure security partner provider. -""" - helps['network virtual-appliance'] = """ type: group short-summary: Manage Azure Network Virtual Appliance. diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# -------------------------------------------------------------------------------------------- diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__cmd_group.py new file mode 100644 index 00000000000..5093d2928ba --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__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", +) +class __CMDGroup(AAZCommandGroup): + """Manage Azure Network resources. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__init__.py new file mode 100644 index 00000000000..5a9d61963d6 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/__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/security_partner_provider/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__cmd_group.py new file mode 100644 index 00000000000..ffaeb206edc --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__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 security-partner-provider", +) +class __CMDGroup(AAZCommandGroup): + """Manage Azure security partner provider. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 ._show import * +from ._update import * diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py new file mode 100644 index 00000000000..e39f48eec47 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py @@ -0,0 +1,255 @@ +# -------------------------------------------------------------------------------------------- +# 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 security-partner-provider create", + is_preview=True, +) +class Create(AAZCommand): + """Create a Azure security partner provider. + """ + + _aaz_info = { + "version": "2021-08-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/securitypartnerproviders/{}", "2021-08-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(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.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the Security Partner Provider.", + required=True, + id_part="name", + ) + _args_schema.location = AAZResourceLocationArg( + help="Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`.", + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.provider = AAZStrArg( + options=["--provider"], + help="The security provider name. Allowed values: Checkpoint, IBoss, ZScaler.", + enum={"Checkpoint": "Checkpoint", "IBoss": "IBoss", "ZScaler": "ZScaler"}, + ) + _args_schema.vhub = AAZStrArg( + options=["--vhub"], + help="Name or ID of the virtual hub to which the Security Partner Provider belongs.", + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + help="Space-separated tags: key[=value] [key[=value] ...]. Use \"\" to clear existing tags.", + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + + # define Arg Group "Parameters" + return cls._args_schema + + def _execute_operations(self): + yield self.SecurityPartnerProvidersCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SecurityPartnerProvidersCreateOrUpdate(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 [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", + **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( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "securityPartnerProviderName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **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("location", AAZStrType, ".location") + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("securityProviderName", AAZStrType, ".provider") + properties.set_prop("virtualHub", AAZObjectType) + + virtual_hub = _builder.get(".properties.virtualHub") + if virtual_hub is not None: + virtual_hub.set_prop("id", AAZStrType, ".vhub") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + 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( + flags={"read_only": True}, + ) + _schema_on_200_201.id = AAZStrType() + _schema_on_200_201.location = AAZStrType() + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.tags = AAZDictType() + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.connection_status = AAZStrType( + serialized_name="connectionStatus", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.security_provider_name = AAZStrType( + serialized_name="securityProviderName", + ) + properties.virtual_hub = AAZObjectType( + serialized_name="virtualHub", + ) + + virtual_hub = cls._schema_on_200_201.properties.virtual_hub + virtual_hub.id = AAZStrType() + + tags = cls._schema_on_200_201.tags + tags.Element = AAZStrType() + + return cls._schema_on_200_201 + + +__all__ = ["Create"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py new file mode 100644 index 00000000000..9840b7cc2fe --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py @@ -0,0 +1,147 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "network security-partner-provider delete", + is_preview=True, + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a Azure security partner provider. + """ + + _aaz_info = { + "version": "2021-08-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/securitypartnerproviders/{}", "2021-08-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, 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.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the Security Partner Provider.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + yield self.SecurityPartnerProvidersDelete(ctx=self.ctx)() + + class SecurityPartnerProvidersDelete(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 [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [204]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_204, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", + **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( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "securityPartnerProviderName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-01", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py new file mode 100644 index 00000000000..feb4d32eda2 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py @@ -0,0 +1,310 @@ +# -------------------------------------------------------------------------------------------- +# 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 security-partner-provider list", + is_preview=True, +) +class List(AAZCommand): + """List all Azure security partner provider. + """ + + _aaz_info = { + "version": "2021-08-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/securitypartnerproviders", "2021-08-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/securitypartnerproviders", "2021-08-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() + return cls._args_schema + + def _execute_operations(self): + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + if condition_0: + self.SecurityPartnerProvidersListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.SecurityPartnerProvidersList(ctx=self.ctx)() + + 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 SecurityPartnerProvidersListByResourceGroup(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/securityPartnerProviders", + **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, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-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", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.etag = AAZStrType( + flags={"read_only": True}, + ) + _element.id = AAZStrType() + _element.location = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.connection_status = AAZStrType( + serialized_name="connectionStatus", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.security_provider_name = AAZStrType( + serialized_name="securityProviderName", + ) + properties.virtual_hub = AAZObjectType( + serialized_name="virtualHub", + ) + + virtual_hub = cls._schema_on_200.value.Element.properties.virtual_hub + virtual_hub.id = AAZStrType() + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + class SecurityPartnerProvidersList(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}/providers/Microsoft.Network/securityPartnerProviders", + **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( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-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", + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.etag = AAZStrType( + flags={"read_only": True}, + ) + _element.id = AAZStrType() + _element.location = AAZStrType() + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.connection_status = AAZStrType( + serialized_name="connectionStatus", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.security_provider_name = AAZStrType( + serialized_name="securityProviderName", + ) + properties.virtual_hub = AAZObjectType( + serialized_name="virtualHub", + ) + + virtual_hub = cls._schema_on_200.value.Element.properties.virtual_hub + virtual_hub.id = AAZStrType() + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py new file mode 100644 index 00000000000..24a0016da7a --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py @@ -0,0 +1,185 @@ +# -------------------------------------------------------------------------------------------- +# 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 security-partner-provider show", + is_preview=True, +) +class Show(AAZCommand): + """Show a Azure security partner provider. + """ + + _aaz_info = { + "version": "2021-08-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/securitypartnerproviders/{}", "2021-08-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.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the Security Partner Provider.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.SecurityPartnerProvidersGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SecurityPartnerProvidersGet(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/securityPartnerProviders/{securityPartnerProviderName}", + **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( + "securityPartnerProviderName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-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( + flags={"read_only": True}, + ) + _schema_on_200.id = AAZStrType() + _schema_on_200.location = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.connection_status = AAZStrType( + serialized_name="connectionStatus", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.security_provider_name = AAZStrType( + serialized_name="securityProviderName", + ) + properties.virtual_hub = AAZObjectType( + serialized_name="virtualHub", + ) + + virtual_hub = cls._schema_on_200.properties.virtual_hub + virtual_hub.id = AAZStrType() + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py new file mode 100644 index 00000000000..f540a9dc579 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py @@ -0,0 +1,397 @@ +# -------------------------------------------------------------------------------------------- +# 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 security-partner-provider update", + is_preview=True, +) +class Update(AAZCommand): + """Update a Azure security partner provider. + """ + + _aaz_info = { + "version": "2021-08-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/securitypartnerproviders/{}", "2021-08-01"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(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.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the Security Partner Provider.", + required=True, + id_part="name", + ) + _args_schema.location = AAZResourceLocationArg( + help="Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`.", + nullable=True, + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.provider = AAZStrArg( + options=["--provider"], + help="The security provider name. Allowed values: Checkpoint, IBoss, ZScaler.", + nullable=True, + enum={"Checkpoint": "Checkpoint", "IBoss": "IBoss", "ZScaler": "ZScaler"}, + ) + _args_schema.vhub = AAZStrArg( + options=["--vhub"], + help="Name or ID of the virtual hub to which the Security Partner Provider belongs.", + nullable=True, + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + help="Space-separated tags: key[=value] [key[=value] ...]. Use \"\" to clear existing tags.", + nullable=True, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg( + nullable=True, + ) + + # define Arg Group "Parameters" + return cls._args_schema + + def _execute_operations(self): + self.SecurityPartnerProvidersGet(ctx=self.ctx)() + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + yield self.SecurityPartnerProvidersCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class SecurityPartnerProvidersGet(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/securityPartnerProviders/{securityPartnerProviderName}", + **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( + "securityPartnerProviderName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-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() + _build_schema_security_partner_provider_read(cls._schema_on_200) + + return cls._schema_on_200 + + class SecurityPartnerProvidersCreateOrUpdate(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 [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200, 201]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200_201, + self.on_error, + lro_options={"final-state-via": "azure-async-operation"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}", + **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( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "securityPartnerProviderName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **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() + _build_schema_security_partner_provider_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("location", AAZStrType, ".location") + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("securityProviderName", AAZStrType, ".provider") + properties.set_prop("virtualHub", AAZObjectType) + + virtual_hub = _builder.get(".properties.virtualHub") + if virtual_hub is not None: + virtual_hub.set_prop("id", AAZStrType, ".vhub") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + 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 + ) + + +_schema_security_partner_provider_read = None + + +def _build_schema_security_partner_provider_read(_schema): + global _schema_security_partner_provider_read + if _schema_security_partner_provider_read is not None: + _schema.etag = _schema_security_partner_provider_read.etag + _schema.id = _schema_security_partner_provider_read.id + _schema.location = _schema_security_partner_provider_read.location + _schema.name = _schema_security_partner_provider_read.name + _schema.properties = _schema_security_partner_provider_read.properties + _schema.tags = _schema_security_partner_provider_read.tags + _schema.type = _schema_security_partner_provider_read.type + return + + _schema_security_partner_provider_read = AAZObjectType() + + security_partner_provider_read = _schema_security_partner_provider_read + security_partner_provider_read.etag = AAZStrType( + flags={"read_only": True}, + ) + security_partner_provider_read.id = AAZStrType() + security_partner_provider_read.location = AAZStrType() + security_partner_provider_read.name = AAZStrType( + flags={"read_only": True}, + ) + security_partner_provider_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + security_partner_provider_read.tags = AAZDictType() + security_partner_provider_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_security_partner_provider_read.properties + properties.connection_status = AAZStrType( + serialized_name="connectionStatus", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.security_provider_name = AAZStrType( + serialized_name="securityProviderName", + ) + properties.virtual_hub = AAZObjectType( + serialized_name="virtualHub", + ) + + virtual_hub = _schema_security_partner_provider_read.properties.virtual_hub + virtual_hub.id = AAZStrType() + + tags = _schema_security_partner_provider_read.tags + tags.Element = AAZStrType() + + _schema.etag = _schema_security_partner_provider_read.etag + _schema.id = _schema_security_partner_provider_read.id + _schema.location = _schema_security_partner_provider_read.location + _schema.name = _schema_security_partner_provider_read.name + _schema.properties = _schema_security_partner_provider_read.properties + _schema.tags = _schema_security_partner_provider_read.tags + _schema.type = _schema_security_partner_provider_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 7de7e3ef530..5d3b6ce5b37 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -1549,10 +1549,10 @@ def _make_singular(value): # region Security Partner Provider with self.command_group('network security-partner-provider', network_security_partner_provider_sdk, is_preview=True) as g: g.custom_command('create', 'create_security_partner_provider') - g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_security_partner_provider') - g.show_command('show', 'get') - g.custom_command('list', 'list_security_partner_provider') - g.command('delete', 'begin_delete') + # g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_security_partner_provider') + # g.show_command('show', 'get') + # g.custom_command('list', 'list_security_partner_provider') + # g.command('delete', 'begin_delete') # endregion # region PrivateLinkResource and PrivateEndpointConnection diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml index 58b08285451..dec21c40072 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -n -g --type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_security_partner_provider_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-01T09:25:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-11T06:42:26Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '310' + - '360' content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:25:44 GMT + - Mon, 11 Jul 2022 06:42:31 GMT expires: - '-1' pragma: @@ -59,13 +59,13 @@ interactions: ParameterSetName: - -n -g --type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualWans/clitestvwan?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan?api-version=2021-08-01 response: body: - string: "{\r\n \"name\": \"clitestvwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualWans/clitestvwan\",\r\n - \ \"etag\": \"W/\\\"70eb959e-6e69-47f1-83e3-c8a55350140e\\\"\",\r\n \"type\": + string: "{\r\n \"name\": \"clitestvwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan\",\r\n + \ \"etag\": \"W/\\\"8a612095-9852-4afc-9dfe-a344a6a243ec\\\"\",\r\n \"type\": \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"disableVpnEncryption\": false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": @@ -74,15 +74,15 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/36badf53-46fa-45ec-8a6b-a2c070838cb4?api-version=2021-08-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/96cea5b1-0d4c-4197-a607-5e04141fbd01?api-version=2021-08-01 cache-control: - no-cache content-length: - - '514' + - '539' content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:25:52 GMT + - Mon, 11 Jul 2022 06:42:37 GMT expires: - '-1' pragma: @@ -95,7 +95,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - aa71c6df-e942-48f0-92b1-db84778853c1 + - 992a30c0-3c4b-4b5c-af00-3f7c64ae4d42 x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -115,9 +115,9 @@ interactions: ParameterSetName: - -n -g --type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/36badf53-46fa-45ec-8a6b-a2c070838cb4?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/96cea5b1-0d4c-4197-a607-5e04141fbd01?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -129,7 +129,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:26:03 GMT + - Mon, 11 Jul 2022 06:42:47 GMT expires: - '-1' pragma: @@ -146,7 +146,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1fab8409-245e-4449-a583-47dccb799210 + - 6f9a9468-a0d9-4f1a-993a-89e87722680a status: code: 200 message: OK @@ -164,13 +164,13 @@ interactions: ParameterSetName: - -n -g --type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualWans/clitestvwan?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan?api-version=2021-08-01 response: body: - string: "{\r\n \"name\": \"clitestvwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualWans/clitestvwan\",\r\n - \ \"etag\": \"W/\\\"68fd252f-126a-4db6-97d7-607596ff2012\\\"\",\r\n \"type\": + string: "{\r\n \"name\": \"clitestvwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan\",\r\n + \ \"etag\": \"W/\\\"05e55069-0eeb-429b-911f-fd7086256c92\\\"\",\r\n \"type\": \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"disableVpnEncryption\": false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": @@ -179,13 +179,13 @@ interactions: cache-control: - no-cache content-length: - - '515' + - '540' content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:26:04 GMT + - Mon, 11 Jul 2022 06:42:48 GMT etag: - - W/"68fd252f-126a-4db6-97d7-607596ff2012" + - W/"05e55069-0eeb-429b-911f-fd7086256c92" expires: - '-1' pragma: @@ -202,82 +202,15 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9c62730f-1b3d-4a77-90ff-22400e6b237f + - c69750a4-b09a-49d3-aaf7-621803b1f4a4 status: code: 200 message: OK -- request: - body: '{"location": "westus", "properties": {"virtualWan": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualWans/clitestvwan"}, - "addressPrefix": "10.5.0.0/16", "sku": "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vhub create - Connection: - - keep-alive - Content-Length: - - '250' - Content-Type: - - application/json - ParameterSetName: - - -g -n --vwan --address-prefix -l --sku - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"clitestvhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\",\r\n - \ \"etag\": \"W/\\\"37979327-99b0-4c89-9405-a4fad571f1a4\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": - [],\r\n \"addressPrefix\": \"10.5.0.0/16\",\r\n \"virtualRouterAsn\": - 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": - []\r\n },\r\n \"virtualRouterAutoScaleConfiguration\": {\r\n \"minCapacity\": - 2\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualWans/clitestvwan\"\r\n - \ },\r\n \"networkVirtualAppliances\": [],\r\n \"sku\": \"Standard\",\r\n - \ \"routingState\": \"None\",\r\n \"allowBranchToBranchTraffic\": false,\r\n - \ \"preferredRoutingGateway\": \"ExpressRoute\",\r\n \"hubRoutingPreference\": - \"ExpressRoute\"\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7e8c8189-9bbe-4a1e-a583-f647ebb55a1c?api-version=2021-08-01 - cache-control: - - no-cache - content-length: - - '1027' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:31:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 266d829d-57e6-4a55-a3b0-24f2e989ca85 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: @@ -285,235 +218,85 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --vwan --address-prefix -l --sku + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7e8c8189-9bbe-4a1e-a583-f647ebb55a1c?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_security_partner_provider_000001?api-version=2021-04-01 response: body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-11T06:42:26Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '29' + - '360' content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:31:42 GMT + - Mon, 11 Jul 2022 06:42:48 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff - x-ms-arm-service-request-id: - - 59ab7e29-bd95-4dd7-848e-98872615a446 status: code: 200 message: OK - request: - body: null + body: '{"location": "westus", "properties": {"virtualWan": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan"}, + "addressPrefix": "10.5.0.0/16", "sku": "Standard"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - network vhub create Connection: - keep-alive + Content-Length: + - '275' + Content-Type: + - application/json ParameterSetName: - - -g -n --vwan --address-prefix -l --sku + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub?api-version=2021-08-01 + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub?api-version=2021-08-01 response: body: - string: "{\r\n \"name\": \"clitestvhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\",\r\n - \ \"etag\": \"W/\\\"8e8da5ff-439f-4578-afed-89604b3f3104\\\"\",\r\n \"type\": + string: "{\r\n \"name\": \"clitestvhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\",\r\n + \ \"etag\": \"W/\\\"df14e87d-9123-4674-8664-e87a630f40e2\\\"\",\r\n \"type\": \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": [],\r\n \"addressPrefix\": \"10.5.0.0/16\",\r\n \"virtualRouterAsn\": - 0,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + 65515,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": []\r\n },\r\n \"virtualRouterAutoScaleConfiguration\": {\r\n \"minCapacity\": - 2\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualWans/clitestvwan\"\r\n + 2\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan\"\r\n \ },\r\n \"networkVirtualAppliances\": [],\r\n \"sku\": \"Standard\",\r\n - \ \"routingState\": \"Provisioning\",\r\n \"allowBranchToBranchTraffic\": - false,\r\n \"preferredRoutingGateway\": \"ExpressRoute\",\r\n \"hubRoutingPreference\": + \ \"routingState\": \"None\",\r\n \"allowBranchToBranchTraffic\": false,\r\n + \ \"preferredRoutingGateway\": \"ExpressRoute\",\r\n \"hubRoutingPreference\": \"ExpressRoute\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1036' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:31:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 0cfc1f43-9fd0-4698-afbc-a481e45c2816 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-01T09:25:39Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '310' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:31:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/vpnGateways/cligateway?api-version=2021-08-01 - response: - body: - string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/vpnGateways/cligateway'' - under resource group ''clitest.rg000001'' was not found. For more details - please go to https://aka.ms/ARMResourceNotFoundFix"}}' - headers: - cache-control: - - no-cache - content-length: - - '228' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:31:45 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-failure-cause: - - gateway - status: - code: 404 - message: Not Found -- request: - body: '{"location": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub"}, - "bgpSettings": {}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - Content-Length: - - '218' - Content-Type: - - application/json - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/vpnGateways/cligateway?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"cligateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/vpnGateways/cligateway\",\r\n - \ \"etag\": \"W/\\\"7decc332-f665-4548-ad88-d0abf5c38fa2\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [],\r\n - \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": - 0\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": - \"None\",\r\n \"ipConfigurations\": [],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": - false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 cache-control: - no-cache content-length: - - '857' + - '1081' content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:31:50 GMT + - Mon, 11 Jul 2022 06:42:55 GMT expires: - '-1' pragma: @@ -526,7 +309,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f53c6390-6034-4cb8-8630-26908559c0d7 + - 6a7f4968-9b26-45f0-9626-275a59e922b5 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -540,64 +323,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:32:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 30265aa9-864f-4579-8ede-e4163678687e - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create + - network vhub create Connection: - keep-alive ParameterSetName: - - -g -n --vhub + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -609,7 +343,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:32:12 GMT + - Mon, 11 Jul 2022 06:43:05 GMT expires: - '-1' pragma: @@ -626,7 +360,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9a52f24f-b7e9-4071-a47e-62eb72e15147 + - 5a2d9ed3-d291-498a-8a75-2f790a2bbb6c status: code: 200 message: OK @@ -638,15 +372,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway create + - network vhub create Connection: - keep-alive ParameterSetName: - - -g -n --vhub + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -658,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:32:32 GMT + - Mon, 11 Jul 2022 06:43:15 GMT expires: - '-1' pragma: @@ -675,7 +409,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 59febc65-2767-4ca9-98e0-3a4486928cb0 + - 38ca8fa9-c8b1-411f-9321-cea67aca3349 status: code: 200 message: OK @@ -687,15 +421,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway create + - network vhub create Connection: - keep-alive ParameterSetName: - - -g -n --vhub + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -707,7 +441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:32:53 GMT + - Mon, 11 Jul 2022 06:43:36 GMT expires: - '-1' pragma: @@ -724,7 +458,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c18c863d-ae60-46be-94cb-ce45e786ce87 + - 469715ab-2845-49e2-8314-b96df62fd83e status: code: 200 message: OK @@ -736,15 +470,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway create + - network vhub create Connection: - keep-alive ParameterSetName: - - -g -n --vhub + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -756,7 +490,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:33:33 GMT + - Mon, 11 Jul 2022 06:43:57 GMT expires: - '-1' pragma: @@ -773,7 +507,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0212c8c4-a98c-4830-8d4b-85175f7daa84 + - 4e10c98c-1a1b-4a0f-82be-b42e196aca9b status: code: 200 message: OK @@ -785,15 +519,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway create + - network vhub create Connection: - keep-alive ParameterSetName: - - -g -n --vhub + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -805,7 +539,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:34:14 GMT + - Mon, 11 Jul 2022 06:44:36 GMT expires: - '-1' pragma: @@ -822,7 +556,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b5684227-ea7a-4fe9-a5af-89c62b0e67bf + - a28c256d-112a-4747-92a8-178b9a2ef51f status: code: 200 message: OK @@ -834,15 +568,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network vpn-gateway create + - network vhub create Connection: - keep-alive ParameterSetName: - - -g -n --vhub + - -g -n --vwan --address-prefix --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -854,7 +588,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 01 Jun 2022 09:35:34 GMT + - Mon, 11 Jul 2022 06:45:17 GMT expires: - '-1' pragma: @@ -871,1416 +605,8 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3215a36e-8961-4c06-ac48-dca210346bd2 + - edbe82e0-ceda-470a-ad79-d9f69a8f6f78 status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:38:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - b80c6cb1-e369-4377-8752-d96d4234ca15 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:40:00 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 0c3c2254-43b0-49a9-8543-d1f5ffad1355 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:41:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 5eb3e57c-5862-4269-9bc4-546613d4dde7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:43:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 530bddeb-aecb-4408-96e9-494e88b216bc - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:45:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - dce41e7c-a362-41c1-8364-e05d22d1f8cd - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:46:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 6b56240a-f812-4417-9a3c-879317182cfb - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:48:32 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - ecc20f19-65ad-437f-99b3-aaeefa3db8ab - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:50:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 62ad1be4-ab27-471b-b45b-9f5da050e3ad - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:51:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - a9fa7670-7948-4086-a438-b009a5cb31a4 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:53:35 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 829cd630-5ea2-4e50-8d53-64ad3ccabc32 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 09:55:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 2aa5b116-7712-49b4-8466-faff6148c169 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:02:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 287f898e-23f7-494b-aecd-5fdab15a9766 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d021031a-4a46-4ac3-960f-071e913be801?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:03:51 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - abf1e8ff-023b-46af-99a8-2826b85ddd4b - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network vpn-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --vhub - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/vpnGateways/cligateway?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"cligateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/vpnGateways/cligateway\",\r\n - \ \"etag\": \"W/\\\"49740124-f18e-441d-b6dc-908604de909c\\\"\",\r\n \"type\": - \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [],\r\n - \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": - 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": - \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.5.0.12\"\r\n - \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": - [\r\n \"20.253.221.148\",\r\n \"10.5.0.4\"\r\n ]\r\n - \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n - \ \"defaultBgpIpAddresses\": [\r\n \"10.5.0.13\"\r\n ],\r\n - \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": - [\r\n \"20.253.223.157\",\r\n \"10.5.0.5\"\r\n ]\r\n - \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": - \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n - \ \"publicIpAddress\": \"20.253.221.148\",\r\n \"privateIpAddress\": - \"10.5.0.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n - \ \"publicIpAddress\": \"20.253.223.157\",\r\n \"privateIpAddress\": - \"10.5.0.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": - false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1742' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:03:51 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - c8743fe8-b874-43ab-bdee-9758fa79b1c2 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider create - Connection: - - keep-alive - ParameterSetName: - - -n -g --vhub --provider - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-01T09:25:39Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '310' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:03:57 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "westus", "properties": {"securityProviderName": "Checkpoint", - "virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider create - Connection: - - keep-alive - Content-Length: - - '237' - Content-Type: - - application/json - ParameterSetName: - - -n -g --vhub --provider - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"d1820d7b-5810-4ed2-9821-2e0c93f59cba\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"securityProviderName\": - \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f877ca88-f752-481c-b377-efd5beb84fb0?api-version=2021-08-01 - cache-control: - - no-cache - content-length: - - '644' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 71e0f8e4-14a3-4ce2-8095-6abf4a7814ad - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider create - Connection: - - keep-alive - ParameterSetName: - - -n -g --vhub --provider - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f877ca88-f752-481c-b377-efd5beb84fb0?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 73a83b53-8c84-487b-980b-cf8a80f32513 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider create - Connection: - - keep-alive - ParameterSetName: - - -n -g --vhub --provider - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"0670420a-35d7-45dd-8814-2c8f6ae21424\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": - \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '645' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - f622d2b2-a8b4-49d0-812e-a6578dc38838 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider show - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"3ece1508-14c7-47e5-8ff8-98cb817c5e34\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": - \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '645' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:28 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 754ccc9f-860f-400c-b9d3-3018dc1ae54c - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider update - Connection: - - keep-alive - ParameterSetName: - - -n -g --tag - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"e64afefc-9597-44f3-9213-1f3af69d2e20\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": - \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '645' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 664043b9-3176-416b-835e-73248e5073f1 - status: - code: 200 - message: OK -- request: - body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider", - "location": "westus", "tags": {"a": "b"}, "properties": {"securityProviderName": - "Checkpoint", "virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider update - Connection: - - keep-alive - Content-Length: - - '430' - Content-Type: - - application/json - ParameterSetName: - - -n -g --tag - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"5877c81f-7c93-4399-9c33-4ffd35fb7a08\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": - \"Updating\",\r\n \"securityProviderName\": \"Checkpoint\",\r\n \"virtualHub\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5e1acfd0-c74e-49e7-aef2-df3edadac2a4?api-version=2021-08-01 - cache-control: - - no-cache - content-length: - - '677' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:39 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 831b375e-c7e4-48c5-8ed2-43068a005a3a - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider update - Connection: - - keep-alive - ParameterSetName: - - -n -g --tag - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5e1acfd0-c74e-49e7-aef2-df3edadac2a4?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - f1b9cb29-d34d-4338-998d-e16f2cdd30eb - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider update - Connection: - - keep-alive - ParameterSetName: - - -n -g --tag - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 - response: - body: - string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"5105840a-f0d4-4535-89dd-a7a64e24ddda\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"securityProviderName\": \"Checkpoint\",\r\n \"virtualHub\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '678' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - f1f4e49c-1d33-46b5-8152-dda616ae4e24 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders?api-version=2021-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"clisecuritypartnerprovider\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"d3ee5cbb-8465-48eb-9dcf-84ae176fb1ed\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": - \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '771' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - e5ddbee1-50a8-4121-888c-9b0fc7f7f421 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider list - Connection: - - keep-alive - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/securityPartnerProviders?api-version=2021-08-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"clisecuritypartnerprovider\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n - \ \"etag\": \"W/\\\"f0fca1fb-af9d-472e-a8ba-b111546a386c\\\"\",\r\n \"type\": - \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": - \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n - \ }\r\n }\r\n }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '771' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:04:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 3e01770b-1e6a-469c-b7bd-dcf63627c0fe - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 - response: - body: - string: '' - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57aaeca2-ce46-4703-b12d-3be71d7a72bc?api-version=2021-08-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 01 Jun 2022 10:05:00 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/57aaeca2-ce46-4703-b12d-3be71d7a72bc?api-version=2021-08-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 47ad3593-e9c0-49fa-a995-1a44b7164472 - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider delete - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57aaeca2-ce46-4703-b12d-3be71d7a72bc?api-version=2021-08-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:05:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 4c17cf20-4c32-4327-bdb9-51151c05e0a9 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - network security-partner-provider delete - Connection: - - keep-alive - ParameterSetName: - - -n -g - User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/57aaeca2-ce46-4703-b12d-3be71d7a72bc?api-version=2021-08-01 - response: - body: - string: '' - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57aaeca2-ce46-4703-b12d-3be71d7a72bc?api-version=2021-08-01 - cache-control: - - no-cache - content-type: - - application/json; charset=utf-8 - date: - - Wed, 01 Jun 2022 10:05:12 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/57aaeca2-ce46-4703-b12d-3be71d7a72bc?api-version=2021-08-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 47ad3593-e9c0-49fa-a995-1a44b7164472 - status: - code: 204 - message: No Content version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py index d29d146992e..3837cf2305d 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py @@ -5893,19 +5893,18 @@ def __init__(self, method_name, config_file=None, recording_dir=None, recording_ super(NetworkSecurityPartnerProviderScenarioTest, self).__init__(method_name) self.cmd('extension add -n virtual-wan') - @ResourceGroupPreparer() + @ResourceGroupPreparer(name_prefix='cli_test_security_partner_provider_', location='westus') @AllowLargeResponse() - def test_network_security_partner_provider(self, resource_group): + def test_network_security_partner_provider(self): self.kwargs.update({ 'vwan': 'clitestvwan', 'vhub': 'clitestvhub', 'gateway': 'cligateway', - 'name': 'clisecuritypartnerprovider', - 'rg': resource_group + 'name': 'clisecuritypartnerprovider' }) self.cmd('network vwan create -n {vwan} -g {rg} --type Standard') - self.cmd('network vhub create -g {rg} -n {vhub} --vwan {vwan} --address-prefix 10.5.0.0/16 -l westus --sku Standard') + self.cmd('network vhub create -g {rg} -n {vhub} --vwan {vwan} --address-prefix 10.5.0.0/16 --sku Standard') self.cmd('network vpn-gateway create -g {rg} -n {gateway} --vhub {vhub}') self.cmd('network security-partner-provider create -n {name} -g {rg} --vhub {vhub} --provider Checkpoint', checks=[ From 6c8c2dca4d1e9743c24cbd88a26ad9460d506ac5 Mon Sep 17 00:00:00 2001 From: necusjz Date: Mon, 18 Jul 2022 15:52:30 +0800 Subject: [PATCH 2/7] add wait command --- .../security_partner_provider/__init__.py | 1 + .../security_partner_provider/_create.py | 5 +- .../security_partner_provider/_update.py | 6 +- .../security_partner_provider/_wait.py | 183 ++++++++++++++++++ .../cli/command_modules/network/commands.py | 12 +- 5 files changed, 198 insertions(+), 9 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_wait.py diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py index c401f439385..db73033039b 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/__init__.py @@ -14,3 +14,4 @@ from ._list import * from ._show import * from ._update import * +from ._wait import * diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py index e39f48eec47..13082b14a84 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py @@ -63,9 +63,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The security provider name. Allowed values: Checkpoint, IBoss, ZScaler.", enum={"Checkpoint": "Checkpoint", "IBoss": "IBoss", "ZScaler": "ZScaler"}, ) - _args_schema.vhub = AAZStrArg( + _args_schema.vhub = AAZResourceIdArg( options=["--vhub"], help="Name or ID of the virtual hub to which the Security Partner Provider belongs.", + fmt=AAZResourceIdArgFormat( + template="/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Network/virtualHubs/{}", + ) ) _args_schema.tags = AAZDictArg( options=["--tags"], diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py index f540a9dc579..709e8b9702e 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py @@ -67,10 +67,12 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, enum={"Checkpoint": "Checkpoint", "IBoss": "IBoss", "ZScaler": "ZScaler"}, ) - _args_schema.vhub = AAZStrArg( + _args_schema.vhub = AAZResourceIdArg( options=["--vhub"], help="Name or ID of the virtual hub to which the Security Partner Provider belongs.", - nullable=True, + fmt=AAZResourceIdArgFormat( + template="/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Network/virtualHubs/{}", + ) ) _args_schema.tags = AAZDictArg( options=["--tags"], diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_wait.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_wait.py new file mode 100644 index 00000000000..6b806cc348f --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_wait.py @@ -0,0 +1,183 @@ +# -------------------------------------------------------------------------------------------- +# 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 security-partner-provider wait", +) +class Wait(AAZWaitCommand): + """Place the CLI in a waiting state until a condition is met. + """ + + _aaz_info = { + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/securitypartnerproviders/{}", "2021-08-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.resource_group = AAZResourceGroupNameArg( + required=True, + ) + _args_schema.name = AAZStrArg( + options=["-n", "--name"], + help="Name of the Security Partner Provider.", + required=True, + id_part="name", + ) + return cls._args_schema + + def _execute_operations(self): + self.SecurityPartnerProvidersGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=False) + return result + + class SecurityPartnerProvidersGet(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/securityPartnerProviders/{securityPartnerProviderName}", + **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( + "securityPartnerProviderName", self.ctx.args.name, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2021-08-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( + flags={"read_only": True}, + ) + _schema_on_200.id = AAZStrType() + _schema_on_200.location = AAZStrType() + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.connection_status = AAZStrType( + serialized_name="connectionStatus", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.security_provider_name = AAZStrType( + serialized_name="securityProviderName", + ) + properties.virtual_hub = AAZObjectType( + serialized_name="virtualHub", + ) + + virtual_hub = cls._schema_on_200.properties.virtual_hub + virtual_hub.id = AAZStrType() + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Wait"] 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 5d3b6ce5b37..147baff3b01 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -1547,12 +1547,12 @@ def _make_singular(value): # endregion # region Security Partner Provider - with self.command_group('network security-partner-provider', network_security_partner_provider_sdk, is_preview=True) as g: - g.custom_command('create', 'create_security_partner_provider') - # g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_security_partner_provider') - # g.show_command('show', 'get') - # g.custom_command('list', 'list_security_partner_provider') - # g.command('delete', 'begin_delete') + # with self.command_group('network security-partner-provider', network_security_partner_provider_sdk, is_preview=True) as g: + # # g.custom_command('create', 'create_security_partner_provider') + # g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_security_partner_provider') + # g.show_command('show', 'get') + # g.custom_command('list', 'list_security_partner_provider') + # g.command('delete', 'begin_delete') # endregion # region PrivateLinkResource and PrivateEndpointConnection From c544f2624581b129ed237a3cfe0f9b9f90891430 Mon Sep 17 00:00:00 2001 From: necusjz Date: Mon, 18 Jul 2022 16:36:46 +0800 Subject: [PATCH 3/7] remove useless code blocks --- .../network/_client_factory.py | 4 --- .../cli/command_modules/network/_params.py | 8 ----- .../security_partner_provider/_delete.py | 1 - .../cli/command_modules/network/commands.py | 6 ---- .../cli/command_modules/network/custom.py | 31 ------------------- 5 files changed, 50 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/_client_factory.py b/src/azure-cli/azure/cli/command_modules/network/_client_factory.py index ab2815183b3..e1f54e4abe0 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/network/_client_factory.py @@ -272,10 +272,6 @@ def cf_bastion_hosts(cli_ctx, _): return network_client_factory(cli_ctx).bastion_hosts -def cf_security_partner_providers(cli_ctx, _): - return network_client_factory(cli_ctx).security_partner_providers - - def cf_network_virtual_appliances(cli_ctx, _): return network_client_factory(cli_ctx).network_virtual_appliances 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 018ad07cdbd..83279971584 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_params.py +++ b/src/azure-cli/azure/cli/command_modules/network/_params.py @@ -2270,14 +2270,6 @@ def load_arguments(self, _): c.argument('timeout', help='Timeout for connection to bastion host tunnel.', options_list=['--timeout']) # endregion - # region security partner provider - with self.argument_context('network security-partner-provider') as c: - SecurityProviderName = self.get_models('SecurityProviderName') - c.argument('security_provider_name', arg_type=get_enum_type(SecurityProviderName), help='The security provider name', options_list=['--provider']) - c.argument('security_partner_provider_name', options_list=['--name', '-n'], help='Name of the Security Partner Provider.') - c.argument('virtual_hub', options_list=['--vhub'], help='Name or ID of the virtual hub to which the Security Partner Provider belongs.', validator=validate_virtual_hub) - # endregion - # region PrivateLinkResource and PrivateEndpointConnection from azure.cli.command_modules.network.private_link_resource_and_endpoint_connections.custom import TYPE_CLIENT_MAPPING, register_providers register_providers() diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py index 9840b7cc2fe..a0b67dc16a0 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py @@ -14,7 +14,6 @@ @register_command( "network security-partner-provider delete", is_preview=True, - confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): """Delete a Azure security partner provider. 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 147baff3b01..904a0a61f5d 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -420,12 +420,6 @@ def load_command_table(self, _): min_api='2019-11-01' ) - network_security_partner_provider_sdk = CliCommandType( - operations_tmpl='azure.mgmt.network.operations#SecurityPartnerProvidersOperations.{}', - client_factory=cf_security_partner_providers, - min_api='2020-03-01' - ) - network_virtual_appliances_sdk = CliCommandType( operations_tmpl='azure.mgmt.network.operations#NetworkVirtualAppliancesOperations.{}', client_factory=cf_network_virtual_appliances, 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 af84d754c2b..0a9f7683758 100644 --- a/src/azure-cli/azure/cli/command_modules/network/custom.py +++ b/src/azure-cli/azure/cli/command_modules/network/custom.py @@ -8554,37 +8554,6 @@ def _start_tunnel(tunnel_server): # endregion -# region security partner provider -def create_security_partner_provider(cmd, resource_group_name, security_partner_provider_name, - security_provider_name, virtual_hub, location=None, tags=None): - client = network_client_factory(cmd.cli_ctx).security_partner_providers - SecurityPartnerProvider, SubResource = cmd.get_models('SecurityPartnerProvider', 'SubResource') - - security_partner_provider = SecurityPartnerProvider(security_provider_name=security_provider_name, - virtual_hub=SubResource(id=virtual_hub), - location=location, - tags=tags) - return client.begin_create_or_update(resource_group_name=resource_group_name, - security_partner_provider_name=security_partner_provider_name, - parameters=security_partner_provider) - - -def update_security_partner_provider(instance, cmd, security_provider_name=None, virtual_hub=None, tags=None): - with cmd.update_context(instance) as c: - c.set_param('security_provider_name', security_provider_name) - c.set_param('virtual_hub', virtual_hub) - c.set_param('tags', tags) - return instance - - -def list_security_partner_provider(cmd, resource_group_name=None): - client = network_client_factory(cmd.cli_ctx).security_partner_providers - if resource_group_name is not None: - return client.list_by_resource_group(resource_group_name=resource_group_name) - return client.list() -# endregion - - # region network gateway connection def reset_shared_key(cmd, client, virtual_network_gateway_connection_name, key_length, resource_group_name=None): ConnectionResetSharedKey = cmd.get_models('ConnectionResetSharedKey') From ac9defa85d35a93b6f99575346967cca519452fa Mon Sep 17 00:00:00 2001 From: necusjz Date: Tue, 19 Jul 2022 10:10:17 +0800 Subject: [PATCH 4/7] re-record test cases --- .../cli/command_modules/network/commands.py | 2 +- ...est_network_security_partner_provider.yaml | 2351 ++++++++++++++++- 2 files changed, 2314 insertions(+), 39 deletions(-) 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 904a0a61f5d..613471070b3 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -28,7 +28,7 @@ cf_express_route_ports, cf_express_route_port_locations, cf_express_route_links, cf_app_gateway_waf_policy, cf_service_tags, cf_private_link_services, cf_private_endpoint_types, cf_peer_express_route_circuit_connections, cf_virtual_router, cf_virtual_router_peering, cf_service_aliases, cf_bastion_hosts, cf_flow_logs, - cf_private_dns_zone_groups, cf_security_partner_providers, cf_load_balancer_backend_pools, + cf_private_dns_zone_groups, cf_load_balancer_backend_pools, cf_network_virtual_appliances, cf_virtual_appliance_skus, cf_virtual_appliance_sites, cf_virtual_hub, cf_virtual_hub_bgp_connection, cf_virtual_hub_bgp_connections, cf_custom_ip_prefixes) from azure.cli.command_modules.network._util import ( diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml index dec21c40072..ec896b8f290 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_security_partner_provider.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_security_partner_provider_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-11T06:42:26Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-18T08:46:04Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:42:31 GMT + - Mon, 18 Jul 2022 08:46:08 GMT expires: - '-1' pragma: @@ -65,7 +65,7 @@ interactions: response: body: string: "{\r\n \"name\": \"clitestvwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan\",\r\n - \ \"etag\": \"W/\\\"8a612095-9852-4afc-9dfe-a344a6a243ec\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"32e7b6a1-e339-45a7-a0fd-b201ee13949a\\\"\",\r\n \"type\": \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"disableVpnEncryption\": false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": @@ -74,7 +74,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/96cea5b1-0d4c-4197-a607-5e04141fbd01?api-version=2021-08-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d3f693a7-a872-4253-81cc-6579f8aecda3?api-version=2021-08-01 cache-control: - no-cache content-length: @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:42:37 GMT + - Mon, 18 Jul 2022 08:46:14 GMT expires: - '-1' pragma: @@ -95,9 +95,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 992a30c0-3c4b-4b5c-af00-3f7c64ae4d42 + - 7942d06e-2c62-432b-9706-a1cdf3e58839 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -117,7 +117,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/96cea5b1-0d4c-4197-a607-5e04141fbd01?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d3f693a7-a872-4253-81cc-6579f8aecda3?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -129,7 +129,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:42:47 GMT + - Mon, 18 Jul 2022 08:46:25 GMT expires: - '-1' pragma: @@ -146,7 +146,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6f9a9468-a0d9-4f1a-993a-89e87722680a + - 11bfe891-44eb-4c1d-b50b-917a2f4196f2 status: code: 200 message: OK @@ -170,7 +170,7 @@ interactions: response: body: string: "{\r\n \"name\": \"clitestvwan\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan\",\r\n - \ \"etag\": \"W/\\\"05e55069-0eeb-429b-911f-fd7086256c92\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"e117c817-d27c-49a0-ac6d-d56a5a0e6019\\\"\",\r\n \"type\": \"Microsoft.Network/virtualWans\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"disableVpnEncryption\": false,\r\n \"allowBranchToBranchTraffic\": true,\r\n \"office365LocalBreakoutCategory\": @@ -183,9 +183,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:42:48 GMT + - Mon, 18 Jul 2022 08:46:25 GMT etag: - - W/"05e55069-0eeb-429b-911f-fd7086256c92" + - W/"e117c817-d27c-49a0-ac6d-d56a5a0e6019" expires: - '-1' pragma: @@ -202,7 +202,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c69750a4-b09a-49d3-aaf7-621803b1f4a4 + - 753ffce5-59a8-4a47-a79d-ee9c666b512b status: code: 200 message: OK @@ -225,7 +225,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_security_partner_provider_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-11T06:42:26Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-18T08:46:04Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -234,7 +234,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:42:48 GMT + - Mon, 18 Jul 2022 08:46:27 GMT expires: - '-1' pragma: @@ -273,7 +273,7 @@ interactions: response: body: string: "{\r\n \"name\": \"clitestvhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\",\r\n - \ \"etag\": \"W/\\\"df14e87d-9123-4674-8664-e87a630f40e2\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"076a3471-d1ec-410c-b970-8d36cd7ae164\\\"\",\r\n \"type\": \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"virtualHubRouteTableV2s\": [],\r\n \"addressPrefix\": \"10.5.0.0/16\",\r\n \"virtualRouterAsn\": @@ -288,7 +288,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 cache-control: - no-cache content-length: @@ -296,7 +296,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:42:55 GMT + - Mon, 18 Jul 2022 08:46:35 GMT expires: - '-1' pragma: @@ -309,7 +309,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6a7f4968-9b26-45f0-9626-275a59e922b5 + - 1bda1b86-2b09-4440-825f-398b4c1fbb4d x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -331,7 +331,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -343,7 +343,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:43:05 GMT + - Mon, 18 Jul 2022 08:46:45 GMT expires: - '-1' pragma: @@ -360,7 +360,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5a2d9ed3-d291-498a-8a75-2f790a2bbb6c + - 78e7f8d8-7c5b-4ed2-9e61-da39fe6fb811 status: code: 200 message: OK @@ -380,7 +380,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -392,7 +392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:43:15 GMT + - Mon, 18 Jul 2022 08:46:56 GMT expires: - '-1' pragma: @@ -409,7 +409,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 38ca8fa9-c8b1-411f-9321-cea67aca3349 + - 893c0f88-9cf2-4432-98ce-49ba914681cc status: code: 200 message: OK @@ -429,7 +429,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -441,7 +441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:43:36 GMT + - Mon, 18 Jul 2022 08:47:17 GMT expires: - '-1' pragma: @@ -458,7 +458,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 469715ab-2845-49e2-8314-b96df62fd83e + - 4bd423fa-7fda-4759-8c5a-4dae26295318 status: code: 200 message: OK @@ -478,7 +478,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -490,7 +490,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:43:57 GMT + - Mon, 18 Jul 2022 08:47:37 GMT expires: - '-1' pragma: @@ -507,7 +507,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4e10c98c-1a1b-4a0f-82be-b42e196aca9b + - 15e6ba16-bfc7-4d3a-b677-2d52dee12b3c status: code: 200 message: OK @@ -527,7 +527,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -539,7 +539,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:44:36 GMT + - Mon, 18 Jul 2022 08:48:17 GMT expires: - '-1' pragma: @@ -556,7 +556,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - a28c256d-112a-4747-92a8-178b9a2ef51f + - 7a3cc71e-b85e-440d-9f55-3125074084a8 status: code: 200 message: OK @@ -576,7 +576,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eb3070ff-c831-4bbc-9da6-4328357df54b?api-version=2021-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 response: body: string: "{\r\n \"status\": \"InProgress\"\r\n}" @@ -588,7 +588,116 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 11 Jul 2022 06:45:17 GMT + - Mon, 18 Jul 2022 08:48:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - bf3b253c-dc30-44df-8ca2-e8535e614f1f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/025fc39d-4070-4bc4-b66e-e6bd3771a75a?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:50:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 10f29ac0-aa93-4c96-8699-664d923a2df5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vhub create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vwan --address-prefix --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"clitestvhub\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\",\r\n + \ \"etag\": \"W/\\\"05a51f9f-44b7-4e1e-9987-ded4db2efe0d\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualHubs\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"virtualHubRouteTableV2s\": + [],\r\n \"addressPrefix\": \"10.5.0.0/16\",\r\n \"virtualRouterAsn\": + 65515,\r\n \"virtualRouterIps\": [],\r\n \"routeTable\": {\r\n \"routes\": + []\r\n },\r\n \"virtualRouterAutoScaleConfiguration\": {\r\n \"minCapacity\": + 2\r\n },\r\n \"virtualWan\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualWans/clitestvwan\"\r\n + \ },\r\n \"networkVirtualAppliances\": [],\r\n \"sku\": \"Standard\",\r\n + \ \"routingState\": \"Provisioning\",\r\n \"allowBranchToBranchTraffic\": + false,\r\n \"preferredRoutingGateway\": \"ExpressRoute\",\r\n \"hubRoutingPreference\": + \"ExpressRoute\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1090' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:50:19 GMT expires: - '-1' pragma: @@ -605,8 +714,2174 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - edbe82e0-ceda-470a-ad79-d9f69a8f6f78 + - 94b9fad6-3cc4-4abf-bac7-1ad28eb8ea64 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_security_partner_provider_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-18T08:46:04Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '360' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:50:20 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/vpnGateways/cligateway?api-version=2021-08-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Network/vpnGateways/cligateway'' + under resource group ''cli_test_security_partner_provider_000001'' was not + found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:50:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: '{"location": "westus", "properties": {"virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub"}, + "bgpSettings": {}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + Content-Length: + - '243' + Content-Type: + - application/json + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/vpnGateways/cligateway?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cligateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/vpnGateways/cligateway\",\r\n + \ \"etag\": \"W/\\\"85d3f3f1-6100-4fc2-9952-e9c0347831fb\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '907' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:50:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 03f8cb33-17a2-41e0-82b4-baaf68ef5ed4 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:50:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - abfad21a-a9e7-4238-b09e-fcd079ed89f5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:50:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - b12bce41-d194-47ba-8db5-4369adb10f28 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:51:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - dd31247e-55d8-4fb5-9bb6-0a56ea55bdce + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:51:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 30d9e671-9138-46b4-8963-8dea59d235d1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:52:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 5da44c7b-4b75-4bc9-94b7-e84a043d19a5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:52:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ad82e6cf-fcff-4921-b3d4-da9ae1c25b56 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:54:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 44fd92ba-45f2-45f2-9fba-161107919922 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:56:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c59e4ecc-c101-42ce-97d2-101c9d5a9a7d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 08:58:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - b9414b75-04ac-481b-aa84-b2ce6af28038 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:00:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e26fd21c-fd6b-411b-8f6a-924309fea985 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:01:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e409bf6e-39dc-4258-b1fb-8a5689245b54 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:03:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e30b6e70-e328-45ff-afd7-3a35b79173a3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:05:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 81e87ea0-a347-4daf-966d-6248ef24d540 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:06:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c3b151e7-f25c-45dc-abd5-a4b1b4431a6c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:08:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 829ce878-bfb2-4236-aee8-c66349d15926 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:10:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7aa86142-bf00-4491-a7c5-6608a12f107e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:11:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c2e5e3fd-0712-42ed-84bd-bc64a4ad761d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:13:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8fb4273a-c812-4633-b36c-06211703a8c7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:15:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - c86dd155-d811-42dd-ba4e-2f621cb0d1ff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:16:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 2b57594e-54ca-419d-9974-f80475f1c90d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:18:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 0dc4f346-3d14-4e1c-bcf5-3f9f3f4df972 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:20:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - e2e1e00c-9415-4555-864d-5e6d0b492b83 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"InProgress\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '30' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:21:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 22374444-53e9-4c34-911d-79eac7851efe + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e6b19fd9-18f8-468d-87a4-b048b89ffef3?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:23:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7d61f928-e69d-48ae-addb-95c00ba75f66 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vpn-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --vhub + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/vpnGateways/cligateway?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"cligateway\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/vpnGateways/cligateway\",\r\n + \ \"etag\": \"W/\\\"603164b3-f77d-4ae8-9b0e-69abfbb82057\\\"\",\r\n \"type\": + \"Microsoft.Network/vpnGateways\",\r\n \"location\": \"westus\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"connections\": [],\r\n + \ \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ },\r\n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"peerWeight\": + 0,\r\n \"bgpPeeringAddresses\": [\r\n {\r\n \"ipconfigurationId\": + \"Instance0\",\r\n \"defaultBgpIpAddresses\": [\r\n \"10.5.0.13\"\r\n + \ ],\r\n \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"20.228.80.26\",\r\n \"10.5.0.4\"\r\n ]\r\n + \ },\r\n {\r\n \"ipconfigurationId\": \"Instance1\",\r\n + \ \"defaultBgpIpAddresses\": [\r\n \"10.5.0.12\"\r\n ],\r\n + \ \"customBgpIpAddresses\": [],\r\n \"tunnelIpAddresses\": + [\r\n \"20.237.161.116\",\r\n \"10.5.0.5\"\r\n ]\r\n + \ }\r\n ]\r\n },\r\n \"vpnGatewayScaleUnit\": 1,\r\n \"packetCaptureDiagnosticState\": + \"None\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"Instance0\",\r\n + \ \"publicIpAddress\": \"20.228.80.26\",\r\n \"privateIpAddress\": + \"10.5.0.4\"\r\n },\r\n {\r\n \"id\": \"Instance1\",\r\n + \ \"publicIpAddress\": \"20.237.161.116\",\r\n \"privateIpAddress\": + \"10.5.0.5\"\r\n }\r\n ],\r\n \"natRules\": [],\r\n \"enableBgpRouteTranslationForNat\": + false,\r\n \"isRoutingPreferenceInternet\": false\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1788' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:23:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 24af22db-ecb7-4213-b7fb-506da28674ba + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider create + Connection: + - keep-alive + ParameterSetName: + - -n -g --vhub --provider + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_security_partner_provider_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-18T08:46:04Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '360' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:23:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"securityProviderName": "Checkpoint", + "virtualHub": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider create + Connection: + - keep-alive + Content-Length: + - '262' + Content-Type: + - application/json + ParameterSetName: + - -n -g --vhub --provider + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"8065fd26-c9bc-499e-96cb-9ecd800769c6\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"securityProviderName\": + \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/832e7bfe-f8f2-45a4-ae95-463a7a453367?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '694' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:23:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8c53643d-7019-44c2-a5b1-106c93d04ed4 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider create + Connection: + - keep-alive + ParameterSetName: + - -n -g --vhub --provider + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/832e7bfe-f8f2-45a4-ae95-463a7a453367?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - ec2c9545-1e77-4fc4-9805-00a868b65d97 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider create + Connection: + - keep-alive + ParameterSetName: + - -n -g --vhub --provider + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"8ea01ef3-0222-4eb2-9473-28c923efa9a3\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": + \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '695' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9039fb92-c32b-42e2-86a8-8125f35e01a9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"ab0ff01c-51d8-44fc-a3da-a6ffbd89add0\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": + \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '695' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 66b40f66-f8df-4099-9957-f33f9106ac33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider update + Connection: + - keep-alive + ParameterSetName: + - -n -g --tag + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_security_partner_provider_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001","name":"cli_test_security_partner_provider_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-07-18T08:46:04Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '360' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider update + Connection: + - keep-alive + ParameterSetName: + - -n -g --tag + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"2037d780-3307-409a-b665-c91155b6e048\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": + \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '695' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 99197b79-88fe-478e-8786-858754704898 + status: + code: 200 + message: OK +- request: + body: '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider", + "location": "westus", "properties": {"securityProviderName": "Checkpoint", "virtualHub": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub"}}, + "tags": {"a": "b"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider update + Connection: + - keep-alive + Content-Length: + - '480' + Content-Type: + - application/json + ParameterSetName: + - -n -g --tag + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"33bc2525-76d2-4618-bd50-dba02d3dc2fd\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": + \"Updating\",\r\n \"securityProviderName\": \"Checkpoint\",\r\n \"virtualHub\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eaeb3f76-2e07-4162-88aa-f8dafa6087e8?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '727' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 7704402b-a6a8-4b4e-bd97-908dce07dcd2 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider update + Connection: + - keep-alive + ParameterSetName: + - -n -g --tag + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/eaeb3f76-2e07-4162-88aa-f8dafa6087e8?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 18dde7b8-7c94-46db-b153-552a46a27d71 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider update + Connection: + - keep-alive + ParameterSetName: + - -n -g --tag + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 + response: + body: + string: "{\r\n \"name\": \"clisecuritypartnerprovider\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"0670ad17-391c-499f-afb3-45ca7f199a64\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"securityProviderName\": \"Checkpoint\",\r\n \"virtualHub\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '728' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - d6a2ff51-523e-4526-b75a-df317f7a7dc1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders?api-version=2021-08-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"clisecuritypartnerprovider\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"0df8805d-aa50-4139-aea2-b04c634b0bef\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": + \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '821' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 28aab92d-d0c8-4909-9db7-fdd8961c65b0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/securityPartnerProviders?api-version=2021-08-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"clisecuritypartnerprovider\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider\",\r\n + \ \"etag\": \"W/\\\"6ca4f8c4-743e-4e4a-841c-85be2c51399d\\\"\",\r\n \"type\": + \"Microsoft.Network/securityPartnerProviders\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {\r\n \"a\": \"b\"\r\n },\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"securityProviderName\": + \"Checkpoint\",\r\n \"virtualHub\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/virtualHubs/clitestvhub\"\r\n + \ }\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '821' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 05619437-6e6a-4fd4-97b5-843e36fcdd2b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_security_partner_provider_000001/providers/Microsoft.Network/securityPartnerProviders/clisecuritypartnerprovider?api-version=2021-08-01 + response: + body: + string: '' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1aa3fbac-d5a2-4010-ac1c-38057f799d59?api-version=2021-08-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 18 Jul 2022 09:24:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/1aa3fbac-d5a2-4010-ac1c-38057f799d59?api-version=2021-08-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 831fa633-8b54-46dc-958b-6cdbd5e00d66 + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider delete + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1aa3fbac-d5a2-4010-ac1c-38057f799d59?api-version=2021-08-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 583b3c51-0d6e-4640-b70e-04dcb0f21b72 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network security-partner-provider delete + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.8.10 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/1aa3fbac-d5a2-4010-ac1c-38057f799d59?api-version=2021-08-01 + response: + body: + string: '' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1aa3fbac-d5a2-4010-ac1c-38057f799d59?api-version=2021-08-01 + cache-control: + - no-cache + content-type: + - application/json; charset=utf-8 + date: + - Mon, 18 Jul 2022 09:24:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/1aa3fbac-d5a2-4010-ac1c-38057f799d59?api-version=2021-08-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 831fa633-8b54-46dc-958b-6cdbd5e00d66 + status: + code: 204 + message: No Content version: 1 From 545901a430438035433f53c23fbdc695d2caef33 Mon Sep 17 00:00:00 2001 From: necusjz Date: Tue, 19 Jul 2022 10:17:11 +0800 Subject: [PATCH 5/7] remove useless code blocks --- .../azure/cli/command_modules/network/commands.py | 9 --------- 1 file changed, 9 deletions(-) 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 613471070b3..bb547b3fd9b 100644 --- a/src/azure-cli/azure/cli/command_modules/network/commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/commands.py @@ -1540,15 +1540,6 @@ def _make_singular(value): g.command('delete', 'begin_delete') # endregion - # region Security Partner Provider - # with self.command_group('network security-partner-provider', network_security_partner_provider_sdk, is_preview=True) as g: - # # g.custom_command('create', 'create_security_partner_provider') - # g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_security_partner_provider') - # g.show_command('show', 'get') - # g.custom_command('list', 'list_security_partner_provider') - # g.command('delete', 'begin_delete') - # endregion - # region PrivateLinkResource and PrivateEndpointConnection plr_and_pec_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.network.private_link_resource_and_endpoint_connections.custom#{}') with self.command_group('network private-link-resource', custom_command_type=plr_and_pec_custom) as g: From 829925ce0d918661219b505e114c560341213ae6 Mon Sep 17 00:00:00 2001 From: necusjz Date: Tue, 19 Jul 2022 15:38:17 +0800 Subject: [PATCH 6/7] refine templates --- .../aaz/latest/network/security_partner_provider/_create.py | 2 +- .../aaz/latest/network/security_partner_provider/_update.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py index 13082b14a84..99a2db86451 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py @@ -68,7 +68,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Name or ID of the virtual hub to which the Security Partner Provider belongs.", fmt=AAZResourceIdArgFormat( template="/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Network/virtualHubs/{}", - ) + ), ) _args_schema.tags = AAZDictArg( options=["--tags"], diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py index 709e8b9702e..fb75f1128c3 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py @@ -70,9 +70,10 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.vhub = AAZResourceIdArg( options=["--vhub"], help="Name or ID of the virtual hub to which the Security Partner Provider belongs.", + nullable=True, fmt=AAZResourceIdArgFormat( template="/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.Network/virtualHubs/{}", - ) + ), ) _args_schema.tags = AAZDictArg( options=["--tags"], From fb1be6fa5c77235a8b92364796e802e052aa553e Mon Sep 17 00:00:00 2001 From: necusjz Date: Wed, 20 Jul 2022 14:12:33 +0800 Subject: [PATCH 7/7] add examples --- .../aaz/latest/network/security_partner_provider/_create.py | 5 ++++- .../aaz/latest/network/security_partner_provider/_delete.py | 5 ++++- .../aaz/latest/network/security_partner_provider/_list.py | 5 ++++- .../aaz/latest/network/security_partner_provider/_show.py | 5 ++++- .../aaz/latest/network/security_partner_provider/_update.py | 5 ++++- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py index 99a2db86451..6c4e84a19c8 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_create.py @@ -16,7 +16,10 @@ is_preview=True, ) class Create(AAZCommand): - """Create a Azure security partner provider. + """Create an Azure security partner provider. + + :example: Create a security partner provider. + az network security-partner-provider create -n MyProvider -g MyResourceGroup --vhub MyVirtualHub --provider Checkpoint """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py index a0b67dc16a0..6dd78b6312b 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_delete.py @@ -16,7 +16,10 @@ is_preview=True, ) class Delete(AAZCommand): - """Delete a Azure security partner provider. + """Delete an Azure security partner provider. + + :example: Delete a security partner provider. + az network security-partner-provider delete -n MyProvider -g MyResourceGroup """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py index feb4d32eda2..784d37c3636 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_list.py @@ -16,7 +16,10 @@ is_preview=True, ) class List(AAZCommand): - """List all Azure security partner provider. + """List all Azure security partner providers. + + :example: List all security partner providers in a resource group. + az network security-partner-provider list -g MyResourceGroup """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py index 24a0016da7a..27a13af03d0 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_show.py @@ -16,7 +16,10 @@ is_preview=True, ) class Show(AAZCommand): - """Show a Azure security partner provider. + """Show an Azure security partner provider. + + :example: Get details of a security partner provider. + az network security-partner-provider show -n MyProvider -g MyResourceGroup """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py index fb75f1128c3..d61dba3a43e 100644 --- a/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py +++ b/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/security_partner_provider/_update.py @@ -16,7 +16,10 @@ is_preview=True, ) class Update(AAZCommand): - """Update a Azure security partner provider. + """Update an Azure security partner provider. + + :example: Update a security partner provider. + az network security-partner-provider update -n MyProvider -g MyResourceGroup --tags a=b """ _aaz_info = {