diff --git a/src/anf-preview/HISTORY.rst b/src/anf-preview/HISTORY.rst new file mode 100644 index 00000000000..e7f6a722ba4 --- /dev/null +++ b/src/anf-preview/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.0.1 ++++++ +* Initial release diff --git a/src/anf-preview/README.rst b/src/anf-preview/README.rst new file mode 100644 index 00000000000..ffb074f2f3a --- /dev/null +++ b/src/anf-preview/README.rst @@ -0,0 +1,5 @@ +Microsoft Azure CLI 'Azure NetApp File (ANF)' Command Module +=================================================================== + +This package is for the Azure NetApp File (ANF)' module. +i.e. 'az anf' diff --git a/src/anf-preview/azext_anf_preview/__init__.py b/src/anf-preview/azext_anf_preview/__init__.py new file mode 100644 index 00000000000..390d11444d1 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/__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 ._help import helps # pylint: disable=unused-import + + +class NetAppExtensionCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + netapp_custom = CliCommandType(operations_tmpl='azext_anf_preview.custom#{}') + super(NetAppExtensionCommandsLoader, self).__init__(cli_ctx=cli_ctx, + min_profile='2017-03-10-profile', + custom_command_type=netapp_custom) + + def load_command_table(self, args): + super(NetAppExtensionCommandsLoader, self).load_command_table(args) + from .commands import load_command_table + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + super(NetAppExtensionCommandsLoader, self).load_arguments(command) + from ._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = NetAppExtensionCommandsLoader diff --git a/src/anf-preview/azext_anf_preview/_client_factory.py b/src/anf-preview/azext_anf_preview/_client_factory.py new file mode 100644 index 00000000000..16c410ed77b --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_client_factory.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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_netapp(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_netapp(cli_ctx).accounts + +def pools_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).pools + +def volumes_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).volumes + +def mount_targets_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).mount_targets + +def snapshots_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).snapshots diff --git a/src/anf-preview/azext_anf_preview/_exception_handler.py b/src/anf-preview/azext_anf_preview/_exception_handler.py new file mode 100644 index 00000000000..98c5dc0c951 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_exception_handler.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from knack.util import CLIError + +def netapp_exception_handler(ex): + from azure.mgmt.netapp.models import ErrorException + if isinstance(ex, ErrorException): + message = ex + raise CLIError(message) + else: + import sys + from six import reraise + reraise(*sys.exc_info()) diff --git a/src/anf-preview/azext_anf_preview/_help.py b/src/anf-preview/azext_anf_preview/_help.py new file mode 100644 index 00000000000..a8ca8e9fb25 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_help.py @@ -0,0 +1,435 @@ +# 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['anf'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Resources. +""" + +# account + +helps['anf account'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Account Resources. +""" + +helps['anf account create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) account. + parameters: + - name: --account-name + 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 anf account create -g group --account-name name -l location +""" + +helps['anf account update'] = """ + type: command + short-summary: Set/modify the tags for a specified ANF account. + parameters: + - name: --account-name + 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: Update the tags of an ANF account + text: > + az anf account update -g group --account-name name --tags 'key[=value] key[=value]' +""" + +helps['anf account delete'] = """ + type: command + short-summary: Delete the specified ANF account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + examples: + - name: Delete an ANF account + text: > + az anf account delete -g group --account-name name +""" + +helps['anf account list'] = """ + type: command + short-summary: List ANF accounts. + examples: + - name: List ANF accounts within a resource group + text: > + az anf account list -g group +""" + +helps['anf account show'] = """ + type: command + short-summary: Get the specified ANF account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + examples: + - name: Get an ANF account + text: > + az anf account show -g group --account-name name +""" + +# pools + +helps['anf pool'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Pool Resources. +""" + +helps['anf pool create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + 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 anf pool create -g group --account-name aname --pool-name pname -l location --size 4398046511104 --service-level "Premium" +""" + +helps['anf pool update'] = """ + type: command + short-summary: Update the tags of the specified ANF pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + 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 anf pool update -g group --account-name aname --pool-name pname --service-level "Extreme" --tags 'key[=value] key[=value]' +""" + +helps['anf pool delete'] = """ + type: command + short-summary: Delete the specified ANF pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + examples: + - name: Delete an ANF pool + text: > + az anf pool delete -g group --account-name aname --pool-name pname +""" + +helps['anf pool list'] = """ + type: command + short-summary: L:ist the ANF pools for the specified account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + examples: + - name: List the pools for the ANF account + text: > + az anf pool list -g group -account-name name +""" + +helps['anf pool show'] = """ + type: command + short-summary: Get the specified ANF pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + examples: + - name: Get an ANF pool + text: > + az anf pool show -g group --account-name aname --pool-name pname +""" + +# volumes + +helps['anf volume'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Volume Resources. +""" + +helps['anf volume create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + 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 + examples: + - name: Create an ANF volume + text: > + az anf 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" +""" + +helps['anf volume update'] = """ + type: command + short-summary: Update the specified ANF volume with the values provided. Unspecified values will remain unchanged. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + 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 + examples: + - name: Create an ANF volume + text: > + az anf volume update -g group --account-name aname --pool-name pname --volume-name vname --service-level level --usage-threshold 107374182400 --tags 'key[=value] key[=value]' +""" + +helps['anf volume delete'] = """ + type: command + short-summary: Delete the specified ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + examples: + - name: Delete an ANF volume + text: > + az anf volume delete -g group --account-name aname --pool-name pname +""" + +helps['anf volume list'] = """ + type: command + short-summary: List the ANF Pools for the specified account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + examples: + - name: List the ANF volumes of the pool + text: > + az anf volume list -g group --account-name aname --pool-name pname +""" + +helps['anf volume show'] = """ + type: command + short-summary: Get the specified ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF pool + examples: + - name: Returns the properties of the given ANF volume + text: > + az anf volume show -g group --account-name aname --pool-name pname --volume_name vname +""" + +# mounttargets + +helps['anf mount-target'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Mount Target Resources. +""" + +helps['anf mount-target list'] = """ + type: command + short-summary: List the mount targets of an ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF pool + examples: + - name: list the mount targets of an ANF volume + text: > + az anf mount-target list -g group --account-name aname --pool-name pname --volume-name vname +""" + +# snapshots + +helps['anf snapshot'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Snapshot Resources. +""" + +helps['anf snapshot create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) snapshot. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name + 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 anf 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['anf snapshot delete'] = """ + type: command + short-summary: Delete the specified ANF snapshot. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name + type: string + short-summary: The name of the ANF snapshot + examples: + - name: Delete an ANF snapshot + text: > + az anf volume delete -g group --account-name aname --pool-name pname --volume-name vname --snapshot-name sname +""" + +helps['anf snapshot list'] = """ + type: command + short-summary: List the snapshots of an ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + examples: + - name: list the snapshots of an ANF volume + text: > + az anf account list -g group --account-name aname --pool-name pname --volume-name vname +""" + +helps['anf snapshot show'] = """ + type: command + short-summary: Get the specified ANF snapshot. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name + type: string + short-summary: The name of the ANF snapshot + examples: + - name: Return the specified ANF snapshot + text: > + az anf snapshot show -g group --account-name aname --pool-name pname --volume-name vname --snapshot-name sname +""" \ No newline at end of file diff --git a/src/anf-preview/azext_anf_preview/_params.py b/src/anf-preview/azext_anf_preview/_params.py new file mode 100644 index 00000000000..319b90bde63 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_params.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# 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('anf') as c: + c.argument('resource_group', options_list=['--resource-group', '-g'], required=True, help='The name of the resource group') + + with self.argument_context('anf') as c: + c.argument('account_name', options_list=['--account-name', '-a'], required=True, help='The name of the ANF account') + + with self.argument_context('anf') as c: + c.argument('pool_name', options_list=['--pool-name', '-p'], required=True, help='The name of the ANF pool') + + with self.argument_context('anf') as c: + c.argument('volume_name', options_list=['--volume-name', '-v'], required=True, help='The name of the ANF volume') + + with self.argument_context('anf') as c: + c.argument('snapshot_name', options_list=['--snapshot-name', '-s'], required=True, help='The name of the ANF snapshot') + + with self.argument_context('anf') 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/anf-preview/azext_anf_preview/commands.py b/src/anf-preview/azext_anf_preview/commands.py new file mode 100644 index 00000000000..f65b6e45d28 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/commands.py @@ -0,0 +1,87 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# 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 netapp_exception_handler + + +def load_command_table(self, _): + anf_accounts_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.accounts_operations#AccountsOperations.{}', + client_factory=accounts_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_pools_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.pools_operations#PoolsOperations.{}', + client_factory=pools_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_volumes_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.volumes_operations#VolumesOperations.{}', + client_factory=volumes_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_mount_targets_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.mount_targets_operations#MountTargetsOperations.{}', + client_factory=mount_targets_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_snapshots_sdk = CliCommandType( + operations_tmpl='azure.mgmt.netapp.operations.snapshots_operations#SnapshotsOperations.{}', + client_factory=snapshots_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + with self.command_group('anf account', anf_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') + g.generic_update_command('update', setter_name='update', custom_func_name='update_account', + setter_arg_name='tags', + doc_string_source='azure.mgmt.netapp.models#NetAppAccountPatch') + + with self.command_group('anf pool', anf_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') + g.generic_update_command('update', setter_name='create_or_update', custom_func_name='update_pool', + setter_arg_name='body', + doc_string_source='azure.mgmt.netapp.models#CapacityPool') + + with self.command_group('anf volume', anf_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') + 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') + + with self.command_group('anf mount-target', anf_mount_targets_sdk) as g: + g.command('list', 'list') + + with self.command_group('anf snapshot', anf_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') diff --git a/src/anf-preview/azext_anf_preview/custom.py b/src/anf-preview/azext_anf_preview/custom.py new file mode 100644 index 00000000000..6dccbf796fc --- /dev/null +++ b/src/anf-preview/azext_anf_preview/custom.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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 knack.log import get_logger +from azure.mgmt.netapp.models import NetAppAccountPatch, CapacityPool, Volume, VolumePatch, 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) + +# pylint: disable=unused-argument +def create_account(cmd, client, account_name, resource_group_name, location, tag=None): + return client.create_or_update(resource_group_name, account_name, location, generate_tags(tag)) + +# pylint: disable=unused-argument +def update_account(cmd, instance, tag=None): + params = NetAppAccountPatch(tags=generate_tags(tag)) + return params.tags + +def create_pool(cmd, client, account_name, pool_name, resource_group, 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, account_name, pool_name) + +def update_pool(cmd, instance, location=None, size=None, service_level=None, tag=None): + # put operation to update the record + if size != 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 create_volume(cmd, client, account_name, pool_name, volume_name, resource_group_name, location, service_level, creation_token, usage_threshold, subnet_id, tag=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)) + 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): + params = VolumePatch( + usage_threshold=None if usage_threshold is None else int(usage_threshold), + service_level=service_level, + tags=generate_tags(tag)) + _update_mapper(instance, params, ['service_level', 'usage_threshold', 'tags']) + return params + +def create_snapshot(cmd, client, account_name, pool_name, volume_name, snapshot_name, file_system_id, resource_group_name, location): + 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/anf-preview/azext_anf_preview/tests/__init__.py b/src/anf-preview/azext_anf_preview/tests/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/anf-preview/azext_anf_preview/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/anf-preview/azext_anf_preview/tests/latest/__init__.py b/src/anf-preview/azext_anf_preview/tests/latest/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/anf-preview/azext_anf_preview/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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_account.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_account.yaml new file mode 100644 index 00000000000..058e721b543 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_account.yaml @@ -0,0 +1,464 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T10:38:03Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T10:38:03Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:38:07 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A38%3A11.7270632Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/20be7cd0-7c24-47fc-80bb-8a556da96de1?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['493'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:38:11 GMT'] + etag: [W/"datetime'2019-02-18T10%3A38%3A11.7270632Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/20be7cd0-7c24-47fc-80bb-8a556da96de1?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/20be7cd0-7c24-47fc-80bb-8a556da96de1","name":"20be7cd0-7c24-47fc-80bb-8a556da96de1","status":"Succeeded","startTime":"2019-02-18T10:38:11.6561857Z","endTime":"2019-02-18T10:38:11.9687138Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:38:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A38%3A12.0172687Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:38:45 GMT'] + etag: [W/"datetime'2019-02-18T10%3A38%3A12.0172687Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A38%3A12.0172687Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['506'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:38:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8c4e4149-1601-4a6f-b090-0f78ee8d8adc?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 10:38:47 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8c4e4149-1601-4a6f-b090-0f78ee8d8adc?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8c4e4149-1601-4a6f-b090-0f78ee8d8adc?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8c4e4149-1601-4a6f-b090-0f78ee8d8adc","name":"8c4e4149-1601-4a6f-b090-0f78ee8d8adc","status":"Succeeded","startTime":"2019-02-18T10:38:48.1576906Z","endTime":"2019-02-18T10:38:48.2358286Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:39:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:39:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1", "Tag2": + "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A39%3A24.6043364Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/716b6f6b-5c57-4dd4-bb2d-b6cc777652e8?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['493'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:39:24 GMT'] + etag: [W/"datetime'2019-02-18T10%3A39%3A24.6043364Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/716b6f6b-5c57-4dd4-bb2d-b6cc777652e8?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/716b6f6b-5c57-4dd4-bb2d-b6cc777652e8","name":"716b6f6b-5c57-4dd4-bb2d-b6cc777652e8","status":"Succeeded","startTime":"2019-02-18T10:39:24.5375327Z","endTime":"2019-02-18T10:39:24.8229417Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:39:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A39%3A24.8725281Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:39:58 GMT'] + etag: [W/"datetime'2019-02-18T10%3A39%3A24.8725281Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf account list] + Connection: [keep-alive] + ParameterSetName: [-g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A39%3A24.8725281Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['506'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:39:59 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3558c25-f5c9-4d1f-b816-eec9ce09653b?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 10:40:02 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3558c25-f5c9-4d1f-b816-eec9ce09653b?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3558c25-f5c9-4d1f-b816-eec9ce09653b?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3558c25-f5c9-4d1f-b816-eec9ce09653b","name":"a3558c25-f5c9-4d1f-b816-eec9ce09653b","status":"Succeeded","startTime":"2019-02-18T10:40:02.6189131Z","endTime":"2019-02-18T10:40:02.6813566Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:40:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf account list] + Connection: [keep-alive] + ParameterSetName: [-g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:40:35 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 10:40:39 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdTNU5TVDZXM1JWRUJGRUQyS05TUFNWSVFEWVNQT1pMR1hPNnxGODY4QjU5RDdDNTY1REQ5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_pool.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_pool.yaml new file mode 100644 index 00000000000..8962a65d8e5 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_pool.yaml @@ -0,0 +1,533 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T11:21: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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T11:21:24Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:21:28 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A21%3A32.868772Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0f2b4da7-4c4f-4843-be8e-e4123ecadb50?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['451'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:21:33 GMT'] + etag: [W/"datetime'2019-02-18T11%3A21%3A32.868772Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0f2b4da7-4c4f-4843-be8e-e4123ecadb50?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0f2b4da7-4c4f-4843-be8e-e4123ecadb50","name":"0f2b4da7-4c4f-4843-be8e-e4123ecadb50","status":"Succeeded","startTime":"2019-02-18T11:21:32.6777633Z","endTime":"2019-02-18T11:21:33.1628308Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:22:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A21%3A33.20602Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['451'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:22:06 GMT'] + etag: [W/"datetime'2019-02-18T11%3A21%3A33.20602Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A22%3A10.8236867Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/7445c753-bf80-4421-adaa-436df543fc30?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:22:11 GMT'] + etag: [W/"datetime'2019-02-18T11%3A22%3A10.8236867Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/7445c753-bf80-4421-adaa-436df543fc30?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/7445c753-bf80-4421-adaa-436df543fc30","name":"7445c753-bf80-4421-adaa-436df543fc30","status":"Succeeded","startTime":"2019-02-18T11:22:10.7781818Z","endTime":"2019-02-18T11:22:11.3670102Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:22:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A22%3A11.3981092Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"395085c2-4d08-d931-524b-e51d631ce3c0","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:22:44 GMT'] + etag: [W/"datetime'2019-02-18T11%3A22%3A11.3981092Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + 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","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A22%3A11.3981092Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"395085c2-4d08-d931-524b-e51d631ce3c0","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['703'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:22:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e68ccb42-6b1f-4156-b77e-394354f08c46?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 11:22:49 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e68ccb42-6b1f-4156-b77e-394354f08c46?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e68ccb42-6b1f-4156-b77e-394354f08c46?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e68ccb42-6b1f-4156-b77e-394354f08c46","name":"e68ccb42-6b1f-4156-b77e-394354f08c46","status":"Succeeded","startTime":"2019-02-18T11:22:50.1754189Z","endTime":"2019-02-18T11:22:53.4484712Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:23:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:23:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A23%3A31.0272655Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e45c2fbe-d028-41b7-9c4e-b7c3827a78fb?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:23:30 GMT'] + etag: [W/"datetime'2019-02-18T11%3A23%3A31.0272655Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e45c2fbe-d028-41b7-9c4e-b7c3827a78fb?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e45c2fbe-d028-41b7-9c4e-b7c3827a78fb","name":"e45c2fbe-d028-41b7-9c4e-b7c3827a78fb","status":"Succeeded","startTime":"2019-02-18T11:23:30.9978684Z","endTime":"2019-02-18T11:23:31.5210997Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:24:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A23%3A31.5536493Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"4f02a259-9a88-11a0-fcaa-7d6a30650316","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:24:10 GMT'] + etag: [W/"datetime'2019-02-18T11%3A23%3A31.5536493Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/99f7cff9-e878-485d-b843-acb8d42ee609?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 11:24:08 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/99f7cff9-e878-485d-b843-acb8d42ee609?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/99f7cff9-e878-485d-b843-acb8d42ee609?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/99f7cff9-e878-485d-b843-acb8d42ee609","name":"99f7cff9-e878-485d-b843-acb8d42ee609","status":"Succeeded","startTime":"2019-02-18T11:24:10.3927934Z","endTime":"2019-02-18T11:24:13.737154Z","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: + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:24:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:24:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 11:24:51 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdSSDMyRkNCR1RINjVMRFJIQVNPSllMNTVOSlVNU09XVkRZS3wwMDFDNkY5N0FCODNBQTI0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_volumes.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_volumes.yaml new file mode 100644 index 00000000000..c8755cdaab4 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_volumes.yaml @@ -0,0 +1,723 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T15:47:26Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T15:47:26Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:47:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"af1307fd-2557-4b4d-a9e1-82ae14d93857\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"24ae3e0e-3629-4909-aed3-80a4f2472711\"\ + ,\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/8a545c77-7cca-41c6-b659-bd2093b9ac95?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:47:36 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: ['1194'] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/8a545c77-7cca-41c6-b659-bd2093b9ac95?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:47: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] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"0b683091-bc7b-4496-a8a7-08f0c74e4698\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"24ae3e0e-3629-4909-aed3-80a4f2472711\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:47:41 GMT'] + etag: [W/"0b683091-bc7b-4496-a8a7-08f0c74e4698"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"72bbaaf8-ee1b-4a34-9ddb-5ebe90dab17d\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"72bbaaf8-ee1b-4a34-9ddb-5ebe90dab17d\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/c64fe84e-b0b8-4f27-a9e5-ff9cb884d005?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:47:41 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: ['1194'] + status: {code: 201, message: Created} +- 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/c64fe84e-b0b8-4f27-a9e5-ff9cb884d005?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:47: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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"107889ed-9b42-4472-8d17-008d59a820fb\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"107889ed-9b42-4472-8d17-008d59a820fb\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:47:47 GMT'] + etag: [W/"107889ed-9b42-4472-8d17-008d59a820fb"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A47%3A52.2554961Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7428213-3e4f-4707-877c-4d282f1c1042?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:47:52 GMT'] + etag: [W/"datetime'2019-02-18T15%3A47%3A52.2554961Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7428213-3e4f-4707-877c-4d282f1c1042?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7428213-3e4f-4707-877c-4d282f1c1042","name":"f7428213-3e4f-4707-877c-4d282f1c1042","status":"Succeeded","startTime":"2019-02-18T15:47:52.1901766Z","endTime":"2019-02-18T15:47:52.5419713Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:48:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A47%3A52.5867296Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:48:25 GMT'] + etag: [W/"datetime'2019-02-18T15%3A47%3A52.5867296Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A48%3A29.4677001Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8fe091c9-2eb8-40e2-ad4a-fb2b1c60b852?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:48:29 GMT'] + etag: [W/"datetime'2019-02-18T15%3A48%3A29.4677001Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8fe091c9-2eb8-40e2-ad4a-fb2b1c60b852?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8fe091c9-2eb8-40e2-ad4a-fb2b1c60b852","name":"8fe091c9-2eb8-40e2-ad4a-fb2b1c60b852","status":"Succeeded","startTime":"2019-02-18T15:48:29.4093118Z","endTime":"2019-02-18T15:48:29.9093074Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:49:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A48%3A29.9550431Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"e4b5b9a8-98c9-911b-2d47-9974b6cfcff4","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:49:02 GMT'] + etag: [W/"datetime'2019-02-18T15%3A48%3A29.9550431Z'"] + expires: ['-1'] + pragma: [no-cache] + 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/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag1": + "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['432'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A49%3A07.0861781Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1f42b766-03ce-4758-b2aa-cd53d6767713?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['942'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:49:07 GMT'] + etag: [W/"datetime'2019-02-18T15%3A49%3A07.0861781Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1f42b766-03ce-4758-b2aa-cd53d6767713?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1f42b766-03ce-4758-b2aa-cd53d6767713","name":"1f42b766-03ce-4758-b2aa-cd53d6767713","status":"Creating","startTime":"2019-02-18T15:49:07.0341147Z","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: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:49:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1f42b766-03ce-4758-b2aa-cd53d6767713?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1f42b766-03ce-4758-b2aa-cd53d6767713","name":"1f42b766-03ce-4758-b2aa-cd53d6767713","status":"Succeeded","startTime":"2019-02-18T15:49:07.0341147Z","endTime":"2019-02-18T15:49:43.8249404Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:50:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A49%3A43.8600609Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"b1b57dbd-4c72-f390-021b-75d51544d1d0","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_45e6d866","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"8138c16c-1474-a3f8-ee68-7dca7a9c6603","fileSystemId":"b1b57dbd-4c72-f390-021b-75d51544d1d0","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: + cache-control: [no-cache] + content-length: ['1629'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:50:12 GMT'] + etag: [W/"datetime'2019-02-18T15%3A49%3A43.8600609Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + 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","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-18T15%3A49%3A43.8600609Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"b1b57dbd-4c72-f390-021b-75d51544d1d0","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_45e6d866","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"8138c16c-1474-a3f8-ee68-7dca7a9c6603","fileSystemId":"b1b57dbd-4c72-f390-021b-75d51544d1d0","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: + cache-control: [no-cache] + content-length: ['1641'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:50:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/89843d02-586d-481f-8084-a4b992f9d10b?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 15:50:15 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/89843d02-586d-481f-8084-a4b992f9d10b?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/89843d02-586d-481f-8084-a4b992f9d10b?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/89843d02-586d-481f-8084-a4b992f9d10b","name":"89843d02-586d-481f-8084-a4b992f9d10b","status":"Deleting","startTime":"2019-02-18T15:50:16.0903583Z","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: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:50:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/89843d02-586d-481f-8084-a4b992f9d10b?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/89843d02-586d-481f-8084-a4b992f9d10b","name":"89843d02-586d-481f-8084-a4b992f9d10b","status":"Succeeded","startTime":"2019-02-18T15:50:16.0903583Z","endTime":"2019-02-18T15:51:02.8620689Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:51:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:51:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 15:51:23 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdFRjVZR0w3TVdORVBBQU4zMlo0VUU3T1BCVUxSTUpJSFdJS3wxM0FFNjIwNTgyQ0Y4MDlBLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_snapshots.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_snapshots.yaml new file mode 100644 index 00000000000..56ba368a37a --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_snapshots.yaml @@ -0,0 +1,639 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-19T08:29:43Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-19T08:29:43Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:29:48 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.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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"89c08c52-1daa-450c-896b-c966230df2d1\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"1123a4ba-3076-4b6b-a547-52a65fff7195\"\ + ,\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/9b468ab9-72d2-462c-810e-7eb0487105f6?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:29:54 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/9b468ab9-72d2-462c-810e-7eb0487105f6?api-version=2018-10-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: ['Tue, 19 Feb 2019 08:29:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"5fa15896-faa8-4530-b3b3-c68e7bcc4da8\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"1123a4ba-3076-4b6b-a547-52a65fff7195\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:29:58 GMT'] + etag: [W/"5fa15896-faa8-4530-b3b3-c68e7bcc4da8"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"b0f20c7f-5994-437f-96a4-9041efe148b2\\\"\",\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-000006/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"b0f20c7f-5994-437f-96a4-9041efe148b2\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/9a168aeb-8617-4ec4-9227-60441c94de3c?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:29:59 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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/9a168aeb-8617-4ec4-9227-60441c94de3c?api-version=2018-10-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: ['Tue, 19 Feb 2019 08:30:03 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"40c7ec47-ca79-42c8-b658-1cf8e3a87b5b\\\"\",\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-000006/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"40c7ec47-ca79-42c8-b658-1cf8e3a87b5b\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:30:04 GMT'] + etag: [W/"40c7ec47-ca79-42c8-b658-1cf8e3a87b5b"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-19T08%3A30%3A08.6135132Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fe7ec669-bbe3-4f44-9f36-e2147c0467c6?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:30:08 GMT'] + etag: [W/"datetime'2019-02-19T08%3A30%3A08.6135132Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fe7ec669-bbe3-4f44-9f36-e2147c0467c6?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fe7ec669-bbe3-4f44-9f36-e2147c0467c6","name":"fe7ec669-bbe3-4f44-9f36-e2147c0467c6","status":"Succeeded","startTime":"2019-02-19T08:30:08.5485732Z","endTime":"2019-02-19T08:30:08.8454441Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:30:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-19T08%3A30%3A08.8947128Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:30:41 GMT'] + etag: [W/"datetime'2019-02-19T08%3A30%3A08.8947128Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-19T08%3A30%3A46.165125Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d509f9e9-f87b-4bf7-9865-1f9e8e4404e8?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['541'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:30:46 GMT'] + etag: [W/"datetime'2019-02-19T08%3A30%3A46.165125Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d509f9e9-f87b-4bf7-9865-1f9e8e4404e8?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d509f9e9-f87b-4bf7-9865-1f9e8e4404e8","name":"d509f9e9-f87b-4bf7-9865-1f9e8e4404e8","status":"Succeeded","startTime":"2019-02-19T08:30:46.1034981Z","endTime":"2019-02-19T08:30:46.603486Z","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: + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:31:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-19T08%3A30%3A46.6604737Z''\"","location":"westus2","properties":{"poolId":"5ed8a69b-dd0a-7913-f238-fa910a2be9dc","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:31:19 GMT'] + etag: [W/"datetime'2019-02-19T08%3A30%3A46.6604737Z'"] + expires: ['-1'] + pragma: [no-cache] + 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/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['386'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-19T08%3A31%3A24.7464648Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3fda954f-2fb1-4c2e-85d1-a2060160cd33?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['901'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:31:25 GMT'] + etag: [W/"datetime'2019-02-19T08%3A31%3A24.7464648Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3fda954f-2fb1-4c2e-85d1-a2060160cd33?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3fda954f-2fb1-4c2e-85d1-a2060160cd33","name":"3fda954f-2fb1-4c2e-85d1-a2060160cd33","status":"Creating","startTime":"2019-02-19T08:31:24.7008338Z","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: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:31:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3fda954f-2fb1-4c2e-85d1-a2060160cd33?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3fda954f-2fb1-4c2e-85d1-a2060160cd33","name":"3fda954f-2fb1-4c2e-85d1-a2060160cd33","status":"Succeeded","startTime":"2019-02-19T08:31:24.7008338Z","endTime":"2019-02-19T08:31:58.4399054Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:32:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-19T08%3A31%3A58.4673619Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"25994a73-19fd-81ff-402b-8b53efaed088","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_734f79e9","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"e11875aa-2e99-b243-6921-b175118c8148","fileSystemId":"25994a73-19fd-81ff-402b-8b53efaed088","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: + cache-control: [no-cache] + content-length: ['1588'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:32:29 GMT'] + etag: [W/"datetime'2019-02-19T08%3A31%3A58.4673619Z'"] + expires: ['-1'] + pragma: [no-cache] + 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": "25994a73-19fd-81ff-402b-8b53efaed088"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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":"2/19/2019 + 8:32:36 AM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"edcf9a2f-e443-cd28-80af-d0fbe6f376d6","fileSystemId":"25994a73-19fd-81ff-402b-8b53efaed088","name":"cli-sn-000005","created":"2019-02-19T08:32:34Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['778'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:32:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"edcf9a2f-e443-cd28-80af-d0fbe6f376d6","fileSystemId":"25994a73-19fd-81ff-402b-8b53efaed088","name":"cli-sn-000005","created":"2019-02-19T08:32:34Z"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['760'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 19 Feb 2019 08:32:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Tue, 19 Feb 2019 08:32:43 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdaTlY0TkxFTk9VNFRSNldWN0ZVQU9VUERYRktXTkwyRk5LQXxBMDM0MEVBQjA1MzcyNDExLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_account_by_name_ext.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_account_by_name_ext.yaml new file mode 100644 index 00000000000..47c1c8d54e6 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_account_by_name_ext.yaml @@ -0,0 +1,177 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T10:40:39Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T10:40:39Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:40:41 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A40%3A45.8036481Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/396fdb1b-c90c-4fcc-99e6-0af08e3cc15a?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:40:46 GMT'] + etag: [W/"datetime'2019-02-18T10%3A40%3A45.8036481Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/396fdb1b-c90c-4fcc-99e6-0af08e3cc15a?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/396fdb1b-c90c-4fcc-99e6-0af08e3cc15a","name":"396fdb1b-c90c-4fcc-99e6-0af08e3cc15a","status":"Succeeded","startTime":"2019-02-18T10:40:45.7509094Z","endTime":"2019-02-18T10:40:46.0321063Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:41:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A40%3A46.0858506Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:41:17 GMT'] + etag: [W/"datetime'2019-02-18T10%3A40%3A46.0858506Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf account show] + Connection: [keep-alive] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A40%3A46.0858506Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:41:19 GMT'] + etag: [W/"datetime'2019-02-18T10%3A40%3A46.0858506Z'"] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 10:41:24 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdUTFozQ0ZOWFMyTVhRWFNUTEpDM0VSR0ZFUFdSN0dDN09ZTXw3NDI3OEU0Q0M3RjQ0MjI5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_pool_by_name.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_pool_by_name.yaml new file mode 100644 index 00000000000..42450aad0d1 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_pool_by_name.yaml @@ -0,0 +1,267 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T11:24:52Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T11:24:52Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:25:04 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T11%3A25%3A01.3556436Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d5d1096d-7540-49c6-ab1e-094751ccd296?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:26:08 GMT'] + etag: [W/"datetime'2019-02-18T11%3A25%3A01.3556436Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d5d1096d-7540-49c6-ab1e-094751ccd296?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d5d1096d-7540-49c6-ab1e-094751ccd296","name":"d5d1096d-7540-49c6-ab1e-094751ccd296","status":"Succeeded","startTime":"2019-02-18T11:25:01.2864478Z","endTime":"2019-02-18T11:25:01.5994236Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:25:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T11%3A25%3A01.6438767Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:25:35 GMT'] + etag: [W/"datetime'2019-02-18T11%3A25%3A01.6438767Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A25%3A40.0455796Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2198b038-e4c5-4aa5-a22e-d0dfcbc92d8d?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:25:40 GMT'] + etag: [W/"datetime'2019-02-18T11%3A25%3A40.0455796Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2198b038-e4c5-4aa5-a22e-d0dfcbc92d8d?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2198b038-e4c5-4aa5-a22e-d0dfcbc92d8d","name":"2198b038-e4c5-4aa5-a22e-d0dfcbc92d8d","status":"Succeeded","startTime":"2019-02-18T11:25:40.0034171Z","endTime":"2019-02-18T11:25:40.4878156Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:26:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A25%3A40.5389705Z''\"","location":"westus2","properties":{"poolId":"31afd67a-ef79-ac1f-f279-94a62b8ba6cb","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:26:13 GMT'] + etag: [W/"datetime'2019-02-18T11%3A25%3A40.5389705Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf pool show] + Connection: [keep-alive] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A25%3A40.5389705Z''\"","location":"westus2","properties":{"poolId":"31afd67a-ef79-ac1f-f279-94a62b8ba6cb","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:26:16 GMT'] + etag: [W/"datetime'2019-02-18T11%3A25%3A40.5389705Z'"] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 11:26:21 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdKSVNLSVhIS1RaMjZJSE9XRDRZWjZBVVo2SlkyR1JUVERNWnxCMkRENjRBMEE1RkVCQzc4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_snapshot.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_snapshot.yaml new file mode 100644 index 00000000000..9d3009bbfa3 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_snapshot.yaml @@ -0,0 +1,639 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T17:32:49Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T17:32:49Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:32:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: !!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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"19b6d69c-90a7-4714-9c6d-a2d66dfc0823\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"af700cd8-d367-4fef-bb91-f4d9fdce74da\"\ + ,\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/575af672-2846-457d-8a4c-21c22e8b4bc2?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:32:57 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/575af672-2846-457d-8a4c-21c22e8b4bc2?api-version=2018-10-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: ['Mon, 18 Feb 2019 17:33:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"ddc2ef48-a3af-4c47-9ef0-0aa197b3b433\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"af700cd8-d367-4fef-bb91-f4d9fdce74da\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:33:02 GMT'] + etag: [W/"ddc2ef48-a3af-4c47-9ef0-0aa197b3b433"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"6102b6fd-7198-4d2f-bda5-a3e411c2ece9\\\"\",\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-000006/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"6102b6fd-7198-4d2f-bda5-a3e411c2ece9\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/0cfb9bb8-ce31-42f7-b832-586b25b0b61f?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:33:04 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: ['1194'] + status: {code: 201, message: Created} +- 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/0cfb9bb8-ce31-42f7-b832-586b25b0b61f?api-version=2018-10-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: ['Mon, 18 Feb 2019 17:33:08 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"a2b1cdd3-d4a1-4672-94bb-8f1a0ea6193a\\\"\",\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-000006/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"a2b1cdd3-d4a1-4672-94bb-8f1a0ea6193a\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:33:09 GMT'] + etag: [W/"a2b1cdd3-d4a1-4672-94bb-8f1a0ea6193a"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A33%3A13.1064602Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/17cbec5c-3523-4daf-a527-65c049dbec5d?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:33:13 GMT'] + etag: [W/"datetime'2019-02-18T17%3A33%3A13.1064602Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/17cbec5c-3523-4daf-a527-65c049dbec5d?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/17cbec5c-3523-4daf-a527-65c049dbec5d","name":"17cbec5c-3523-4daf-a527-65c049dbec5d","status":"Succeeded","startTime":"2019-02-18T17:33:13.0447208Z","endTime":"2019-02-18T17:33:13.3412628Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:33:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A33%3A13.3846556Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:33:45 GMT'] + etag: [W/"datetime'2019-02-18T17%3A33%3A13.3846556Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A33%3A50.201569Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cd927736-223c-453b-bea5-715db2b26b07?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['541'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:33:50 GMT'] + etag: [W/"datetime'2019-02-18T17%3A33%3A50.201569Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cd927736-223c-453b-bea5-715db2b26b07?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cd927736-223c-453b-bea5-715db2b26b07","name":"cd927736-223c-453b-bea5-715db2b26b07","status":"Succeeded","startTime":"2019-02-18T17:33:50.150608Z","endTime":"2019-02-18T17:33:50.675525Z","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: + cache-control: [no-cache] + content-length: ['613'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:34:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A33%3A50.7269388Z''\"","location":"westus2","properties":{"poolId":"2f7aa7fa-5f39-d274-9bcb-95fe91a3d003","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:34:23 GMT'] + etag: [W/"datetime'2019-02-18T17%3A33%3A50.7269388Z'"] + expires: ['-1'] + pragma: [no-cache] + 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/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['386'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A34%3A27.6919569Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4e8f08c0-0294-40b5-a200-ec08a702daf7?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['901'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:34:27 GMT'] + etag: [W/"datetime'2019-02-18T17%3A34%3A27.6919569Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4e8f08c0-0294-40b5-a200-ec08a702daf7?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4e8f08c0-0294-40b5-a200-ec08a702daf7","name":"4e8f08c0-0294-40b5-a200-ec08a702daf7","status":"Creating","startTime":"2019-02-18T17:34:27.6061544Z","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: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:34:59 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4e8f08c0-0294-40b5-a200-ec08a702daf7?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4e8f08c0-0294-40b5-a200-ec08a702daf7","name":"4e8f08c0-0294-40b5-a200-ec08a702daf7","status":"Succeeded","startTime":"2019-02-18T17:34:27.6061544Z","endTime":"2019-02-18T17:35:02.4238916Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:35:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A35%3A02.4564493Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"115efbfb-e873-33b9-b919-834c6512727a","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_c9efd4d2","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"7b3deca9-5443-3d7f-bcea-795dce74edd1","fileSystemId":"115efbfb-e873-33b9-b919-834c6512727a","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: + cache-control: [no-cache] + content-length: ['1588'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:35:32 GMT'] + etag: [W/"datetime'2019-02-18T17%3A35%3A02.4564493Z'"] + expires: ['-1'] + pragma: [no-cache] + 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": "115efbfb-e873-33b9-b919-834c6512727a"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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":"2/18/2019 + 5:35:39 PM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"c77111e4-e39f-2b5d-fa3f-b63d0fdcb1fb","fileSystemId":"115efbfb-e873-33b9-b919-834c6512727a","name":"cli-sn-000005","created":"2019-02-18T17:35:37Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['778'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:35:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1193'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"c77111e4-e39f-2b5d-fa3f-b63d0fdcb1fb","fileSystemId":"115efbfb-e873-33b9-b919-834c6512727a","name":"cli-sn-000005","created":"2019-02-18T17:35:37Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['748'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:35:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 17:35:58 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdZWktNS1RLRkNOQkxPUjZNR0ZRNUhLU0pVUFUzSjVIVFA3MnxCOTcxMzlDODBCREFERTlGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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: ['14997'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_volume_by_name.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_volume_by_name.yaml new file mode 100644 index 00000000000..d7715008187 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_volume_by_name.yaml @@ -0,0 +1,609 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T15:39:35Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T15:39:35Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:39: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: ['1198'] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"3150f528-b23a-4b13-be25-c6cf8b660573\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"e629c0ca-65c1-4cc9-bc28-16253d7ce317\"\ + ,\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/dd844c70-bd44-449b-8b7e-67f902a1c92f?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:39:45 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/dd844c70-bd44-449b-8b7e-67f902a1c92f?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:39: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 create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"3961b934-d630-429f-a592-56e690b16585\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"e629c0ca-65c1-4cc9-bc28-16253d7ce317\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:39:50 GMT'] + etag: [W/"3961b934-d630-429f-a592-56e690b16585"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"f12b03d9-92a4-47dc-ab9f-f44f48e81ee5\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"f12b03d9-92a4-47dc-ab9f-f44f48e81ee5\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/26892b1a-a8d6-470a-a2ac-6bb82bcd1b87?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:39:51 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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/26892b1a-a8d6-470a-a2ac-6bb82bcd1b87?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:39: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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"ed424d6e-7db0-4004-bfe2-d8a26588e4f0\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"ed424d6e-7db0-4004-bfe2-d8a26588e4f0\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:39:55 GMT'] + etag: [W/"ed424d6e-7db0-4004-bfe2-d8a26588e4f0"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A40%3A11.9736427Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bb8d5b96-8370-4d49-a84d-505f588289ed?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:40:12 GMT'] + etag: [W/"datetime'2019-02-18T15%3A40%3A11.9736427Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bb8d5b96-8370-4d49-a84d-505f588289ed?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bb8d5b96-8370-4d49-a84d-505f588289ed","name":"bb8d5b96-8370-4d49-a84d-505f588289ed","status":"Succeeded","startTime":"2019-02-18T15:40:11.9254495Z","endTime":"2019-02-18T15:40:12.206722Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:40:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A40%3A12.2538407Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:40:44 GMT'] + etag: [W/"datetime'2019-02-18T15%3A40%3A12.2538407Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A40%3A49.3311114Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fac3401c-5c59-43d7-af62-c7b477390722?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:40:50 GMT'] + etag: [W/"datetime'2019-02-18T15%3A40%3A49.3311114Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fac3401c-5c59-43d7-af62-c7b477390722?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fac3401c-5c59-43d7-af62-c7b477390722","name":"fac3401c-5c59-43d7-af62-c7b477390722","status":"Succeeded","startTime":"2019-02-18T15:40:49.2819491Z","endTime":"2019-02-18T15:40:49.7331509Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:41:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A40%3A49.8384715Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"poolId":"569187f1-a303-8ecc-5255-fc1cb3d7570e","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:41:22 GMT'] + etag: [W/"datetime'2019-02-18T15%3A40%3A49.8384715Z'"] + expires: ['-1'] + pragma: [no-cache] + 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/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag2": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['414'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A41%3A26.2872965Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c0419628-1a1e-4062-91fe-b2b74925fcf7?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['926'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:41:26 GMT'] + etag: [W/"datetime'2019-02-18T15%3A41%3A26.2872965Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c0419628-1a1e-4062-91fe-b2b74925fcf7?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c0419628-1a1e-4062-91fe-b2b74925fcf7","name":"c0419628-1a1e-4062-91fe-b2b74925fcf7","status":"Creating","startTime":"2019-02-18T15:41:26.237872Z","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: + cache-control: [no-cache] + content-length: ['636'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:41:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c0419628-1a1e-4062-91fe-b2b74925fcf7?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c0419628-1a1e-4062-91fe-b2b74925fcf7","name":"c0419628-1a1e-4062-91fe-b2b74925fcf7","status":"Succeeded","startTime":"2019-02-18T15:41:26.237872Z","endTime":"2019-02-18T15:41:59.6095374Z","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: + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A41%3A59.6389285Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"e9d66977-6950-5668-9f96-4433baf1a47e","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_a97f1600","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"cc0e3244-f3d7-9163-4474-b4e916797411","fileSystemId":"e9d66977-6950-5668-9f96-4433baf1a47e","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: + cache-control: [no-cache] + content-length: ['1613'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42:31 GMT'] + etag: [W/"datetime'2019-02-18T15%3A41%3A59.6389285Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf volume show] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + 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-02-18T15%3A41%3A59.6389285Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"e9d66977-6950-5668-9f96-4433baf1a47e","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_a97f1600","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"cc0e3244-f3d7-9163-4474-b4e916797411","fileSystemId":"e9d66977-6950-5668-9f96-4433baf1a47e","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: + cache-control: [no-cache] + content-length: ['1613'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42:32 GMT'] + etag: [W/"datetime'2019-02-18T15%3A41%3A59.6389285Z'"] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 15:42:38 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdORFYyMk5SM1pYUVA2T1VTQjNTQUpJR1lFSFUzWEJDUDVGQ3w1RTY0MzAxNzI3QjI2ODJFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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: ['14997'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_accounts_ext.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_accounts_ext.yaml new file mode 100644 index 00000000000..fa0f0b6c3a2 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_accounts_ext.yaml @@ -0,0 +1,410 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T10:41: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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T10:41:24Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:41:26 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"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A41%3A31.4848921Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0c6cf5ea-072d-4b99-a326-62a8e86b0899?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['477'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:41:31 GMT'] + etag: [W/"datetime'2019-02-18T10%3A41%3A31.4848921Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0c6cf5ea-072d-4b99-a326-62a8e86b0899?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0c6cf5ea-072d-4b99-a326-62a8e86b0899","name":"0c6cf5ea-072d-4b99-a326-62a8e86b0899","status":"Succeeded","startTime":"2019-02-18T10:41:31.4222551Z","endTime":"2019-02-18T10:41:31.6905701Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:42:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A41%3A31.7450789Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:42:05 GMT'] + etag: [W/"datetime'2019-02-18T10%3A41%3A31.7450789Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A42%3A07.8019672Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Creating","name":"cli000003"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cd760995-4feb-4ceb-b64c-a920d2e03ce5?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['477'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:42:08 GMT'] + etag: [W/"datetime'2019-02-18T10%3A42%3A07.8019672Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cd760995-4feb-4ceb-b64c-a920d2e03ce5?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/cd760995-4feb-4ceb-b64c-a920d2e03ce5","name":"cd760995-4feb-4ceb-b64c-a920d2e03ce5","status":"Succeeded","startTime":"2019-02-18T10:42:07.7393921Z","endTime":"2019-02-18T10:42:08.0050354Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:42:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A42%3A08.0631554Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:42:40 GMT'] + etag: [W/"datetime'2019-02-18T10%3A42%3A08.0631554Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf account list] + Connection: [keep-alive] + ParameterSetName: [-g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A42%3A08.0631554Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000003"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A41%3A31.7450789Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['969'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:42:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4fdce396-5a6e-4e1a-b63e-0f75958daff6?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 10:42:45 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4fdce396-5a6e-4e1a-b63e-0f75958daff6?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4fdce396-5a6e-4e1a-b63e-0f75958daff6?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/4fdce396-5a6e-4e1a-b63e-0f75958daff6","name":"4fdce396-5a6e-4e1a-b63e-0f75958daff6","status":"Succeeded","startTime":"2019-02-18T10:42:45.8237546Z","endTime":"2019-02-18T10:42:45.901884Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:43:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ac8d5608-c0c2-4d80-ad6d-6c90fdc3e96a?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 10:43:44 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ac8d5608-c0c2-4d80-ad6d-6c90fdc3e96a?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ac8d5608-c0c2-4d80-ad6d-6c90fdc3e96a?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ac8d5608-c0c2-4d80-ad6d-6c90fdc3e96a","name":"ac8d5608-c0c2-4d80-ad6d-6c90fdc3e96a","status":"Succeeded","startTime":"2019-02-18T10:43:23.1103364Z","endTime":"2019-02-18T10:43:23.1884346Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:44:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf account list] + Connection: [keep-alive] + ParameterSetName: [-g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:44:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 10:44:19 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdCQUpRWlFKRElRT0EyN0hPTllRRkdJQTdKM09YNFZFNFVWTnxCQ0Y3OTBCRDBDQTlFQzNCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_mount_targets.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_mount_targets.yaml new file mode 100644 index 00000000000..b869780a835 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_mount_targets.yaml @@ -0,0 +1,607 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T14:41:08Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T14:41:08Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:41:13 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.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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"11f7a30f-3f85-439b-b601-6407b888c0d0\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"7d0c1f8d-6a56-48eb-8ed2-3b50dfa2298f\"\ + ,\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/fbe496c0-df0a-40ca-9d27-114c08c41c5f?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:41:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/fbe496c0-df0a-40ca-9d27-114c08c41c5f?api-version=2018-10-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: ['Mon, 18 Feb 2019 14:41:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"5de769da-3f83-4687-b38e-35ffb2d3d28a\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"7d0c1f8d-6a56-48eb-8ed2-3b50dfa2298f\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:41:25 GMT'] + etag: [W/"5de769da-3f83-4687-b38e-35ffb2d3d28a"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"80563f52-70df-4b79-b894-bc9016bec243\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"80563f52-70df-4b79-b894-bc9016bec243\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/ce2fe8ab-dc60-457d-8514-dad397ce7c55?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:41:26 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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/ce2fe8ab-dc60-457d-8514-dad397ce7c55?api-version=2018-10-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: ['Mon, 18 Feb 2019 14:41:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"055bfb90-0898-4d04-a1fa-8156c139171b\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"055bfb90-0898-4d04-a1fa-8156c139171b\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:41:32 GMT'] + etag: [W/"055bfb90-0898-4d04-a1fa-8156c139171b"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T14%3A41%3A37.3054275Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6552987f-a7a2-4d89-bba9-4135b33881f5?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:41:37 GMT'] + etag: [W/"datetime'2019-02-18T14%3A41%3A37.3054275Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6552987f-a7a2-4d89-bba9-4135b33881f5?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6552987f-a7a2-4d89-bba9-4135b33881f5","name":"6552987f-a7a2-4d89-bba9-4135b33881f5","status":"Succeeded","startTime":"2019-02-18T14:41:37.2407999Z","endTime":"2019-02-18T14:41:37.5376351Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:42:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T14%3A41%3A37.584624Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:42:10 GMT'] + etag: [W/"datetime'2019-02-18T14%3A41%3A37.584624Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T14%3A42%3A15.6784362Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/10760561-e202-48a5-89e8-f62de0fb1fce?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:42:15 GMT'] + etag: [W/"datetime'2019-02-18T14%3A42%3A15.6784362Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/10760561-e202-48a5-89e8-f62de0fb1fce?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/10760561-e202-48a5-89e8-f62de0fb1fce","name":"10760561-e202-48a5-89e8-f62de0fb1fce","status":"Succeeded","startTime":"2019-02-18T14:42:15.609804Z","endTime":"2019-02-18T14:42:16.2034985Z","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: + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:42:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T14%3A42%3A16.257844Z''\"","location":"westus2","properties":{"poolId":"cb504960-eaf5-066c-eff3-218473557b97","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['649'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:42:48 GMT'] + etag: [W/"datetime'2019-02-18T14%3A42%3A16.257844Z'"] + expires: ['-1'] + pragma: [no-cache] + 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-000005/subnets/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['386'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T14%3A42%3A53.667174Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/04b5bd80-250e-4853-8af1-bf1c76623ab3?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['900'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:42:53 GMT'] + etag: [W/"datetime'2019-02-18T14%3A42%3A53.667174Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/04b5bd80-250e-4853-8af1-bf1c76623ab3?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/04b5bd80-250e-4853-8af1-bf1c76623ab3","name":"04b5bd80-250e-4853-8af1-bf1c76623ab3","status":"Creating","startTime":"2019-02-18T14:42:53.6109052Z","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: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:43:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/04b5bd80-250e-4853-8af1-bf1c76623ab3?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/04b5bd80-250e-4853-8af1-bf1c76623ab3","name":"04b5bd80-250e-4853-8af1-bf1c76623ab3","status":"Succeeded","startTime":"2019-02-18T14:42:53.6109052Z","endTime":"2019-02-18T14:43:33.5920087Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:43:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T14%3A43%3A33.6202949Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"d1fbe8f0-64d2-c1e3-37dd-4094531aee29","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_25072f96","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"74fda063-3be6-a4a9-b473-4835dfb25e49","fileSystemId":"d1fbe8f0-64d2-c1e3-37dd-4094531aee29","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: + cache-control: [no-cache] + content-length: ['1588'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:43:59 GMT'] + etag: [W/"datetime'2019-02-18T14%3A43%3A33.6202949Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf mount-target 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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/mountTargets?api-version=2017-08-15 + 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/mountTargets/74fda063-3be6-a4a9-b473-4835dfb25e49","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/74fda063-3be6-a4a9-b473-4835dfb25e49","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/mountTargets","location":"westus2","properties":{"provisioningState":"Succeeded","mountTargetId":"74fda063-3be6-a4a9-b473-4835dfb25e49","fileSystemId":"d1fbe8f0-64d2-c1e3-37dd-4094531aee29","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: + cache-control: [no-cache] + content-length: ['836'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 14:44:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 14:44:05 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdPNjdNQUk0WFE0U0hORVpSSFVEWTJIV1JHQVFVRlpKMlNMRHw2RERGQTFEQTUyNDA4MERCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_pools.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_pools.yaml new file mode 100644 index 00000000000..8121e9f5e36 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_pools.yaml @@ -0,0 +1,501 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T11:26: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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T11:26:20Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:26: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: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T11%3A26%3A27.7120965Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6ef10aec-a549-42eb-96be-8a4eab10b54b?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:26:27 GMT'] + etag: [W/"datetime'2019-02-18T11%3A26%3A27.7120965Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6ef10aec-a549-42eb-96be-8a4eab10b54b?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6ef10aec-a549-42eb-96be-8a4eab10b54b","name":"6ef10aec-a549-42eb-96be-8a4eab10b54b","status":"Succeeded","startTime":"2019-02-18T11:26:27.6410207Z","endTime":"2019-02-18T11:26:27.937925Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:26:59 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T11%3A26%3A27.9953171Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:27:00 GMT'] + etag: [W/"datetime'2019-02-18T11%3A26%3A27.9953171Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A27%3A04.9610324Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6d293560-1290-47ad-b80e-1a31ac5b4bcd?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:27:04 GMT'] + etag: [W/"datetime'2019-02-18T11%3A27%3A04.9610324Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6d293560-1290-47ad-b80e-1a31ac5b4bcd?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6d293560-1290-47ad-b80e-1a31ac5b4bcd","name":"6d293560-1290-47ad-b80e-1a31ac5b4bcd","status":"Succeeded","startTime":"2019-02-18T11:27:04.9120218Z","endTime":"2019-02-18T11:27:05.3027011Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:27:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A27%3A05.353336Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"2101cb89-bf29-4346-8741-e171d85256df","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['674'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:27:37 GMT'] + etag: [W/"datetime'2019-02-18T11%3A27%3A05.353336Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A27%3A41.3770448Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5890a804-a81d-498c-8647-6c64eee04373?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:27:41 GMT'] + etag: [W/"datetime'2019-02-18T11%3A27%3A41.3770448Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5890a804-a81d-498c-8647-6c64eee04373?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5890a804-a81d-498c-8647-6c64eee04373","name":"5890a804-a81d-498c-8647-6c64eee04373","status":"Succeeded","startTime":"2019-02-18T11:27:41.3287534Z","endTime":"2019-02-18T11:27:41.7095827Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:28:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A27%3A41.7603385Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"68f98fd0-6e7d-64ab-ea46-9ec2e221896e","name":"cli000002/cli000004","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:28:13 GMT'] + etag: [W/"datetime'2019-02-18T11%3A27%3A41.7603385Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A27%3A05.353336Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"2101cb89-bf29-4346-8741-e171d85256df","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-18T11%3A27%3A41.7603385Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"68f98fd0-6e7d-64ab-ea46-9ec2e221896e","name":"cli000002/cli000004","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['1362'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:28:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0f5cdcae-6f84-4458-8d8c-6bc56ad735fe?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 11:28:17 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0f5cdcae-6f84-4458-8d8c-6bc56ad735fe?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0f5cdcae-6f84-4458-8d8c-6bc56ad735fe?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0f5cdcae-6f84-4458-8d8c-6bc56ad735fe","name":"0f5cdcae-6f84-4458-8d8c-6bc56ad735fe","status":"Succeeded","startTime":"2019-02-18T11:28:18.1365561Z","endTime":"2019-02-18T11:28:21.3715564Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:28:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/64c2a9d1-15a7-4e75-a936-26bf0483b4e5?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 11:28:51 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/64c2a9d1-15a7-4e75-a936-26bf0483b4e5?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/64c2a9d1-15a7-4e75-a936-26bf0483b4e5?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/64c2a9d1-15a7-4e75-a936-26bf0483b4e5","name":"64c2a9d1-15a7-4e75-a936-26bf0483b4e5","status":"Succeeded","startTime":"2019-02-18T11:28:51.8530756Z","endTime":"2019-02-18T11:28:55.0210196Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:29:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:29:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 11:29:31 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdaSDMzUkdMVU1URERPVU9MQkhaWURQWUU2UTZKUUVJR0ZNVXw4QjEyNUI2MUUyNDFBNTYwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_snapshots.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_snapshots.yaml new file mode 100644 index 00000000000..17ba5c9feb5 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_snapshots.yaml @@ -0,0 +1,698 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T17:29:08Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T17:29:08Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:29:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: !!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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"9d57e938-0f2e-4a36-a3b1-32d7ac8517cf\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"e3264f1a-1039-4ba8-bd2c-e78b2f5c1b18\"\ + ,\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/968ec839-0aa1-41af-9724-2a42a6f61bea?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:29:16 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: ['1195'] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/968ec839-0aa1-41af-9724-2a42a6f61bea?api-version=2018-10-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: ['Mon, 18 Feb 2019 17:29:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"c3915ec7-1953-42a0-b9b9-5e4302a35bfa\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"e3264f1a-1039-4ba8-bd2c-e78b2f5c1b18\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:29:21 GMT'] + etag: [W/"c3915ec7-1953-42a0-b9b9-5e4302a35bfa"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"2f9e120f-26b7-4823-bd9a-5eacd26e2c32\\\"\",\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-000007/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"2f9e120f-26b7-4823-bd9a-5eacd26e2c32\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/06c8daf6-0865-4ada-a650-06945e853679?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:29:22 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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/06c8daf6-0865-4ada-a650-06945e853679?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:29:27 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/06c8daf6-0865-4ada-a650-06945e853679?api-version=2018-10-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: ['Mon, 18 Feb 2019 17:29: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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"30ef5a50-5dd1-4876-8495-5a66ed863933\\\"\",\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-000007/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"30ef5a50-5dd1-4876-8495-5a66ed863933\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:29:39 GMT'] + etag: [W/"30ef5a50-5dd1-4876-8495-5a66ed863933"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A29%3A44.0222612Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8ee512b1-e332-49e0-baf7-41a975a4bf34?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:29:44 GMT'] + etag: [W/"datetime'2019-02-18T17%3A29%3A44.0222612Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8ee512b1-e332-49e0-baf7-41a975a4bf34?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8ee512b1-e332-49e0-baf7-41a975a4bf34","name":"8ee512b1-e332-49e0-baf7-41a975a4bf34","status":"Succeeded","startTime":"2019-02-18T17:29:43.9679791Z","endTime":"2019-02-18T17:29:44.245767Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:30:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A29%3A44.2914502Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:30:16 GMT'] + etag: [W/"datetime'2019-02-18T17%3A29%3A44.2914502Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A30%3A21.1313798Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8b24eabb-58a7-4bdf-a5f9-db21a8596378?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:30:21 GMT'] + etag: [W/"datetime'2019-02-18T17%3A30%3A21.1313798Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8b24eabb-58a7-4bdf-a5f9-db21a8596378?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8b24eabb-58a7-4bdf-a5f9-db21a8596378","name":"8b24eabb-58a7-4bdf-a5f9-db21a8596378","status":"Succeeded","startTime":"2019-02-18T17:30:21.0901729Z","endTime":"2019-02-18T17:30:23.8291697Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:30:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A30%3A23.8793144Z''\"","location":"westus2","properties":{"poolId":"7018f347-46eb-4be4-9920-4ce74b0921dc","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:30:54 GMT'] + etag: [W/"datetime'2019-02-18T17%3A30%3A23.8793144Z'"] + expires: ['-1'] + pragma: [no-cache] + 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/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['386'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A30%3A58.5066863Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f23d9a7c-4242-4e6b-be8c-516d0a67fcfe?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['901'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:30:58 GMT'] + etag: [W/"datetime'2019-02-18T17%3A30%3A58.5066863Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f23d9a7c-4242-4e6b-be8c-516d0a67fcfe?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f23d9a7c-4242-4e6b-be8c-516d0a67fcfe","name":"f23d9a7c-4242-4e6b-be8c-516d0a67fcfe","status":"Creating","startTime":"2019-02-18T17:30:58.4559144Z","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: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:31:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f23d9a7c-4242-4e6b-be8c-516d0a67fcfe?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f23d9a7c-4242-4e6b-be8c-516d0a67fcfe","name":"f23d9a7c-4242-4e6b-be8c-516d0a67fcfe","status":"Succeeded","startTime":"2019-02-18T17:30:58.4559144Z","endTime":"2019-02-18T17:31:34.2869362Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:32:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T17%3A31%3A34.3229318Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"f614d1df-17c7-07a3-0314-70d80741f75e","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_a827ded3","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"a972ea79-fdc6-0403-4bad-8f9b955db841","fileSystemId":"f614d1df-17c7-07a3-0314-70d80741f75e","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: + cache-control: [no-cache] + content-length: ['1588'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:32:02 GMT'] + etag: [W/"datetime'2019-02-18T17%3A31%3A34.3229318Z'"] + expires: ['-1'] + pragma: [no-cache] + 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": "f614d1df-17c7-07a3-0314-70d80741f75e"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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":"2/18/2019 + 5:32:10 PM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"50e47773-f352-428c-0e2d-a09a4be97cf6","fileSystemId":"f614d1df-17c7-07a3-0314-70d80741f75e","name":"cli-sn-000005","created":"2019-02-18T17:32:07Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['778'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:32:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: !!python/unicode '{"properties": {"fileSystemId": "f614d1df-17c7-07a3-0314-70d80741f75e"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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":"2/18/2019 + 5:32:17 PM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"8bdf53ca-d495-9a0a-f306-7bfc1c0c18c2","fileSystemId":"f614d1df-17c7-07a3-0314-70d80741f75e","name":"cli-sn-000006","created":"2019-02-18T17:32:14Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['778'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:32:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"50e47773-f352-428c-0e2d-a09a4be97cf6","fileSystemId":"f614d1df-17c7-07a3-0314-70d80741f75e","name":"cli-sn-000005","created":"2019-02-18T17:32:07Z"}},{"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":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"8bdf53ca-d495-9a0a-f306-7bfc1c0c18c2","fileSystemId":"f614d1df-17c7-07a3-0314-70d80741f75e","name":"cli-sn-000006","created":"2019-02-18T17:32:14Z"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['1509'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 17:32:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 17:32:23 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdaV0dNWVpPVEpYRFhBMjZaTFpGR0lLSTdTNUJVS0w2SDRMNHw1Q0FEOTdCRkI4MDk4NEQyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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: ['14997'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_volumes.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_volumes.yaml new file mode 100644 index 00000000000..2f8c42f648c --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_volumes.yaml @@ -0,0 +1,876 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T15:33:39Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T15:33:39Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:33:44 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.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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"b2448de7-5479-443f-8674-de1d6139589c\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"dcd7d47a-5923-48cd-b29b-a98385b297b3\"\ + ,\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/6ad01bd2-d088-44de-ad8a-28e897997b1a?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:33: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: ['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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/6ad01bd2-d088-44de-ad8a-28e897997b1a?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:33: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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-10-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/\\\"9259f3fb-351a-4d23-be76-2629e32ead06\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"dcd7d47a-5923-48cd-b29b-a98385b297b3\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:33:54 GMT'] + etag: [W/"9259f3fb-351a-4d23-be76-2629e32ead06"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"0f5d0dc2-3fac-45f9-9527-fa070ccdec6c\\\"\",\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-000006/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"0f5d0dc2-3fac-45f9-9527-fa070ccdec6c\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/cf69824b-7d8a-4d1c-954b-169d62898b1b?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:33:56 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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/cf69824b-7d8a-4d1c-954b-169d62898b1b?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:33: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] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"534e2dae-9306-46cf-bc13-f28258570d1a\\\"\",\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-000006/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"534e2dae-9306-46cf-bc13-f28258570d1a\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:34:00 GMT'] + etag: [W/"534e2dae-9306-46cf-bc13-f28258570d1a"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A34%3A05.7629172Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/252fe15a-f3a6-48e9-8cb6-386461d46437?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:34:05 GMT'] + etag: [W/"datetime'2019-02-18T15%3A34%3A05.7629172Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/252fe15a-f3a6-48e9-8cb6-386461d46437?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/252fe15a-f3a6-48e9-8cb6-386461d46437","name":"252fe15a-f3a6-48e9-8cb6-386461d46437","status":"Succeeded","startTime":"2019-02-18T15:34:05.6653387Z","endTime":"2019-02-18T15:34:05.9926004Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:34:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A34%3A06.046117Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:34:38 GMT'] + etag: [W/"datetime'2019-02-18T15%3A34%3A06.046117Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A34%3A41.9403806Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/abcadb9d-42ca-46da-bc8e-47dcf7b9eb62?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:34:42 GMT'] + etag: [W/"datetime'2019-02-18T15%3A34%3A41.9403806Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/abcadb9d-42ca-46da-bc8e-47dcf7b9eb62?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/abcadb9d-42ca-46da-bc8e-47dcf7b9eb62","name":"abcadb9d-42ca-46da-bc8e-47dcf7b9eb62","status":"Succeeded","startTime":"2019-02-18T15:34:41.8790307Z","endTime":"2019-02-18T15:34:42.3946184Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:35:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A34%3A42.4407332Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"6036020d-e40f-f83d-187c-b6778ac38be5","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:35:15 GMT'] + etag: [W/"datetime'2019-02-18T15%3A34%3A42.4407332Z'"] + expires: ['-1'] + pragma: [no-cache] + 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/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag1": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['414'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A35%3A20.2293301Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ba95aae-8379-442d-b169-e495c9672844?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['926'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:35:20 GMT'] + etag: [W/"datetime'2019-02-18T15%3A35%3A20.2293301Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ba95aae-8379-442d-b169-e495c9672844?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ba95aae-8379-442d-b169-e495c9672844","name":"3ba95aae-8379-442d-b169-e495c9672844","status":"Creating","startTime":"2019-02-18T15:35:20.1693117Z","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: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:35:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ba95aae-8379-442d-b169-e495c9672844?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ba95aae-8379-442d-b169-e495c9672844","name":"3ba95aae-8379-442d-b169-e495c9672844","status":"Succeeded","startTime":"2019-02-18T15:35:20.1693117Z","endTime":"2019-02-18T15:36:04.1439095Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:36:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A36%3A04.1822662Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"273c9f27-2d81-3a82-2283-9201959a3753","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_0810ad3c","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"a095199c-aaa6-c16e-ee58-d978cd228698","fileSystemId":"273c9f27-2d81-3a82-2283-9201959a3753","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: + cache-control: [no-cache] + content-length: ['1613'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:36:25 GMT'] + etag: [W/"datetime'2019-02-18T15%3A36%3A04.1822662Z'"] + expires: ['-1'] + pragma: [no-cache] + 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/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000005"}, "tags": {"Tag1": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['414'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005?api-version=2017-08-15 + 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-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-18T15%3A36%3A35.8645661Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000005","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/35ace153-2ecc-45d4-8f3c-721c6ab162ef?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['926'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:36:38 GMT'] + etag: [W/"datetime'2019-02-18T15%3A36%3A35.8645661Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/35ace153-2ecc-45d4-8f3c-721c6ab162ef?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/35ace153-2ecc-45d4-8f3c-721c6ab162ef","name":"35ace153-2ecc-45d4-8f3c-721c6ab162ef","status":"Succeeded","startTime":"2019-02-18T15:36:35.7894408Z","endTime":"2019-02-18T15:36:47.9585902Z","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-000005"}}'} + headers: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:38:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005?api-version=2017-08-15 + 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-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-18T15%3A36%3A47.9881109Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"9cb6505c-3110-9e7b-1cf3-459b03c84fea","serviceLevel":"Premium","creationToken":"cli-vol-000005","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_0810ad3c","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"f7b64453-df3f-0152-d323-d33055e23d10","fileSystemId":"9cb6505c-3110-9e7b-1cf3-459b03c84fea","startIp":"10.4.0.128","endIp":"10.4.0.191","gateway":"10.4.0.129","netmask":"255.255.255.192","ipAddress":"10.0.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1621'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:37:46 GMT'] + etag: [W/"datetime'2019-02-18T15%3A36%3A47.9881109Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + 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","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-18T15%3A36%3A04.1822662Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"273c9f27-2d81-3a82-2283-9201959a3753","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_0810ad3c","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"a095199c-aaa6-c16e-ee58-d978cd228698","fileSystemId":"273c9f27-2d81-3a82-2283-9201959a3753","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"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.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-02-18T15%3A36%3A47.9881109Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"9cb6505c-3110-9e7b-1cf3-459b03c84fea","serviceLevel":"Premium","creationToken":"cli-vol-000005","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_0810ad3c","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"f7b64453-df3f-0152-d323-d33055e23d10","fileSystemId":"9cb6505c-3110-9e7b-1cf3-459b03c84fea","startIp":"10.4.0.128","endIp":"10.4.0.191","gateway":"10.4.0.129","netmask":"255.255.255.192","ipAddress":"10.0.0.4"}]}}]}'} + headers: + cache-control: [no-cache] + content-length: ['3247'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:37:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c7a87853-85fd-49d1-a157-ab62fe51a574?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 15:37:27 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c7a87853-85fd-49d1-a157-ab62fe51a574?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c7a87853-85fd-49d1-a157-ab62fe51a574?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c7a87853-85fd-49d1-a157-ab62fe51a574","name":"c7a87853-85fd-49d1-a157-ab62fe51a574","status":"Succeeded","startTime":"2019-02-18T15:37:19.8128409Z","endTime":"2019-02-18T15:37:23.6129913Z","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: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:38:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0b36e886-8ee4-449b-94fe-fc885b2a410e?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Feb 2019 15:38:07 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0b36e886-8ee4-449b-94fe-fc885b2a410e?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0b36e886-8ee4-449b-94fe-fc885b2a410e?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0b36e886-8ee4-449b-94fe-fc885b2a410e","name":"0b36e886-8ee4-449b-94fe-fc885b2a410e","status":"Deleting","startTime":"2019-02-18T15:37:56.3799961Z","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-000005"}}'} + headers: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:38:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0b36e886-8ee4-449b-94fe-fc885b2a410e?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/0b36e886-8ee4-449b-94fe-fc885b2a410e","name":"0b36e886-8ee4-449b-94fe-fc885b2a410e","status":"Succeeded","startTime":"2019-02-18T15:37:56.3799961Z","endTime":"2019-02-18T15:38:49.33467Z","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-000005"}}'} + headers: + cache-control: [no-cache] + content-length: ['646'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:38:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:39:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 15:39:04 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdMRU9BVkc3SVc0N0tJTFBDTzJTSU1OWDJVUE5KWVBENTdJUnwwQjdEMkIxRTg5RDY4QzIyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_account_ext.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_account_ext.yaml new file mode 100644 index 00000000000..9c1d4633373 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_account_ext.yaml @@ -0,0 +1,210 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T10:44:14Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T10:44:14Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:44:16 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A44%3A21.2418159Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/59a2d23a-1820-4e6f-8319-b07f36843d22?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:44:21 GMT'] + etag: [W/"datetime'2019-02-18T10%3A44%3A21.2418159Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/59a2d23a-1820-4e6f-8319-b07f36843d22?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/59a2d23a-1820-4e6f-8319-b07f36843d22","name":"59a2d23a-1820-4e6f-8319-b07f36843d22","status":"Succeeded","startTime":"2019-02-18T10:44:21.1971999Z","endTime":"2019-02-18T10:44:21.4784512Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:44:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A44%3A21.5310226Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:44:55 GMT'] + etag: [W/"datetime'2019-02-18T10%3A44%3A21.5310226Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf account update] + Connection: [keep-alive] + ParameterSetName: [-g -a --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A44%3A21.5310226Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:44:57 GMT'] + etag: [W/"datetime'2019-02-18T10%3A44%3A21.5310226Z'"] + expires: ['-1'] + pragma: [no-cache] + 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 '{"tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account update] + Connection: [keep-alive] + Content-Length: ['28'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-18T10%3A45%3A00.0196504Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 10:45:01 GMT'] + etag: [W/"datetime'2019-02-18T10%3A45%3A00.0196504Z'"] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 10:45:04 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdSVkg2U1RDNEJENzZZM1NaNkYzSVBFSk5SQjJFMkZFTlI1NnxCQkUzNDRGMTgwM0NCMjQ2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_pool.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_pool.yaml new file mode 100644 index 00000000000..175ef2d6276 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_pool.yaml @@ -0,0 +1,301 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T11:29: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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T11:29:31Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:29: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: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A29%3A38.4205814Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/41faacdb-a4f1-4868-81e7-3ba68614720e?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:29:38 GMT'] + etag: [W/"datetime'2019-02-18T11%3A29%3A38.4205814Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/41faacdb-a4f1-4868-81e7-3ba68614720e?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/41faacdb-a4f1-4868-81e7-3ba68614720e","name":"41faacdb-a4f1-4868-81e7-3ba68614720e","status":"Succeeded","startTime":"2019-02-18T11:29:38.3591045Z","endTime":"2019-02-18T11:29:38.6359077Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:30:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A29%3A38.6997903Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:30:11 GMT'] + etag: [W/"datetime'2019-02-18T11%3A29%3A38.6997903Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A30%3A15.4402725Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a73a5a09-b753-45ea-861d-5fd8f8c7ef89?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:30:15 GMT'] + etag: [W/"datetime'2019-02-18T11%3A30%3A15.4402725Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a73a5a09-b753-45ea-861d-5fd8f8c7ef89?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a73a5a09-b753-45ea-861d-5fd8f8c7ef89","name":"a73a5a09-b753-45ea-861d-5fd8f8c7ef89","status":"Succeeded","startTime":"2019-02-18T11:30:15.3829537Z","endTime":"2019-02-18T11:30:15.8715498Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:30:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A30%3A15.9386418Z''\"","location":"westus2","properties":{"poolId":"ceae02db-afde-f388-1f32-87008c2a36d4","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:30:53 GMT'] + etag: [W/"datetime'2019-02-18T11%3A30%3A15.9386418Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf pool update] + Connection: [keep-alive] + ParameterSetName: [-g -a -p --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + 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-02-18T11%3A30%3A15.9386418Z''\"","location":"westus2","properties":{"poolId":"ceae02db-afde-f388-1f32-87008c2a36d4","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:30:55 GMT'] + etag: [W/"datetime'2019-02-18T11%3A30%3A15.9386418Z'"] + expires: ['-1'] + pragma: [no-cache] + 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": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool update] + Connection: [keep-alive] + Content-Length: ['118'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T11%3A30%3A58.319083Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"ceae02db-afde-f388-1f32-87008c2a36d4","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Standard","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 11:30:58 GMT'] + etag: [W/"datetime'2019-02-18T11%3A30%3A58.319083Z'"] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 11:31:03 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdHNlc2UzJNVFdCS1lHQVJRWUhFR0wyV05KRkhJVjM3STNRMnw0QjYxOEI4OEJGOEY4Q0ExLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_volume.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_volume.yaml new file mode 100644 index 00000000000..dfcc62b98e5 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_volume.yaml @@ -0,0 +1,642 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-18T15:42:37Z", + "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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-02-18T15:42:37Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42: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: ['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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"8a4c31ee-c1dc-4dcc-9631-44763fee1f42\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"c9e380d6-1367-4b1d-af04-a3cdc068a4cf\"\ + ,\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/65706dd7-346b-436a-a35a-a08b72d054da?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42:45 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 -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/65706dd7-346b-436a-a35a-a08b72d054da?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:42: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 create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"6f885da8-047e-4b9e-acd6-53e4b39dcb8f\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"c9e380d6-1367-4b1d-af04-a3cdc068a4cf\"\ + ,\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: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42:49 GMT'] + etag: [W/"6f885da8-047e-4b9e-acd6-53e4b39dcb8f"] + 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 '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"fb36d173-1f55-40b7-ba35-ea15691fa362\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"fb36d173-1f55-40b7-ba35-ea15691fa362\\\"\"\ + ,\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}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/6e888cb7-7cd7-4ace-8e69-5650f9785e4f?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42:51 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 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/6e888cb7-7cd7-4ace-8e69-5650f9785e4f?api-version=2018-10-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: ['Mon, 18 Feb 2019 15:42:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + 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.4 msrest_azure/0.6.0 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"0beb6905-473b-48c4-bc0c-8db03a2b16a5\\\"\",\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-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"0beb6905-473b-48c4-bc0c-8db03a2b16a5\\\"\"\ + ,\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}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:42:55 GMT'] + etag: [W/"0beb6905-473b-48c4-bc0c-8db03a2b16a5"] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A43%3A00.0177097Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1c578b19-626b-4724-ad4f-2eb85d598b03?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:43:00 GMT'] + etag: [W/"datetime'2019-02-18T15%3A43%3A00.0177097Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1c578b19-626b-4724-ad4f-2eb85d598b03?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1c578b19-626b-4724-ad4f-2eb85d598b03","name":"1c578b19-626b-4724-ad4f-2eb85d598b03","status":"Succeeded","startTime":"2019-02-18T15:42:59.9746211Z","endTime":"2019-02-18T15:43:00.2348247Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:43:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A43%3A00.2828975Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:43:33 GMT'] + etag: [W/"datetime'2019-02-18T15%3A43%3A00.2828975Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A43%3A36.6066329Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/13146883-9787-4299-9473-e3e91b75963c?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:43:36 GMT'] + etag: [W/"datetime'2019-02-18T15%3A43%3A36.6066329Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/13146883-9787-4299-9473-e3e91b75963c?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/13146883-9787-4299-9473-e3e91b75963c","name":"13146883-9787-4299-9473-e3e91b75963c","status":"Succeeded","startTime":"2019-02-18T15:43:36.5595321Z","endTime":"2019-02-18T15:43:37.0595993Z","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: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:44:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A43%3A37.1219991Z''\"","location":"westus2","properties":{"poolId":"86ded845-a656-23cb-b92e-065a5ae18c68","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:44:09 GMT'] + etag: [W/"datetime'2019-02-18T15%3A43%3A37.1219991Z'"] + expires: ['-1'] + pragma: [no-cache] + 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-000005/subnets/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['386'] + 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A44%3A14.3333645Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5cd5c9e0-6832-412c-a48f-566e33ef5731?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['901'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:44:14 GMT'] + etag: [W/"datetime'2019-02-18T15%3A44%3A14.3333645Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5cd5c9e0-6832-412c-a48f-566e33ef5731?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5cd5c9e0-6832-412c-a48f-566e33ef5731","name":"5cd5c9e0-6832-412c-a48f-566e33ef5731","status":"Creating","startTime":"2019-02-18T15:44:14.27482Z","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: + cache-control: [no-cache] + content-length: ['635'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:44:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5cd5c9e0-6832-412c-a48f-566e33ef5731?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5cd5c9e0-6832-412c-a48f-566e33ef5731","name":"5cd5c9e0-6832-412c-a48f-566e33ef5731","status":"Succeeded","startTime":"2019-02-18T15:44:14.27482Z","endTime":"2019-02-18T15:44:54.1048589Z","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: + cache-control: [no-cache] + content-length: ['646'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:45:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + 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: [anf 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.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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=2017-08-15 + 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-02-18T15%3A44%3A54.1345691Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"6d782df0-0ba5-bc76-5cab-c1f0331fb060","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_feae89c8","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"0efde2db-3826-30eb-0a27-f12297db5fd7","fileSystemId":"6d782df0-0ba5-bc76-5cab-c1f0331fb060","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: + cache-control: [no-cache] + content-length: ['1588'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:45:18 GMT'] + etag: [W/"datetime'2019-02-18T15%3A44%3A54.1345691Z'"] + expires: ['-1'] + pragma: [no-cache] + 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: [anf volume update] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -v --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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?api-version=2017-08-15 + 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-02-18T15%3A44%3A54.1345691Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"6d782df0-0ba5-bc76-5cab-c1f0331fb060","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_feae89c8","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"0efde2db-3826-30eb-0a27-f12297db5fd7","fileSystemId":"6d782df0-0ba5-bc76-5cab-c1f0331fb060","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: + cache-control: [no-cache] + content-length: ['1588'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:45:19 GMT'] + etag: [W/"datetime'2019-02-18T15%3A44%3A54.1345691Z'"] + expires: ['-1'] + pragma: [no-cache] + 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, "serviceLevel": + "Standard"}, "tags": {"Tag1": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume update] + Connection: [keep-alive] + Content-Length: ['104'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.4 msrest_azure/0.6.0 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + accept-language: [en-US] + method: PATCH + 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=2017-08-15 + 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-02-18T15%3A45%3A26.606576Z''\"","location":"westus2","tags":{"Tag1":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"6d782df0-0ba5-bc76-5cab-c1f0331fb060","serviceLevel":"Standard","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","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_38ab86f19d30413b8fc0d31ad85fa6a1_feae89c8","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"0efde2db-3826-30eb-0a27-f12297db5fd7","fileSystemId":"6d782df0-0ba5-bc76-5cab-c1f0331fb060","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: + cache-control: [no-cache] + content-length: ['1613'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Feb 2019 15:45:27 GMT'] + etag: [W/"datetime'2019-02-18T15%3A45%3A26.606576Z'"] + expires: ['-1'] + pragma: [no-cache] + 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.4 msrest_azure/0.6.0 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.58] + 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: ['Mon, 18 Feb 2019 15:45:32 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdFUERHQjJRUTZMTlBFTkY2UTVBWU1PS0VMV1dNQVBXTlI3TnxBNDBFQUQzMzY5OEUzOEYyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/anf-preview/azext_anf_preview/tests/latest/test_account_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_account_commands_ext.py new file mode 100644 index 00000000000..0975882c108 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_account_commands_ext.py @@ -0,0 +1,73 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer + +# No tidy up of tests required. The resource group is automatically removed + +class AzureNetAppFilesExtAccountServiceScenarioTest(ScenarioTest): + @ResourceGroupPreparer() + def test_ext_create_delete_account(self): + account_name = self.create_random_name(prefix='cli', length=24) + tags = 'Tag1=Value1 Tag2=Value2' + + # create and check + account = self.cmd("az anf 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' + + account_list = self.cmd("anf account list --resource-group {rg}").get_output_in_json() + assert len(account_list) > 0 + + # delete and recheck + self.cmd("az anf account delete --resource-group {rg} --account-name '%s'" % account_name) + account_list = self.cmd("anf 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 anf account create -g {rg} -a %s -l westus2 --tags '%s'" % (account_name, tags)).get_output_in_json() + assert account['name'] == account_name + account_list = self.cmd("anf account list -g {rg}").get_output_in_json() + assert len(account_list) > 0 + + self.cmd("az anf account delete -g {rg} -a %s" % account_name) + account_list = self.cmd("anf account list -g {rg}").get_output_in_json() + assert len(account_list) == 0 + + @ResourceGroupPreparer() + def test_ext_list_accounts_ext(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 anf account create -g {rg} -a %s -l 'westus2' --tags 'Tag1=Value1'" % account_name).get_output_in_json() + + account_list = self.cmd("anf account list -g {rg}").get_output_in_json() + assert len(account_list) == 2 + + for account_name in accounts: + self.cmd("az anf account delete -g {rg} -a %s" % account_name) + + account_list = self.cmd("anf account list -g {rg}").get_output_in_json() + assert len(account_list) == 0 + + @ResourceGroupPreparer() + def test_ext_get_account_by_name_ext(self): + account_name = self.create_random_name(prefix='cli', length=24) + account = self.cmd("az anf account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + account = self.cmd("az anf account show -g {rg} -a %s" % account_name).get_output_in_json() + assert account['name'] == account_name + + @ResourceGroupPreparer() + def test_ext_update_account_ext(self): + account_name = self.create_random_name(prefix='cli', length=24) + tag = "Tag1=Value1" + + account = self.cmd("az anf account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + account = self.cmd("az anf account update -g {rg} -a %s --tags %s" % (account_name, tag)).get_output_in_json() + assert account['name'] == account_name + assert account['tags']['Tag1'] == 'Value1' + + diff --git a/src/anf-preview/azext_anf_preview/tests/latest/test_mount_target_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_mount_target_commands_ext.py new file mode 100644 index 00000000000..c54fbbec3d8 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_mount_target_commands_ext.py @@ -0,0 +1,45 @@ +# -------------------------------------------------------------------------------------------- +# 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 AzureNetAppFilesExtMountTargetServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name): + self.cmd("az network vnet create -n %s -g %s -l westus2" % (vnet_name, rg)) + self.cmd("az network vnet subnet create -n default --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 = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/default" % (self.current_subscription(), rg, vnet_name) + tag = "--tags '%s'" % tags if tags != None else "" + + self.setup_vnet('{rg}', vnet_name) + account = self.cmd("az anf account create -g %s -a '%s' -l 'westus2'" % (rg, account_name)).get_output_in_json() + pool = self.cmd("az anf 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 anf 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_ext_list_mount_targets(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) + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}') + + volume_list = self.cmd("anf mount-target list -g {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/anf-preview/azext_anf_preview/tests/latest/test_pool_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_pool_commands_ext.py new file mode 100644 index 00000000000..376122b8bea --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_pool_commands_ext.py @@ -0,0 +1,85 @@ +# -------------------------------------------------------------------------------------------- +# 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" + +# No tidy up of tests required. The resource group is automatically removed + +class AzureNetAppFilesExtPoolServiceScenarioTest(ScenarioTest): + @ResourceGroupPreparer() + def test_ext_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" + + account = self.cmd("az anf account create --resource-group {rg} --account-name '%s' -l 'westus2'" % account_name).get_output_in_json() + pool = self.cmd("az anf 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("anf pool list --resource-group {rg} --account-name %s" % account_name).get_output_in_json() + assert len(pool_list) == 1 + + self.cmd("az anf pool delete --resource-group {rg} --account-name '%s' --pool-name '%s'" % (account_name, pool_name)) + pool_list = self.cmd("anf 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 anf 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 anf pool delete -g {rg} -a %s -p %s" % (account_name, pool_name)) + pool_list = self.cmd("anf pool list -g {rg} -a %s" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + @ResourceGroupPreparer() + def test_ext_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 anf account create -g {rg} -a '%s' -l 'westus2'" % account_name).get_output_in_json() + + for pool_name in pools: + self.cmd("az anf 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("anf 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 anf pool delete -g {rg} -a %s -p %s" % (account_name, pool_name)) + pool_list = self.cmd("anf pool list -g {rg} -a '%s'" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + @ResourceGroupPreparer() + def test_ext_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 anf account create -g {rg} -a '%s' -l 'westus2'" % account_name).get_output_in_json() + self.cmd("az anf 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 anf pool show -g {rg} -a %s -p %s" % (account_name, pool_name)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + + @ResourceGroupPreparer() + def test_ext_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" + + account = self.cmd("az anf account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + + pool = self.cmd("az anf 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 anf pool update -g {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/anf-preview/azext_anf_preview/tests/latest/test_snapshot_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_snapshot_commands_ext.py new file mode 100644 index 00000000000..c499e56af63 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_snapshot_commands_ext.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------------------------- +# 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 AzureNetAppFilesExtSnapshotServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name): + self.cmd("az network vnet create -n %s -g %s -l westus2" % (vnet_name, rg)) + self.cmd("az network vnet subnet create -n default --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 = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/default" % (self.current_subscription(), rg, vnet_name) + tag = "--tags '%s'" % tags if tags != None else "" + + self.setup_vnet('{rg}', vnet_name) + account = self.cmd("anf account create -g %s -a '%s' -l 'westus2'" % (rg, account_name)).get_output_in_json() + pool = self.cmd("anf 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("anf 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_ext_create_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 anf snapshot create -g %s -a %s -p %s -v %s -s %s -l 'westus2' --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 anf 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 + + + @ResourceGroupPreparer() + def test_ext_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}') + snapshot = self.cmd("az anf snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westus2' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name1, volume['fileSystemId'])).get_output_in_json() + snapshot = self.cmd("az anf snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westus2' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name2, volume['fileSystemId'])).get_output_in_json() + + snapshot_list = self.cmd("az anf 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_ext_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 anf snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westus2' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name, volume['fileSystemId'])).get_output_in_json() + + snapshot = self.cmd("az anf 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 + + diff --git a/src/anf-preview/azext_anf_preview/tests/latest/test_volume_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_volume_commands_ext.py new file mode 100644 index 00000000000..9818b84ffdc --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_volume_commands_ext.py @@ -0,0 +1,102 @@ +# -------------------------------------------------------------------------------------------- +# 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): + self.cmd("az network vnet create -n %s -g %s -l westus2" % (vnet_name, rg)) + self.cmd("az network vnet subnet create -n default --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, volume_name2=None): + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/default" % (self.current_subscription(), rg, vnet_name) + tag = "--tags '%s'" % tags if tags != None else "" + + self.setup_vnet('{rg}', vnet_name) + account = self.cmd("az anf account create -g %s -a '%s' -l 'westus2'" % (rg, account_name)).get_output_in_json() + pool = self.cmd("az anf 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 anf 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() + + if volume_name2: + creation_token = volume_name2 + volume2 = self.cmd("az anf volume create -g %s -a %s -p %s -v %s -l 'westus2' %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() + def test_ext_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' + + volume_list = self.cmd("anf 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 anf volume delete --resource-group {rg} --account-name %s --pool-name %s --volume-name %s" % (account_name, pool_name, volume_name)) + volume_list = self.cmd("anf volume list -g {rg} -a %s -p %s" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 0 + + @ResourceGroupPreparer() + def test_ext_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" + volume = self.create_volume(account_name, pool_name, volume_name1, '{rg}', tags, volume_name2) + + volume_list = self.cmd("anf volume list -g {rg} -a '%s' -p '%s'" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 2 + + for volume_name in [volume_name1, volume_name2]: + self.cmd("az anf volume delete -g {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name)) + volume_list = self.cmd("anf volume list -g {rg} -a '%s' -p '%s'" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 0 + + @ResourceGroupPreparer() + def test_ext_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 anf volume show -g {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' + + @ResourceGroupPreparer() + def test_ext_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 anf volume update -g {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' diff --git a/src/anf-preview/setup.cfg b/src/anf-preview/setup.cfg new file mode 100644 index 00000000000..3c6e79cf31d --- /dev/null +++ b/src/anf-preview/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/src/anf-preview/setup.py b/src/anf-preview/setup.py new file mode 100644 index 00000000000..bccbfb5314a --- /dev/null +++ b/src/anf-preview/setup.py @@ -0,0 +1,49 @@ +#!/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, find_packages + +VERSION = "0.0.1" + +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + '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.1.0', + 'azure-cli-core' +] + +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='anf-preview', + version=VERSION, + description='Provides a preview for upcoming Azure NetApp Files (ANF) features.', + long_description='An Azure CLI Extension for Azure NetApp Files (ANF) preview features.', + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli-extensions/tree/master/src/anf-preview', + classifiers=CLASSIFIERS, + packages=find_packages(exclude=["tests"]), + install_requires=DEPENDENCIES +)