diff --git a/src/command_modules/azure-cli-netappfiles/HISTORY.rst b/src/command_modules/azure-cli-netappfiles/HISTORY.rst new file mode 100644 index 00000000000..77100eb4291 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/HISTORY.rst @@ -0,0 +1,11 @@ +.. :changelog: + +Release History +=============== + + +1.0.0 (2019-05-01) +++++++++++++++++++ + +* GA release. +* Previously existed as cli-extension. diff --git a/src/command_modules/azure-cli-netappfiles/MANIFEST.in b/src/command_modules/azure-cli-netappfiles/MANIFEST.in new file mode 100644 index 00000000000..bb37a2723da --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/MANIFEST.in @@ -0,0 +1 @@ +include *.rst diff --git a/src/command_modules/azure-cli-netappfiles/README.rst b/src/command_modules/azure-cli-netappfiles/README.rst new file mode 100644 index 00000000000..dadd08f8104 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/README.rst @@ -0,0 +1,30 @@ +Microsoft Azure CLI 'Azure NetApp Files (ANF)' Command Module +============================================================= + +This package is for the Azure NetApp Files (ANF) module. +i.e. 'az netappfiles' + + +It contains commands that can be used to create and manage volumes. The typical sequence would be to first create an account + +az netappfiles account create --resource-group rg -n account_name + + +Then allocate a storage pool in which volumes can be created + +az netappfiles pool create --resource-group rg -a account_name -n pool_name -l location --size 4398046511104 --service-level "Premium" + + +Volumes are created within the pool resource + +az netappfiles volume create --resource-group rg -a account_name -p pool_name -n volume_name -l location --service-level "Premium" --usage-threshold 107374182400 --creation-token "unique-token" --subnet-id "/subscriptions/mysubsid/resourceGroups/myrg/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/default" + + +Snapshots of volumes can also be created + +az netappfiles snapshot create --resource-group rg -a account_name --p pool_name -v vname -n snapshot_name -l location --file-system-id volume-uuid + + +These resources can be updated, deleted and listed. See the help to find out more + +az netappfiles --help diff --git a/src/command_modules/azure-cli-netappfiles/azure/__init__.py b/src/command_modules/azure-cli-netappfiles/azure/__init__.py new file mode 100644 index 00000000000..73baee1e640 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/__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. +# -------------------------------------------------------------------------------------------- +import pkg_resources +pkg_resources.declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/__init__.py b/src/command_modules/azure-cli-netappfiles/azure/cli/__init__.py new file mode 100644 index 00000000000..73baee1e640 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/__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. +# -------------------------------------------------------------------------------------------- +import pkg_resources +pkg_resources.declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/__init__.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/__init__.py new file mode 100644 index 00000000000..73baee1e640 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/__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. +# -------------------------------------------------------------------------------------------- +import pkg_resources +pkg_resources.declare_namespace(__name__) diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/__init__.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/__init__.py new file mode 100644 index 00000000000..6adcd1ab868 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/__init__.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.core import AzCommandsLoader +from azure.cli.command_modules.netappfiles._help import helps # pylint: disable=unused-import + + +class NetAppFilesCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + netappfiles_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.netappfiles.custom#{}') + super(NetAppFilesCommandsLoader, self).__init__(cli_ctx=cli_ctx, + min_profile='2017-03-10-profile', + custom_command_type=netappfiles_custom) + + def load_command_table(self, args): + super(NetAppFilesCommandsLoader, self).load_command_table(args) + from azure.cli.command_modules.netappfiles.commands import load_command_table + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + super(NetAppFilesCommandsLoader, self).load_arguments(command) + from azure.cli.command_modules.netappfiles._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = NetAppFilesCommandsLoader diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_client_factory.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_client_factory.py new file mode 100644 index 00000000000..7bd0744b1f7 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_client_factory.py @@ -0,0 +1,32 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=unused-argument + + +def cf_netappfiles(cli_ctx, *kwargs): + from azure.cli.core.commands.client_factory import get_mgmt_service_client + from azure.mgmt.netapp import AzureNetAppFilesManagementClient + return get_mgmt_service_client(cli_ctx, AzureNetAppFilesManagementClient) + + +def accounts_mgmt_client_factory(cli_ctx, _): + return cf_netappfiles(cli_ctx).accounts + + +def pools_mgmt_client_factory(cli_ctx, _): + return cf_netappfiles(cli_ctx).pools + + +def volumes_mgmt_client_factory(cli_ctx, _): + return cf_netappfiles(cli_ctx).volumes + + +def mount_targets_mgmt_client_factory(cli_ctx, _): + return cf_netappfiles(cli_ctx).mount_targets + + +def snapshots_mgmt_client_factory(cli_ctx, _): + return cf_netappfiles(cli_ctx).snapshots diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_exception_handler.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_exception_handler.py new file mode 100644 index 00000000000..b23bc2f9ded --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_exception_handler.py @@ -0,0 +1,19 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from knack.util import CLIError +from msrest.exceptions import ValidationError # pylint: disable=import-error +from msrestazure.azure_exceptions import CloudError + + +def netappfiles_exception_handler(ex): + if isinstance(ex, CloudError) or isinstance(ex, ValidationError) or isinstance(ex, ValueError): + message = ex + raise CLIError(message) + else: + import sys + + from six import reraise + reraise(*sys.exc_info()) diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_help.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_help.py new file mode 100644 index 00000000000..de3b274e8f7 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_help.py @@ -0,0 +1,466 @@ +# coding=utf-8 +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from knack.help_files import helps + +# pylint: disable=line-too-long + + +helps['netappfiles'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Resources. +""" + +# account + +helps['netappfiles account'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Account Resources. +""" + +helps['netappfiles account create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) account. Note that active directory can only be applied to an existing account (using set/update). + parameters: + - name: --account-name -a -n + type: string + short-summary: The name of the ANF account + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the account + examples: + - name: Create an ANF account + text: > + az netappfiles account create -g group --account-name name -l location +""" + +helps['netappfiles account set'] = """ + type: command + short-summary: Sets the tags or the active directory details for a specified ANF account. Sets the active directory property to exactly what is provided. If none is provided then the active directory is removed, i.e. provide empty []. + parameters: + - name: --account-name -a -n + type: string + short-summary: The name of the ANF account + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the account + - name: --active-directories + type: string + short-summary: An array of active directory (AD) settings in json format. Limitation one AD/subscription. Consists of the fields username (Username of Active Directory domain administrator), password (Plain text password of Active Directory domain administrator), domain (Name of the Active Directory domain), dns (Comma separated list of DNS server IP addresses for the Active Directory domain), smb_server_name (NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes. Must be 10 characters or less), organizational_unit (The Organizational Unit (OU) within the Windows Active Directory) + examples: + - name: Update the tags and active directory of an ANF account + text: > + az netappfiles account set -g group --account-name name --tags 'key[=value] key[=value]' --active-directories '[{"username": "aduser", "password": "aduser", "smbservername": "SMBSERVER", "dns": "1.2.3.4", "domain": "westcentralus"}]' -l westus2 + - name: Remove the active directory from the ANF account + text: > + az netappfiles account set -g group --account-name name --active-directories '[]' -l westus2 +""" + +helps['netappfiles account update'] = """ + type: command + short-summary: Set/modify the tags or the active directory details for a specified ANF account. Active directory settings are appended only - if none are present no change is made otherwise the active directory is replaced with that provided. + parameters: + - name: --account-name -a -n + type: string + short-summary: The name of the ANF account + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the account + - name: --active-directories + type: string + short-summary: An array of active directory (AD) settings in json format. Limitation one AD/subscription. Consists of the fields username (Username of Active Directory domain administrator), password (Plain text password of Active Directory domain administrator), domain (Name of the Active Directory domain), dns (Comma separated list of DNS server IP addresses for the Active Directory domain), smb_server_name (NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount volumes. Must be 10 characters or less), organizational_unit (The Organizational Unit (OU) within the Windows Active Directory) + examples: + - name: Update the tags and active directory of an ANF account + text: > + az netappfiles account update -g group --account-name name --tags 'key[=value] key[=value]' --active-directories '[{"username": "aduser", "password": "aduser", "smbservername": "SMBSERVER", "dns": "1.2.3.4", "domain": "westcentralus"}]' -l westus2 +""" + +helps['netappfiles account delete'] = """ + type: command + short-summary: Delete the specified ANF account. + parameters: + - name: --account-name -a -n + type: string + short-summary: The name of the ANF account + examples: + - name: Delete an ANF account + text: > + az netappfiles account delete -g group --account-name name +""" + +helps['netappfiles account list'] = """ + type: command + short-summary: List ANF accounts. + examples: + - name: List ANF accounts within a resource group + text: > + az netappfiles account list -g group +""" + +helps['netappfiles account show'] = """ + type: command + short-summary: Get the specified ANF account. + parameters: + - name: --account-name -a -n + type: string + short-summary: The name of the ANF account + examples: + - name: Get an ANF account + text: > + az netappfiles account show -g group --account-name name +""" + +# pools + +helps['netappfiles pool'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Pool Resources. +""" + +helps['netappfiles pool create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) pool. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -n -p + type: string + short-summary: The name of the ANF pool + - name: --size + type: integer + short-summary: The size for the ANF pool. Must be in 4 tebibytes increments, expressed in bytes + - name: --service-level + type: string + short-summary: The service level for the ANF pool ["Standard"|"Premium"|"Extreme"] + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the pool + examples: + - name: Create an ANF pool + text: > + az netappfiles pool create -g group --account-name aname --pool-name pname -l location --size 4398046511104 --service-level "Premium" +""" + +helps['netappfiles pool update'] = """ + type: command + short-summary: Update the tags of the specified ANF pool. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -n -p + type: string + short-summary: The name of the ANF pool + - name: --size + type: integer + short-summary: The size for the ANF pool. Must be in 4 tebibytes increments, expressed in bytes + - name: --service-level + type: string + short-summary: The service level for the ANF pool ["Standard"|"Premium"|"Extreme"] + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the pool + examples: + - name: Update specific values for an ANF pool + text: > + az netappfiles pool update -g group --account-name aname --pool-name pname --service-level "Extreme" --tags 'key[=value] key[=value]' +""" + +helps['netappfiles pool delete'] = """ + type: command + short-summary: Delete the specified ANF pool. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -n -p + type: string + short-summary: The name of the ANF pool + examples: + - name: Delete an ANF pool + text: > + az netappfiles pool delete -g group --account-name aname --pool-name pname +""" + +helps['netappfiles pool list'] = """ + type: command + short-summary: L:ist the ANF pools for the specified account. + parameters: + - name: --account-name -a -n + type: string + short-summary: The name of the ANF account + examples: + - name: List the pools for the ANF account + text: > + az netappfiles pool list -g group --account-name name +""" + +helps['netappfiles pool show'] = """ + type: command + short-summary: Get the specified ANF pool. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -n -p + type: string + short-summary: The name of the ANF pool + examples: + - name: Get an ANF pool + text: > + az netappfiles pool show -g group --account-name aname --pool-name pname +""" + +# volumes + +helps['netappfiles volume'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Volume Resources. +""" + +helps['netappfiles volume create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) volume. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -n -v + type: string + short-summary: The name of the ANF volume + - name: --service-level + type: string + short-summary: The service level ["Standard"|"Premium"|"Extreme"] + - name: --usage-threshold + type: int + short-summary: The maximum storage quota allowed for a file system in bytes. Min 100 GiB, max 100TiB" + - name: --creation-token + type: string + short-summary: A unique file path identifier, from 1 to 80 characters + - name: --subnet-id + type: string + short-summary: The subnet identifier + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the volume + - name: --export-policy + type: string + short-summary: A json list of the parameters for export policy containing rule_index (Order index), unix_read_only (Read only access), unix_read_write (Read and write access), cifs (Allows CIFS protocol), nfsv3 (Allows NFSv3 protocol), nfsv4 (Allows NFSv4 protocol) and allowedClients (Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names) + examples: + - name: Create an ANF volume + text: > + az netappfiles volume create -g group --account-name aname --pool-name pname --volume-name vname -l location --service-level "Premium" --usage-threshold 107374182400 --creation-token "unique-token" --subnet-id "/subscriptions/mysubsid/resourceGroups/myrg/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/default" --export-policy '[{"allowed_clients":"0.0.0.0/0", "rule_index": "1", "unix_read_only": "true", "unix_read_write": "false", "cifs": "false", "nfsv3": "true", "nfsv3": "true", "nfsv4": "false"}]' +""" + +helps['netappfiles volume update'] = """ + type: command + short-summary: Update the specified ANF volume with the values provided. Unspecified values will remain unchanged. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -n -v + type: string + short-summary: The name of the ANF volume + - name: --service-level + type: string + short-summary: The service level ["Standard"|"Premium"|"Extreme"] + - name: --usage-threshold + type: int + short-summary: The maximum storage quota allowed for a file system in bytes. Min 100 GiB, max 100TiB" + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the volume + - name: --export-policy + type: string + short-summary: A json list of the parameters for export policy containing rule_index (Order index), unix_read_only (Read only access), unix_read_write (Read and write access), cifs (Allows CIFS protocol), nfsv3 (Allows NFSv3 protocol), nfsv4 (Allows NFSv4 protocol) and allowedClients (Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names) + examples: + - name: Create an ANF volume + text: > + az netappfiles volume update -g group --account-name aname --pool-name pname --volume-name vname --service-level level --usage-threshold 107374182400 --tags 'key[=value] key[=value]' --export-policy '[{"allowed_clients":"1.2.3.0/24", "rule_index": "1", "unix_read_only": "true", "unix_read_write": "false", "cifs": "false", "nfsv3": "true", "nfsv3": "true", "nfsv4": "false"}, {"allowed_clients":"1.2.4.0/24", "rule_index": "2", "unix_read_only": "true", "unix_read_write": "false", "cifs": "false", "nfsv3": "true", "nfsv3": "true", "nfsv4": "false"}]' +""" + +helps['netappfiles volume delete'] = """ + type: command + short-summary: Delete the specified ANF volume. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -n -v + type: string + short-summary: The name of the ANF volume + examples: + - name: Delete an ANF volume + text: > + az netappfiles volume delete -g group --account-name aname --pool-name pname --volume-name vname +""" + +helps['netappfiles volume list'] = """ + type: command + short-summary: List the ANF Pools for the specified account. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -n -p + type: string + short-summary: The name of the ANF pool + examples: + - name: List the ANF volumes of the pool + text: > + az netappfiles volume list -g group --account-name aname --pool-name pname +""" + +helps['netappfiles volume show'] = """ + type: command + short-summary: Get the specified ANF volume. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -n -v + type: string + short-summary: The name of the ANF pool + examples: + - name: Returns the properties of the given ANF volume + text: > + az netappfiles volume show -g group --account-name aname --pool-name pname --volume-name vname +""" + +# mounttargets + +helps['netappfiles mount-target'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Mount Target Resources. +""" + +helps['netappfiles mount-target list'] = """ + type: command + short-summary: List the mount targets of an ANF volume. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -v + type: string + short-summary: The name of the ANF pool + examples: + - name: list the mount targets of an ANF volume + text: > + az netappfiles mount-target list -g group --account-name aname --pool-name pname --volume-name vname +""" + +# snapshots + +helps['netappfiles snapshot'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Snapshot Resources. +""" + +helps['netappfiles snapshot create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) snapshot. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -v + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name -n -s + type: string + short-summary: The name of the ANF snapshot + - name: --file-system-id + type: string + short-summary: The uuid of the volume + examples: + - name: Create an ANF snapshot + text: > + az netappfiles snapshot create -g group --account-name account-name --pool-name pname --volume-name vname --snapshot-name sname -l location --file-system-id volume-uuid +""" + +helps['netappfiles snapshot delete'] = """ + type: command + short-summary: Delete the specified ANF snapshot. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -v + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name -n -s + type: string + short-summary: The name of the ANF snapshot + examples: + - name: Delete an ANF snapshot + text: > + az netappfiles snapshot delete -g group --account-name aname --pool-name pname --volume-name vname --snapshot-name sname +""" + +helps['netappfiles snapshot list'] = """ + type: command + short-summary: List the snapshots of an ANF volume. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -n -v + type: string + short-summary: The name of the ANF volume + examples: + - name: list the snapshots of an ANF volume + text: > + az netappfiles snapshot list -g group --account-name aname --pool-name pname --volume-name vname +""" + +helps['netappfiles snapshot show'] = """ + type: command + short-summary: Get the specified ANF snapshot. + parameters: + - name: --account-name -a + type: string + short-summary: The name of the ANF account + - name: --pool-name -p + type: string + short-summary: The name of the ANF pool + - name: --volume-name -v + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name -n -s + type: string + short-summary: The name of the ANF snapshot + examples: + - name: Return the specified ANF snapshot + text: > + az netappfiles snapshot show -g group --account-name aname --pool-name pname --volume-name vname --snapshot-name sname +""" diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_params.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_params.py new file mode 100644 index 00000000000..4c6a0a3932e --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_params.py @@ -0,0 +1,58 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long + + +def load_arguments(self, _): + with self.argument_context('netappfiles') as c: + c.argument('resource_group', options_list=['--resource-group', '-g'], required=True, help='The name of the resource group') + + with self.argument_context('netappfiles') as c: + c.argument('account_name', options_list=['--account-name', '-a'], required=True, help='The name of the ANF account') + + with self.argument_context('netappfiles account') as c: + c.argument('account_name', id_part='name', options_list=['--account-name', '-n', '-a'], required=True, help='The name of the ANF account') + + with self.argument_context('netappfiles account list') as c: + c.argument('account_name', help='The name of the ANF account', id_part=None) + + with self.argument_context('netappfiles') as c: + c.argument('pool_name', options_list=['--pool-name', '-p'], required=True, help='The name of the ANF pool') + + with self.argument_context('netappfiles pool') as c: + c.argument('account_name', id_part='name') + c.argument('pool_name', id_part='child_name_1', options_list=['--pool-name', '-n', '-p'], required=True, help='The name of the ANF pool') + + with self.argument_context('netappfiles pool list') as c: + c.argument('account_name', options_list=['--account-name', '-n', '-a'], help='The name of the ANF account', id_part=None) + + with self.argument_context('netappfiles') as c: + c.argument('volume_name', options_list=['--volume-name', '-v'], required=True, help='The name of the ANF volume') + + with self.argument_context('netappfiles volume') as c: + c.argument('account_name', id_part='name') + c.argument('pool_name', id_part='child_name_1', options_list=['--pool-name', '-p'], required=True, help='The name of the ANF pool') + c.argument('volume_name', id_part='child_name_2', options_list=['--volume-name', '-n', '-v'], required=True, help='The name of the ANF volume') + + with self.argument_context('netappfiles volume list') as c: + c.argument('account_name', options_list=['--account-name', '-a'], required=True, help='The name of the ANF account', id_part=None) + c.argument('pool_name', options_list=['--pool-name', '-n', '-p'], required=True, help='The name of the ANF pool', id_part=None) + + with self.argument_context('netappfiles') as c: + c.argument('snapshot_name', options_list=['--snapshot-name', '-s'], required=True, help='The name of the ANF snapshot') + + with self.argument_context('netappfiles snapshot') as c: + c.argument('account_name', options_list=['--account-name', '-a'], id_part='name') + c.argument('pool_name', id_part='child_name_1', options_list=['--pool-name', '-p'], required=True, help='The name of the ANF pool') + c.argument('volume_name', id_part='child_name_2', options_list=['--volume-name', '-v'], required=True, help='The name of the ANF volume') + c.argument('snapshot_name', id_part='child_name_3', options_list=['--snapshot-name', '-n', '-s'], required=True, help='The name of the ANF snapshot') + + with self.argument_context('netappfiles snapshot list') as c: + c.argument('account_name', options_list=['--account-name', '-a'], required=True, help='The name of the ANF account', id_part=None) + c.argument('volume_name', options_list=['--volume-name', '-n', '-v'], required=True, help='The name of the ANF volume', id_part=None) + + with self.argument_context('netappfiles') as c: + c.argument('tag', options_list=['--tags'], required=False, help='A list of space separated tags to apply to the account') diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/commands.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/commands.py new file mode 100644 index 00000000000..0a2925a0659 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/commands.py @@ -0,0 +1,108 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long + +from azure.cli.core.commands import CliCommandType +from ._client_factory import ( + accounts_mgmt_client_factory, + pools_mgmt_client_factory, + volumes_mgmt_client_factory, + mount_targets_mgmt_client_factory, + snapshots_mgmt_client_factory) +from ._exception_handler import netappfiles_exception_handler + + +def load_command_table(self, _): + netappfiles_accounts_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.accounts_operations#AccountsOperations.{}', + client_factory=accounts_mgmt_client_factory, + exception_handler=netappfiles_exception_handler + ) + + netappfiles_pools_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.pools_operations#PoolsOperations.{}', + client_factory=pools_mgmt_client_factory, + exception_handler=netappfiles_exception_handler + ) + + netappfiles_volumes_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.volumes_operations#VolumesOperations.{}', + client_factory=volumes_mgmt_client_factory, + exception_handler=netappfiles_exception_handler + ) + + netappfiles_mount_targets_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.mount_targets_operations#MountTargetsOperations.{}', + client_factory=mount_targets_mgmt_client_factory, + exception_handler=netappfiles_exception_handler + ) + + netappfiles_snapshots_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.snapshots_operations#SnapshotsOperations.{}', + client_factory=snapshots_mgmt_client_factory, + exception_handler=netappfiles_exception_handler + ) + + with self.command_group('netappfiles account', netappfiles_accounts_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_account', + client_factory=accounts_mgmt_client_factory, + doc_string_source='azure.mgmt.netapp.models#NetAppAccount', + exception_handler=netappfiles_exception_handler) + g.custom_command('set', 'update_account', + client_factory=accounts_mgmt_client_factory, + doc_string_source='azure.mgmt.netapp.models#NetAppAccount', + exception_handler=netappfiles_exception_handler) + g.generic_update_command('update', + setter_name='update', + custom_func_name='patch_account', + setter_arg_name='body', + doc_string_source='azure.mgmt.netapp.models#NetAppAccountPatch', + exception_handler=netappfiles_exception_handler) + + with self.command_group('netappfiles pool', netappfiles_pools_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_pool', + client_factory=pools_mgmt_client_factory, + doc_string_source='azure.mgmt.netapp.models#CapacityPool', + exception_handler=netappfiles_exception_handler) + g.generic_update_command('update', + setter_name='update', + custom_func_name='patch_pool', + setter_arg_name='body', + doc_string_source='azure.mgmt.netapp.models#CapacityPool', + exception_handler=netappfiles_exception_handler) + + with self.command_group('netappfiles volume', netappfiles_volumes_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_volume', + client_factory=volumes_mgmt_client_factory, + doc_string_source='azure.mgmt.netapp.models#Volume', + exception_handler=netappfiles_exception_handler) + g.generic_update_command('update', + setter_name='update', + custom_func_name='patch_volume', + setter_arg_name='body', + doc_string_source='azure.mgmt.netapp.models#VolumePatch', + exception_handler=netappfiles_exception_handler) + + with self.command_group('netappfiles mount-target', netappfiles_mount_targets_sdk) as g: + g.command('list', 'list') + + with self.command_group('netappfiles snapshot', netappfiles_snapshots_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_snapshot', + client_factory=snapshots_mgmt_client_factory, + doc_string_source='azure.mgmt.netapp.models#Snapshot', + exception_handler=netappfiles_exception_handler) diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/custom.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/custom.py new file mode 100644 index 00000000000..92767a0ae45 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/custom.py @@ -0,0 +1,152 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long + +import json +from knack.log import get_logger +from azure.mgmt.netapp.models import ActiveDirectory, NetAppAccount, NetAppAccountPatch, CapacityPool, Volume, VolumePatch, VolumePropertiesExportPolicy, ExportPolicyRule, Snapshot + +logger = get_logger(__name__) + + +def generate_tags(tag): + if tag is None: + return None + + tags = {} + tag_list = tag.split(" ") + for tag_item in tag_list: + parts = tag_item.split("=", 1) + if len(parts) == 2: + # two parts, everything after first '=' is the tag's value + tags[parts[0]] = parts[1] + elif len(parts) == 1: + # one part, no tag value + tags[parts[0]] = "" + return tags + + +def _update_mapper(existing, new, keys): + for key in keys: + existing_value = getattr(existing, key) + new_value = getattr(new, key) + setattr(new, key, new_value if new_value is not None else existing_value) + + +def build_active_directories(active_directories=None): + acc_active_directories = None + + if active_directories: + acc_active_directories = [] + ad_list = json.loads(active_directories) + for ad in ad_list: + username = ad['username'] if 'username' in ad else None + password = ad['password'] if 'password' in ad else None + domain = ad['domain'] if 'domain' in ad else None + dns = ad['dns'] if 'dns' in ad else None + smbservername = ad['smbservername'] if 'smbservername' in ad else None + organizational_unit = ad['organizational_unit'] if 'organizational_unit' in ad else None + active_directory = ActiveDirectory(username=username, password=password, domain=domain, dns=dns, smb_server_name=smbservername, organizational_unit=organizational_unit) + acc_active_directories.append(active_directory) + + return acc_active_directories + + +# pylint: disable=unused-argument +def create_account(cmd, client, account_name, resource_group_name, location, tag=None, active_directories=None): + acc_active_directories = build_active_directories(active_directories) + body = NetAppAccount(location=location, tags=generate_tags(tag), active_directories=acc_active_directories) + return client.create_or_update(body, resource_group_name, account_name) + + +# pylint: disable=unused-argument +def update_account(cmd, client, account_name, resource_group_name, location, tag=None, active_directories=None): + # Note: this set command is required in addition to the update + # The RP implementation is such that patch of active directories provides an addition type amendment, i.e. + # absence of an AD does not remove the ADs already present. To perform this a set command is required that + # asserts exactly the content provided, replacing whatever is already present including removing it if none + # is present + acc_active_directories = build_active_directories(active_directories) + body = NetAppAccountPatch(location=location, tags=generate_tags(tag), active_directories=acc_active_directories) + return client.create_or_update(body, resource_group_name, account_name) + + +def patch_account(cmd, instance, account_name, resource_group_name, location, tag=None, active_directories=None): + # parameters for active directory here will add to the existing ADs but cannot remove them + # current limitation however is 1 AD/subscription + acc_active_directories = build_active_directories(active_directories) + body = NetAppAccountPatch(location=location, tags=generate_tags(tag), active_directories=acc_active_directories) + _update_mapper(instance, body, ['location', 'active_directories', 'tags']) + return body + + +def create_pool(cmd, client, account_name, pool_name, resource_group_name, location, size, service_level, tag=None): + body = CapacityPool(service_level=service_level, size=int(size), location=location, tags=generate_tags(tag)) + return client.create_or_update(body, resource_group_name, account_name, pool_name) + + +def patch_pool(cmd, instance, location=None, size=None, service_level=None, tag=None): + # put operation to update the record + if size is not None: + size = int(size) + body = CapacityPool(service_level=service_level, size=size, location=location, tags=generate_tags(tag)) + _update_mapper(instance, body, ['location', 'service_level', 'size', 'tags']) + return body + + +def build_export_policy_rules(export_policy=None): + rules = [] + + if export_policy: + ep_list = json.loads(export_policy) + for ep in ep_list: + rule_index = ep['rule_index'] if 'rule_index' in ep else None + unix_read_only = ep['unix_read_only'] if 'unix_read_only' in ep else None + unix_read_write = ep['unix_read_write'] if 'unix_read_write' in ep else None + cifs = ep['cifs'] if 'cifs' in ep else None + nfsv3 = ep['nfsv3'] if 'nfsv3' in ep else None + nfsv4 = ep['nfsv4'] if 'nfsv4' in ep else None + allowed_clients = ep['allowed_clients'] if 'allowed_clients' in ep else None + export_policy = ExportPolicyRule(rule_index=rule_index, unix_read_only=unix_read_only, unix_read_write=unix_read_write, cifs=cifs, nfsv3=nfsv3, nfsv4=nfsv4, allowed_clients=allowed_clients) + rules.append(export_policy) + + return rules + + +def create_volume(cmd, client, account_name, pool_name, volume_name, resource_group_name, location, service_level, creation_token, usage_threshold, subnet_id, tag=None, export_policy=None): + rules = build_export_policy_rules(export_policy) + volume_export_policy = VolumePropertiesExportPolicy(rules=rules) if rules != [] else None + + body = Volume( + usage_threshold=int(usage_threshold), + creation_token=creation_token, + service_level=service_level, + location=location, + subnet_id=subnet_id, + tags=generate_tags(tag), + export_policy=volume_export_policy) + + return client.create_or_update(body, resource_group_name, account_name, pool_name, volume_name) + + +def patch_volume(cmd, instance, service_level=None, usage_threshold=None, tag=None, export_policy=None): + + # the export policy provided replaces any existing eport policy + rules = build_export_policy_rules(export_policy) + volume_export_policy = VolumePropertiesExportPolicy(rules=rules) if rules != [] else None + + params = VolumePatch( + usage_threshold=None if usage_threshold is None else int(usage_threshold), + service_level=service_level, + tags=generate_tags(tag), + export_policy=volume_export_policy) + _update_mapper(instance, params, ['service_level', 'usage_threshold', 'tags', 'export_policy']) + return params + + +def create_snapshot(cmd, client, account_name, pool_name, volume_name, snapshot_name, resource_group_name, location, file_system_id=None): + body = Snapshot(location=location, file_system_id=file_system_id) + return client.create(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name) diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/__init__.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/__init__.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_account.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_account.yaml new file mode 100644 index 00000000000..a35ce767ddb --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_account.yaml @@ -0,0 +1,488 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:13:47Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001","name":"cli_tests_rg_000001","location":"westus","tags":{"date":"2019-05-10T09:13:47Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:13:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1", "Tag2": + "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['69'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.763234Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/337ed27e-302f-4183-b1a4-53051e5290a3?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['493'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:00 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.763234Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/337ed27e-302f-4183-b1a4-53051e5290a3?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/337ed27e-302f-4183-b1a4-53051e5290a3","name":"337ed27e-302f-4183-b1a4-53051e5290a3","status":"Succeeded","startTime":"2019-05-10T09:14:00.6722923Z","endTime":"2019-05-10T09:14:00.7816565Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.8342841Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:32 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.8342841Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.8342841Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['506'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fd2f78cb-426e-44f6-b5de-f62e8bc442b9?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:14:36 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fd2f78cb-426e-44f6-b5de-f62e8bc442b9?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fd2f78cb-426e-44f6-b5de-f62e8bc442b9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fd2f78cb-426e-44f6-b5de-f62e8bc442b9","name":"fd2f78cb-426e-44f6-b5de-f62e8bc442b9","status":"Succeeded","startTime":"2019-05-10T09:14:36.8880463Z","endTime":"2019-05-10T09:14:36.9661725Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:11 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: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1", "Tag2": + "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['69'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A15%3A16.4202724Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/02c9749f-ee0e-4267-994e-ae85991307e5?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:16 GMT'] + etag: [W/"datetime'2019-05-10T09%3A15%3A16.4202724Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/02c9749f-ee0e-4267-994e-ae85991307e5?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/02c9749f-ee0e-4267-994e-ae85991307e5","name":"02c9749f-ee0e-4267-994e-ae85991307e5","status":"Succeeded","startTime":"2019-05-10T09:15:16.3604574Z","endTime":"2019-05-10T09:15:16.4542042Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A15%3A16.4973262Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:51 GMT'] + etag: [W/"datetime'2019-05-10T09%3A15%3A16.4973262Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A15%3A16.4973262Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['506'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/258b2a6b-c113-431e-b734-8363139eb3ff?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:15:57 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/258b2a6b-c113-431e-b734-8363139eb3ff?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/258b2a6b-c113-431e-b734-8363139eb3ff?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/258b2a6b-c113-431e-b734-8363139eb3ff","name":"258b2a6b-c113-431e-b734-8363139eb3ff","status":"Succeeded","startTime":"2019-05-10T09:15:57.2304874Z","endTime":"2019-05-10T09:15:57.3086274Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:16:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:16:30 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: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:16:34 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHOjVGSjRVMzRHRUVNM002TFlWWUVPTFFSSVVFWUhHVnxBRDlDN0YxQkYwRkU0OEJCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_pool.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_pool.yaml new file mode 100644 index 00000000000..31b97ee9f97 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_pool.yaml @@ -0,0 +1,565 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:31:00Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T09:31:00Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A16.6274434Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a2e7807b-27f9-463e-86d4-379b8d87f564?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:16 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A16.6274434Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a2e7807b-27f9-463e-86d4-379b8d87f564?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a2e7807b-27f9-463e-86d4-379b8d87f564","name":"a2e7807b-27f9-463e-86d4-379b8d87f564","status":"Succeeded","startTime":"2019-05-10T09:31:16.4949871Z","endTime":"2019-05-10T09:31:16.6512589Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A16.7175073Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:50 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A16.7175073Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['135'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name -l --service-level + --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A55.0937829Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cdbc0777-8fdd-42d8-85f9-d3e458bcda0d?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:55 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A55.0937829Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name -l --service-level + --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cdbc0777-8fdd-42d8-85f9-d3e458bcda0d?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cdbc0777-8fdd-42d8-85f9-d3e458bcda0d","name":"cdbc0777-8fdd-42d8-85f9-d3e458bcda0d","status":"Succeeded","startTime":"2019-05-10T09:31:55.0038359Z","endTime":"2019-05-10T09:31:55.8319777Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name -l --service-level + --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A55.8933463Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"e62e5973-2a67-448f-afa6-aef215d984f4","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:29 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A55.8933463Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A55.8933463Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"e62e5973-2a67-448f-afa6-aef215d984f4","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['703'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group --account-name --pool-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a2fc2524-77af-4f98-944e-397d6aba7964?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:32:35 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a2fc2524-77af-4f98-944e-397d6aba7964?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a2fc2524-77af-4f98-944e-397d6aba7964?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a2fc2524-77af-4f98-944e-397d6aba7964","name":"a2fc2524-77af-4f98-944e-397d6aba7964","status":"Succeeded","startTime":"2019-05-10T09:32:35.4618112Z","endTime":"2019-05-10T09:32:36.1180547Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['135'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A33%3A13.9394353Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/718791bc-764c-40d9-bc93-ddc2db825732?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:14 GMT'] + etag: [W/"datetime'2019-05-10T09%3A33%3A13.9394353Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/718791bc-764c-40d9-bc93-ddc2db825732?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/718791bc-764c-40d9-bc93-ddc2db825732","name":"718791bc-764c-40d9-bc93-ddc2db825732","status":"Succeeded","startTime":"2019-05-10T09:33:13.8770749Z","endTime":"2019-05-10T09:33:14.2519888Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A33%3A14.303692Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"d431cd1e-e0ed-86c8-bd23-deb08ee926f9","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['690'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:49 GMT'] + etag: [W/"datetime'2019-05-10T09%3A33%3A14.303692Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/77d3ee9f-7c46-4f40-9370-7f78dd6a189f?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:33:52 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/77d3ee9f-7c46-4f40-9370-7f78dd6a189f?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/77d3ee9f-7c46-4f40-9370-7f78dd6a189f?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/77d3ee9f-7c46-4f40-9370-7f78dd6a189f","name":"77d3ee9f-7c46-4f40-9370-7f78dd6a189f","status":"Succeeded","startTime":"2019-05-10T09:33:52.0860699Z","endTime":"2019-05-10T09:33:52.3516323Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:34:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:34:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:34:32 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHSk5ZV09XUFRQVlkzVlhZUFZMRk5aUFVLQlFWUjZSQnxDNkI2N0ZGNzU4QkY2M0QyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_snapshots.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_snapshots.yaml new file mode 100644 index 00000000000..081d510943f --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_snapshots.yaml @@ -0,0 +1,886 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T13:17:20Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-05-10T13:17:20Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westcentralus", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.5.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['130'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"74316460-da5a-459b-9593-b606886134f1\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"a5b43d78-3216-45f9-ba36-eef67ab9d876\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/62a519d3-8846-43a6-bede-6777754eb626?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['811'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17:33 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-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/62a519d3-8846-43a6-bede-6777754eb626?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"3d8d6ae1-62b4-46a1-a97a-684aecbf4ca6\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"a5b43d78-3216-45f9-ba36-eef67ab9d876\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['812'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17:38 GMT'] + etag: [W/"3d8d6ae1-62b4-46a1-a97a-684aecbf4ca6"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"3d8d6ae1-62b4-46a1-a97a-684aecbf4ca6\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"a5b43d78-3216-45f9-ba36-eef67ab9d876\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['812'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17:40 GMT'] + etag: [W/"3d8d6ae1-62b4-46a1-a97a-684aecbf4ca6"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006", + "etag": "W/\"3d8d6ae1-62b4-46a1-a97a-684aecbf4ca6\"", "location": "westcentralus", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "subnet02", + "properties": {"addressPrefix": "10.5.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.5.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "a5b43d78-3216-45f9-ba36-eef67ab9d876", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['775'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"a581089c-3ab7-431e-b425-1074a9c90fd9\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"a5b43d78-3216-45f9-ba36-eef67ab9d876\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet02\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02\"\ + ,\r\n \"etag\": \"W/\\\"a581089c-3ab7-431e-b425-1074a9c90fd9\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.5.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"a581089c-3ab7-431e-b425-1074a9c90fd9\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/cf9e8f1c-5f84-4f3d-885e-53bae01c98e9?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2258'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17: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-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/cf9e8f1c-5f84-4f3d-885e-53bae01c98e9?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17:46 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"5971e481-b934-48e9-bc62-61d21152ce24\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"a5b43d78-3216-45f9-ba36-eef67ab9d876\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet02\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02\"\ + ,\r\n \"etag\": \"W/\\\"5971e481-b934-48e9-bc62-61d21152ce24\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.5.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"5971e481-b934-48e9-bc62-61d21152ce24\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2260'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17:46 GMT'] + etag: [W/"5971e481-b934-48e9-bc62-61d21152ce24"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['29'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T13%3A17%3A51.0955495Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/83ac227c-d805-4544-be9f-89d6eb883c03?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['459'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:17:51 GMT'] + etag: [W/"datetime'2019-05-10T13%3A17%3A51.0955495Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/83ac227c-d805-4544-be9f-89d6eb883c03?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/83ac227c-d805-4544-be9f-89d6eb883c03","name":"83ac227c-d805-4544-be9f-89d6eb883c03","status":"Succeeded","startTime":"2019-05-10T13:17:50.8549857Z","endTime":"2019-05-10T13:17:51.1830787Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['582'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:18:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T13%3A17%3A51.3177071Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['459'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:18:23 GMT'] + etag: [W/"datetime'2019-05-10T13%3A17%3A51.3177071Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westcentralus", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['95'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T13%3A18%3A28.5443237Z''\"","location":"westcentralus","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/2c3f2ad6-5035-4fd8-85bd-fc945806ab5c?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['548'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:18:28 GMT'] + etag: [W/"datetime'2019-05-10T13%3A18%3A28.5443237Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/2c3f2ad6-5035-4fd8-85bd-fc945806ab5c?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/2c3f2ad6-5035-4fd8-85bd-fc945806ab5c","name":"2c3f2ad6-5035-4fd8-85bd-fc945806ab5c","status":"Succeeded","startTime":"2019-05-10T13:18:28.4176956Z","endTime":"2019-05-10T13:18:28.9335649Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['621'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:19:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T13%3A18%3A29.0536883Z''\"","location":"westcentralus","properties":{"poolId":"13478a10-63e5-d4d2-0620-2bb3e57e2552","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['656'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:19:02 GMT'] + etag: [W/"datetime'2019-05-10T13%3A18%3A29.0536883Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['393'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T13%3A19%3A06.6866003Z''\"","location":"westcentralus","properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000004","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['908'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:19:07 GMT'] + etag: [W/"datetime'2019-05-10T13%3A19%3A06.6866003Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b","name":"ff43df03-7747-4146-bcc0-867b75cc251b","status":"Creating","startTime":"2019-05-10T13:19:06.5523698Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:19:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b","name":"ff43df03-7747-4146-bcc0-867b75cc251b","status":"Creating","startTime":"2019-05-10T13:19:06.5523698Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:20:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b","name":"ff43df03-7747-4146-bcc0-867b75cc251b","status":"Creating","startTime":"2019-05-10T13:19:06.5523698Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:20:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b","name":"ff43df03-7747-4146-bcc0-867b75cc251b","status":"Creating","startTime":"2019-05-10T13:19:06.5523698Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:21:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/ff43df03-7747-4146-bcc0-867b75cc251b","name":"ff43df03-7747-4146-bcc0-867b75cc251b","status":"Succeeded","startTime":"2019-05-10T13:19:06.5523698Z","endTime":"2019-05-10T13:21:44.202258Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['653'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:21:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T13%3A21%3A44.2442665Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","fileSystemId":"32c03231-6abc-416d-c3c4-a519ca910fea","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"220be37a-7ff1-4b84-ba2f-c1aed33a19b9","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_220be37a7ff14b84ba2fc1aed33a19b9_286d4611","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"d8d88c32-ff5b-447b-95e9-4e2022e971f0","fileSystemId":"32c03231-6abc-416d-c3c4-a519ca910fea","startIp":"10.5.0.4","endIp":"10.5.0.4","gateway":"10.5.0.1","netmask":"255.255.255.0","ipAddress":"10.5.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1629'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:21:50 GMT'] + etag: [W/"datetime'2019-05-10T13%3A21%3A44.2442665Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "32c03231-6abc-416d-c3c4-a519ca910fea"}, + "location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot create] + Connection: [keep-alive] + Content-Length: ['101'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"5/10/2019 + 1:22:00 PM","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"954f1a20-b19a-a99d-90a5-d4d69aaccc62","fileSystemId":"32c03231-6abc-416d-c3c4-a519ca910fea","name":"cli-sn-000005","created":"2019-05-10T13:21:58Z"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['784'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:22:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"954f1a20-b19a-a99d-90a5-d4d69aaccc62","fileSystemId":"32c03231-6abc-416d-c3c4-a519ca910fea","name":"cli-sn-000005","created":"2019-05-10T13:21:58Z"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['766'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:22:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a -p -v -s] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 13:22:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:22:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 13:22:19 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdJU1pHUFo0QVVMUTM0SkJDNkZGUDNKTVVQSzNMNERWUFlJR3xDRkVBMjQ5RDVFRTE2QTg1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_volumes.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_volumes.yaml new file mode 100644 index 00000000000..d4e3e78e8bd --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_delete_volumes.yaml @@ -0,0 +1,946 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T10:38:17Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T10:38:17Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"d150b175-6d9f-4405-9669-9bf2bd394cbc\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"83df3778-be34-4d6b-9a5a-471f12e5e907\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/d57f0a71-7623-4ad7-b24b-13fc1d705d01?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:33 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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/d57f0a71-7623-4ad7-b24b-13fc1d705d01?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"c98e9838-b203-45ad-ade3-3805b949284e\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"83df3778-be34-4d6b-9a5a-471f12e5e907\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:40 GMT'] + etag: [W/"c98e9838-b203-45ad-ade3-3805b949284e"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"c98e9838-b203-45ad-ade3-3805b949284e\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"83df3778-be34-4d6b-9a5a-471f12e5e907\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:42 GMT'] + etag: [W/"c98e9838-b203-45ad-ade3-3805b949284e"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005", + "etag": "W/\"c98e9838-b203-45ad-ade3-3805b949284e\"", "location": "westus2", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "cli-subnet-000006", + "properties": {"addressPrefix": "10.12.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.12.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "83df3778-be34-4d6b-9a5a-471f12e5e907", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['779'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"e1f757b3-8845-4a8b-9e5f-40ac87b54c38\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"83df3778-be34-4d6b-9a5a-471f12e5e907\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"e1f757b3-8845-4a8b-9e5f-40ac87b54c38\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"e1f757b3-8845-4a8b-9e5f-40ac87b54c38\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4b21a948-430f-418b-b6b5-b434044454ba?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2278'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:44 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-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4b21a948-430f-418b-b6b5-b434044454ba?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:49 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"2f272610-19fd-461b-9262-5d7642cbd54f\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"83df3778-be34-4d6b-9a5a-471f12e5e907\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"2f272610-19fd-461b-9262-5d7642cbd54f\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"2f272610-19fd-461b-9262-5d7642cbd54f\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2280'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:51 GMT'] + etag: [W/"2f272610-19fd-461b-9262-5d7642cbd54f"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A38%3A57.4975006Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/11ba09a0-87cc-4859-8e14-7ee893faa071?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:38:58 GMT'] + etag: [W/"datetime'2019-05-10T10%3A38%3A57.4975006Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/11ba09a0-87cc-4859-8e14-7ee893faa071?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/11ba09a0-87cc-4859-8e14-7ee893faa071","name":"11ba09a0-87cc-4859-8e14-7ee893faa071","status":"Succeeded","startTime":"2019-05-10T10:38:56.9623545Z","endTime":"2019-05-10T10:38:57.5092605Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:39:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A38%3A57.5805591Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:39:32 GMT'] + etag: [W/"datetime'2019-05-10T10%3A38%3A57.5805591Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['135'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T10%3A39%3A39.7143107Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fb80047f-0b2e-4a5a-a25f-cb53efd9fa0e?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:39:40 GMT'] + etag: [W/"datetime'2019-05-10T10%3A39%3A39.7143107Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fb80047f-0b2e-4a5a-a25f-cb53efd9fa0e?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fb80047f-0b2e-4a5a-a25f-cb53efd9fa0e","name":"fb80047f-0b2e-4a5a-a25f-cb53efd9fa0e","status":"Succeeded","startTime":"2019-05-10T10:39:39.5804543Z","endTime":"2019-05-10T10:39:40.5804637Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:40:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T10%3A39%3A40.6419648Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"0069e22b-b272-7c3a-e761-cd526ab75a93","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:40:15 GMT'] + etag: [W/"datetime'2019-05-10T10%3A39%3A40.6419648Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"usageThreshold": + 107374182400, "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag1": + "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['441'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T10%3A40%3A20.8496519Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000004","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['951'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:40:21 GMT'] + etag: [W/"datetime'2019-05-10T10%3A40%3A20.8496519Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","name":"f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","status":"Creating","startTime":"2019-05-10T10:40:20.6940875Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:40:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","name":"f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","status":"Creating","startTime":"2019-05-10T10:40:20.6940875Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:41:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","name":"f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","status":"Creating","startTime":"2019-05-10T10:40:20.6940875Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:41:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","name":"f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","status":"Creating","startTime":"2019-05-10T10:40:20.6940875Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:42:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","name":"f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","status":"Creating","startTime":"2019-05-10T10:40:20.6940875Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:43:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","name":"f47afa30-768f-4cb0-b9d1-b6c4e48c4c0b","status":"Succeeded","startTime":"2019-05-10T10:40:20.6940875Z","endTime":"2019-05-10T10:43:12.8463774Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:43:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T10%3A43%3A12.8823973Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"91fc96df-2a9a-2eb4-910c-784a974f8256","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_4a340014","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"6afb5d09-1ed2-9f26-13bd-3b12576484fd","fileSystemId":"91fc96df-2a9a-2eb4-910c-784a974f8256","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1676'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:43:36 GMT'] + etag: [W/"datetime'2019-05-10T10%3A43%3A12.8823973Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T10%3A43%3A12.8823973Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"91fc96df-2a9a-2eb4-910c-784a974f8256","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_4a340014","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"6afb5d09-1ed2-9f26-13bd-3b12576484fd","fileSystemId":"91fc96df-2a9a-2eb4-910c-784a974f8256","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1688'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:43:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/55355439-3cfd-4c74-932c-d3509133bee7?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 10:43:42 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/55355439-3cfd-4c74-932c-d3509133bee7?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/55355439-3cfd-4c74-932c-d3509133bee7?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/55355439-3cfd-4c74-932c-d3509133bee7","name":"55355439-3cfd-4c74-932c-d3509133bee7","status":"Deleting","startTime":"2019-05-10T10:43:42.7215669Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:44:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/55355439-3cfd-4c74-932c-d3509133bee7?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/55355439-3cfd-4c74-932c-d3509133bee7","name":"55355439-3cfd-4c74-932c-d3509133bee7","status":"Succeeded","startTime":"2019-05-10T10:43:42.7215669Z","endTime":"2019-05-10T10:44:30.1620973Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:44:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:44:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 10:44:56 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHWjNINENLM0FOT0JCSFdDNTRUSUFUWjVBVklaQllDSXwzQTIxNzI4NjUyM0Q2Q0YxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_pool_string_size.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_pool_string_size.yaml new file mode 100644 index 00000000000..3a94b388cc9 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_pool_string_size.yaml @@ -0,0 +1,153 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T10:35:24Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T10:35:24Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:35:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A35%3A40.1049485Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/797ecee0-46f0-4fcf-8292-396a10aa423f?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:35:39 GMT'] + etag: [W/"datetime'2019-05-10T10%3A35%3A40.1049485Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/797ecee0-46f0-4fcf-8292-396a10aa423f?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/797ecee0-46f0-4fcf-8292-396a10aa423f","name":"797ecee0-46f0-4fcf-8292-396a10aa423f","status":"Succeeded","startTime":"2019-05-10T10:35:40.0370379Z","endTime":"2019-05-10T10:35:40.1307914Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:36:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A35%3A40.1860054Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:36:15 GMT'] + etag: [W/"datetime'2019-05-10T10%3A35%3A40.1860054Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 10:36:21 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHTEdOSDM3V0JDUDZXT1pKV1NYVzdLMzZLNDVXN1pFRXw2OEFGMzYwOURENUEwRTBELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_pool_too_small.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_pool_too_small.yaml new file mode 100644 index 00000000000..aff73c84ed3 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_create_pool_too_small.yaml @@ -0,0 +1,153 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T10:04:10Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T10:04:10Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:04:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A04%3A22.3747054Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8a866983-fecd-4f68-8fc4-bf7a9afc5dce?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:04:22 GMT'] + etag: [W/"datetime'2019-05-10T10%3A04%3A22.3747054Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8a866983-fecd-4f68-8fc4-bf7a9afc5dce?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8a866983-fecd-4f68-8fc4-bf7a9afc5dce","name":"8a866983-fecd-4f68-8fc4-bf7a9afc5dce","status":"Succeeded","startTime":"2019-05-10T10:04:22.2708514Z","endTime":"2019-05-10T10:04:22.3958187Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:04:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A04%3A22.4537607Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:04:55 GMT'] + etag: [W/"datetime'2019-05-10T10%3A04%3A22.4537607Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 10:05:00 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHUlNUUVBWRkY2RlBZRUpET01CSlNHQkszSEUzS0c3M3xGRTBGMjdDNDZEQjNBNTMxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_account_by_name.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_account_by_name.yaml new file mode 100644 index 00000000000..d94b2739ff4 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_account_by_name.yaml @@ -0,0 +1,217 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:13:47Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001","name":"cli_tests_rg_000001","location":"westus","tags":{"date":"2019-05-10T09:13:47Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:13:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.736215Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d977698e-67de-425d-9b83-157d3b85936c?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:01 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.736215Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d977698e-67de-425d-9b83-157d3b85936c?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d977698e-67de-425d-9b83-157d3b85936c","name":"d977698e-67de-425d-9b83-157d3b85936c","status":"Succeeded","startTime":"2019-05-10T09:14:00.6801436Z","endTime":"2019-05-10T09:14:00.7582438Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.8152707Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:33 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.8152707Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account show] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.8152707Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:34 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.8152707Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account show] + Connection: [keep-alive] + ParameterSetName: [--ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.8152707Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:36 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.8152707Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:14:38 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHOjVGNzMzV1A3U0lCM09DN1ZWQU9JTzdIWERSM04zWXxBMDdFNDY0NzU2M0NBRkZELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_pool_by_name.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_pool_by_name.yaml new file mode 100644 index 00000000000..724698b18a3 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_pool_by_name.yaml @@ -0,0 +1,313 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:31:00Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T09:31:00Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A14.206738Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/95097a9b-65aa-43e8-8298-9203fecd2ee8?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:14 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A14.206738Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/95097a9b-65aa-43e8-8298-9203fecd2ee8?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/95097a9b-65aa-43e8-8298-9203fecd2ee8","name":"95097a9b-65aa-43e8-8298-9203fecd2ee8","status":"Succeeded","startTime":"2019-05-10T09:31:14.1382913Z","endTime":"2019-05-10T09:31:14.232038Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A14.2867939Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:49 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A14.2867939Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A52.9782861Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2572d8d9-b4e3-4e8c-99b1-22bd083bafb9?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:53 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A52.9782861Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2572d8d9-b4e3-4e8c-99b1-22bd083bafb9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2572d8d9-b4e3-4e8c-99b1-22bd083bafb9","name":"2572d8d9-b4e3-4e8c-99b1-22bd083bafb9","status":"Succeeded","startTime":"2019-05-10T09:31:52.8398693Z","endTime":"2019-05-10T09:31:53.4026799Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A53.4806401Z''\"","location":"westus2","properties":{"poolId":"4901c667-e8d0-a3ae-cb3c-568102196758","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:28 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A53.4806401Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool show] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A53.4806401Z''\"","location":"westus2","properties":{"poolId":"4901c667-e8d0-a3ae-cb3c-568102196758","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:30 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A53.4806401Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool show] + Connection: [keep-alive] + ParameterSetName: [--ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A53.4806401Z''\"","location":"westus2","properties":{"poolId":"4901c667-e8d0-a3ae-cb3c-568102196758","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:32 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A53.4806401Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:32:37 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHWEpRSlVPWUM1WE41S0lRVkk3SFJERldFQ1dES0JUM3wxN0E0RTU1MDE1NDA2Njg2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_snapshot.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_snapshot.yaml new file mode 100644 index 00000000000..fa7b4c92491 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_snapshot.yaml @@ -0,0 +1,856 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T13:35:29Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-05-10T13:35:29Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:35:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westcentralus", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.5.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['130'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"afc4db6f-1407-4864-9c44-bf6a58542eff\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"b8027e7f-2d6a-4ee7-b92e-f189f1279b85\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/93a6eb17-c37d-423d-beca-bd4baef431ae?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['811'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:35:47 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-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/93a6eb17-c37d-423d-beca-bd4baef431ae?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:35: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"72b0621c-08d8-41ed-b557-4a163e0542bf\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"b8027e7f-2d6a-4ee7-b92e-f189f1279b85\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['812'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:35:55 GMT'] + etag: [W/"72b0621c-08d8-41ed-b557-4a163e0542bf"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"72b0621c-08d8-41ed-b557-4a163e0542bf\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"b8027e7f-2d6a-4ee7-b92e-f189f1279b85\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['812'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:35:57 GMT'] + etag: [W/"72b0621c-08d8-41ed-b557-4a163e0542bf"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006", + "etag": "W/\"72b0621c-08d8-41ed-b557-4a163e0542bf\"", "location": "westcentralus", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "subnet02", + "properties": {"addressPrefix": "10.5.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.5.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "b8027e7f-2d6a-4ee7-b92e-f189f1279b85", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['775'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"8459525e-adb9-41dd-9893-fbf0f82ab6ea\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"b8027e7f-2d6a-4ee7-b92e-f189f1279b85\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet02\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02\"\ + ,\r\n \"etag\": \"W/\\\"8459525e-adb9-41dd-9893-fbf0f82ab6ea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.5.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"8459525e-adb9-41dd-9893-fbf0f82ab6ea\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/38847559-6cbb-4585-b42f-2b1a3654adff?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2258'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:35:59 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-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/38847559-6cbb-4585-b42f-2b1a3654adff?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:36:04 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"7fca2c61-fbf5-4eda-8030-ad101d8dabb1\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"b8027e7f-2d6a-4ee7-b92e-f189f1279b85\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet02\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02\"\ + ,\r\n \"etag\": \"W/\\\"7fca2c61-fbf5-4eda-8030-ad101d8dabb1\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.5.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"7fca2c61-fbf5-4eda-8030-ad101d8dabb1\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2260'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:36:06 GMT'] + etag: [W/"7fca2c61-fbf5-4eda-8030-ad101d8dabb1"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['29'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T13%3A36%3A12.455633Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/da4f6fb8-a055-452a-8de5-faa6cc68231e?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['458'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:36:13 GMT'] + etag: [W/"datetime'2019-05-10T13%3A36%3A12.455633Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/da4f6fb8-a055-452a-8de5-faa6cc68231e?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/da4f6fb8-a055-452a-8de5-faa6cc68231e","name":"da4f6fb8-a055-452a-8de5-faa6cc68231e","status":"Succeeded","startTime":"2019-05-10T13:36:12.331616Z","endTime":"2019-05-10T13:36:12.5191049Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['581'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:36:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T13%3A36%3A12.6497716Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['459'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:36:48 GMT'] + etag: [W/"datetime'2019-05-10T13%3A36%3A12.6497716Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westcentralus", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['95'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T13%3A36%3A54.4226474Z''\"","location":"westcentralus","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/30ae5379-462e-4575-bb65-adb5e3e29e11?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['548'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:36:54 GMT'] + etag: [W/"datetime'2019-05-10T13%3A36%3A54.4226474Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/30ae5379-462e-4575-bb65-adb5e3e29e11?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/30ae5379-462e-4575-bb65-adb5e3e29e11","name":"30ae5379-462e-4575-bb65-adb5e3e29e11","status":"Succeeded","startTime":"2019-05-10T13:36:54.2434251Z","endTime":"2019-05-10T13:36:54.821553Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['620'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:37:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T13%3A36%3A54.9410185Z''\"","location":"westcentralus","properties":{"poolId":"110f7a92-d61d-48e7-1c3d-2f73598204f8","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['656'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:37:30 GMT'] + etag: [W/"datetime'2019-05-10T13%3A36%3A54.9410185Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['393'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T13%3A37%3A34.6103886Z''\"","location":"westcentralus","properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000004","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['908'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:37:34 GMT'] + etag: [W/"datetime'2019-05-10T13%3A37%3A34.6103886Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba","name":"23df9d21-a58e-4b77-9e6e-0edbb07adeba","status":"Creating","startTime":"2019-05-10T13:37:34.4624291Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:38:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba","name":"23df9d21-a58e-4b77-9e6e-0edbb07adeba","status":"Creating","startTime":"2019-05-10T13:37:34.4624291Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:38:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba","name":"23df9d21-a58e-4b77-9e6e-0edbb07adeba","status":"Creating","startTime":"2019-05-10T13:37:34.4624291Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:39:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba","name":"23df9d21-a58e-4b77-9e6e-0edbb07adeba","status":"Creating","startTime":"2019-05-10T13:37:34.4624291Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:39:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/23df9d21-a58e-4b77-9e6e-0edbb07adeba","name":"23df9d21-a58e-4b77-9e6e-0edbb07adeba","status":"Succeeded","startTime":"2019-05-10T13:37:34.4624291Z","endTime":"2019-05-10T13:40:09.7397431Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['654'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:40:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T13%3A40%3A09.7663489Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","fileSystemId":"997485c7-00ff-9d5d-aa28-72ab02f68029","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"220be37a-7ff1-4b84-ba2f-c1aed33a19b9","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_220be37a7ff14b84ba2fc1aed33a19b9_6e76c8c5","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/subnet02","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"61d9534d-b713-736f-ee3f-c77170307617","fileSystemId":"997485c7-00ff-9d5d-aa28-72ab02f68029","startIp":"10.5.0.4","endIp":"10.5.0.4","gateway":"10.5.0.1","netmask":"255.255.255.0","ipAddress":"10.5.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1629'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:40:18 GMT'] + etag: [W/"datetime'2019-05-10T13%3A40%3A09.7663489Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "997485c7-00ff-9d5d-aa28-72ab02f68029"}, + "location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot create] + Connection: [keep-alive] + Content-Length: ['101'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"5/10/2019 + 1:40:26 PM","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"9be6dcf3-1a62-8ac7-2503-bc172aff59b6","fileSystemId":"997485c7-00ff-9d5d-aa28-72ab02f68029","name":"cli-sn-000005","created":"2019-05-10T13:40:24Z"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['784'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:40:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot show] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -v -s] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"9be6dcf3-1a62-8ac7-2503-bc172aff59b6","fileSystemId":"997485c7-00ff-9d5d-aa28-72ab02f68029","name":"cli-sn-000005","created":"2019-05-10T13:40:24Z"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['754'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:40:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot show] + Connection: [keep-alive] + ParameterSetName: [--ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"9be6dcf3-1a62-8ac7-2503-bc172aff59b6","fileSystemId":"997485c7-00ff-9d5d-aa28-72ab02f68029","name":"cli-sn-000005","created":"2019-05-10T13:40:24Z"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['754'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:40:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 13:40:35 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdRQUE1VEgyR0hJWFBCSVdNVkdaTzRKTjNWUTZPR0FZSjJSTXw3QjU2QkEzMkZDNUM1RTNELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_volume_by_name.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_volume_by_name.yaml new file mode 100644 index 00000000000..eb48775e49d --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_get_volume_by_name.yaml @@ -0,0 +1,856 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T10:46:13Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T10:46:13Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"77f9c607-3756-4ca2-a360-1e6ef09dfca8\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"c0fbcf52-de1e-4681-88d6-38efb695f39f\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/a395894a-e19e-4cb3-9561-60ba73d21744?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46: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-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/a395894a-e19e-4cb3-9561-60ba73d21744?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"933d5040-710d-451a-910e-89b2394ac323\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"c0fbcf52-de1e-4681-88d6-38efb695f39f\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46:36 GMT'] + etag: [W/"933d5040-710d-451a-910e-89b2394ac323"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"933d5040-710d-451a-910e-89b2394ac323\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"c0fbcf52-de1e-4681-88d6-38efb695f39f\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46:37 GMT'] + etag: [W/"933d5040-710d-451a-910e-89b2394ac323"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005", + "etag": "W/\"933d5040-710d-451a-910e-89b2394ac323\"", "location": "westus2", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "cli-subnet-000006", + "properties": {"addressPrefix": "10.12.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.12.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "c0fbcf52-de1e-4681-88d6-38efb695f39f", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['779'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"23d0fd56-a8e7-44c9-9183-40fdedabb862\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"c0fbcf52-de1e-4681-88d6-38efb695f39f\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"23d0fd56-a8e7-44c9-9183-40fdedabb862\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"23d0fd56-a8e7-44c9-9183-40fdedabb862\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/d61b8c3f-1430-44f1-828c-f3f1849d2052?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2278'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46: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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/d61b8c3f-1430-44f1-828c-f3f1849d2052?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46:45 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"b978accc-04ba-44d9-85bc-d40e7358558a\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"c0fbcf52-de1e-4681-88d6-38efb695f39f\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"b978accc-04ba-44d9-85bc-d40e7358558a\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"b978accc-04ba-44d9-85bc-d40e7358558a\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2280'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46:46 GMT'] + etag: [W/"b978accc-04ba-44d9-85bc-d40e7358558a"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A46%3A50.9734216Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bf6f8e0d-a256-4508-8f38-3119dfafd22a?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:46:51 GMT'] + etag: [W/"datetime'2019-05-10T10%3A46%3A50.9734216Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bf6f8e0d-a256-4508-8f38-3119dfafd22a?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bf6f8e0d-a256-4508-8f38-3119dfafd22a","name":"bf6f8e0d-a256-4508-8f38-3119dfafd22a","status":"Succeeded","startTime":"2019-05-10T10:46:50.910846Z","endTime":"2019-05-10T10:46:51.0045981Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:47:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A46%3A51.0504759Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:47:24 GMT'] + etag: [W/"datetime'2019-05-10T10%3A46%3A51.0504759Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag2": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T10%3A47%3A29.7558155Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f81b9826-aa4e-4aa3-89c4-85b40f70dc37?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:47:30 GMT'] + etag: [W/"datetime'2019-05-10T10%3A47%3A29.7558155Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f81b9826-aa4e-4aa3-89c4-85b40f70dc37?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f81b9826-aa4e-4aa3-89c4-85b40f70dc37","name":"f81b9826-aa4e-4aa3-89c4-85b40f70dc37","status":"Succeeded","startTime":"2019-05-10T10:47:29.6332654Z","endTime":"2019-05-10T10:47:30.1489084Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:48:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T10%3A47%3A30.1951262Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"poolId":"a11f03c2-002c-ed71-4815-1a22e1f470a6","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:48:03 GMT'] + etag: [W/"datetime'2019-05-10T10%3A47%3A30.1951262Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"usageThreshold": + 107374182400, "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag2": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['423'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T10%3A48%3A08.3310567Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000004","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['935'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:48:08 GMT'] + etag: [W/"datetime'2019-05-10T10%3A48%3A08.3310567Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06","name":"4ba78da3-9290-46be-a6cc-7b6d340ecd06","status":"Creating","startTime":"2019-05-10T10:48:08.2537482Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:48:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06","name":"4ba78da3-9290-46be-a6cc-7b6d340ecd06","status":"Creating","startTime":"2019-05-10T10:48:08.2537482Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:49:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06","name":"4ba78da3-9290-46be-a6cc-7b6d340ecd06","status":"Creating","startTime":"2019-05-10T10:48:08.2537482Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:49:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06","name":"4ba78da3-9290-46be-a6cc-7b6d340ecd06","status":"Creating","startTime":"2019-05-10T10:48:08.2537482Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:50:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06","name":"4ba78da3-9290-46be-a6cc-7b6d340ecd06","status":"Creating","startTime":"2019-05-10T10:48:08.2537482Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:50:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4ba78da3-9290-46be-a6cc-7b6d340ecd06","name":"4ba78da3-9290-46be-a6cc-7b6d340ecd06","status":"Succeeded","startTime":"2019-05-10T10:48:08.2537482Z","endTime":"2019-05-10T10:50:54.109871Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:51:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T10%3A50%3A54.1431599Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"4c5345f0-c209-cad0-5440-294b3bdedb38","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_98238d7a","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"49357f2d-6c06-dc88-58be-6a47fbcf37ca","fileSystemId":"4c5345f0-c209-cad0-5440-294b3bdedb38","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1660'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:51:18 GMT'] + etag: [W/"datetime'2019-05-10T10%3A50%3A54.1431599Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume show] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T10%3A50%3A54.1431599Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"4c5345f0-c209-cad0-5440-294b3bdedb38","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_98238d7a","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"49357f2d-6c06-dc88-58be-6a47fbcf37ca","fileSystemId":"4c5345f0-c209-cad0-5440-294b3bdedb38","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1660'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:51:20 GMT'] + etag: [W/"datetime'2019-05-10T10%3A50%3A54.1431599Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume show] + Connection: [keep-alive] + ParameterSetName: [--ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T10%3A50%3A54.1431599Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"4c5345f0-c209-cad0-5440-294b3bdedb38","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_98238d7a","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"49357f2d-6c06-dc88-58be-6a47fbcf37ca","fileSystemId":"4c5345f0-c209-cad0-5440-294b3bdedb38","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1660'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:51:21 GMT'] + etag: [W/"datetime'2019-05-10T10%3A50%3A54.1431599Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 10:51:24 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHM1BWWUlINllJWVRZUktLRVRRNzZRR1U1TzZDQUpERnxGQ0Q0MUJCMjY1NDlFRjEwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_accounts.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_accounts.yaml new file mode 100644 index 00000000000..28ace4b8251 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_accounts.yaml @@ -0,0 +1,429 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:13:47Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001","name":"cli_tests_rg_000001","location":"westus","tags":{"date":"2019-05-10T09:13:47Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:13:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.2308588Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/08d1c0aa-e9a9-4d2f-8296-11805eb8ae43?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:00 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.2308588Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/08d1c0aa-e9a9-4d2f-8296-11805eb8ae43?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/08d1c0aa-e9a9-4d2f-8296-11805eb8ae43","name":"08d1c0aa-e9a9-4d2f-8296-11805eb8ae43","status":"Succeeded","startTime":"2019-05-10T09:14:00.1254009Z","endTime":"2019-05-10T09:14:00.2504043Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.319922Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['477'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:32 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.319922Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A34.7942053Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/acadb0e1-b045-4c5c-bfec-687c76bf57d8?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:35 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A34.7942053Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/acadb0e1-b045-4c5c-bfec-687c76bf57d8?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/acadb0e1-b045-4c5c-bfec-687c76bf57d8","name":"acadb0e1-b045-4c5c-bfec-687c76bf57d8","status":"Succeeded","startTime":"2019-05-10T09:14:34.7252483Z","endTime":"2019-05-10T09:14:34.8193287Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A34.8742612Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:10 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A34.8742612Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account list] + Connection: [keep-alive] + ParameterSetName: [-g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.319922Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A34.8742612Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000003"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['968'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ed5cb038-e040-4d11-bf73-fe22e3bcb383?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:15:15 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ed5cb038-e040-4d11-bf73-fe22e3bcb383?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ed5cb038-e040-4d11-bf73-fe22e3bcb383?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ed5cb038-e040-4d11-bf73-fe22e3bcb383","name":"ed5cb038-e040-4d11-bf73-fe22e3bcb383","status":"Succeeded","startTime":"2019-05-10T09:15:16.1473758Z","endTime":"2019-05-10T09:15:16.2255408Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:15:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ae0b95ca-bdc3-4903-930f-b8851a2064af?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:15:50 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ae0b95ca-bdc3-4903-930f-b8851a2064af?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account delete] + Connection: [keep-alive] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ae0b95ca-bdc3-4903-930f-b8851a2064af?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ae0b95ca-bdc3-4903-930f-b8851a2064af","name":"ae0b95ca-bdc3-4903-930f-b8851a2064af","status":"Succeeded","startTime":"2019-05-10T09:15:50.7915954Z","endTime":"2019-05-10T09:15:50.9165789Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:16:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:16:23 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: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:16:27 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHOjVGVzRDVjVJMkhNS05CSllKSjRQNk5ZU1k3NkFLQXxDMUIzRTM3Mjc3QUY5NzQxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_mount_targets.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_mount_targets.yaml new file mode 100644 index 00000000000..2e61a4c6a8f --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_mount_targets.yaml @@ -0,0 +1,823 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T11:25:15Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-05-10T11:25:15Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['124'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-lefr-01\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01\"\ + ,\r\n \"etag\": \"W/\\\"d3a50857-95da-4a52-8671-026c584c9b11\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"cadae358-2e46-403f-9f4e-7eb2718ca726\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4dae6d1d-2d13-44e5-8e47-bda3be58f022?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['789'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25:31 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-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4dae6d1d-2d13-44e5-8e47-bda3be58f022?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-lefr-01\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01\"\ + ,\r\n \"etag\": \"W/\\\"40c2be90-2638-4116-9b9c-88473c76c9ed\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"cadae358-2e46-403f-9f4e-7eb2718ca726\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['790'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25:39 GMT'] + etag: [W/"40c2be90-2638-4116-9b9c-88473c76c9ed"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-lefr-01\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01\"\ + ,\r\n \"etag\": \"W/\\\"40c2be90-2638-4116-9b9c-88473c76c9ed\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"cadae358-2e46-403f-9f4e-7eb2718ca726\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['790'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25:40 GMT'] + etag: [W/"40c2be90-2638-4116-9b9c-88473c76c9ed"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01", + "etag": "W/\"40c2be90-2638-4116-9b9c-88473c76c9ed\"", "location": "westus2", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "subnet01", + "properties": {"addressPrefix": "10.0.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.0.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "cadae358-2e46-403f-9f4e-7eb2718ca726", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['761'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-lefr-01\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01\"\ + ,\r\n \"etag\": \"W/\\\"a133f99d-0cae-4c04-a0f0-96264adfba58\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"cadae358-2e46-403f-9f4e-7eb2718ca726\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet01\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01/subnets/subnet01\"\ + ,\r\n \"etag\": \"W/\\\"a133f99d-0cae-4c04-a0f0-96264adfba58\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01/subnets/subnet01/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"a133f99d-0cae-4c04-a0f0-96264adfba58\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/3770ac4a-ce14-4861-8de5-522f60002150?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2220'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25:43 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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/3770ac4a-ce14-4861-8de5-522f60002150?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-lefr-01\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01\"\ + ,\r\n \"etag\": \"W/\\\"daa64563-b1a2-4095-8ada-d4c9a5c03135\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"cadae358-2e46-403f-9f4e-7eb2718ca726\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet01\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01/subnets/subnet01\"\ + ,\r\n \"etag\": \"W/\\\"daa64563-b1a2-4095-8ada-d4c9a5c03135\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01/subnets/subnet01/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"daa64563-b1a2-4095-8ada-d4c9a5c03135\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2222'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25:49 GMT'] + etag: [W/"daa64563-b1a2-4095-8ada-d4c9a5c03135"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01","name":"cli-acc-lefr-01","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T11%3A25%3A54.8805604Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/17c5f048-4dbb-47e4-a553-83e56375ef72?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['426'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:25:55 GMT'] + etag: [W/"datetime'2019-05-10T11%3A25%3A54.8805604Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/17c5f048-4dbb-47e4-a553-83e56375ef72?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/17c5f048-4dbb-47e4-a553-83e56375ef72","name":"17c5f048-4dbb-47e4-a553-83e56375ef72","status":"Succeeded","startTime":"2019-05-10T11:25:54.7581012Z","endTime":"2019-05-10T11:25:54.9143699Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:26:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01","name":"cli-acc-lefr-01","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T11%3A25%3A54.9606164Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['426'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:26:28 GMT'] + etag: [W/"datetime'2019-05-10T11%3A25%3A54.9606164Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01","name":"cli-acc-lefr-01/cli-pool-lefr-01","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T11%3A26%3A32.6061931Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9dfb0051-e5e4-4f67-9991-bed405b931ab?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['508'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:26:32 GMT'] + etag: [W/"datetime'2019-05-10T11%3A26%3A32.6061931Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9dfb0051-e5e4-4f67-9991-bed405b931ab?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9dfb0051-e5e4-4f67-9991-bed405b931ab","name":"9dfb0051-e5e4-4f67-9991-bed405b931ab","status":"Succeeded","startTime":"2019-05-10T11:26:32.5491568Z","endTime":"2019-05-10T11:26:32.955465Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['597'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:27:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01","name":"cli-acc-lefr-01/cli-pool-lefr-01","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T11%3A26%3A33.0374971Z''\"","location":"westus2","properties":{"poolId":"110427aa-5806-dce5-b21f-785b1d2a6105","name":"cli-acc-lefr-01/cli-pool-lefr-01","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['599'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:27:05 GMT'] + etag: [W/"datetime'2019-05-10T11%3A26%3A33.0374971Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01/subnets/subnet01", + "serviceLevel": "Premium", "creationToken": "cli-volume-lefr-01"}, "location": + "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['373'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01","name":"cli-acc-lefr-01/cli-pool-lefr-01/cli-volume-lefr-01","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A27%3A09.7584257Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","creationToken":"cli-volume-lefr-01","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01/subnets/subnet01","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['842'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:27:09 GMT'] + etag: [W/"datetime'2019-05-10T11%3A27%3A09.7584257Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9","name":"aca50e1c-5093-4de6-b09d-7737253133e9","status":"Creating","startTime":"2019-05-10T11:27:09.6745115Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:27:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9","name":"aca50e1c-5093-4de6-b09d-7737253133e9","status":"Creating","startTime":"2019-05-10T11:27:09.6745115Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:28:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9","name":"aca50e1c-5093-4de6-b09d-7737253133e9","status":"Creating","startTime":"2019-05-10T11:27:09.6745115Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:28:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9","name":"aca50e1c-5093-4de6-b09d-7737253133e9","status":"Creating","startTime":"2019-05-10T11:27:09.6745115Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:29:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9","name":"aca50e1c-5093-4de6-b09d-7737253133e9","status":"Creating","startTime":"2019-05-10T11:27:09.6745115Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:29:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/aca50e1c-5093-4de6-b09d-7737253133e9","name":"aca50e1c-5093-4de6-b09d-7737253133e9","status":"Succeeded","startTime":"2019-05-10T11:27:09.6745115Z","endTime":"2019-05-10T11:30:00.5180548Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['625'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:30:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01","name":"cli-acc-lefr-01/cli-pool-lefr-01/cli-volume-lefr-01","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A30%3A00.5482277Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"0bef8877-c268-5903-bf48-6886f2d7e9db","name":"cli-volume-lefr-01","serviceLevel":"Premium","creationToken":"cli-volume-lefr-01","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_ffda025e","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-lefr-01/subnets/subnet01","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"a13cb4c0-82d7-8bc6-b746-3ddd05fb4cd3","fileSystemId":"0bef8877-c268-5903-bf48-6886f2d7e9db","startIp":"10.0.0.4","endIp":"10.0.0.4","gateway":"10.0.0.1","netmask":"255.255.255.0","ipAddress":"10.0.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1557'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:30:22 GMT'] + etag: [W/"datetime'2019-05-10T11%3A30%3A00.5482277Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles mount-target list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01/mountTargets?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-lefr-01/capacityPools/cli-pool-lefr-01/volumes/cli-volume-lefr-01/mountTargets/a13cb4c0-82d7-8bc6-b746-3ddd05fb4cd3","name":"cli-acc-lefr-01/cli-pool-lefr-01/cli-volume-lefr-01/a13cb4c0-82d7-8bc6-b746-3ddd05fb4cd3","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/mountTargets","location":"westus2","properties":{"provisioningState":"Succeeded","mountTargetId":"a13cb4c0-82d7-8bc6-b746-3ddd05fb4cd3","fileSystemId":"0bef8877-c268-5903-bf48-6886f2d7e9db","startIp":"10.0.0.4","endIp":"10.0.0.4","gateway":"10.0.0.1","netmask":"255.255.255.0","ipAddress":"10.0.0.4"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['790'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:30:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 11:30:28 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdSTEpYSkJTUldQRTZYRklBQU5KTkJNUFlDSTdOMjJWU0dDT3wzQzAxNzYxNEFBRTU5NjUxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_pools.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_pools.yaml new file mode 100644 index 00000000000..b931783308d --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_pools.yaml @@ -0,0 +1,531 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:31:00Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T09:31:00Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A14.6420443Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3bd58df8-bdbc-4d4c-af6e-559dcb49a3ef?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:15 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A14.6420443Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3bd58df8-bdbc-4d4c-af6e-559dcb49a3ef?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3bd58df8-bdbc-4d4c-af6e-559dcb49a3ef","name":"3bd58df8-bdbc-4d4c-af6e-559dcb49a3ef","status":"Succeeded","startTime":"2019-05-10T09:31:14.5106057Z","endTime":"2019-05-10T09:31:14.6668591Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A14.7261035Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:49 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A14.7261035Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A54.9827046Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0d85de9a-7cd9-4567-9c30-f07162fbe2c7?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:55 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A54.9827046Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0d85de9a-7cd9-4567-9c30-f07162fbe2c7?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0d85de9a-7cd9-4567-9c30-f07162fbe2c7","name":"0d85de9a-7cd9-4567-9c30-f07162fbe2c7","status":"Succeeded","startTime":"2019-05-10T09:31:54.9257229Z","endTime":"2019-05-10T09:31:55.800728Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A55.850316Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"459f9769-4efb-f888-76fc-70f14fbeb5e6","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['674'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:29 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A55.850316Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A32%3A33.732054Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/03b43e23-8843-4320-9e39-fa9e05950477?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['566'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:34 GMT'] + etag: [W/"datetime'2019-05-10T09%3A32%3A33.732054Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/03b43e23-8843-4320-9e39-fa9e05950477?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/03b43e23-8843-4320-9e39-fa9e05950477","name":"03b43e23-8843-4320-9e39-fa9e05950477","status":"Succeeded","startTime":"2019-05-10T09:32:33.6493736Z","endTime":"2019-05-10T09:32:34.0243846Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A32%3A34.0732961Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"90cfdb59-c3c4-0c58-8a86-2cc13fce1580","name":"cli000002/cli000004","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:09 GMT'] + etag: [W/"datetime'2019-05-10T09%3A32%3A34.0732961Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool list] + Connection: [keep-alive] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A55.850316Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"459f9769-4efb-f888-76fc-70f14fbeb5e6","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A32%3A34.0732961Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"90cfdb59-c3c4-0c58-8a86-2cc13fce1580","name":"cli000002/cli000004","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1362'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/006d541a-23c6-4420-82c6-80513b1b3421?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:33:15 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/006d541a-23c6-4420-82c6-80513b1b3421?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/006d541a-23c6-4420-82c6-80513b1b3421?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/006d541a-23c6-4420-82c6-80513b1b3421","name":"006d541a-23c6-4420-82c6-80513b1b3421","status":"Succeeded","startTime":"2019-05-10T09:33:15.216084Z","endTime":"2019-05-10T09:33:15.4817562Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:33:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ce960d58-25fa-4424-9cc6-efbe63181166?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:33:49 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ce960d58-25fa-4424-9cc6-efbe63181166?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool delete] + Connection: [keep-alive] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ce960d58-25fa-4424-9cc6-efbe63181166?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ce960d58-25fa-4424-9cc6-efbe63181166","name":"ce960d58-25fa-4424-9cc6-efbe63181166","status":"Succeeded","startTime":"2019-05-10T09:33:50.3008887Z","endTime":"2019-05-10T09:33:50.7228992Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:34:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:34:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:34:29 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHSkJFSTU2MkRLTlVUWEhSWVlUMk5TVkpBTUpEMllKM3xFQUQ1NEE0RkE1NUQyM0E3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_snapshots.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_snapshots.yaml new file mode 100644 index 00000000000..0f226d331c9 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_snapshots.yaml @@ -0,0 +1,890 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T13:24:31Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-05-10T13:24:31Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:24:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westcentralus", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.5.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['130'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000007\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"2cd050b1-1cf9-4a51-96ad-b61259fda4f8\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"51afc1f7-bcd4-46d9-b3b5-635a03487cee\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/b4c1ad99-8c3e-42a8-b183-402aa902087c?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['811'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:24:49 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-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/b4c1ad99-8c3e-42a8-b183-402aa902087c?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:24: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000007\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"d8e8c3ee-7cb3-46c2-9f67-f42ff7b61f43\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"51afc1f7-bcd4-46d9-b3b5-635a03487cee\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['812'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:24:56 GMT'] + etag: [W/"d8e8c3ee-7cb3-46c2-9f67-f42ff7b61f43"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000007\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"d8e8c3ee-7cb3-46c2-9f67-f42ff7b61f43\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"51afc1f7-bcd4-46d9-b3b5-635a03487cee\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['812'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:24:58 GMT'] + etag: [W/"d8e8c3ee-7cb3-46c2-9f67-f42ff7b61f43"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007", + "etag": "W/\"d8e8c3ee-7cb3-46c2-9f67-f42ff7b61f43\"", "location": "westcentralus", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "subnet02", + "properties": {"addressPrefix": "10.5.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.5.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "51afc1f7-bcd4-46d9-b3b5-635a03487cee", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['775'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000007\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"a6b986dc-82ec-4233-a29f-ba493cd2c00d\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"51afc1f7-bcd4-46d9-b3b5-635a03487cee\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet02\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/subnet02\"\ + ,\r\n \"etag\": \"W/\\\"a6b986dc-82ec-4233-a29f-ba493cd2c00d\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.5.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/subnet02/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"a6b986dc-82ec-4233-a29f-ba493cd2c00d\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/8fcafb2a-42b3-4686-b309-c8e41b55d1b2?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2258'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:24:59 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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/8fcafb2a-42b3-4686-b309-c8e41b55d1b2?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:25:04 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000007\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"2496d209-87a9-490a-a8ef-90b6ff1a2f24\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westcentralus\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"51afc1f7-bcd4-46d9-b3b5-635a03487cee\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.5.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"subnet02\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/subnet02\"\ + ,\r\n \"etag\": \"W/\\\"2496d209-87a9-490a-a8ef-90b6ff1a2f24\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.5.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/subnet02/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"2496d209-87a9-490a-a8ef-90b6ff1a2f24\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2260'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:25:06 GMT'] + etag: [W/"2496d209-87a9-490a-a8ef-90b6ff1a2f24"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['29'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T13%3A25%3A12.4660111Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/10dbe34e-8afb-4fa5-8844-9798a887a354?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['459'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:25:13 GMT'] + etag: [W/"datetime'2019-05-10T13%3A25%3A12.4660111Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/10dbe34e-8afb-4fa5-8844-9798a887a354?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/10dbe34e-8afb-4fa5-8844-9798a887a354","name":"10dbe34e-8afb-4fa5-8844-9798a887a354","status":"Succeeded","startTime":"2019-05-10T13:25:12.3206423Z","endTime":"2019-05-10T13:25:12.5393993Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['582'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:25:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T13%3A25%3A12.6651528Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['459'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:25:45 GMT'] + etag: [W/"datetime'2019-05-10T13%3A25%3A12.6651528Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westcentralus", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['95'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T13%3A25%3A50.4259986Z''\"","location":"westcentralus","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/dfb18b46-e894-4ad7-a4cb-c427de7ca885?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['548'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:25:50 GMT'] + etag: [W/"datetime'2019-05-10T13%3A25%3A50.4259986Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/dfb18b46-e894-4ad7-a4cb-c427de7ca885?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/dfb18b46-e894-4ad7-a4cb-c427de7ca885","name":"dfb18b46-e894-4ad7-a4cb-c427de7ca885","status":"Succeeded","startTime":"2019-05-10T13:25:50.2885417Z","endTime":"2019-05-10T13:25:50.8354042Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['621'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:26:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T13%3A25%3A50.971389Z''\"","location":"westcentralus","properties":{"poolId":"89b994b6-827f-cd15-368f-61833e2ceb62","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['655'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:26:22 GMT'] + etag: [W/"datetime'2019-05-10T13%3A25%3A50.971389Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/subnet02", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['393'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T13%3A26%3A25.7632742Z''\"","location":"westcentralus","properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000004","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/subnet02","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['908'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:26:25 GMT'] + etag: [W/"datetime'2019-05-10T13%3A26%3A25.7632742Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416","name":"cba1eb47-6bc9-46bf-bb84-76be90923416","status":"Creating","startTime":"2019-05-10T13:26:25.6267686Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:26:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416","name":"cba1eb47-6bc9-46bf-bb84-76be90923416","status":"Creating","startTime":"2019-05-10T13:26:25.6267686Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:27:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416","name":"cba1eb47-6bc9-46bf-bb84-76be90923416","status":"Creating","startTime":"2019-05-10T13:26:25.6267686Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:28:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416","name":"cba1eb47-6bc9-46bf-bb84-76be90923416","status":"Creating","startTime":"2019-05-10T13:26:25.6267686Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:28:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416","name":"cba1eb47-6bc9-46bf-bb84-76be90923416","status":"Creating","startTime":"2019-05-10T13:26:25.6267686Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['643'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:29:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westcentralus/operationResults/cba1eb47-6bc9-46bf-bb84-76be90923416","name":"cba1eb47-6bc9-46bf-bb84-76be90923416","status":"Succeeded","startTime":"2019-05-10T13:26:25.6267686Z","endTime":"2019-05-10T13:29:14.6896733Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['654'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:29:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T13%3A29%3A14.7201065Z''\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","fileSystemId":"d830d3ab-0c3c-55d4-7f7c-a525c0e9a142","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"220be37a-7ff1-4b84-ba2f-c1aed33a19b9","usageThreshold":107374182400,"usedBytes":286720,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_220be37a7ff14b84ba2fc1aed33a19b9_39b69eed","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/subnet02","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"8a73670d-07f6-8290-9b10-383be85460c2","fileSystemId":"d830d3ab-0c3c-55d4-7f7c-a525c0e9a142","startIp":"10.5.0.4","endIp":"10.5.0.4","gateway":"10.5.0.1","netmask":"255.255.255.0","ipAddress":"10.5.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1634'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:29:40 GMT'] + etag: [W/"datetime'2019-05-10T13%3A29%3A14.7201065Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "d830d3ab-0c3c-55d4-7f7c-a525c0e9a142"}, + "location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot create] + Connection: [keep-alive] + Content-Length: ['101'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"5/10/2019 + 1:29:47 PM","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"17433bee-1c9f-d399-7e05-63aee2edafac","fileSystemId":"d830d3ab-0c3c-55d4-7f7c-a525c0e9a142","name":"cli-sn-000005","created":"2019-05-10T13:29:45Z"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['784'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:29:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "d830d3ab-0c3c-55d4-7f7c-a525c0e9a142"}, + "location": "westcentralus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot create] + Connection: [keep-alive] + Content-Length: ['101'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000006?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000006","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000006","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"5/10/2019 + 1:29:54 PM","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"08e6767b-10fe-2b2a-1135-f4041a3f0944","fileSystemId":"d830d3ab-0c3c-55d4-7f7c-a525c0e9a142","name":"cli-sn-000006","created":"2019-05-10T13:29:52Z"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['784'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:29:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles snapshot list] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"17433bee-1c9f-d399-7e05-63aee2edafac","fileSystemId":"d830d3ab-0c3c-55d4-7f7c-a525c0e9a142","name":"cli-sn-000005","created":"2019-05-10T13:29:45Z"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000006","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000006","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westcentralus","properties":{"provisioningState":"Succeeded","snapshotId":"08e6767b-10fe-2b2a-1135-f4041a3f0944","fileSystemId":"d830d3ab-0c3c-55d4-7f7c-a525c0e9a142","name":"cli-sn-000006","created":"2019-05-10T13:29:52Z"}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1521'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 13:29:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 13:29:59 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdWRllLVERBVlo2RUVHQTNOQ1hEM09BRVVHNVJFVjVRTFNGMnw0QkVBRDVDNzZCMkIwNTQ5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_volumes.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_volumes.yaml new file mode 100644 index 00000000000..3d7fec95dbb --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_list_volumes.yaml @@ -0,0 +1,986 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T11:17:10Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T11:17:10Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "eastus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"fa01b7cf-a26c-4103-8e0c-c18b7090fa16\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"e4bc515f-c08d-49a5-b9c8-da2e8f8d78e6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/4a4f3a6e-d06d-4cad-bee4-c9a994b54b88?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17:27 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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/4a4f3a6e-d06d-4cad-bee4-c9a994b54b88?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"e39541be-c860-4292-90c6-f6dfef9fa4b5\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"e4bc515f-c08d-49a5-b9c8-da2e8f8d78e6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17:34 GMT'] + etag: [W/"e39541be-c860-4292-90c6-f6dfef9fa4b5"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"e39541be-c860-4292-90c6-f6dfef9fa4b5\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"e4bc515f-c08d-49a5-b9c8-da2e8f8d78e6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17:36 GMT'] + etag: [W/"e39541be-c860-4292-90c6-f6dfef9fa4b5"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006", + "etag": "W/\"e39541be-c860-4292-90c6-f6dfef9fa4b5\"", "location": "eastus2", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "cli-subnet-000007", + "properties": {"addressPrefix": "10.12.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.12.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "e4bc515f-c08d-49a5-b9c8-da2e8f8d78e6", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['779'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"3fa69458-b892-47f9-8cdd-58251bead67c\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"e4bc515f-c08d-49a5-b9c8-da2e8f8d78e6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"3fa69458-b892-47f9-8cdd-58251bead67c\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"3fa69458-b892-47f9-8cdd-58251bead67c\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/ade155d0-e749-4045-ba3f-98da058aabae?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2278'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17: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-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus2/operations/ade155d0-e749-4045-ba3f-98da058aabae?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17:44 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"b1ec5970-7dfd-40b9-86c3-e439ca495e98\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"e4bc515f-c08d-49a5-b9c8-da2e8f8d78e6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"b1ec5970-7dfd-40b9-86c3-e439ca495e98\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"b1ec5970-7dfd-40b9-86c3-e439ca495e98\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2280'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17:45 GMT'] + etag: [W/"b1ec5970-7dfd-40b9-86c3-e439ca495e98"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "eastus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T11%3A17%3A51.6025525Z''\"","location":"eastus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/6eca95e5-a749-4ccc-ab64-8f62d340c24e?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:17:51 GMT'] + etag: [W/"datetime'2019-05-10T11%3A17%3A51.6025525Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/6eca95e5-a749-4ccc-ab64-8f62d340c24e?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/6eca95e5-a749-4ccc-ab64-8f62d340c24e","name":"6eca95e5-a749-4ccc-ab64-8f62d340c24e","status":"Succeeded","startTime":"2019-05-10T11:17:51.4476488Z","endTime":"2019-05-10T11:17:51.6672723Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:18:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T11%3A17%3A51.8096992Z''\"","location":"eastus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:18:26 GMT'] + etag: [W/"datetime'2019-05-10T11%3A17%3A51.8096992Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "eastus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T11%3A18%3A32.5786176Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/da1124cf-426d-4bcb-9f62-1be75467b0ba?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:18:32 GMT'] + etag: [W/"datetime'2019-05-10T11%3A18%3A32.5786176Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/da1124cf-426d-4bcb-9f62-1be75467b0ba?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/da1124cf-426d-4bcb-9f62-1be75467b0ba","name":"da1124cf-426d-4bcb-9f62-1be75467b0ba","status":"Succeeded","startTime":"2019-05-10T11:18:32.3927889Z","endTime":"2019-05-10T11:18:33.0803192Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:19:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T11%3A18%3A33.2791144Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"3dcd5c61-b8b1-effb-c2bd-ebb5c2b1f0a0","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:19:06 GMT'] + etag: [W/"datetime'2019-05-10T11%3A18%3A33.2791144Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "eastus2", "properties": {"usageThreshold": + 107374182400, "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag1": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['423'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A19%3A14.188126Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000004","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['934'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:19:15 GMT'] + etag: [W/"datetime'2019-05-10T11%3A19%3A14.188126Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed","name":"71564dce-8c77-4ec7-84b6-880445a3a9ed","status":"Creating","startTime":"2019-05-10T11:19:13.9948837Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:19:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed","name":"71564dce-8c77-4ec7-84b6-880445a3a9ed","status":"Creating","startTime":"2019-05-10T11:19:13.9948837Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:20:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed","name":"71564dce-8c77-4ec7-84b6-880445a3a9ed","status":"Creating","startTime":"2019-05-10T11:19:13.9948837Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:20:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed","name":"71564dce-8c77-4ec7-84b6-880445a3a9ed","status":"Creating","startTime":"2019-05-10T11:19:13.9948837Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:21:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/71564dce-8c77-4ec7-84b6-880445a3a9ed","name":"71564dce-8c77-4ec7-84b6-880445a3a9ed","status":"Succeeded","startTime":"2019-05-10T11:19:13.9948837Z","endTime":"2019-05-10T11:21:44.062814Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:21:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A21%3A44.096331Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"849166c4-a911-faa3-38f4-5b9be691430d","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"79770fad-5164-11e9-9e4a-3a8c013b5748","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_79770fad516411e99e4a3a8c013b5748_fa2e2b09","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"db00d635-c5d6-199d-c828-ca6e9fc1fb61","fileSystemId":"849166c4-a911-faa3-38f4-5b9be691430d","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1659'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:21:54 GMT'] + etag: [W/"datetime'2019-05-10T11%3A21%3A44.096331Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "eastus2", "properties": {"usageThreshold": + 107374182400, "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007", + "serviceLevel": "Premium", "creationToken": "cli-vol-000005"}, "tags": {"Tag1": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['423'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -l --service-level --usage-threshold --creation-token + --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A22%3A00.0896763Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000005","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/ea4495ed-4fbd-4ae9-b3f3-bff5b378cfdf?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['935'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:22:00 GMT'] + etag: [W/"datetime'2019-05-10T11%3A22%3A00.0896763Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -v -l --service-level --usage-threshold --creation-token + --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/ea4495ed-4fbd-4ae9-b3f3-bff5b378cfdf?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/ea4495ed-4fbd-4ae9-b3f3-bff5b378cfdf","name":"ea4495ed-4fbd-4ae9-b3f3-bff5b378cfdf","status":"Succeeded","startTime":"2019-05-10T11:21:59.9440686Z","endTime":"2019-05-10T11:22:10.1948436Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000005"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:22:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -v -l --service-level --usage-threshold --creation-token + --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000005?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A22%3A10.2368716Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"eeb9aa20-c935-22c6-dc42-0cf91659ae6a","name":"cli-vol-000005","serviceLevel":"Premium","creationToken":"cli-vol-000005","ownerId":"79770fad-5164-11e9-9e4a-3a8c013b5748","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_79770fad516411e99e4a3a8c013b5748_fa2e2b09","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"e5fd7fb5-1dc2-460b-af6b-03ca7c17da2c","fileSystemId":"eeb9aa20-c935-22c6-dc42-0cf91659ae6a","startIp":"10.8.0.64","endIp":"10.8.0.127","gateway":"10.8.0.65","netmask":"255.255.255.192","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1663'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:22:36 GMT'] + etag: [W/"datetime'2019-05-10T11%3A22%3A10.2368716Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A22%3A10.2368716Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"eeb9aa20-c935-22c6-dc42-0cf91659ae6a","name":"cli-vol-000005","serviceLevel":"Premium","creationToken":"cli-vol-000005","ownerId":"79770fad-5164-11e9-9e4a-3a8c013b5748","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_79770fad516411e99e4a3a8c013b5748_fa2e2b09","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"e5fd7fb5-1dc2-460b-af6b-03ca7c17da2c","fileSystemId":"eeb9aa20-c935-22c6-dc42-0cf91659ae6a","startIp":"10.8.0.64","endIp":"10.8.0.127","gateway":"10.8.0.65","netmask":"255.255.255.192","ipAddress":"10.12.0.4"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A21%3A44.096331Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"849166c4-a911-faa3-38f4-5b9be691430d","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"79770fad-5164-11e9-9e4a-3a8c013b5748","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_79770fad516411e99e4a3a8c013b5748_fa2e2b09","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"db00d635-c5d6-199d-c828-ca6e9fc1fb61","fileSystemId":"849166c4-a911-faa3-38f4-5b9be691430d","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['3335'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:22:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode ''} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/80b08190-066d-4a79-a43f-d1004e827a24?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 11:22:41 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/80b08190-066d-4a79-a43f-d1004e827a24?api-version=2019-05-01&operationResultResponseType=Location'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume delete] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/80b08190-066d-4a79-a43f-d1004e827a24?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/eastus2/operationResults/80b08190-066d-4a79-a43f-d1004e827a24","name":"80b08190-066d-4a79-a43f-d1004e827a24","status":"Succeeded","startTime":"2019-05-10T11:22:41.7793559Z","endTime":"2019-05-10T11:22:45.0764379Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:23:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume list] + Connection: [keep-alive] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A22%3A10.2368716Z''\"","location":"eastus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"eeb9aa20-c935-22c6-dc42-0cf91659ae6a","name":"cli-vol-000005","serviceLevel":"Premium","creationToken":"cli-vol-000005","ownerId":"79770fad-5164-11e9-9e4a-3a8c013b5748","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_79770fad516411e99e4a3a8c013b5748_fa2e2b09","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"e5fd7fb5-1dc2-460b-af6b-03ca7c17da2c","fileSystemId":"eeb9aa20-c935-22c6-dc42-0cf91659ae6a","startIp":"10.8.0.64","endIp":"10.8.0.127","gateway":"10.8.0.65","netmask":"255.255.255.192","ipAddress":"10.12.0.4"}]}}]}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1675'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:23:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 11:23:18 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHR1kyRVk3RE42T0ZWSUo3RU1RM0hCVEpTTFdFV0hPNXxFODA1NzAwNkFFMjIyQjhBLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_set_account.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_set_account.yaml new file mode 100644 index 00000000000..72521662c3d --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_set_account.yaml @@ -0,0 +1,188 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:13:47Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001","name":"cli_tests_rg_000001","location":"westus","tags":{"date":"2019-05-10T09:13:47Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:13:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.0457288Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/eb0dc533-3b97-4526-b9bc-bff81b54cfc3?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:00 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.0457288Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/eb0dc533-3b97-4526-b9bc-bff81b54cfc3?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/eb0dc533-3b97-4526-b9bc-bff81b54cfc3","name":"eb0dc533-3b97-4526-b9bc-bff81b54cfc3","status":"Succeeded","startTime":"2019-05-10T09:13:59.9669494Z","endTime":"2019-05-10T09:14:00.0918744Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A00.1357918Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:32 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A00.1357918Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account set] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A14%3A34.9433094Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:14:35 GMT'] + etag: [W/"datetime'2019-05-10T09%3A14%3A34.9433094Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:14:38 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHOjVGRE8zM082SVlKUDdKTUZaRElTWElBV1E1V0lFRnw5MjhCMzlERjAxMzVFQ0Q2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_account.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_account.yaml new file mode 100644 index 00000000000..d42e438dd34 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_account.yaml @@ -0,0 +1,220 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:16:29Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001","name":"cli_tests_rg_000001","location":"westus","tags":{"date":"2019-05-10T09:16:29Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:16:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A16%3A41.0559971Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9afe9fae-e31c-4922-88a4-9029cf6e95df?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:16:41 GMT'] + etag: [W/"datetime'2019-05-10T09%3A16%3A41.0559971Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9afe9fae-e31c-4922-88a4-9029cf6e95df?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9afe9fae-e31c-4922-88a4-9029cf6e95df","name":"9afe9fae-e31c-4922-88a4-9029cf6e95df","status":"Succeeded","startTime":"2019-05-10T09:16:40.965501Z","endTime":"2019-05-10T09:16:41.0905056Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:17:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A16%3A41.1590697Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:17:12 GMT'] + etag: [W/"datetime'2019-05-10T09%3A16%3A41.1590697Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account update] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a --tags -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A16%3A41.1590697Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:17:15 GMT'] + etag: [W/"datetime'2019-05-10T09%3A16%3A41.1590697Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account update] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group -a --tags -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg_000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A17%3A18.558479Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['477'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:17:19 GMT'] + etag: [W/"datetime'2019-05-10T09%3A17%3A18.558479Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg_000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:17:23 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHOjVGTkxKRE42R0JTU0M0SVRIS0EzVU0zQk5QWFlORnxCOTFBQTE5MUZGM0E5MTJFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_pool.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_pool.yaml new file mode 100644 index 00000000000..4525b479f96 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_pool.yaml @@ -0,0 +1,317 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T09:31:00Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T09:31:00Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A15.89893Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/03556ac6-a0b1-4879-bc72-be059b716c7c?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['451'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:16 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A15.89893Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/03556ac6-a0b1-4879-bc72-be059b716c7c?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/03556ac6-a0b1-4879-bc72-be059b716c7c","name":"03556ac6-a0b1-4879-bc72-be059b716c7c","status":"Succeeded","startTime":"2019-05-10T09:31:15.8074896Z","endTime":"2019-05-10T09:31:15.9168624Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T09%3A31%3A15.9779857Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:49 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A15.9779857Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A53.9079428Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/351f2126-28df-45ec-ac33-82ae3e84abc7?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:31:54 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A53.9079428Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/351f2126-28df-45ec-ac33-82ae3e84abc7?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/351f2126-28df-45ec-ac33-82ae3e84abc7","name":"351f2126-28df-45ec-ac33-82ae3e84abc7","status":"Succeeded","startTime":"2019-05-10T09:31:53.8475785Z","endTime":"2019-05-10T09:31:54.2382066Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A54.3072265Z''\"","location":"westus2","properties":{"poolId":"db2f1dcf-f213-1ab9-74eb-5e9eda9a507b","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:28 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A54.3072265Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool update] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A31%3A54.3072265Z''\"","location":"westus2","properties":{"poolId":"db2f1dcf-f213-1ab9-74eb-5e9eda9a507b","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:30 GMT'] + etag: [W/"datetime'2019-05-10T09%3A31%3A54.3072265Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Standard", "size": 4398046511104}, + "location": "eastus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool update] + Connection: [keep-alive] + Content-Length: ['118'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group -a -p --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T09%3A32%3A33.6489947Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","poolId":"db2f1dcf-f213-1ab9-74eb-5e9eda9a507b","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Standard","size":4398046511104}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['676'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 09:32:35 GMT'] + etag: [W/"datetime'2019-05-10T09%3A32%3A33.6489947Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 09:32:39 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHTjJKNjZWTlE1NlpORzNIVldLUFJSUlhURjJWWDNQWXw2N0RDNTdDNzc5MzM2RTNFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_volume.yaml b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_volume.yaml new file mode 100644 index 00000000000..f791cd0e692 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/recordings/test_update_volume.yaml @@ -0,0 +1,861 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-05-10T10:58:59Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-05-10T10:58:59Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"1bc2769c-c5ca-44d0-9fa9-bc5758f49f9b\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"5dfa00e5-5e30-40a2-836d-f9298881edd6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/deab9502-3f33-4f49-ac22-c1e897967c55?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:14 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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/deab9502-3f33-4f49-ac22-c1e897967c55?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:18 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n --resource-group -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"52353826-f64a-4bd2-a6c5-3092361eafa6\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"5dfa00e5-5e30-40a2-836d-f9298881edd6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:20 GMT'] + etag: [W/"52353826-f64a-4bd2-a6c5-3092361eafa6"] + 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"52353826-f64a-4bd2-a6c5-3092361eafa6\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"5dfa00e5-5e30-40a2-836d-f9298881edd6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:21 GMT'] + etag: [W/"52353826-f64a-4bd2-a6c5-3092361eafa6"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005", + "etag": "W/\"52353826-f64a-4bd2-a6c5-3092361eafa6\"", "location": "westus2", + "properties": {"virtualNetworkPeerings": [], "subnets": [{"name": "cli-subnet-000006", + "properties": {"addressPrefix": "10.12.0.0/24", "delegations": [{"name": "0", + "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}], "addressSpace": + {"addressPrefixes": ["10.12.0.0/16"]}, "enableVmProtection": false, "dhcpOptions": + {"dnsServers": []}, "resourceGuid": "5dfa00e5-5e30-40a2-836d-f9298881edd6", + "enableDdosProtection": false, "provisioningState": "Succeeded"}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['779'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"e0b03085-8d06-4043-bf04-0c1b99cad8bb\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"5dfa00e5-5e30-40a2-836d-f9298881edd6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"e0b03085-8d06-4043-bf04-0c1b99cad8bb\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"e0b03085-8d06-4043-bf04-0c1b99cad8bb\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/6a5fd346-e13a-4387-bf49-e4da631c34ed?api-version=2018-12-01'] + cache-control: [no-cache] + content-length: ['2278'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:22 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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/6a5fd346-e13a-4387-bf49-e4da631c34ed?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:26 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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.6.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-12-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"015e04c9-7148-41da-b1c3-def72000c4d4\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"5dfa00e5-5e30-40a2-836d-f9298881edd6\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [\r\n {\r\n \"\ + name\": \"cli-subnet-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"015e04c9-7148-41da-b1c3-def72000c4d4\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\"\ + : [\r\n {\r\n \"name\": \"0\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"015e04c9-7148-41da-b1c3-def72000c4d4\\\ + \"\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"serviceName\": \"Microsoft.Netapp/volumes\"\ + ,\r\n \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\ + \r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ + \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2280'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:27 GMT'] + etag: [W/"015e04c9-7148-41da-b1c3-def72000c4d4"] + 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] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A59%3A32.0663574Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a631d8a0-30b9-4308-b20f-a57767eada94?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 10:59:32 GMT'] + etag: [W/"datetime'2019-05-10T10%3A59%3A32.0663574Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a631d8a0-30b9-4308-b20f-a57767eada94?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a631d8a0-30b9-4308-b20f-a57767eada94","name":"a631d8a0-30b9-4308-b20f-a57767eada94","status":"Succeeded","startTime":"2019-05-10T10:59:31.9801266Z","endTime":"2019-05-10T10:59:32.0894492Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:00:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-05-10T10%3A59%3A32.2044547Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:00:07 GMT'] + etag: [W/"datetime'2019-05-10T10%3A59%3A32.2044547Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T11%3A00%3A12.0245779Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f46bdd95-66c8-4a5e-bbe7-ff799bd8f5e0?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:00:12 GMT'] + etag: [W/"datetime'2019-05-10T11%3A00%3A12.0245779Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f46bdd95-66c8-4a5e-bbe7-ff799bd8f5e0?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f46bdd95-66c8-4a5e-bbe7-ff799bd8f5e0","name":"f46bdd95-66c8-4a5e-bbe7-ff799bd8f5e0","status":"Succeeded","startTime":"2019-05-10T11:00:11.9661779Z","endTime":"2019-05-10T11:00:12.3724495Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:00:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-05-10T11%3A00%3A12.453883Z''\"","location":"westus2","properties":{"poolId":"92e36d1b-c644-ac7e-01a9-b8474d4bb723","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['649'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:00:45 GMT'] + etag: [W/"datetime'2019-05-10T11%3A00%3A12.453883Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + Content-Length: ['395'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A00%3A49.8202706Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","creationToken":"cli-vol-000004","usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","provisioningState":"Creating"}}'} + headers: + access-control-expose-headers: [Request-Context] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed?api-version=2019-05-01'] + cache-control: [no-cache] + content-length: ['910'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:00:50 GMT'] + etag: [W/"datetime'2019-05-10T11%3A00%3A49.8202706Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","name":"ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","status":"Creating","startTime":"2019-05-10T11:00:49.7332303Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:01:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","name":"ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","status":"Creating","startTime":"2019-05-10T11:00:49.7332303Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:01:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","name":"ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","status":"Creating","startTime":"2019-05-10T11:00:49.7332303Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:02:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","name":"ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","status":"Creating","startTime":"2019-05-10T11:00:49.7332303Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:03:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","name":"ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","status":"Creating","startTime":"2019-05-10T11:00:49.7332303Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:03:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","name":"ba6d201a-4b8b-4f28-a6c0-9e9ae0d9f4ed","status":"Succeeded","startTime":"2019-05-10T11:00:49.7332303Z","endTime":"2019-05-10T11:03:42.4947223Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:04:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A03%3A42.5312527Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"a5572f6f-046a-9a1b-bca7-1b6aebb07325","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_60af499d","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"2b2b466c-cd31-fc70-dae1-2665c1d7357d","fileSystemId":"a5572f6f-046a-9a1b-bca7-1b6aebb07325","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1635'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:04:08 GMT'] + etag: [W/"datetime'2019-05-10T11%3A03%3A42.5312527Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume update] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A03%3A42.5312527Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"a5572f6f-046a-9a1b-bca7-1b6aebb07325","name":"cli-vol-000004","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_60af499d","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"2b2b466c-cd31-fc70-dae1-2665c1d7357d","fileSystemId":"a5572f6f-046a-9a1b-bca7-1b6aebb07325","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1635'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:04:10 GMT'] + etag: [W/"datetime'2019-05-10T11%3A03%3A42.5312527Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "exportPolicy": + {"rules": [{"unixReadOnly": false, "allowedClients": "0.0.0.0/0", "cifs": false, + "nfsv4": false, "unixReadWrite": true, "ruleIndex": 1, "nfsv3": true}]}, "serviceLevel": + "Standard"}, "tags": {"Tag1": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [netappfiles volume update] + Connection: [keep-alive] + Content-Length: ['274'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group -a -p -v --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.4.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2019-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-05-10T11%3A04%3A24.4678712Z''\"","location":"westus2","tags":{"Tag1":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"a5572f6f-046a-9a1b-bca7-1b6aebb07325","name":"cli-vol-000004","serviceLevel":"Standard","creationToken":"cli-vol-000004","ownerId":"955fe001-8347-4412-a263-ec0f52d2aeeb","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_955fe00183474412a263ec0f52d2aeeb_60af499d","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"2b2b466c-cd31-fc70-dae1-2665c1d7357d","fileSystemId":"a5572f6f-046a-9a1b-bca7-1b6aebb07325","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + access-control-expose-headers: [Request-Context] + cache-control: [no-cache] + content-length: ['1661'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 10 May 2019 11:04:25 GMT'] + etag: [W/"datetime'2019-05-10T11%3A04%3A24.4678712Z'"] + expires: ['-1'] + pragma: [no-cache] + request-context: ['appId=cid-v1:2c4cb680-0a1f-424d-bb8d-8e650ba68d53'] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.64] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 10 May 2019 11:04:30 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHWTZVMk9WUjdPQ1BWN0JIUjZZNkVHVUE2UUxMVzJCWnw0QkRENTU4MEI3RjNENDM3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_account_commands.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_account_commands.py new file mode 100644 index 00000000000..363c2d2f345 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_account_commands.py @@ -0,0 +1,95 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesAccountServiceScenarioTest(ScenarioTest): + @ResourceGroupPreparer(name_prefix='cli_tests_rg_') + def test_create_delete_account(self): + account_name = self.create_random_name(prefix='cli', length=24) + tags = 'Tag1=Value1 Tag2=Value2' + # active_directories = '[{"username": "aduser", "password": "aduser", "smbservername": "SMBSERVER", "dns": "1.2.3.4", "domain": "westcentralus"}]' + + # create and check + # account = self.cmd("az netappfiles account create --resource-group {rg} --account-name '%s' -l 'westus2' --tags '%s' --active-directories %s" % (account_name, tags, active_directories)).get_output_in_json() + account = self.cmd("az netappfiles account create --resource-group {rg} --account-name '%s' -l 'westus2' --tags '%s'" % (account_name, tags)).get_output_in_json() + assert account['name'] == account_name + assert account['tags']['Tag1'] == 'Value1' + assert account['tags']['Tag2'] == 'Value2' + # not provided in call - interpreted as kwargs. Tested at command line instead. + # assert account['active_directories'][0]['username'] == 'aduser' + # assert account['active_directories'][0]['smbservername'] == 'SMBSERVER' + + account_list = self.cmd("netappfiles account list --resource-group {rg}").get_output_in_json() + assert len(account_list) > 0 + + # delete and recheck + self.cmd("az netappfiles account delete --resource-group {rg} --account-name '%s'" % account_name) + account_list = self.cmd("netappfiles account list --resource-group {rg}").get_output_in_json() + assert len(account_list) == 0 + + # and again with short forms and also unquoted + account = self.cmd("az netappfiles account create -g {rg} -a %s -l westus2 --tags '%s'" % (account_name, tags)).get_output_in_json() + assert account['name'] == account_name + # note: key case must match + assert account['activeDirectories'] is None + account_list = self.cmd("netappfiles account list --resource-group {rg}").get_output_in_json() + assert len(account_list) > 0 + + self.cmd("az netappfiles account delete --resource-group {rg} -a %s" % account_name) + account_list = self.cmd("netappfiles account list --resource-group {rg}").get_output_in_json() + assert len(account_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg_') + def test_list_accounts(self): + accounts = [self.create_random_name(prefix='cli', length=24), self.create_random_name(prefix='cli', length=24)] + + for account_name in accounts: + self.cmd("az netappfiles account create -g {rg} -a %s -l 'westus2' --tags 'Tag1=Value1'" % account_name).get_output_in_json() + + account_list = self.cmd("netappfiles account list -g {rg}").get_output_in_json() + assert len(account_list) == 2 + + for account_name in accounts: + self.cmd("az netappfiles account delete -g {rg} -a %s" % account_name) + + account_list = self.cmd("netappfiles account list --resource-group {rg}").get_output_in_json() + assert len(account_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg_') + def test_get_account_by_name(self): + account_name = self.create_random_name(prefix='cli', length=24) + account = self.cmd("az netappfiles account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + account = self.cmd("az netappfiles account show --resource-group {rg} -a %s" % account_name).get_output_in_json() + assert account['name'] == account_name + account_from_id = self.cmd("az netappfiles account show --ids %s" % account['id']).get_output_in_json() + assert account_from_id['name'] == account_name + + @ResourceGroupPreparer(name_prefix='cli_tests_rg_') + def test_set_account(self): + # only tags are checked here due to complications of active directory in automated test + account_name = self.create_random_name(prefix='cli', length=24) + tag = "Tag1=Value1" + + account = self.cmd("az netappfiles account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + account = self.cmd("az netappfiles account set --resource-group {rg} -a %s -l 'westus2' --tags %s" % (account_name, tag)).get_output_in_json() + assert account['name'] == account_name + assert account['tags']['Tag1'] == 'Value1' + assert account['activeDirectories'] is None + + @ResourceGroupPreparer(name_prefix='cli_tests_rg_') + def test_update_account(self): + # only tags are checked here due to complications of active directory in automated test + account_name = self.create_random_name(prefix='cli', length=24) + tag = "Tag1=Value1" + + account = self.cmd("az netappfiles account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + account = self.cmd("az netappfiles account update --resource-group {rg} -a %s --tags %s -l westus2" % (account_name, tag)).get_output_in_json() + assert account['name'] == account_name + assert account['tags']['Tag1'] == 'Value1' + assert account['activeDirectories'] is None diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_mount_target_commands.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_mount_target_commands.py new file mode 100644 index 00000000000..bdeb1c42edb --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_mount_target_commands.py @@ -0,0 +1,44 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" +VOLUME_DEFAULT = "--service-level 'Premium' --usage-threshold 107374182400" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesMountTargetServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name): + self.cmd("az network vnet create -n %s --resource-group %s -l westus2" % (vnet_name, rg)) + self.cmd("az network vnet subnet create -n subnet01 --vnet-name %s --address-prefixes '10.0.0.0/24' --delegations 'Microsoft.Netapp/volumes' -g %s" % (vnet_name, rg)) + + def current_subscription(self): + subs = self.cmd("az account show").get_output_in_json() + return subs['id'] + + def create_volume(self, account_name, pool_name, volume_name1, rg, tags=None): + vnet_name = "cli-vnet-lefr-01" + creation_token = volume_name1 + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/subnet01" % (self.current_subscription(), rg, vnet_name) + tag = "--tags '%s'" % tags if tags is not None else "" + + self.setup_vnet(rg, vnet_name) + self.cmd("az netappfiles account create -g %s -a '%s' -l 'westus2'" % (rg, account_name)).get_output_in_json() + self.cmd("az netappfiles pool create -g %s -a %s -p %s -l 'westus2' %s %s" % (rg, account_name, pool_name, POOL_DEFAULT, tag)).get_output_in_json() + volume1 = self.cmd("az netappfiles volume create --resource-group %s --account-name %s --pool-name %s --volume-name %s -l 'westus2' %s --creation-token %s --subnet-id %s %s" % (rg, account_name, pool_name, volume_name1, VOLUME_DEFAULT, creation_token, subnet_id, tag)).get_output_in_json() + + return volume1 + + @ResourceGroupPreparer() + def test_list_mount_targets(self): + account_name = "cli-acc-lefr-01" + pool_name = "cli-pool-lefr-01" + volume_name = "cli-volume-lefr-01" + self.create_volume(account_name, pool_name, volume_name, '{rg}') + + volume_list = self.cmd("netappfiles mount-target list --resource-group {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name)).get_output_in_json() + assert len(volume_list) == 1 diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_pool_commands.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_pool_commands.py new file mode 100644 index 00000000000..f15d12ec2d4 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_pool_commands.py @@ -0,0 +1,111 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer +from knack.util import CLIError + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" +POOL_DEFAULT_TOO_SMALL = "--service-level 'Premium' --size 4398046511103" +POOL_DEFAULT_STRING_SIZE = "--service-level 'Premium' --size a" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesPoolServiceScenarioTest(ScenarioTest): + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_create_delete_pool(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + tags = "Tag1=Value1 Tag2=Value2" + + self.cmd("az netappfiles account create --resource-group {rg} --account-name '%s' -l 'westus2'" % account_name).get_output_in_json() + pool = self.cmd("az netappfiles pool create --resource-group {rg} --account-name %s --pool-name %s -l 'westus2' %s --tags '%s'" % (account_name, pool_name, POOL_DEFAULT, tags)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + assert pool['tags']['Tag1'] == 'Value1' + assert pool['tags']['Tag2'] == 'Value2' + + pool_list = self.cmd("netappfiles pool list --resource-group {rg} --account-name %s" % account_name).get_output_in_json() + assert len(pool_list) == 1 + + self.cmd("az netappfiles pool delete --resource-group {rg} --account-name '%s' --pool-name '%s'" % (account_name, pool_name)) + pool_list = self.cmd("netappfiles pool list --resource-group {rg} --account-name %s" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + # and again with short forms and also unquoted + pool = self.cmd("az netappfiles pool create -g {rg} -a %s -p %s -l 'westus2' --service-level 'Premium' --size 4398046511104 --tags '%s'" % (account_name, pool_name, tags)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + assert pool['tags']['Tag1'] == 'Value1' + assert pool['tags']['Tag2'] == 'Value2' + + self.cmd("az netappfiles pool delete --resource-group {rg} -a %s -p %s" % (account_name, pool_name)) + pool_list = self.cmd("netappfiles pool list --resource-group {rg} -a %s" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_create_pool_too_small(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + + self.cmd("az netappfiles account create --resource-group {rg} --account-name '%s' -l 'westus2'" % account_name).get_output_in_json() + try: + pool = self.cmd("az netappfiles pool create --resource-group {rg} --account-name %s --pool-name %s -l 'westus2' %s " % (account_name, pool_name, POOL_DEFAULT_TOO_SMALL)).get_output_in_json() + except Exception as ex: + assert isinstance(ex, CLIError) + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_create_pool_string_size(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + + self.cmd("az netappfiles account create --resource-group {rg} --account-name '%s' -l 'westus2'" % account_name).get_output_in_json() + try: + pool = self.cmd("az netappfiles pool create --resource-group {rg} --account-name %s --pool-name %s -l 'westus2' %s " % (account_name, pool_name, POOL_DEFAULT_STRING_SIZE)).get_output_in_json() + except Exception as ex: + assert isinstance(ex, CLIError) + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_list_pools(self): + account_name = self.create_random_name(prefix='cli', length=24) + pools = [self.create_random_name(prefix='cli', length=24), self.create_random_name(prefix='cli', length=24)] + self.cmd("az netappfiles account create -g {rg} -a '%s' -l 'westus2'" % account_name).get_output_in_json() + + for pool_name in pools: + self.cmd("az netappfiles pool create -g {rg} -a '%s' -p '%s' -l 'westus2' %s --tags 'Tag1=Value1'" % (account_name, pool_name, POOL_DEFAULT)).get_output_in_json() + + pool_list = self.cmd("netappfiles pool list -g {rg} -a '%s'" % account_name).get_output_in_json() + assert len(pool_list) == 2 + + for pool_name in pools: + self.cmd("az netappfiles pool delete -g {rg} -a %s -p %s" % (account_name, pool_name)) + pool_list = self.cmd("netappfiles pool list --resource-group {rg} -a '%s'" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_get_pool_by_name(self): + account_name = self.create_random_name(prefix='cli', length=24) + pool_name = self.create_random_name(prefix='cli', length=24) + self.cmd("az netappfiles account create -g {rg} -a '%s' -l 'westus2'" % account_name).get_output_in_json() + self.cmd("az netappfiles pool create -g {rg} -a %s -p %s -l 'westus2' %s" % (account_name, pool_name, POOL_DEFAULT)).get_output_in_json() + + pool = self.cmd("az netappfiles pool show --resource-group {rg} -a %s -p %s" % (account_name, pool_name)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + pool_from_id = self.cmd("az netappfiles pool show --ids %s" % pool['id']).get_output_in_json() + assert pool_from_id['name'] == account_name + '/' + pool_name + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_update_pool(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + tag = "Tag1=Value1" + + self.cmd("az netappfiles account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + + pool = self.cmd("az netappfiles pool create -g {rg} -a %s -p %s -l 'westus2' %s" % (account_name, pool_name, POOL_DEFAULT)).get_output_in_json() + + assert pool['name'] == account_name + '/' + pool_name + pool = self.cmd("az netappfiles pool update --resource-group {rg} -a %s -p %s --tags %s --service-level 'Standard'" % (account_name, pool_name, tag)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + assert pool['serviceLevel'] == "Standard" + assert pool['tags']['Tag1'] == 'Value1' diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_snapshot_commands.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_snapshot_commands.py new file mode 100644 index 00000000000..63d9f9c20da --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_snapshot_commands.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" +VOLUME_DEFAULT = "--service-level 'Premium' --usage-threshold 107374182400" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesSnapshotServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name, subnet_name): + self.cmd("az network vnet create -n %s --resource-group %s -l westcentralus --address-prefix 10.5.0.0/16" % (vnet_name, rg)) + self.cmd("az network vnet subnet create -n %s --vnet-name %s --address-prefixes '10.5.0.0/24' --delegations 'Microsoft.Netapp/volumes' -g %s" % (subnet_name, vnet_name, rg)) + + def current_subscription(self): + subs = self.cmd("az account show").get_output_in_json() + return subs['id'] + + def create_volume(self, account_name, pool_name, volume_name1, rg, tags=None): + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_name = "subnet02" + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/%s" % (self.current_subscription(), rg, vnet_name, subnet_name) + tag = "--tags '%s'" % tags if tags is not None else "" + + self.setup_vnet(rg, vnet_name, subnet_name) + self.cmd("netappfiles account create -g %s -a '%s' -l 'westcentralus'" % (rg, account_name)).get_output_in_json() + self.cmd("netappfiles pool create -g %s -a %s -p %s -l 'westcentralus' %s %s" % (rg, account_name, pool_name, POOL_DEFAULT, tag)).get_output_in_json() + volume1 = self.cmd("netappfiles volume create --resource-group %s --account-name %s --pool-name %s --volume-name %s -l 'westcentralus' %s --creation-token %s --subnet-id %s %s" % (rg, account_name, pool_name, volume_name1, VOLUME_DEFAULT, creation_token, subnet_id, tag)).get_output_in_json() + + return volume1 + + @ResourceGroupPreparer() + def test_create_delete_snapshots(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + snapshot_name = self.create_random_name(prefix='cli-sn-', length=24) + rg = '{rg}' + + volume = self.create_volume(account_name, pool_name, volume_name, rg) + snapshot = self.cmd("az netappfiles snapshot create -g %s -a %s -p %s -v %s -s %s -l 'westcentralus' --file-system-id %s" % (rg, account_name, pool_name, volume_name, snapshot_name, volume['fileSystemId'])).get_output_in_json() + assert snapshot['name'] == account_name + '/' + pool_name + '/' + volume_name + '/' + snapshot_name + + snapshot_list = self.cmd("az netappfiles snapshot list --resource-group %s --account-name %s --pool-name %s --volume-name %s" % (rg, account_name, pool_name, volume_name)).get_output_in_json() + assert len(snapshot_list) == 1 + + self.cmd("az netappfiles snapshot delete -g %s -a %s -p %s -v %s -s %s" % (rg, account_name, pool_name, volume_name, snapshot_name)) + snapshot_list = self.cmd("az netappfiles snapshot list --resource-group %s --account-name %s --pool-name %s --volume-name %s" % (rg, account_name, pool_name, volume_name)).get_output_in_json() + assert len(snapshot_list) == 0 + + @ResourceGroupPreparer() + def test_list_snapshots(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + snapshot_name1 = self.create_random_name(prefix='cli-sn-', length=24) + snapshot_name2 = self.create_random_name(prefix='cli-sn-', length=24) + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}') + self.cmd("az netappfiles snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westcentralus' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name1, volume['fileSystemId'])).get_output_in_json() + self.cmd("az netappfiles snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westcentralus' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name2, volume['fileSystemId'])).get_output_in_json() + + snapshot_list = self.cmd("az netappfiles snapshot list -g {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name)).get_output_in_json() + assert len(snapshot_list) == 2 + + @ResourceGroupPreparer() + def test_get_snapshot(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + snapshot_name = self.create_random_name(prefix='cli-sn-', length=24) + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}') + snapshot = self.cmd("az netappfiles snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westcentralus' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name, volume['fileSystemId'])).get_output_in_json() + + snapshot = self.cmd("az netappfiles snapshot show -g {rg} -a %s -p %s -v %s -s %s" % (account_name, pool_name, volume_name, snapshot_name)).get_output_in_json() + assert snapshot['name'] == account_name + '/' + pool_name + '/' + volume_name + '/' + snapshot_name + + snapshot_from_id = self.cmd("az netappfiles snapshot show --ids %s" % snapshot['id']).get_output_in_json() + assert snapshot_from_id['name'] == account_name + '/' + pool_name + '/' + volume_name + '/' + snapshot_name diff --git a/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_volume_commands.py b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_volume_commands.py new file mode 100644 index 00000000000..8200da4c660 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/tests/latest/test_volume_commands.py @@ -0,0 +1,114 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" +VOLUME_DEFAULT = "--service-level 'Premium' --usage-threshold 107374182400" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesExtVolumeServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name, subnet_name, ip_pre): + self.cmd("az network vnet create -n %s --resource-group %s -l eastus2 --address-prefix %s/16" % (vnet_name, rg, ip_pre)) + self.cmd("az network vnet subnet create -n %s -g %s --vnet-name %s --address-prefixes '%s/24' --delegations 'Microsoft.Netapp/volumes'" % (subnet_name, rg, vnet_name, ip_pre)) + + def current_subscription(self): + subs = self.cmd("az account show").get_output_in_json() + return subs['id'] + + def create_volume(self, account_name, pool_name, volume_name1, rg, tags=None, volume_name2=None): + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_name = self.create_random_name(prefix='cli-subnet-', length=16) + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/%s" % (self.current_subscription(), rg, vnet_name, subnet_name) + tag = "--tags '%s'" % tags if tags is not None else "" + + self.setup_vnet(rg, vnet_name, subnet_name, '10.12.0.0') + self.cmd("az netappfiles account create -g %s -a '%s' -l 'eastus2'" % (rg, account_name)).get_output_in_json() + self.cmd("az netappfiles pool create -g %s -a %s -p %s -l 'eastus2' %s %s" % (rg, account_name, pool_name, POOL_DEFAULT, tag)).get_output_in_json() + volume1 = self.cmd("az netappfiles volume create --resource-group %s --account-name %s --pool-name %s --volume-name %s -l 'eastus2' %s --creation-token %s --subnet-id %s %s" % (rg, account_name, pool_name, volume_name1, VOLUME_DEFAULT, creation_token, subnet_id, tag)).get_output_in_json() + + if volume_name2: + creation_token = volume_name2 + self.cmd("az netappfiles volume create -g %s -a %s -p %s -v %s -l 'eastus2' %s --creation-token %s --subnet-id %s --tags '%s'" % (rg, account_name, pool_name, volume_name2, VOLUME_DEFAULT, creation_token, subnet_id, tags)).get_output_in_json() + + return volume1 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_create_delete_volumes(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag1=Value1 Tag2=Value2" + + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}', tags) + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + assert volume['tags']['Tag1'] == 'Value1' + assert volume['tags']['Tag2'] == 'Value2' + # default export policy still present + assert volume['exportPolicy']['rules'][0]['allowedClients'] == '0.0.0.0/0' + assert not volume['exportPolicy']['rules'][0]['cifs'] + assert volume['exportPolicy']['rules'][0]['ruleIndex'] == 1 + + volume_list = self.cmd("netappfiles volume list --resource-group {rg} --account-name %s --pool-name %s" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 1 + + self.cmd("az netappfiles volume delete --resource-group {rg} --account-name %s --pool-name %s --volume-name %s" % (account_name, pool_name, volume_name)) + volume_list = self.cmd("netappfiles volume list --resource-group {rg} -a %s -p %s" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_list_volumes(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name1 = self.create_random_name(prefix='cli-vol-', length=24) + volume_name2 = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag1=Value1" + self.create_volume(account_name, pool_name, volume_name1, '{rg}', tags, volume_name2) + + volume_list = self.cmd("netappfiles volume list --resource-group {rg} -a '%s' -p '%s'" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 2 + + self.cmd("az netappfiles volume delete -g {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name1)) + volume_list = self.cmd("netappfiles volume list -g {rg} -a '%s' -p '%s'" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 1 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_get_volume_by_name(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag2=Value1" + + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}', tags) + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + + volume = self.cmd("az netappfiles volume show --resource-group {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name)).get_output_in_json() + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + assert volume['tags']['Tag2'] == 'Value1' + + volume_from_id = self.cmd("az netappfiles volume show --ids %s" % volume['id']).get_output_in_json() + assert volume_from_id['name'] == account_name + '/' + pool_name + '/' + volume_name + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_update_volume(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag1=Value2" + + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}') + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + + volume = self.cmd("az netappfiles volume update --resource-group {rg} -a %s -p %s -v %s --tags %s --service-level 'Standard'" % (account_name, pool_name, volume_name, tags)).get_output_in_json() + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + assert volume['serviceLevel'] == "Standard" + assert volume['tags']['Tag1'] == 'Value2' + # default export policy still present + assert volume['exportPolicy']['rules'][0]['allowedClients'] == '0.0.0.0/0' + assert not volume['exportPolicy']['rules'][0]['cifs'] + assert volume['exportPolicy']['rules'][0]['ruleIndex'] == 1 diff --git a/src/command_modules/azure-cli-netappfiles/setup.cfg b/src/command_modules/azure-cli-netappfiles/setup.cfg new file mode 100644 index 00000000000..3326c62a76e --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/setup.cfg @@ -0,0 +1,3 @@ +[bdist_wheel] +universal=1 +azure-namespace-package=azure-cli-command_modules-nspkg diff --git a/src/command_modules/azure-cli-netappfiles/setup.py b/src/command_modules/azure-cli-netappfiles/setup.py new file mode 100644 index 00000000000..fb1a3848c51 --- /dev/null +++ b/src/command_modules/azure-cli-netappfiles/setup.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup +try: + from azure_bdist_wheel import cmdclass +except ImportError: + from distutils import log as logger + logger.warn("Wheel is not available, disabling bdist_wheel hook") + cmdclass = {} + +VERSION = "1.0.0" + +CLASSIFIERS = [ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [ + 'azure-mgmt-netapp==0.4.0', + 'azure-cli-core', + 'azure.cli.core.commands.validators' +] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='azure-cli-netappfiles', + version=VERSION, + description='Microsoft Azure Command-Line Tools Azure NetApp Files (ANF) Command Module', + long_description=README + '\n\n' + HISTORY, + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli', + classifiers=CLASSIFIERS, + packages=[ + 'azure', + 'azure.cli', + 'azure.cli.command_modules', + 'azure.cli.command_modules.netappfiles', + ], + install_requires=DEPENDENCIES, + cmdclass=cmdclass, +) diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone5.txt_export.txt b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone5.txt_export.txt index 6c01d2d558c..134b98e64b7 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone5.txt_export.txt +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone5.txt_export.txt @@ -2,7 +2,7 @@ ; Exported zone file from Azure DNS ; Zone name: zone5.com ; Resource Group Name: cli_dns_zone5_import000001 -; Date and time (UTC): Tue, 19 Feb 2019 17:01:13 -0800 +; Date and time (UTC): Thu, 09 May 2019 14:48:08 +0000 $TTL 10800 $ORIGIN zone5.com. diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone6.txt_export.txt b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone6.txt_export.txt index bf0209f4f21..42c09a9772a 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone6.txt_export.txt +++ b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/latest/zone_files/zone6.txt_export.txt @@ -2,7 +2,7 @@ ; Exported zone file from Azure DNS ; Zone name: zone6.com ; Resource Group Name: cli_dns_zone6_import000001 -; Date and time (UTC): Tue, 19 Feb 2019 17:01:19 -0800 +; Date and time (UTC): Thu, 09 May 2019 14:48:13 +0000 $TTL 300 $ORIGIN zone6.com.