[Core] Add 2020-09-01-hybrid API profile for AzureStack (#15096)

* Adding 2020-09-01-hybrid API profile for AzureStack

* fixing Data_private_Keyvault & MGMT_resource_template loading issue

* Fixing the CIfailure issue

* adding disk access version

* added gallary & resource feature versions

* adding storage,IOT & KV tests suppresion

* fixing code integrity failure

* reverting KV to older version

* vm kv, sa, testcase fixes
This commit is contained in:
abbhar 2020-12-03 20:12:34 -08:00 коммит произвёл GitHub
Родитель e1ab6b5bc0
Коммит c18f5ad9a1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
208 изменённых файлов: 160464 добавлений и 25 удалений

Просмотреть файл

@ -409,6 +409,23 @@ jobs:
pythonVersion: '$(python.version)'
profile: 'latest'
- job: AutomationTest20200901
displayName: Automation Test (Profile 2020-09-01)
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
Python36:
python.version: '3.6'
Python38:
python.version: '3.8'
steps:
- template: .azure-pipelines/templates/automation_test.yml
parameters:
pythonVersion: '$(python.version)'
profile: '2020-09-01-hybrid'
- job: AutomationTest20190301
displayName: Automation Test (Profile 2019-03-01)
timeoutInMinutes: 120
@ -443,23 +460,6 @@ jobs:
pythonVersion: '$(python.version)'
profile: '2018-03-01-hybrid'
- job: AutomationTest20170309
displayName: Automation Test (Profile 2017-03-09)
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
Python36:
python.version: '3.6'
Python38:
python.version: '3.8'
steps:
- template: .azure-pipelines/templates/automation_test.yml
parameters:
pythonVersion: '$(python.version)'
profile: '2017-03-09-profile'
- job: TestExtensionsLoading
displayName: Test Extensions Loading
condition: succeeded()

Просмотреть файл

@ -847,7 +847,7 @@ AZURE_API_PROFILES = {
ResourceType.MGMT_MYSERVICE: '2019-03-01' # the supported API version on that profile
...
},
'2019-03-01-hybrid': {
'2020-09-01-hybrid': {
ResourceType.MGMT_MYSERVICE: '2018-08-01' # different API version for this profile
...
},

Просмотреть файл

@ -92,7 +92,7 @@
"src\\azure-cli\\azure\\cli\\command_modules\\ams\\tests\\latest\\recordings\\test_live_output_list.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\ams\\tests\\latest\\recordings\\test_live_output_show.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\ams\\tests\\latest\\recordings\\test_content_key_policy_create_with_fairplay_offline.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\ams\\tests\\latest\\recordings\\test_live_event_stop_and_remove_outputs.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\ams\\tests\\latest\\recordings\\test_live_event_stop_and_remove_outputs.yaml"
],
"_justification": "[AMS] response body contains random value recognized as secret"
},
@ -130,7 +130,8 @@
"src\\azure-cli\\azure\\cli\\command_modules\\iot\\tests\\latest\\recordings\\test_iot_hub.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\iot\\tests\\latest\\recordings\\test_iot_pnp.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\iot\\tests\\latest\\recordings\\test_dps_lifecycle.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\iot\\tests\\hybrid_2019_03_01\\recordings\\test_iot_hub.yaml"
"src\\azure-cli\\azure\\cli\\command_modules\\iot\\tests\\hybrid_2019_03_01\\recordings\\test_iot_hub.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\iot\\tests\\hybrid_2020_09_01\\recordings\\test_dps_lifecycle.yaml"
],
"_justification": "[IoT] response body contains random value recognized as secret"
},
@ -158,6 +159,7 @@
"src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\hybrid_2018_03_01\\recordings\\test_vm_create_existing_options.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\hybrid_2019_03_01\\recordings\\test_vm_managed_disk.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\hybrid_2018_03_01\\recordings\\test_vm_boot_diagnostics.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\hybrid_2020_09_01\\recordings\\test_vm_managed_disk.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\latest\\recordings\\test_vm_large_disk.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\latest\\recordings\\test_vm_managed_disk.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\latest\\recordings\\test_vm_update_with_workspace_linux.yaml",
@ -237,6 +239,8 @@
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\hybrid_2018_03_01\\recordings\\test_storage_blob_snapshot_operations.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\hybrid_2019_03_01\\test_storage_url_helpers.py",
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\hybrid_2018_03_01\\test_storage_url_helpers.py",
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\hybrid_2020_09_01\\test_storage_url_helpers.py",
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\hybrid_2020_09_01\\recordings\\test_renew_account_key.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\latest\\test_storage_url_helpers.py",
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\latest\\recordings\\test_renew_account_key.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\storage\\tests\\latest\\recordings\\test_renew_account_kerb_key.yaml",
@ -277,7 +281,8 @@
"file": [
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\latest\\recordings\\test_keyvault_storage_account.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\latest\\recordings\\test_keyvault_certificate_crud.yaml",
""
"",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\recordings\\test_keyvault_certificate_crud.yaml"
],
"_justification": "[KeyVault] response body contains random value recognized as secret"
},
@ -360,6 +365,20 @@
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2018_03_01\\import_pfx.pfx",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2018_03_01\\mydomain.test.encrypted.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2018_03_01\\mydomain.test.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\ec256.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\keys\\ec-p256.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\keys\\ec-p256k.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\keys\\ec-p521.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\keys\\ec-p384.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\keys\\rsa-2048.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\keys\\rsa-3072.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\keys\\rsa-4096.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\import_pfx.pfx",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\mydomain.test.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\mydomain.test.encrypted.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\import_pfx.pfx",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\import_pem_plain.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\hybrid_2020_09_01\\ec521pw.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\latest\\ec256.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\latest\\mydomain.test.pem",
"src\\azure-cli\\azure\\cli\\command_modules\\keyvault\\tests\\latest\\mydomain.test.encrypted.pem",

Просмотреть файл

@ -96,7 +96,8 @@ API_PROFILES = {
'latest': AZURE_API_PROFILES['latest'],
'2017-03-09-profile': AZURE_API_PROFILES['2017-03-09-profile'],
'2018-03-01-hybrid': AZURE_API_PROFILES['2018-03-01-hybrid'],
'2019-03-01-hybrid': AZURE_API_PROFILES['2019-03-01-hybrid']
'2019-03-01-hybrid': AZURE_API_PROFILES['2019-03-01-hybrid'],
'2020-09-01-hybrid': AZURE_API_PROFILES['2020-09-01-hybrid']
}

Просмотреть файл

@ -210,6 +210,45 @@ AZURE_API_PROFILES = {
ResourceType.MGMT_IOTHUB: '2020-03-01',
ResourceType.MGMT_ARO: '2020-04-30'
},
'2020-09-01-hybrid': {
ResourceType.MGMT_STORAGE: '2019-06-01',
ResourceType.MGMT_NETWORK: '2018-11-01',
ResourceType.MGMT_COMPUTE: SDKProfile('2020-06-01', {
'resource_skus': '2019-04-01',
'disks': '2019-07-01',
'disk_encryption_sets': '2019-07-01',
'disk_accesses': '2020-05-01',
'snapshots': '2019-07-01',
'galleries': '2019-12-01',
'gallery_images': '2019-12-01',
'gallery_image_versions': '2019-12-01',
'virtual_machine_scale_sets': '2020-06-01'
}),
ResourceType.MGMT_KEYVAULT: '2016-10-01',
ResourceType.MGMT_RESOURCE_FEATURES: '2015-12-01',
ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_LOCKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_POLICY: '2016-12-01',
ResourceType.MGMT_RESOURCE_RESOURCES: '2019-10-01',
ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2016-06-01',
ResourceType.MGMT_RESOURCE_TEMPLATESPECS: '2015-01-01',
ResourceType.MGMT_NETWORK_DNS: '2016-04-01',
ResourceType.MGMT_AUTHORIZATION: SDKProfile('2016-09-01', {
'classic_administrators': '2015-06-01',
'policy_assignments': '2016-12-01',
'policy_definitions': '2016-12-01'
}),
ResourceType.DATA_KEYVAULT: '2016-10-01',
ResourceType.DATA_STORAGE: '2018-11-09',
ResourceType.DATA_STORAGE_BLOB: '2019-07-07',
ResourceType.DATA_STORAGE_FILEDATALAKE: '2019-07-07',
ResourceType.DATA_STORAGE_FILESHARE: '2019-07-07',
ResourceType.DATA_STORAGE_QUEUE: '2019-07-07',
ResourceType.DATA_COSMOS_TABLE: '2017-04-17',
ResourceType.MGMT_APPSERVICE: '2018-02-01',
ResourceType.MGMT_EVENTHUB: '2018-01-01-preview',
ResourceType.MGMT_IOTHUB: '2019-07-01-preview'
},
'2019-03-01-hybrid': {
ResourceType.MGMT_STORAGE: '2017-10-01',
ResourceType.MGMT_NETWORK: '2017-10-01',

Просмотреть файл

@ -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.
# --------------------------------------------------------------------------------------------

Просмотреть файл

@ -0,0 +1,80 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from os.path import exists
import os
from OpenSSL import crypto
def _create_test_cert(cert_file, key_file, subject, valid_days, serial_number):
# create a key pair
k = crypto.PKey()
k.generate_key(crypto.TYPE_RSA, 2046)
# create a self-signed cert with some basic constraints
cert = crypto.X509()
cert.get_subject().CN = subject
cert.gmtime_adj_notBefore(-1 * 24 * 60 * 60)
cert.gmtime_adj_notAfter(valid_days * 24 * 60 * 60)
cert.set_version(2)
cert.set_serial_number(serial_number)
cert.add_extensions([
crypto.X509Extension(b"basicConstraints", True, b"CA:TRUE, pathlen:1"),
crypto.X509Extension(b"subjectKeyIdentifier", False, b"hash",
subject=cert),
])
cert.add_extensions([
crypto.X509Extension(b"authorityKeyIdentifier", False, b"keyid:always",
issuer=cert)
])
cert.set_issuer(cert.get_subject())
cert.set_pubkey(k)
cert.sign(k, 'sha256')
cert_str = crypto.dump_certificate(crypto.FILETYPE_PEM, cert).decode('ascii')
key_str = crypto.dump_privatekey(crypto.FILETYPE_PEM, k).decode('ascii')
open(cert_file, 'w').write(cert_str)
open(key_file, 'w').write(key_str)
def _delete_test_cert(cert_file, key_file, verification_file):
if exists(cert_file) and exists(key_file):
os.remove(cert_file)
os.remove(key_file)
if exists(verification_file):
os.remove(verification_file)
def _create_verification_cert(cert_file, key_file, verification_file, nonce, valid_days, serial_number):
if exists(cert_file) and exists(key_file):
# create a key pair
public_key = crypto.PKey()
public_key.generate_key(crypto.TYPE_RSA, 2046)
# open the root cert and key
signing_cert = crypto.load_certificate(crypto.FILETYPE_PEM, open(cert_file).read())
k = crypto.load_privatekey(crypto.FILETYPE_PEM, open(key_file).read())
# create a cert signed by the root
verification_cert = crypto.X509()
verification_cert.get_subject().CN = nonce
verification_cert.gmtime_adj_notBefore(-1 * 24 * 60 * 60)
verification_cert.gmtime_adj_notAfter(valid_days * 24 * 60 * 60)
verification_cert.set_version(2)
verification_cert.set_serial_number(serial_number)
verification_cert.set_pubkey(public_key)
verification_cert.set_issuer(signing_cert.get_subject())
verification_cert.add_extensions([
crypto.X509Extension(b"authorityKeyIdentifier", False, b"keyid:always",
issuer=signing_cert)
])
verification_cert.sign(k, 'sha256')
verification_cert_str = crypto.dump_certificate(crypto.FILETYPE_PEM, verification_cert).decode('ascii')
open(verification_file, 'w').write(verification_cert_str)

Просмотреть файл

@ -0,0 +1,46 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from azure_devtools.scenario_tests import RecordingProcessor
from azure_devtools.scenario_tests.utilities import is_text_payload
MOCK_KEY = 'mock_key'
class KeyReplacer(RecordingProcessor):
def process_request(self, request):
if is_text_payload(request) and isinstance(request.body, bytes):
request.body = self._replace_byte_keys(request.body)
elif is_text_payload(request) and isinstance(request.body, str):
request.body = self._replace_string_keys(request.body)
return request
def process_response(self, response):
if is_text_payload(response) and response['body']['string']:
response['body']['string'] = self._replace_string_keys(response['body']['string'])
return response
# pylint: disable=no-self-use
def _replace_string_keys(self, val):
import re
if 'primaryKey' in val:
val = re.sub(r'"primaryKey":( ?)"([^"]+)"', r'"primaryKey":"{}"'
.format(MOCK_KEY), val, flags=re.IGNORECASE)
if 'secondaryKey' in val:
val = re.sub(r'"secondaryKey":( ?)"([^"]+)"', r'"secondaryKey":"{}"'
.format(MOCK_KEY), val, flags=re.IGNORECASE)
return val
# pylint: disable=no-self-use
def _replace_byte_keys(self, val):
import re
if b'primaryKey' in val:
val = re.sub(b'"primaryKey":( ?)"([^"]+)"', '"primaryKey":"{}"'
.format(MOCK_KEY).encode(), val, flags=re.IGNORECASE)
if b'secondaryKey' in val:
val = re.sub(b'"secondaryKey":( ?)"([^"]+)"', '"secondaryKey":"{}"'
.format(MOCK_KEY).encode(), val, flags=re.IGNORECASE)
return val

Просмотреть файл

@ -0,0 +1,717 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot hub create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000002?api-version=2018-05-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002","name":"clitest.rg000002","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-09-25T17:18:44Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- '384'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:18:46 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: '{"location": "westus", "properties": {"eventHubEndpoints": {"events": {"retentionTimeInDays":
1, "partitionCount": 4}}, "storageEndpoints": {"$default": {"sasTtlAsIso8601":
"PT1H", "connectionString": "", "containerName": ""}}, "messagingEndpoints":
{"fileNotifications": {"ttlAsIso8601": "PT1H", "maxDeliveryCount": 10}}, "enableFileUploadNotifications":
false, "cloudToDevice": {"maxDeliveryCount": 10, "defaultTtlAsIso8601": "PT1H",
"feedback": {"lockDurationAsIso8601": "PT5S", "ttlAsIso8601": "PT1H", "maxDeliveryCount":
10}}}, "sku": {"name": "S1", "capacity": 1}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot hub create
Connection:
- keep-alive
Content-Length:
- '570'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003?api-version=2019-07-01-preview
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003","name":"iot-hub-for-cert-test000003","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"d34bd6cc-8d7e-451b-ace3-cd05c69f82d0","resourcegroup":"clitest.rg000002","properties":{"state":"Activating","provisioningState":"Accepted","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4},"operationsMonitoringEvents":{"retentionTimeInDays":1,"partitionCount":4}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT5S","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":1}}'
headers:
azure-asyncoperation:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfODJlOGVmNjAtYjAwOC00M2JlLThlOWMtYTgzMWNmZjczMjFj?api-version=2019-07-01-preview&operationSource=os_ih&asyncinfo
cache-control:
- no-cache
content-length:
- '1210'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:18:51 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '4999'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot hub create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfODJlOGVmNjAtYjAwOC00M2JlLThlOWMtYTgzMWNmZjczMjFj?api-version=2019-07-01-preview&operationSource=os_ih&asyncinfo
response:
body:
string: '{"status":"Running"}'
headers:
cache-control:
- no-cache
content-length:
- '20'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:19:21 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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:
- iot hub create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfODJlOGVmNjAtYjAwOC00M2JlLThlOWMtYTgzMWNmZjczMjFj?api-version=2019-07-01-preview&operationSource=os_ih&asyncinfo
response:
body:
string: '{"status":"Running"}'
headers:
cache-control:
- no-cache
content-length:
- '20'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:19:51 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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:
- iot hub create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfODJlOGVmNjAtYjAwOC00M2JlLThlOWMtYTgzMWNmZjczMjFj?api-version=2019-07-01-preview&operationSource=os_ih&asyncinfo
response:
body:
string: '{"status":"Running"}'
headers:
cache-control:
- no-cache
content-length:
- '20'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:22 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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:
- iot hub create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices/operationResults/b3NfaWhfODJlOGVmNjAtYjAwOC00M2JlLThlOWMtYTgzMWNmZjczMjFj?api-version=2019-07-01-preview&operationSource=os_ih&asyncinfo
response:
body:
string: '{"status":"Succeeded"}'
headers:
cache-control:
- no-cache
content-length:
- '22'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:52 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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:
- iot hub create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003?api-version=2019-07-01-preview
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003","name":"iot-hub-for-cert-test000003","type":"Microsoft.Devices/IotHubs","location":"westus","tags":{},"subscriptionid":"d34bd6cc-8d7e-451b-ace3-cd05c69f82d0","resourcegroup":"clitest.rg000002","etag":"AAAAAnivglw=","properties":{"locations":[{"location":"West
US","role":"primary"},{"location":"East US","role":"secondary"}],"state":"Active","provisioningState":"Succeeded","ipFilterRules":[],"hostName":"iot-hub-for-cert-test000003.azure-devices.net","eventHubEndpoints":{"events":{"retentionTimeInDays":1,"partitionCount":4,"partitionIds":["0","1","2","3"],"path":"iot-hub-for-cert-testil7t","endpoint":"sb://iothub-ns-iot-hub-fo-4836776-65736dea2e.servicebus.windows.net/"}},"routing":{"endpoints":{"serviceBusQueues":[],"serviceBusTopics":[],"eventHubs":[],"storageContainers":[]},"routes":[],"fallbackRoute":{"name":"$fallback","source":"DeviceMessages","condition":"true","endpointNames":["events"],"isEnabled":true}},"storageEndpoints":{"$default":{"sasTtlAsIso8601":"PT1H","connectionString":"","containerName":""}},"messagingEndpoints":{"fileNotifications":{"lockDurationAsIso8601":"PT1M","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"enableFileUploadNotifications":false,"cloudToDevice":{"maxDeliveryCount":10,"defaultTtlAsIso8601":"PT1H","feedback":{"lockDurationAsIso8601":"PT5S","ttlAsIso8601":"PT1H","maxDeliveryCount":10}},"features":"None"},"sku":{"name":"S1","tier":"Standard","capacity":1}}'
headers:
cache-control:
- no-cache
content-length:
- '1746'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:53 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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:
- iot hub certificate create
Connection:
- keep-alive
ParameterSetName:
- --hub-name -g -n -p
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates?api-version=2019-07-01-preview
response:
body:
string: '{"value":[]}'
headers:
cache-control:
- no-cache
content-length:
- '12'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:54 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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: '{"certificate": "-----BEGIN CERTIFICATE-----\r\nMIIDHTCCAgWgAwIBAgIIUoqYGf9OjmowDQYJKoZIhvcNAQELBQAwIzEhMB8GA1UE\r\nAwwYVEVTVENFUlQ0cmpzeWNzaTU3dTQzejN3MB4XDTIwMDkyNDE3MTg0NFoXDTIw\r\nMDkyODE3MTg0NFowIzEhMB8GA1UEAwwYVEVTVENFUlQ0cmpzeWNzaTU3dTQzejN3\r\nMIIBITANBgkqhkiG9w0BAQEFAAOCAQ4AMIIBCQKCAQArBrZ2X3G5L7r9sLpWof6s\r\nPYNpuRDVTuVvdF7YHUb8Pq6peTLpaCCZSvsHlgoZbI7ta/6pxzerEpdIilyEzuY3\r\nhZNNLmk0nQWCtMOObQieEoPRGaa0GPBFKa56xaVFNNBE8p5WDETKWGwN2T/aLwzF\r\nEtLpKchW24WU7zmc9JhKVqAyazCjMTevnkF4bIEbDxbvq1yLj9uNnhC73LPoNLAF\r\n3thT9DaUQGeYTDEEiqpOIA6TJk9dzRNjfWPoVA9YD5hr+yMkJGSvBwxX8oV46IT0\r\nDPh7zKoaMzg8oycL5fVlZQASo/s4XvbSTZGMm6+AaBuJ8AvNkL8gvUFWPSYeh7Il\r\nAgMBAAGjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYEFNo5o+5ea0sN\r\nMlW/75VgGJCv2AcJMB8GA1UdIwQYMBaAFNo5o+5ea0sNMlW/75VgGJCv2AcJMA0G\r\nCSqGSIb3DQEBCwUAA4IBAQAH0qomx2r+S4IhGDtnQ4CCVIUgFVLEa3WDGkx1zHG6\r\nmqe1fVb7E/kjdG67JU4UrzP57PMuQfNZ6IWWklnSa1hGP/b9ElZ6D1x6cAm5aASu\r\n2Th7pq0cw1pkKJare8auRpRwHSpmIQ8lTidwK7rHLh9iMWsG3HEy18/xKa5nZwlQ\r\n9zeP9awPyWXzc6y/NB+JcSfdMklbvRmM7N9TTj9k3IVJZHD1M3YlG/Nb46ft5xTy\r\nQFDPvciwkbamZ2lhF9MINqSoD4A75WUj8dacbia7CuGQRp4hVtCNZByvngG8eg8h\r\nCYVwXNxi4crKPNl/7igg9iCzgDDG+qIBGhxbXzx0et2K\r\n-----END
CERTIFICATE-----\r\n"}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot hub certificate create
Connection:
- keep-alive
Content-Length:
- '1215'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- --hub-name -g -n -p
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004?api-version=2019-07-01-preview
response:
body:
string: '{"properties":{"subject":"TESTCERT000001","expiry":"Mon, 28 Sep 2020
17:18:44 GMT","thumbprint":"92798545EE93B4236BFEFFE323D8C3656BF91EFD","isVerified":false,"created":"Fri,
25 Sep 2020 17:20:55 GMT","updated":"Fri, 25 Sep 2020 17:20:55 GMT","certificate":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004","name":"certificate-000004","type":"Microsoft.Devices/IotHubs/Certificates","etag":"AAAAAnixnzA="}'
headers:
cache-control:
- no-cache
content-length:
- '697'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:54 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot hub certificate list
Connection:
- keep-alive
ParameterSetName:
- --hub-name -g
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates?api-version=2019-07-01-preview
response:
body:
string: '{"value":[{"properties":{"subject":"TESTCERT000001","expiry":"Mon,
28 Sep 2020 17:18:44 GMT","thumbprint":"92798545EE93B4236BFEFFE323D8C3656BF91EFD","isVerified":false,"created":"Fri,
25 Sep 2020 17:20:55 GMT","updated":"Fri, 25 Sep 2020 17:20:55 GMT","certificate":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004","name":"certificate-000004","type":"Microsoft.Devices/IotHubs/Certificates","etag":"AAAAAnixnzA="}]}'
headers:
cache-control:
- no-cache
content-length:
- '709'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:55 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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:
- iot hub certificate show
Connection:
- keep-alive
ParameterSetName:
- --hub-name -g -n
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004?api-version=2019-07-01-preview
response:
body:
string: '{"properties":{"subject":"TESTCERT000001","expiry":"Mon, 28 Sep 2020
17:18:44 GMT","thumbprint":"92798545EE93B4236BFEFFE323D8C3656BF91EFD","isVerified":false,"created":"Fri,
25 Sep 2020 17:20:55 GMT","updated":"Fri, 25 Sep 2020 17:20:55 GMT","certificate":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004","name":"certificate-000004","type":"Microsoft.Devices/IotHubs/Certificates","etag":"AAAAAnixnzA="}'
headers:
cache-control:
- no-cache
content-length:
- '697'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:56 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- 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:
- iot hub certificate generate-verification-code
Connection:
- keep-alive
Content-Length:
- '0'
If-Match:
- AAAAAnixnzA=
ParameterSetName:
- --hub-name -g -n --etag
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004/generateVerificationCode?api-version=2019-07-01-preview
response:
body:
string: '{"properties":{"verificationCode":"60017E64246A50CB06C5D0D77DD3BFB6B3FCA78511E6344A","subject":"TESTCERT000001","expiry":"Mon,
28 Sep 2020 17:18:44 GMT","thumbprint":"92798545EE93B4236BFEFFE323D8C3656BF91EFD","isVerified":false,"created":"Fri,
25 Sep 2020 17:20:55 GMT","updated":"Fri, 25 Sep 2020 17:20:57 GMT","certificate":"MIIDHTCCAgWgAwIBAgIIUoqYGf9OjmowDQYJKoZIhvcNAQELBQAwIzEhMB8GA1UEAwwYVEVTVENFUlQ0cmpzeWNzaTU3dTQzejN3MB4XDTIwMDkyNDE3MTg0NFoXDTIwMDkyODE3MTg0NFowIzEhMB8GA1UEAwwYVEVTVENFUlQ0cmpzeWNzaTU3dTQzejN3MIIBITANBgkqhkiG9w0BAQEFAAOCAQ4AMIIBCQKCAQArBrZ2X3G5L7r9sLpWof6sPYNpuRDVTuVvdF7YHUb8Pq6peTLpaCCZSvsHlgoZbI7ta/6pxzerEpdIilyEzuY3hZNNLmk0nQWCtMOObQieEoPRGaa0GPBFKa56xaVFNNBE8p5WDETKWGwN2T/aLwzFEtLpKchW24WU7zmc9JhKVqAyazCjMTevnkF4bIEbDxbvq1yLj9uNnhC73LPoNLAF3thT9DaUQGeYTDEEiqpOIA6TJk9dzRNjfWPoVA9YD5hr+yMkJGSvBwxX8oV46IT0DPh7zKoaMzg8oycL5fVlZQASo/s4XvbSTZGMm6+AaBuJ8AvNkL8gvUFWPSYeh7IlAgMBAAGjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYEFNo5o+5ea0sNMlW/75VgGJCv2AcJMB8GA1UdIwQYMBaAFNo5o+5ea0sNMlW/75VgGJCv2AcJMA0GCSqGSIb3DQEBCwUAA4IBAQAH0qomx2r+S4IhGDtnQ4CCVIUgFVLEa3WDGkx1zHG6mqe1fVb7E/kjdG67JU4UrzP57PMuQfNZ6IWWklnSa1hGP/b9ElZ6D1x6cAm5aASu2Th7pq0cw1pkKJare8auRpRwHSpmIQ8lTidwK7rHLh9iMWsG3HEy18/xKa5nZwlQ9zeP9awPyWXzc6y/NB+JcSfdMklbvRmM7N9TTj9k3IVJZHD1M3YlG/Nb46ft5xTyQFDPvciwkbamZ2lhF9MINqSoD4A75WUj8dacbia7CuGQRp4hVtCNZByvngG8eg8hCYVwXNxi4crKPNl/7igg9iCzgDDG+qIBGhxbXzx0et2K"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004","name":"certificate-000004","type":"Microsoft.Devices/IotHubs/Certificates","etag":"AAAAAnixnzs="}'
headers:
cache-control:
- no-cache
content-length:
- '1833'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:57 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
code: 200
message: OK
- request:
body: '{"certificate": "-----BEGIN CERTIFICATE-----\r\nMIIDAjCCAeqgAwIBAgIIO+FCNUvgUZAwDQYJKoZIhvcNAQELBQAwIzEhMB8GA1UE\r\nAwwYVEVTVENFUlQ0cmpzeWNzaTU3dTQzejN3MB4XDTIwMDkyNDE3MjA1OFoXDTIw\r\nMDkyODE3MjA1OFowOzE5MDcGA1UEAwwwNjAwMTdFNjQyNDZBNTBDQjA2QzVEMEQ3\r\nN0REM0JGQjZCM0ZDQTc4NTExRTYzNDRBMIIBITANBgkqhkiG9w0BAQEFAAOCAQ4A\r\nMIIBCQKCAQAq5dU58LoJd8f1UaYGYasVi4p7pbZeYmP/csXD8hgrQtnTX3FL4WD0\r\nVnH2ewUMB841OjNFaauasvmiIlw6dHNvdQSvXMx27jweh+dxGv1jokTTXY53EfGs\r\n+nX8bdQKmu4JrdwC+qEk+ZMRPC9wdLUPiQ4kTIc2AfjA9zc1Amezc1TfyrFR50Ay\r\nV1PfChQEVIPdu4pIrmZ/XZKjvbfSJ82Rrc+iJrjcm66fXQrox29IHKZAmgsJL/cV\r\nXU49G6ZCQGr9gABTHWTnfPKmHLWFcxh5IguTv/PEgskGl1Zq2uQ5SKo7AKUzs83p\r\n0PmIvrnaJVV26HAna0uoaK2hdtjE1IObAgMBAAGjIzAhMB8GA1UdIwQYMBaAFNo5\r\no+5ea0sNMlW/75VgGJCv2AcJMA0GCSqGSIb3DQEBCwUAA4IBAQAmvVhDJHq8b1dX\r\nGbhKTUX0JhBD8G0LtygwS73H7UTK7gPsHeccUrXgru2fHJ0irukcDtzlGjTKeWbr\r\n8haFF3u59HxTonYGa3jhqDVPpFY8X/nzLLtfVPnecjiOklWSkjp8Dc+eZ+n/I+PY\r\ne401udzB9sEc2+im5fQ/sSeuXEnFcaOkC3kUOnKCbXrUFcz8IsaaSgG7o0FbFhm6\r\nH6OBxFRqghU6S7/bJkceTeJBFeMl27q/2MmcNsizoM8kVF8PWRu+iRQebTkwnLMo\r\naOkrpQBuHRH2K3nuZkKFbnUeRxq/MErS97Y2zgleQ3/QtW62BRGT6urX17Y61OFE\r\nRWN7ZCjy\r\n-----END
CERTIFICATE-----\r\n"}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot hub certificate verify
Connection:
- keep-alive
Content-Length:
- '1179'
Content-Type:
- application/json; charset=utf-8
If-Match:
- AAAAAnixnzs=
ParameterSetName:
- --hub-name -g -n -p --etag
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004/verify?api-version=2019-07-01-preview
response:
body:
string: '{"properties":{"subject":"TESTCERT000001","expiry":"Mon, 28 Sep 2020
17:18:44 GMT","thumbprint":"92798545EE93B4236BFEFFE323D8C3656BF91EFD","isVerified":true,"created":"Fri,
25 Sep 2020 17:20:55 GMT","updated":"Fri, 25 Sep 2020 17:20:58 GMT","certificate":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004","name":"certificate-000004","type":"Microsoft.Devices/IotHubs/Certificates","etag":"AAAAAnixn0E="}'
headers:
cache-control:
- no-cache
content-length:
- '696'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:58 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot hub certificate delete
Connection:
- keep-alive
Content-Length:
- '0'
If-Match:
- AAAAAnixn0E=
ParameterSetName:
- --hub-name -g -n --etag
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iothub/0.12.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.Devices/IotHubs/iot-hub-for-cert-test000003/certificates/certificate-000004?api-version=2019-07-01-preview
response:
body:
string: ''
headers:
cache-control:
- no-cache
content-length:
- '0'
date:
- Fri, 25 Sep 2020 17:20:58 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-deletes:
- '14999'
status:
code: 200
message: OK
version: 1

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,771 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app create
Connection:
- keep-alive
ParameterSetName:
- -n -g --subdomain --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-09-25T17:18:44Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- '384'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:18:46 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: '{"location": "westus", "properties": {"displayName": "iotc-cli-test000002",
"subdomain": "iotc-cli-test000002"}, "sku": {"name": "ST2"}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app create
Connection:
- keep-alive
Content-Length:
- '146'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --subdomain --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"c782e86e-0e12-440a-b181-ab02ab7ffd4b","state":"created","displayName":"iotc-cli-test000002","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002","createdDate":"2020-09-25T17:18:48.910Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST2"},"etag":"\"0f0ad611-0000-0100-0000-5f6e26780000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '779'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:18:51 GMT
etag:
- '"0f0ad611-0000-0100-0000-5f6e26780000"'
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '3588'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- atcydwg3.0
x-iot-version:
- 092220.0001-release
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-msedge-ref:
- 'Ref A: A2FADC373F6046E0BC53D40B7B839676 Ref B: BY3EDGE0517 Ref C: 2020-09-25T17:18:47Z'
x-xss-protection:
- 1; mode=block
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app create
Connection:
- keep-alive
ParameterSetName:
- -n -g --subdomain --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"c782e86e-0e12-440a-b181-ab02ab7ffd4b","state":"created","displayName":"iotc-cli-test000002","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002","createdDate":"2020-09-25T17:18:48.910Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST2"},"etag":"\"0f0ad611-0000-0100-0000-5f6e26780000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '779'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:19:21 GMT
etag:
- W/"0f0ad611-0000-0100-0000-5f6e26780000"
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding,Accept-Encoding
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '62'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- 4rqakdtl.0
x-iot-version:
- 092220.0001-release
x-msedge-ref:
- 'Ref A: 4043D3A3B1FF4CE19C0F0EC9CDFB9F3B Ref B: BY3EDGE0314 Ref C: 2020-09-25T17:19:22Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app create
Connection:
- keep-alive
ParameterSetName:
- -n -g --subdomain --template --display-name --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-09-25T17:18:44Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- '384'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:19:23 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: '{"location": "westus", "properties": {"displayName": "My Custom App Display
Name", "subdomain": "iotc-cli-test000002-template", "template": "iotc-pnp-preview@1.0.0"},
"sku": {"name": "ST1"}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app create
Connection:
- keep-alive
Content-Length:
- '195'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --subdomain --template --display-name --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"7c021078-e9b2-4bf5-a891-c1f901adf6bf","state":"created","displayName":"My
Custom App Display Name","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002-template","createdDate":"2020-09-25T17:19:26.122Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST1"},"etag":"\"9a005eed-0000-0100-0000-5f6e269e0000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '808'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:19:29 GMT
etag:
- '"9a005eed-0000-0100-0000-5f6e269e0000"'
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '3806'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- anh84q6p.0
x-iot-version:
- 092220.0001-release
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-msedge-ref:
- 'Ref A: F4A7775809CC4203A581153A02D23006 Ref B: BY3EDGE0220 Ref C: 2020-09-25T17:19:25Z'
x-xss-protection:
- 1; mode=block
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app create
Connection:
- keep-alive
ParameterSetName:
- -n -g --subdomain --template --display-name --sku
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"7c021078-e9b2-4bf5-a891-c1f901adf6bf","state":"created","displayName":"My
Custom App Display Name","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002-template","createdDate":"2020-09-25T17:19:26.122Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST1"},"etag":"\"9a005eed-0000-0100-0000-5f6e269e0000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '808'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:19:59 GMT
etag:
- W/"9a005eed-0000-0100-0000-5f6e269e0000"
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding,Accept-Encoding
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '58'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- 1oj92p9k.0
x-iot-version:
- 092220.0001-release
x-msedge-ref:
- 'Ref A: 4681F6154A41490AB6883B7FAC09AB25 Ref B: BY3EDGE0320 Ref C: 2020-09-25T17:19:59Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app update
Connection:
- keep-alive
ParameterSetName:
- -n -g --set
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"7c021078-e9b2-4bf5-a891-c1f901adf6bf","state":"created","displayName":"My
Custom App Display Name","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002-template","createdDate":"2020-09-25T17:19:26.122Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST1"},"etag":"\"9a005eed-0000-0100-0000-5f6e269e0000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '808'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:00 GMT
etag:
- W/"9a005eed-0000-0100-0000-5f6e269e0000"
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding,Accept-Encoding
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '69'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- vukp5en.0
x-iot-version:
- 092220.0001-release
x-msedge-ref:
- 'Ref A: 3468BB37596D402F98B06F21CCF1F3FB Ref B: BY3EDGE0507 Ref C: 2020-09-25T17:20:00Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: '{"location": "westus", "tags": {}, "properties": {"displayName": "iotc-cli-test000002update",
"subdomain": "iotc-cli-test000002update", "template": "iotc-pnp-preview@1.0.0"},
"sku": {"name": "ST2"}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app update
Connection:
- keep-alive
Content-Length:
- '208'
Content-Type:
- application/json; charset=utf-8
IF-MATCH:
- '"9a005eed-0000-0100-0000-5f6e269e0000"'
ParameterSetName:
- -n -g --set
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PATCH
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"7c021078-e9b2-4bf5-a891-c1f901adf6bf","state":"created","displayName":"iotc-cli-test000002update","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002update","createdDate":"2020-09-25T17:19:26.122Z","lastUpdated":"2020-09-25T17:20:02.392Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST2"},"etag":"\"9a009fed-0000-0100-0000-5f6e26c20000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '850'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:02 GMT
etag:
- W/"9a009fed-0000-0100-0000-5f6e26c20000"
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding,Accept-Encoding
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '868'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- 55ddh24m.0
x-iot-version:
- 092220.0001-release
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
x-msedge-ref:
- 'Ref A: 8988EF6F9B1B44EEAF034F051A38BA0B Ref B: BY3EDGE0112 Ref C: 2020-09-25T17:20:01Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app show
Connection:
- keep-alive
ParameterSetName:
- -n -g
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"c782e86e-0e12-440a-b181-ab02ab7ffd4b","state":"created","displayName":"iotc-cli-test000002","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002","createdDate":"2020-09-25T17:18:48.910Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST2"},"etag":"\"0f0ad611-0000-0100-0000-5f6e26780000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '779'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:02 GMT
etag:
- W/"0f0ad611-0000-0100-0000-5f6e26780000"
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding,Accept-Encoding
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '82'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- 17pjwmsb.0
x-iot-version:
- 092220.0001-release
x-msedge-ref:
- 'Ref A: 0B2701021E094F82872AACC6CA870969 Ref B: BY3EDGE0318 Ref C: 2020-09-25T17:20:03Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app show
Connection:
- keep-alive
ParameterSetName:
- -n -g
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template","name":"iotc-cli-test000002-template","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"7c021078-e9b2-4bf5-a891-c1f901adf6bf","state":"created","displayName":"iotc-cli-test000002update","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002update","createdDate":"2020-09-25T17:19:26.122Z","lastUpdated":"2020-09-25T17:20:02.392Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST2"},"etag":"\"9a009fed-0000-0100-0000-5f6e26c20000\""}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '850'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:03 GMT
etag:
- W/"9a009fed-0000-0100-0000-5f6e26c20000"
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding,Accept-Encoding
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '138'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- c5i95ksb.0
x-iot-version:
- 092220.0001-release
x-msedge-ref:
- 'Ref A: F77AA29D7CC046209C98FC5BF949DBF6 Ref B: BY3EDGE0419 Ref C: 2020-09-25T17:20:04Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app delete
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --yes
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002-template?api-version=2018-09-01
response:
body:
string: ''
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '0'
date:
- Fri, 25 Sep 2020 17:20:05 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '295'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- 32zqgwqh.0
x-iot-version:
- 092220.0001-release
x-ms-ratelimit-remaining-subscription-deletes:
- '14999'
x-msedge-ref:
- 'Ref A: 1C1070F99FB849F69FB2907F098561E6 Ref B: BY3EDGE0119 Ref C: 2020-09-25T17:20:04Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app list
Connection:
- keep-alive
ParameterSetName:
- -g
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps?api-version=2018-09-01
response:
body:
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002","name":"iotc-cli-test000002","type":"Microsoft.IoTCentral/IoTApps","location":"westus","tags":{},"properties":{"applicationId":"c782e86e-0e12-440a-b181-ab02ab7ffd4b","state":"created","displayName":"iotc-cli-test000002","tenant":"72f988bf-86f1-41af-91ab-2d7cd011db47","capabilities":{"non-wrapped-properties":true,"pnp-preview":true,"asa-stamp":true,"default":true},"subdomain":"iotc-cli-test000002","createdDate":"2020-09-25T17:18:48.910Z","template":"iotc-pnp-preview@1.0.0"},"sku":{"name":"ST2"},"etag":"\"0f0ad611-0000-0100-0000-5f6e26780000\""}]}'
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '791'
content-type:
- application/json; charset=utf-8
date:
- Fri, 25 Sep 2020 17:20:05 GMT
etag:
- W/"317-fHcSJcyKAcm/h7BT1zYvybCSIRU"
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding,Accept-Encoding
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '32'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- 665rzd7z.0
x-iot-version:
- 092220.0001-release
x-msedge-ref:
- 'Ref A: CA942EFBC2364CC08CE1ECCF1F04D0AC Ref B: BY3EDGE0519 Ref C: 2020-09-25T17:20:06Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- iot central app delete
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --yes
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-iotcentral/3.0.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.IoTCentral/IoTApps/iotc-cli-test000002?api-version=2018-09-01
response:
body:
string: ''
headers:
cache-control:
- no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0
content-length:
- '0'
date:
- Fri, 25 Sep 2020 17:20:08 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-download-options:
- noopen
x-envoy-upstream-service-time:
- '613'
x-frame-options:
- deny
x-iot-cluster:
- iotcprodwestus03
x-iot-correlation:
- 4grrkshg.0
x-iot-version:
- 092220.0001-release
x-ms-ratelimit-remaining-subscription-deletes:
- '14999'
x-msedge-ref:
- 'Ref A: A2421FB40EEC47A4BDE7C743169B4D53 Ref B: BY3EDGE0419 Ref C: 2020-09-25T17:20:07Z'
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1

Просмотреть файл

@ -0,0 +1,82 @@
# --------------------------------------------------------------------------------------------
# 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
import unittest
class IoTCentralTest(ScenarioTest):
@unittest.skip("Need to check this")
@ResourceGroupPreparer() # name_prefix not required, but can be useful
def test_iot_central_app(self, resource_group, resource_group_location):
app_name = self.create_random_name(prefix='iotc-cli-test', length=24)
template_app_name = app_name + '-template'
template_app_display_name = "My Custom App Display Name"
rg = resource_group
location = resource_group_location
template = 'iotc-pnp-preview@1.0.0'
updatedName = app_name + 'update'
# Test 'az iot central app create'
self.cmd('iot central app create -n {0} -g {1} --subdomain {2} --sku {3}'.format(app_name, rg, app_name, 'ST2'), checks=[
self.check('resourceGroup', rg),
self.check('location', location),
self.check('subdomain', app_name),
self.check('displayName', app_name),
self.check('sku.name', 'ST2')])
# Test 'az iot central app create with template and display name'
self.cmd('iot central app create -n {0} -g {1} --subdomain {2} --template {3} --display-name \"{4}\" --sku {5}'
.format(template_app_name, rg, template_app_name, template, template_app_display_name, 'ST1'), checks=[
self.check('resourceGroup', rg),
self.check('location', location),
self.check('subdomain', template_app_name),
self.check('displayName', template_app_display_name),
self.check('sku.name', 'ST1'),
self.check('template', template)])
# Test 'az iot central app update'
self.cmd('iot central app update -n {0} -g {1} --set displayName={2} subdomain={3} sku.name={4}'
.format(template_app_name, rg, updatedName, updatedName, 'ST2'), checks=[
self.check('resourceGroup', rg),
self.check('location', location),
self.check('subdomain', updatedName),
self.check('displayName', updatedName),
self.check('sku.name', 'ST2')])
# Test 'az iot central app show'
self.cmd('iot central app show -n {0} -g {1}'.format(app_name, rg), checks=[
self.check('resourceGroup', rg),
self.check('location', location),
self.check('subdomain', app_name),
self.check('displayName', app_name),
self.check('sku.name', 'ST2')])
# Test 'az iot central app show with template and display name'
self.cmd('iot central app show -n {0} -g {1}'.format(template_app_name, rg), checks=[
self.check('resourceGroup', rg),
self.check('location', location),
self.check('subdomain', updatedName),
self.check('displayName', updatedName),
self.check('sku.name', 'ST2'),
self.check('template', template)])
# Test 'az iot central app delete with template and display name'
self.cmd('iot central app delete -n {0} -g {1} --yes'.format(template_app_name, rg), checks=[
self.is_empty()])
# Test 'az iot central app list'
self.cmd('iot central app list -g {0}'.format(rg), checks=[
self.check('length([*])', 1),
self.check('[0].resourceGroup', rg),
self.check('[0].location', location),
self.check('[0].subdomain', app_name),
self.check('[0].displayName', app_name),
self.check('[0].sku.name', 'ST2')])
# Test 'az iot central app delete'
self.cmd('iot central app delete -n {0} -g {1} --yes'.format(app_name, rg), checks=[
self.is_empty()])

Просмотреть файл

@ -0,0 +1,80 @@
# --------------------------------------------------------------------------------------------
# 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,too-many-statements
from azure.cli.testsdk import ResourceGroupPreparer, ScenarioTest
from OpenSSL import crypto, SSL
from os.path import exists, join
from azure.cli.command_modules.iot.tests.latest._test_utils import _create_test_cert, _delete_test_cert, _create_verification_cert
import random
import unittest
VERIFICATION_FILE = "verify.cer"
CERT_FILE = "testcert.cer"
KEY_FILE = "testkey.pvk"
MAX_INT = 9223372036854775807
class IotHubCertificateTest(ScenarioTest):
def __init__(self, test_method):
super(IotHubCertificateTest, self).__init__('test_certificate_lifecycle')
self.hub_name = 'iot-hub-for-cert-test'
_create_test_cert(CERT_FILE, KEY_FILE, self.create_random_name(prefix='TESTCERT', length=24), 3, random.randint(0, MAX_INT))
def __del__(self):
_delete_test_cert(CERT_FILE, KEY_FILE, VERIFICATION_FILE)
@unittest.skip("Need to check this")
@ResourceGroupPreparer()
def test_certificate_lifecycle(self, resource_group):
hub = self._create_test_hub(resource_group)
cert_name = self.create_random_name(prefix='certificate-', length=48)
# Create certificate
self.cmd('iot hub certificate create --hub-name {0} -g {1} -n {2} -p {3}'.format(hub, resource_group, cert_name, CERT_FILE),
checks=[self.check('name', cert_name),
self.check('properties.isVerified', False)])
# List certificates
output = self.cmd('iot hub certificate list --hub-name {0} -g {1}'.format(hub, resource_group),
checks=[self.check('length(value)', 1),
self.check('value[0].name', cert_name),
self.check('value[0].properties.isVerified', False)]).get_output_in_json()
assert len(output['value']) == 1
# Get certificate
etag = self.cmd('iot hub certificate show --hub-name {0} -g {1} -n {2}'.format(hub, resource_group, cert_name),
checks=[self.check('name', cert_name),
self.check('properties.isVerified', False)]).get_output_in_json()['etag']
# Generate verification code
output = self.cmd('iot hub certificate generate-verification-code --hub-name {0} -g {1} -n {2} --etag {3}'.format(hub, resource_group, cert_name, etag),
checks=[self.check('name', cert_name)]).get_output_in_json()
assert 'verificationCode' in output['properties']
verification_code = output['properties']['verificationCode']
etag = output['etag']
_create_verification_cert(CERT_FILE, KEY_FILE, VERIFICATION_FILE, verification_code, 3, random.randint(0, MAX_INT))
# Verify certificate
etag = self.cmd('iot hub certificate verify --hub-name {0} -g {1} -n {2} -p {3} --etag {4}'.format(hub, resource_group, cert_name, VERIFICATION_FILE, etag),
checks=[self.check('name', cert_name),
self.check('properties.isVerified', True)]).get_output_in_json()['etag']
# Delete certificate
self.cmd('iot hub certificate delete --hub-name {0} -g {1} -n {2} --etag {3}'.format(hub, resource_group, cert_name, etag))
def _create_test_hub(self, resource_group):
hub = self.create_random_name(prefix='iot-hub-for-cert-test', length=48)
self.cmd('iot hub create -n {0} -g {1} --sku S1'.format(hub, resource_group),
checks=[self.check('resourcegroup', resource_group),
self.check('name', hub),
self.check('sku.name', 'S1')])
return hub

Просмотреть файл

@ -0,0 +1,550 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=too-many-statements
from azure.cli.testsdk import ResourceGroupPreparer, ScenarioTest, StorageAccountPreparer
from azure_devtools.scenario_tests import AllowLargeResponse
from .recording_processors import KeyReplacer
import unittest
class IoTHubTest(ScenarioTest):
def __init__(self, method_name):
super(IoTHubTest, self).__init__(
method_name, recording_processors=[KeyReplacer()]
)
@AllowLargeResponse()
@ResourceGroupPreparer(location='westus2')
@StorageAccountPreparer()
@unittest.skip('Need to try with passing SAS key in environment.') # TODO
def test_iot_hub(self, resource_group, resource_group_location, storage_account):
hub = 'iot-hub-for-test-11'
rg = resource_group
location = resource_group_location
containerName = 'iothubcontainer1'
storageConnectionString = self._get_azurestorage_connectionstring(rg, containerName, storage_account)
ehConnectionString = self._get_eventhub_connectionstring(rg)
subscription_id = self._get_current_subscription()
# Test hub life cycle in free tier
self.cmd('iot hub create -n {0} -g {1} --sku F1'.format(hub, rg), expect_failure=True)
self.cmd('iot hub create -n {0} -g {1} --sku F1 --partition-count 4'.format(hub, rg), expect_failure=True)
self.cmd('iot hub create -n {0} -g {1} --sku F1 --partition-count 2'.format(hub, rg),
checks=[self.check('resourcegroup', rg),
self.check('name', hub),
self.check('sku.name', 'F1'),
self.check('properties.eventHubEndpoints.events.partitionCount', '2')])
self.cmd('iot hub delete -n {0}'.format(hub), checks=self.is_empty())
# Test 'az iot hub create'
self.cmd('iot hub create -n {0} -g {1} --sku S1 --fn true'.format(hub, rg), expect_failure=True)
self.cmd('iot hub create -n {0} -g {1} --sku S1 --fn true --fc containerName'
.format(hub, rg), expect_failure=True)
self.cmd('iot hub create -n {0} -g {1} --retention-day 3'
' --c2d-ttl 23 --c2d-max-delivery-count 89 --feedback-ttl 29 --feedback-lock-duration 35'
' --feedback-max-delivery-count 40 --fileupload-notification-max-delivery-count 79'
' --fileupload-notification-ttl 20'.format(hub, rg),
checks=[self.check('resourcegroup', rg),
self.check('location', location),
self.check('name', hub),
self.check('sku.name', 'S1'),
self.check('properties.eventHubEndpoints.events.partitionCount', '4'),
self.check('properties.eventHubEndpoints.events.retentionTimeInDays', '3'),
self.check('properties.cloudToDevice.feedback.maxDeliveryCount', '40'),
self.check('properties.cloudToDevice.feedback.lockDurationAsIso8601', '0:00:35'),
self.check('properties.cloudToDevice.feedback.ttlAsIso8601', '1 day, 5:00:00'),
self.check('properties.cloudToDevice.maxDeliveryCount', '89'),
self.check('properties.cloudToDevice.defaultTtlAsIso8601', '23:00:00'),
self.check('properties.messagingEndpoints.fileNotifications.ttlAsIso8601', '20:00:00'),
self.check('properties.messagingEndpoints.fileNotifications.maxDeliveryCount', '79')])
# Test 'az iot hub show-connection-string'
conn_str_pattern = r'^HostName={0}.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey='.format(
hub)
self.cmd('iot hub show-connection-string -n {0}'.format(hub), checks=[
self.check_pattern('connectionString', conn_str_pattern)
])
self.cmd('iot hub show-connection-string -n {0} -g {1}'.format(hub, rg), checks=[
self.check('length(@)', 1),
self.check_pattern('connectionString', conn_str_pattern)
])
self.cmd('iot hub show-connection-string -n {0} -g {1} --all'.format(hub, rg), checks=[
self.check('length(connectionString[*])', 5),
self.check_pattern('connectionString[0]', conn_str_pattern)
])
# Storage Connection String Pattern
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName='
# Test 'az iot hub update'
updated_hub = self.cmd('iot hub update -n {0} --fnd 80 --rd 4 --ct 34 --cdd 46 --ft 43 --fld 10 --fd 76'
' --fn true --fnt 32 --fst 3 --fcs {1} --fc {2}'
.format(hub, storageConnectionString, containerName)).get_output_in_json()
assert updated_hub['properties']['eventHubEndpoints']['events']['partitionCount'] == 4
assert updated_hub['properties']['eventHubEndpoints']['events']['retentionTimeInDays'] == 4
assert updated_hub['properties']['cloudToDevice']['feedback']['maxDeliveryCount'] == 76
assert updated_hub['properties']['cloudToDevice']['feedback']['lockDurationAsIso8601'] == '0:00:10'
assert updated_hub['properties']['cloudToDevice']['feedback']['ttlAsIso8601'] == '1 day, 19:00:00'
assert updated_hub['properties']['cloudToDevice']['maxDeliveryCount'] == 46
assert updated_hub['properties']['cloudToDevice']['defaultTtlAsIso8601'] == '1 day, 10:00:00'
assert updated_hub['properties']['messagingEndpoints']['fileNotifications']['ttlAsIso8601'] == '1 day, 8:00:00'
assert updated_hub['properties']['messagingEndpoints']['fileNotifications']['maxDeliveryCount'] == 80
assert storage_cs_pattern in updated_hub['properties']['storageEndpoints']['$default']['connectionString']
assert updated_hub['properties']['storageEndpoints']['$default']['containerName'] == containerName
assert updated_hub['properties']['storageEndpoints']['$default']['sasTtlAsIso8601'] == '3:00:00'
# Test 'az iot hub show'
self.cmd('iot hub show -n {0}'.format(hub), checks=[
self.check('resourcegroup', rg),
self.check('location', location),
self.check('name', hub),
self.check('sku.name', 'S1'),
self.check('properties.eventHubEndpoints.events.partitionCount', '4'),
self.check('properties.eventHubEndpoints.events.retentionTimeInDays', '4'),
self.check('properties.cloudToDevice.feedback.maxDeliveryCount', '76'),
self.check('properties.cloudToDevice.feedback.lockDurationAsIso8601', '0:00:10'),
self.check('properties.cloudToDevice.feedback.ttlAsIso8601', '1 day, 19:00:00'),
self.check('properties.cloudToDevice.maxDeliveryCount', '46'),
self.check('properties.cloudToDevice.defaultTtlAsIso8601', '1 day, 10:00:00'),
self.check('properties.messagingEndpoints.fileNotifications.ttlAsIso8601', '1 day, 8:00:00'),
self.check('properties.messagingEndpoints.fileNotifications.maxDeliveryCount', '80')
])
# Test 'az iot hub list'
self.cmd('iot hub list -g {0}'.format(rg), checks=[
self.check('length([*])', 1),
self.check('[0].resourcegroup', rg),
self.check('[0].location', location),
self.check('[0].name', hub),
self.check('[0].sku.name', 'S1')
])
# Test 'az iot hub sku list'
self.cmd('iot hub list-skus -n {0}'.format(hub), checks=[
self.check('length([*])', 3),
self.check('[0].sku.name', 'S1'),
self.check('[1].sku.name', 'S2'),
self.check('[2].sku.name', 'S3')
])
# Test 'az iot hub policy create'
policy_name = 'test_policy'
permissions = 'RegistryWrite ServiceConnect DeviceConnect'
self.cmd('iot hub policy create --hub-name {0} -n {1} --permissions {2}'.format(hub, policy_name, permissions),
checks=self.is_empty())
# Test 'az iot hub policy list'
self.cmd('iot hub policy list --hub-name {0}'.format(hub), checks=[
self.check('length([*])', 6)
])
# Test 'az iot hub policy show'
self.cmd('iot hub policy show --hub-name {0} -n {1}'.format(hub, policy_name), checks=[
self.check('keyName', policy_name),
self.check('rights', 'RegistryWrite, ServiceConnect, DeviceConnect')
])
# Test 'az iot hub policy renew-key'
policy = self.cmd('iot hub policy renew-key --hub-name {0} -n {1} --renew-key Primary'.format(hub, policy_name),
checks=[self.check('keyName', policy_name)]).get_output_in_json()
policy_name_conn_str_pattern = r'HostName={0}.azure-devices.net;SharedAccessKeyName={1};SharedAccessKey={2}'.format(
hub, policy_name, policy['primaryKey'])
# Test policy_name connection-string 'az iot hub show-connection-string'
self.cmd('iot hub show-connection-string -n {0} --policy-name {1}'.format(hub, policy_name), checks=[
self.check_pattern('connectionString', policy_name_conn_str_pattern)
])
# Test swap keys 'az iot hub policy renew-key'
self.cmd('iot hub policy renew-key --hub-name {0} -n {1} --renew-key Swap'.format(hub, policy_name),
checks=[self.check('primaryKey', policy['secondaryKey']),
self.check('secondaryKey', policy['primaryKey'])])
# Test 'az iot hub policy delete'
self.cmd('iot hub policy delete --hub-name {0} -n {1}'.format(hub, policy_name), checks=self.is_empty())
self.cmd('iot hub policy list --hub-name {0}'.format(hub), checks=[
self.check('length([*])', 5)
])
# Test 'az iot hub consumer-group create'
consumer_group_name = 'cg1'
self.cmd('iot hub consumer-group create --hub-name {0} -n {1}'.format(hub, consumer_group_name), checks=[
self.check('name', consumer_group_name)
])
# Test 'az iot hub consumer-group show'
self.cmd('iot hub consumer-group show --hub-name {0} -n {1}'.format(hub, consumer_group_name), checks=[
self.check('name', consumer_group_name)
])
# Test 'az iot hub consumer-group list'
self.cmd('iot hub consumer-group list --hub-name {0}'.format(hub), checks=[
self.check('length([*])', 2),
self.check('[0].name', '$Default'),
self.check('[1].name', consumer_group_name)
])
# Test 'az iot hub consumer-group delete'
self.cmd('iot hub consumer-group delete --hub-name {0} -n {1}'.format(hub, consumer_group_name),
checks=self.is_empty())
self.cmd('iot hub consumer-group list --hub-name {0}'.format(hub), checks=[
self.check('length([*])', 1),
self.check('[0].name', '$Default')
])
# Test 'az iot hub show-quota-metrics'
self.cmd('iot hub show-quota-metrics -n {0}'.format(hub), checks=[
self.check('length([*])', 2),
self.check('[0].name', 'TotalMessages'),
self.check('[0].maxValue', 400000),
self.check('[1].name', 'TotalDeviceCount'),
self.check('[1].maxValue', 'Unlimited')
])
# Test 'az iot hub show-stats'
device_count_pattern = r'^\d$'
self.cmd('iot hub show-stats -n {0}'.format(hub), checks=[
self.check_pattern('disabledDeviceCount', device_count_pattern),
self.check_pattern('enabledDeviceCount', device_count_pattern),
self.check_pattern('totalDeviceCount', device_count_pattern)
])
endpoint_name = 'Event1'
endpoint_type = 'EventHub'
storage_endpoint_name = 'Storage1'
storage_endpoint_type = 'azurestoragecontainer'
storage_encoding_format = 'avro'
storage_chunk_size = 150
storage_batch_frequency = 100
storage_file_name_format = '{iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}'
# Test 'az iot hub routing-endpoint create'
self.cmd('iot hub routing-endpoint create --hub-name {0} -g {1} -n {2} -t {3} -r {4} -s {5} -c "{6}"'
.format(hub, rg, endpoint_name, endpoint_type, rg, subscription_id, ehConnectionString),
checks=[self.check('length(eventHubs[*])', 1),
self.check('eventHubs[0].resourceGroup', rg),
self.check('eventHubs[0].name', endpoint_name),
self.check('length(serviceBusQueues[*])', 0),
self.check('length(serviceBusTopics[*])', 0),
self.check('length(storageContainers[*])', 0)])
# Test 'az iot hub routing-endpoint list'
self.cmd('iot hub routing-endpoint list --hub-name {0} -g {1}'
.format(hub, rg),
checks=[self.check('length(eventHubs[*])', 1),
self.check('eventHubs[0].resourceGroup', rg),
self.check('eventHubs[0].name', endpoint_name)])
self.cmd('iot hub routing-endpoint list --hub-name {0} -g {1} -t {2}'
.format(hub, rg, endpoint_type),
checks=[self.check('length([*])', 1),
self.check('[0].resourceGroup', rg),
self.check('[0].name', endpoint_name)])
# Test 'az iot hub routing-endpoint show'
self.cmd('iot hub routing-endpoint show --hub-name {0} -g {1} -n {2}'
.format(hub, rg, endpoint_name),
checks=[self.check('resourceGroup', rg),
self.check('name', endpoint_name)])
# Test 'az iot hub routing-endpoint create' with storage endpoint
endpoint = self.cmd('iot hub routing-endpoint create --hub-name {0} -g {1} -n {2} -t {3} -r {4} -s {5} '
'-c "{6}" --container-name {7} --encoding {8} -b {9} -w {10}'
.format(hub, rg, storage_endpoint_name, storage_endpoint_type, rg, subscription_id,
storageConnectionString, containerName, storage_encoding_format,
storage_batch_frequency, storage_chunk_size)).get_output_in_json()
assert len(endpoint['storageContainers']) == 1
assert endpoint["storageContainers"][0]["containerName"] == containerName
assert endpoint["storageContainers"][0]["name"] == storage_endpoint_name
assert endpoint["storageContainers"][0]["batchFrequencyInSeconds"] == storage_batch_frequency
assert endpoint["storageContainers"][0]["maxChunkSizeInBytes"] == 1048576 * storage_chunk_size
assert endpoint["storageContainers"][0]["fileNameFormat"] == storage_file_name_format
assert len(endpoint['serviceBusQueues']) == 0
assert len(endpoint['serviceBusTopics']) == 0
assert len(endpoint['eventHubs']) == 1
# Test 'az iot hub route create'
route_name = 'route1'
source_type = 'DeviceMessages'
new_source_type = 'TwinChangeEvents'
condition = 'true'
enabled = True
self.cmd('iot hub route create --hub-name {0} -g {1} -n {2} -s {3} --en {4} -c {5} -e {6}'
.format(hub, rg, route_name, source_type, endpoint_name, condition, enabled),
checks=[self.check('length([*])', 1),
self.check('[0].name', route_name),
self.check('[0].source', source_type),
self.check('[0].isEnabled', enabled),
self.check('[0].condition', condition),
self.check('length([0].endpointNames[*])', 1),
self.check('[0].endpointNames[0]', endpoint_name)])
# Test 'az iot hub route list'
self.cmd('iot hub route list --hub-name {0} -g {1}'.format(hub, rg),
checks=[self.check('length([*])', 1),
self.check('[0].name', route_name),
self.check('[0].source', source_type),
self.check('[0].isEnabled', enabled),
self.check('[0].condition', condition),
self.check('length([0].endpointNames[*])', 1),
self.check('[0].endpointNames[0]', endpoint_name)])
# Test 'az iot hub route list'
self.cmd('iot hub route list --hub-name {0} -g {1} -s {2}'.format(hub, rg, source_type),
checks=[self.check('length([*])', 1),
self.check('[0].name', route_name),
self.check('[0].source', source_type),
self.check('[0].isEnabled', enabled),
self.check('[0].condition', condition),
self.check('length([0].endpointNames[*])', 1),
self.check('[0].endpointNames[0]', endpoint_name)])
# Test 'az iot hub route show'
self.cmd('iot hub route show --hub-name {0} -g {1} -n {2}'.format(hub, rg, route_name),
checks=[self.check('name', route_name),
self.check('source', source_type),
self.check('isEnabled', enabled),
self.check('condition', condition),
self.check('length(endpointNames[*])', 1),
self.check('endpointNames[0]', endpoint_name)])
# Test 'az iot hub route test'
self.cmd('iot hub route test --hub-name {0} -g {1} -n {2}'.format(hub, rg, route_name),
checks=[self.check('result', 'true')])
# Test 'az iot hub route test'
self.cmd('iot hub route test --hub-name {0} -g {1} -s {2}'.format(hub, rg, source_type),
checks=[self.check('length(routes[*])', 1),
self.check('routes[0].properties.name', route_name),
self.check('routes[0].properties.source', source_type),
self.check('routes[0].properties.isEnabled', enabled),
self.check('routes[0].properties.condition', condition),
self.check('length(routes[0].properties.endpointNames[*])', 1),
self.check('routes[0].properties.endpointNames[0]', endpoint_name)])
# Test 'az iot hub route update'
self.cmd('iot hub route update --hub-name {0} -g {1} -n {2} -s {3}'.format(hub, rg, route_name, new_source_type),
checks=[self.check('length([*])', 1),
self.check('[0].name', route_name),
self.check('[0].source', new_source_type),
self.check('[0].isEnabled', enabled),
self.check('[0].condition', condition),
self.check('length([0].endpointNames[*])', 1),
self.check('[0].endpointNames[0]', endpoint_name)])
# Test 'az iot hub route delete'
self.cmd('iot hub route delete --hub-name {0} -g {1}'.format(hub, rg), checks=[
self.check('length([*])', 0)
])
# Test 'az iot hub routing-endpoint delete'
self.cmd('iot hub routing-endpoint delete --hub-name {0} -g {1} -n {2}'.format(hub, rg, endpoint_name),
checks=[self.check('length(eventHubs[*])', 0),
self.check('length(serviceBusQueues[*])', 0),
self.check('length(serviceBusTopics[*])', 0),
self.check('length(storageContainers[*])', 1)])
# Test 'az iot hub devicestream show'
self.cmd('iot hub devicestream show -n {0} -g {1}'.format(hub, rg), checks=self.is_empty())
# Test 'az iot hub message-enrichment create'
real_endpoints = 'events'
fake_endpoints = 'events fake_endpoint'
key = 'key'
fake_key = 'fake_key'
value = 'value'
self.cmd('iot hub message-enrichment create -n {0} -g {1} --key {2} --value {3} --endpoints {4}'
.format(hub, rg, key, value, fake_endpoints), expect_failure=True)
self.cmd('iot hub message-enrichment create -n {0} -g {1} --key {2} --value {3} --endpoints {4}'
.format(hub, rg, key, value, real_endpoints), checks=[self.check('length(properties.routing.enrichments)', 1)])
# Test 'az iot hub message-enrichment update'
self.cmd('iot hub message-enrichment update -n {0} -g {1} --key {2} --value {3} --endpoints {4}'
.format(hub, rg, fake_key, value, real_endpoints), expect_failure=True)
self.cmd('iot hub message-enrichment update -n {0} -g {1} --key {2} --value {3} --endpoints {4}'
.format(hub, rg, key, value, fake_endpoints), expect_failure=True)
self.cmd('iot hub message-enrichment update -n {0} -g {1} --key {2} --value {3} --endpoints {4}'
.format(hub, rg, key, value, real_endpoints), checks=[self.check('length(properties.routing.enrichments)', 1)])
# Test 'az iot hub message-enrichment list'
self.cmd('iot hub message-enrichment list -n {0} -g {1}'.format(hub, rg),
checks=[self.check('length([*])', 1)])
# Test 'az iot hub message-enrichment delete'
self.cmd('iot hub message-enrichment delete -n {0} -g {1} --key {2}'.format(hub, rg, fake_key),
expect_failure=True)
self.cmd('iot hub message-enrichment delete -n {0} -g {1} --key {2}'.format(hub, rg, key),
checks=[self.check('length(properties.routing.enrichments)', 0)])
# Test 'az iot hub manual-failover'
self.cmd('iot hub manual-failover -n {0} -g {1}'.format(hub, rg),
checks=[self.check('location', location)])
# Test 'az iot hub delete'
self.cmd('iot hub delete -n {0}'.format(hub), checks=self.is_empty())
@AllowLargeResponse()
@ResourceGroupPreparer(location='westus2')
@StorageAccountPreparer()
@unittest.skip('Need to try with passing SAS key in environment.') # TODO
def test_identity_hub(self, resource_group, resource_group_location, storage_account):
# Test IoT Hub create with identity
subscription_id = self._get_current_subscription()
rg = resource_group
location = resource_group_location
private_endpoint_type = 'Microsoft.Devices/IoTHubs'
identity_hub = 'identity-test-hub-cli'
identity_based_auth = 'identityBased'
event_hub_identity_endpoint_name = 'EventHubIdentityEndpoint'
containerName = 'iothubcontainer'
storageConnectionString = self._get_azurestorage_connectionstring(rg, containerName, storage_account)
endpoint_name = 'Event1'
endpoint_type = 'EventHub'
eventhub_endpoint_uri = 'eh://test'
storage_cs_pattern = 'DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net;AccountName='
entity_path = 'entity'
# identity hub creation
import os
templateFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.path.pardir, 'templates', 'identity.json')
self.cmd('deployment group create --name {0} -g {1} --template-file "{2}" --parameters name={3} --parameters location={4}'
.format("identity-hub-deployment", resource_group, templateFile, identity_hub, location))
self.cmd('iot hub show --name {0}'.format(identity_hub), checks=[
self.check('properties.minTlsVersion', '1.2'),
self.check('identity.type', 'SystemAssigned')])
# Test 'az iot hub update' with Identity-based fileUpload
updated_hub = self.cmd('iot hub update -n {0} --fsa {1} --fcs {2} --fc {3} --fn true --fnt 32 --fnd 80 --rd 4 '
'--ct 34 --cdd 46 --ft 43 --fld 10 --fd 76'
.format(identity_hub, identity_based_auth, storageConnectionString, containerName)).get_output_in_json()
assert updated_hub['properties']['storageEndpoints']['$default']['authenticationType'] == identity_based_auth
assert storage_cs_pattern in updated_hub['properties']['storageEndpoints']['$default']['connectionString']
# TODO - implement file upload container URI instead of connectionString once implemented in service
# Test 'az iot hub routing-endpoint create' with Identity-based event hub endpoint
self.cmd('iot hub routing-endpoint create --hub-name {0} -g {1} -n {2} -t {3} -r {4} -s {5} --auth-type {6} --endpoint-uri {7} --entity-path {8}'
.format(identity_hub, rg, event_hub_identity_endpoint_name, endpoint_type, rg, subscription_id, identity_based_auth, eventhub_endpoint_uri, entity_path),
checks=[self.check('length(eventHubs[*])', 1),
self.check('eventHubs[0].resourceGroup', rg),
self.check('eventHubs[0].name', event_hub_identity_endpoint_name),
self.check('eventHubs[0].authenticationType', identity_based_auth),
self.check('eventHubs[0].connectionString', None),
self.check('eventHubs[0].endpointUri', eventhub_endpoint_uri),
self.check('eventHubs[0].entityPath', entity_path),
self.check('length(serviceBusQueues[*])', 0),
self.check('length(serviceBusTopics[*])', 0),
self.check('length(storageContainers[*])', 0)])
vnet = 'test-iot-vnet'
subnet = 'subnet1'
endpoint_name = 'iot-private-endpoint'
connection_name = 'iot-private-endpoint-connection'
# Test private endpoints
# Prepare network
self.cmd('network vnet create -n {0} -g {1} -l {2} --subnet-name {3}'
.format(vnet, rg, location, subnet),
checks=self.check('length(newVNet.subnets)', 1))
self.cmd('network vnet subnet update -n {0} --vnet-name {1} -g {2} '
'--disable-private-endpoint-network-policies true'
.format(subnet, vnet, rg),
checks=self.check('privateEndpointNetworkPolicies', 'Disabled'))
# Create a private endpoint connection
pr = self.cmd('network private-link-resource list --type {0} -n {1} -g {2}'
.format(private_endpoint_type, identity_hub, rg)).get_output_in_json()
group_id = pr[0]['properties']['groupId']
hub = self.cmd('iot hub show -n {0} -g {1}'.format(identity_hub, rg)).get_output_in_json()
hub_id = hub['id']
private_endpoint = self.cmd(
'network private-endpoint create -g {0} -n {1} --vnet-name {2} --subnet {3} -l {4} '
'--connection-name {5} --private-connection-resource-id {6} --group-ids {7}'
.format(rg, endpoint_name, vnet, subnet, location, connection_name, hub_id, group_id)
).get_output_in_json()
self.assertEqual(private_endpoint['name'], endpoint_name)
self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['name'], connection_name)
self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['privateLinkServiceConnectionState']['status'], 'Approved')
self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['provisioningState'], 'Succeeded')
self.assertEqual(private_endpoint['privateLinkServiceConnections'][0]['groupIds'][0], group_id)
hub = self.cmd('iot hub show -n {0} -g {1}'.format(identity_hub, rg)).get_output_in_json()
endpoint_id = hub['properties']['privateEndpointConnections'][0]['id']
private_endpoint_name = hub['properties']['privateEndpointConnections'][0]['name']
# endpoint list
self.cmd('network private-endpoint-connection list --type {0} -n {1} -g {2}'
.format(private_endpoint_type, identity_hub, rg),
checks=[self.check('length(@)', 1),
self.check('[0].id', endpoint_id),
self.check('[0].name', private_endpoint_name)])
# endpoint connection approve by name
approve_desc = 'Approving endpoint connection'
self.cmd('network private-endpoint-connection approve --type {0} -n {1} --resource-name {2} -g {3} --description "{4}"'
.format(private_endpoint_type, private_endpoint_name, identity_hub, rg, approve_desc),
checks=[self.check('properties.privateLinkServiceConnectionState.status', 'Approved')])
# endpoint approve by id
self.cmd('network private-endpoint-connection approve --id {0} --description "{1}"'
.format(endpoint_id, approve_desc),
checks=[self.check('properties.privateLinkServiceConnectionState.status', 'Approved')])
# endpoint connection reject by name
reject_desc = 'Rejecting endpoint connection'
self.cmd('network private-endpoint-connection reject --type {0} -n {1} --resource-name {2} -g {3} --description "{4}"'
.format(private_endpoint_type, private_endpoint_name, identity_hub, rg, reject_desc),
checks=[self.check('properties.privateLinkServiceConnectionState.status', 'Rejected')])
# endpoint show
self.cmd('network private-endpoint-connection show --type {0} -n {1} --resource-name {2} -g {3}'
.format(private_endpoint_type, private_endpoint_name, identity_hub, rg),
checks=self.check('id', endpoint_id))
# endpoint delete
self.cmd('network private-endpoint-connection delete --type {0} -n {1} --resource-name {2} -g {3} -y'
.format(private_endpoint_type, private_endpoint_name, identity_hub, rg))
def _get_eventhub_connectionstring(self, rg):
ehNamespace = 'ehNamespaceiothubfortest1'
eventHub = 'eventHubiothubfortest'
eventHubPolicy = 'eventHubPolicyiothubfortest'
eventHubPolicyRight = 'Send'
self.cmd('eventhubs namespace create --resource-group {0} --name {1}'
.format(rg, ehNamespace))
self.cmd('eventhubs eventhub create --resource-group {0} --namespace-name {1} --name {2}'
.format(rg, ehNamespace, eventHub))
self.cmd('eventhubs eventhub authorization-rule create --resource-group {0} --namespace-name {1} --eventhub-name {2} --name {3} --rights {4}'
.format(rg, ehNamespace, eventHub, eventHubPolicy, eventHubPolicyRight))
output = self.cmd('eventhubs eventhub authorization-rule keys list --resource-group {0} --namespace-name {1} --eventhub-name {2} --name {3}'
.format(rg, ehNamespace, eventHub, eventHubPolicy))
return output.get_output_in_json()['primaryConnectionString']
def _get_azurestorage_connectionstring(self, rg, container_name, storage_name):
self.cmd('storage container create --name {0} --account-name {1}'
.format(container_name, storage_name))
output = self.cmd('storage account show-connection-string --resource-group {0} --name {1}'
.format(rg, storage_name))
return output.get_output_in_json()['connectionString']
def _get_current_subscription(self):
output = self.cmd('account show')
return output.get_output_in_json()['id']

Просмотреть файл

@ -0,0 +1,195 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=too-many-statements
from azure.cli.testsdk import ScenarioTest, ResourceGroupPreparer
from azure.cli.command_modules.iot.tests.latest._test_utils import _create_test_cert, _delete_test_cert, _create_verification_cert
import random
import unittest
class IoTDpsTest(ScenarioTest):
@unittest.skip("Need to check this")
@ResourceGroupPreparer(parameter_name='group_name', parameter_name_for_location='group_location')
def test_dps_lifecycle(self, group_name, group_location):
dps_name = self.create_random_name('dps', 20)
hub_name = self.create_random_name('iot', 20)
self.cmd('iot hub create -n {} -g {} --sku S1'.format(hub_name, group_name),
checks=[self.check('resourcegroup', group_name),
self.check('name', hub_name),
self.check('sku.name', 'S1')])
# Create DPS
self.cmd('az iot dps create -g {} -n {}'.format(group_name, dps_name), checks=[
self.check('name', dps_name),
self.check('location', group_location)
])
# List DPS
self.cmd('az iot dps list -g {}'.format(group_name), checks=[
self.check('length([*])', 1),
self.check('[0].name', dps_name),
self.check('[0].location', group_location)
])
# Get DPS
self.cmd('az iot dps show -g {} -n {}'.format(group_name, dps_name), checks=[
self.check('name', dps_name),
self.check('location', group_location)
])
property_to_update = 'properties.allocationPolicy'
updated_value = 'GeoLatency'
# Update DPS
self.cmd('az iot dps update -g {} -n {} --set {}="{}"'.format(group_name, dps_name, property_to_update, updated_value), checks=[
self.check('name', dps_name),
self.check('location', group_location),
self.check(property_to_update, updated_value)
])
# Test DPS Access Policy Lifecycle
policy_name = self.create_random_name('policy', 20)
right = 'EnrollmentRead'
new_right = 'EnrollmentWrite'
# Create access policy
self.cmd('az iot dps access-policy create -g {} --dps-name {} -n {} -r {}'.format(group_name, dps_name, policy_name, right), checks=[
self.check('keyName', policy_name),
self.check('rights', right)
])
# List access policy
self.cmd('az iot dps access-policy list -g {} --dps-name {}'.format(group_name, dps_name), checks=[
self.check('length([*])', 2),
self.check('[1].keyName', policy_name),
self.check('[1].rights', right)
])
# Get access policy
self.cmd('az iot dps access-policy show -g {} --dps-name {} -n {}'.format(group_name, dps_name, policy_name), checks=[
self.check('keyName', policy_name),
self.check('rights', right)
])
# Create update policy
self.cmd('az iot dps access-policy update -g {} --dps-name {} -n {} -r {}'.format(group_name, dps_name, policy_name, new_right),
checks=[
self.check('keyName', policy_name),
self.check('rights', new_right)
])
# Delete policy
self.cmd('az iot dps access-policy delete -g {} --dps-name {} -n {}'.format(group_name, dps_name, policy_name))
# Test DPS Certificate Lifecycle
cert_name = self.create_random_name('certificate', 20)
# Set up cert file for test
verification_file = "verify.cer"
cert_file = "testcert.cer"
key_file = "testkey.pvk"
max_int = 9223372036854775807
_create_test_cert(cert_file, key_file, self.create_random_name(prefix='TESTCERT', length=24), 3, random.randint(0, max_int))
# Create certificate
self.cmd('az iot dps certificate create --dps-name {} -g {} --name {} -p {}'.format(dps_name, group_name, cert_name, cert_file),
checks=[
self.check('name', cert_name),
self.check('properties.isVerified', False)
])
# List certificates
self.cmd('az iot dps certificate list --dps-name {} -g {}'.format(dps_name, group_name))
# Get certificate
etag = self.cmd('az iot dps certificate show --dps-name {} -g {} --name {}'.format(dps_name, group_name, cert_name), checks=[
self.check('name', cert_name),
self.check('properties.isVerified', False)
]).get_output_in_json()['etag']
# Update certificate
etag = self.cmd('az iot dps certificate update --dps-name {} -g {} --name {} -p {} --etag {}'
.format(dps_name, group_name, cert_name, cert_file, etag),
checks=[
self.check('name', cert_name),
self.check('properties.isVerified', False)
]).get_output_in_json()['etag']
# Generate verification code
output = self.cmd('az iot dps certificate generate-verification-code --dps-name {} -g {} -n {} --etag {}'
.format(dps_name, group_name, cert_name, etag),
checks=[
self.check('name', cert_name),
self.check('properties.isVerified', False)
]).get_output_in_json()
verification_code = output['properties']['verificationCode']
etag = output['etag']
_create_verification_cert(cert_file, key_file, verification_file, verification_code, 3, random.randint(0, max_int))
# Verify certificate
etag = self.cmd('az iot dps certificate verify --dps-name {} -g {} -n {} -p {} --etag {}'.format(dps_name, group_name, cert_name, verification_file, etag),
checks=[
self.check('name', cert_name),
self.check('properties.isVerified', True)
]).get_output_in_json()['etag']
# Delete certificate
self.cmd('az iot dps certificate delete --dps-name {} -g {} --name {} --etag {}'.format(dps_name, group_name, cert_name, etag))
_delete_test_cert(cert_file, key_file, verification_file)
# Test DPS Linked Hub Lifecycle
key_name = self.create_random_name('key', 20)
permission = 'RegistryWrite'
# Set up a hub with a policy to be link
hub_host_name = '{}.azure-devices.net'.format(hub_name)
self.cmd('az iot hub policy create --hub-name {} -n {} --permissions {}'.format(hub_name, key_name, permission))
connection_string = self._show_hub_connection_string(hub_name, group_name)
self.cmd('az iot dps linked-hub create --dps-name {} -g {} --connection-string {} -l {}'
.format(dps_name, group_name, connection_string, group_location))
self.cmd('az iot dps linked-hub list --dps-name {} -g {}'.format(dps_name, group_name), checks=[
self.check('length([*])', 1),
self.check('[0].name', '{}.azure-devices.net'.format(hub_name)),
self.check('[0].location', group_location)
])
self.cmd('az iot dps linked-hub show --dps-name {} -g {} --linked-hub {}'.format(dps_name, group_name, hub_host_name), checks=[
self.check('name', hub_host_name),
self.check('location', group_location)
])
allocationWeight = 10
applyAllocationPolicy = True
self.cmd('az iot dps linked-hub update --dps-name {} -g {} --linked-hub {} --allocation-weight {} --apply-allocation-policy {}'
.format(dps_name, group_name, hub_host_name, allocationWeight, applyAllocationPolicy))
self.cmd('az iot dps linked-hub show --dps-name {} -g {} --linked-hub {}'.format(dps_name, group_name, hub_host_name), checks=[
self.check('name', hub_host_name),
self.check('location', group_location),
self.check('allocationWeight', allocationWeight),
self.check('applyAllocationPolicy', applyAllocationPolicy)
])
self.cmd('az iot dps linked-hub delete --dps-name {} -g {} --linked-hub {}'.format(dps_name, group_name, hub_host_name))
# Delete DPS
self.cmd('az iot dps delete -g {} -n {}'.format(group_name, dps_name))
def _get_hub_policy_primary_key(self, hub_name, key_name):
output = self.cmd('az iot hub policy show --hub-name {} -n {}'.format(hub_name, key_name))
return output.get_output_in_json()['primaryKey']
def _show_hub_connection_string(self, hub_name, group_name):
output = self.cmd('az iot hub show-connection-string --name {} -g {}'.format(hub_name, group_name))
return output.get_output_in_json()['connectionString']

Просмотреть файл

@ -0,0 +1,32 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
import unittest
from azure.cli.command_modules.iot.sas_token_auth import SasTokenAuthentication
class TestSasTokenAuth(unittest.TestCase):
def test_generate_sas_token(self):
# Prepare parameters
uri = 'iot-hub-for-test.azure-devices.net/devices/iot-device-for-test'
policy_name = 'iothubowner'
access_key = '+XLy+MVZ+aTeOnVzN2kLeB16O+kSxmz6g3rS6fAf6rw='
expiry = 1471940363
# Action
sas_auth = SasTokenAuthentication(uri, policy_name, access_key, expiry)
token = sas_auth.generate_sas_token()
# Assertion
self.assertIn('SharedAccessSignature ', token)
self.assertIn('sig=RTNrGy6n%2Fs2uLLZFuVHBIJtdxIJP1LuKfhKjHwwbu7A%3D', token)
self.assertIn('se=1471940363', token)
self.assertIn('sr=iot-hub-for-test.azure-devices.net%252fdevices%252fiot-device-for-test',
token)
self.assertIn('skn=iothubowner', token)
if __name__ == '__main__':
unittest.main()

Двоичный файл не отображается.

Двоичный файл не отображается.

Просмотреть файл

@ -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.
# --------------------------------------------------------------------------------------------

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,8 @@
-----BEGIN EC PARAMETERS-----
BggqhkjOPQMBBw==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIIkhzVzuMSLuFQKx9KPjy2KysulWicb4xBkFU/q89SFOoAoGCCqGSM49
AwEHoUQDQgAEli86GrOlNxhcyInofgyKTYvekq3QGpspRuByNRSR5CPKlFRRAeLz
hLChs8eEccPOpdI8Y9S++KPK36LoCJADRg==
-----END EC PRIVATE KEY-----

Просмотреть файл

@ -0,0 +1,10 @@
-----BEGIN EC PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-CBC,5A0C299B3F7E3BDD
1v6YBEuF5bTH9o9cp1NPIaqW1tjFOAlwW1apXablnMeqJ8+ZIpAA4rjUg9PON/lu
p7WMzINiq6mFVoUPIIsghEXVc8KV9RfTBMcCj/F1iXMuPchSxQIahJKJDK7pGvfG
vadIH35hJDhiuJnOA/jTOYI3ltojAmHl4tRvyDDbTNyMT7ScWhYTu9rdJ0HTXpnh
arrQgvFykH8nKxlNiie/3OSrg6evNFjcHfCuFINuQUd5jv29ElyXmytR2S5dANuc
jaA3PpUfGKknPWvC6fjkMFYct6Gzw67UWbSRuESlae4=
-----END EC PRIVATE KEY-----

Просмотреть файл

@ -0,0 +1,50 @@
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIE6jAcBgoqhkiG9w0BDAEDMA4ECKdNkfwqrfYUAgIIAASCBMhs3GiAGotxZv4e
6V5Xv5dILRuwc+C3mimMsg/NFW9dYWRVRznuldfdHFFcqh9wcuvq1WJEOhHhFsaQ
Kzt4U7UfzlBeVw/1c0C6r0iWCYARbwyq+OxNofbQAX3t487Lh08uHxDS2r/C5Svd
8FzY+H5usBWr4S4DpGDbhnQmls0iUUFNnueByIJVQOn/yfsxryvMDsVtfrDwFi8I
RIZ3mnvwsFOffWV6+6KNngoCFsyQi+gjiE/5RLSPlOtFVMfAn9xFuczLrKWPDLDq
MFUC7xoki5EujtHpw9uvquOkNf5ikexz3f21ZLzU5fQMuBGz6Jdr09WY1LQTauAK
5qXkM7GNNqOgKUPdMuO2my/A8gGW1rAvqQATv2os67xLduy0y26+R5bbJwBwEjbo
88LQ7QH/RZWalb+BOfWVgLZavfSjKUZPa4bTq2D/tfEjwKlQj+/oCNj0gufcLt+/
kKJmaWc1xUC1NdvpVUP5mY2e+oB9qyB9mLWRglozVRbYVpJJTvPqV917fnRWTuez
pUs4spsKHu2n5xEdfGJA9SQvI7GGt56nZOh2plAj9ygdswtYoNuqJ4zwj1Fqlyha
LL0TXjVYvGCjrPl8bOD2VXC3KVK4utQAFKc3wvj26gyKEh/Idk/WEnrmh428YytA
qOzb2PVDs6nGyYMLUWritK1SlQzDg4ze+ABEPxhKzoSlxPmWGbj3iIbfmpjz+SsJ
NtgXZM8Oji0KOkKq6jl8SuR6aTmTJLhNCANosXjCHJVgYnomlaaE1ccC/R/P77Kc
5pTcq7RlUqBuK6dfeFmkYH8zZ6RD8d53BBMbX1iDIqP4WauJZ5PmudgXcjN0sAFY
3D+gc+du2soFtLev0nhwspdezPUuo8Bpa/UDidFMVFM/vmJvbqES5XNOMs2XOBbb
ii+j+B0LnVLwl1WbnGV98zZvxh2UbkjSFK9uKSbsuvOltLeIwQ+EapuP4WRItS01
zGuGpaoKQe/hqMWoIZ9vQoQ70WLyXzSPtqp6EfPf+Y/i6pV+P/RMFp56BxqkcQJH
snGf7H+XJSrZDmM0s6WbtAk/FqlOp4EIMj0mlJROXMXGs9RKeZVwrjQJWrfN3ppT
7bvCsq8kJfyZai2E4o5kpPmet0kmNy9idiJPPqSD5BcOON4XZkAtMC5CryI0bY6I
Vk1K5Tw61Vo3rZo03O7VGLYErsJ7cJ3I34A/pohxhOruK2xg003p0euekARY9Qch
LfHAwROlYndTqUODAPzdXs4cgbWKv/TgRwA+6nHnM667fWoIdkfOcRDCQQyB06Iv
GNegJrMc2GIo2gSDHkO+PWCMMTd7O/2RSVxWylhUgyaMnwaG3nT/sQDAWab+YeN6
12eQmZS8Uz66HDRih+w/mkZEF13HfcTcjSbuZJl0XpEtIKbBht5LR1L+fv58d8F2
pVxnAR9QIQTGshhVqeVpenK9FR6zv3BHPkCVtvs7QLWv2vOTuv3xCuN0myxIWxgq
sg1MG88D47t7OeGR5Dc17CT2YNEUyURW63hI21OUKf/hDBz2PKR+oPkd1RNaoIm4
yndM/Xko+QKj9/ACrj3JRP01AwKvGJMnEJ884TC4gRPPTbhillUD5aRmarT5Jw8R
n9R32hJwUT34jV4iJfI=
-----END ENCRYPTED PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIDazCCAlOgAwIBAgIULVGF7UpaVphGSUG4mf4DLywqU18wDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0xOTEwMTUwNTU5MzVaFw0yOTEw
MTIwNTU5MzVaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCtZiVGHgw3hqXrXh8/96aYl7OgyfAu9yrbnjwIydiZ
jVjQ6wAjfLxoaudgieSAaADKfnyHb59s+cxZ7MxJEEv5Cxt+dSoGuQx6kagttpm9
EXOVe2EW6xKUGSTpV1+pd9ywN6SHT0VSUJj1mvlDPFFZiERrJpn4WE/QFHfF8Zo/
hOXkWYnCCnK3JrUh9M9VsDZ7BiP83RywPH5CMEIdfQb1XcYj4myRXTO1rN1PFy25
jPV5pEFx48u3RjEsLQ/G317YXl+NScSYpF4nvPIWK/95QvO5UdaefNnkSkzLuHdg
OF3qLn3Q6CHYjetZ8gbjxaKKb68OND82wNNU864UtnRzAgMBAAGjUzBRMB0GA1Ud
DgQWBBSYzAx6+3QOcje8w3moJ75Lea+17zAfBgNVHSMEGDAWgBSYzAx6+3QOcje8
w3moJ75Lea+17zAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQA3
4S+HbJ6B10YCGi/A85O9x7GDOl40T4b0JN+4U6sSSYe/k6g44MemHP6QdNsKQD10
ll9ZjBGHX+CVy8z5Fckxt4LtfKZ+g49XOS8Rr2qu1Ganr5tIhAE0irAA3C754R9l
0UDuRLyboeGVcNfiTJCWvvEw2ezbAi+F3vJVU3qGtHmQv3FBHMUlJN893Yj7dW8x
xAYrf+YYlxKKbEbCFk8sB1cNlOSK35J4MHJE/1Rv9oxaL0xlSh4J1lGHPMr93hJj
sJRCywGqCe4u4qcNgiOHyI1Kv3CA/ZcwKsA0gHwDd3ySHYH6GoXt+XbpH0RZtQkL
8JJQIVgZcAoDUvkN1DQ9
-----END CERTIFICATE-----

Просмотреть файл

@ -0,0 +1,49 @@
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC6ktKsm/OX1Xo6
YxRg5/zUQnTEC5Lb5sGtLPmgpbh1qmbXQyn+cC1A/pLL7G5//3vVvis707gTsxn2
5mpL3B31krShElqEYhdm22MKt1EjPOpW2QX5wNTRdh3C2/KJuhQCnWoUmd1fwY6l
QvSrJIyu6IjB7sO6IsL1Y2iqsSwNFf7Prr7NeizYkOqEZ1YVRcIp71lzthrRcAUG
o/rDdM61St/JWIM7F0RNyZTlTw1EFWGpE+RKN41zyfkWE4VdMctLMeL9XIPxGLse
WmZXDwUwxb/yPy3MOfYE4ZCfzwOIBNmyI6jKz2qxtISPKrK/Ba+YWufjZ56G7yVx
tmjllwazAgMBAAECggEAR6QLK2ZywfGiDntvHsrVxXeDOKgtCy1vXxzu+aXIz73P
4YaTwHS4m8Vk/tLZl2K13Vw5Y66nd0EFjk3psRljk6FypIrUoRK9Y6yIOlwr1rkU
Tqbk6YMG9StCwEkOt53xAxQI4MI4RAWhzYmJQ5I0RxFZOgaBt56TeABk924yuQ76
PqfUj00kXTNmBjOupvpzfTkHSwsBIGD14C1SOxQivrrKXgn5nnSjln6zIBnVTwRX
Ly6R3jMLUQZUjd9KngXirxeay6uHY0cdG242ce8Qf+BBWP00FtB5PgEiPX5a2Rhm
UMu8bGnBZgNZXbSF290gR3Tz9c4IVpi3HDB3SjExiQKBgQDd2BnvYmCcBWZHQZCc
2VDJswz4bxGrKmqYXp6syMhaTBfRZvVk0eRixAFDPKV7TnMbe3Bw2yWorWv813qA
cIydOLpvG+lqIsEK0tSV4Y/4uQy+RGNocLHkyQlaDVTOISx3ueZZ2gIVFfGzCrXU
HUlMBM+tpHK41wNhq+eXCgXM7QKBgQDXTItTsdhPa4m905TI2l4cy4RoMw7c5RW9
NrvXnSk3anSWuQQJW+E+TZtresXlvAnpxduDVh3kctn/LBhJchE9Mwwete/ezi9R
nu/Y5qTQ7TDxOiWTAHAhSBv2QMNOqqJ49/GmjDs71TB6XbBa1Ap0O8pYiwy4ePyq
MveMCN9OHwKBgQCzRiyHQAf0bYSetsRHjHJ13OTxashreyaTJXuzA7qtBesFhN9v
7xJSIjUnAb507AunPNS7zs0bB7JJrFRJsSpg73Px0CuLYrR/q6qxyItRIzHCHH/8
6X1I9pFBHZ7XyQUnZ6pYGA4wvgAJgPE5jcUq0oSFvWwcJV2NM58+dpIDbQKBgQCX
iMF7q+4SoB73o6bR45hf7gKIkH9CjF7LqW12qaAr59qdhyVHLQsRHfBpKqWFN99G
UcNZ4k/xzcCPsEp7zzRA/d/m8akeCcMWUKaB5HxWrMtIzeNKXwGM+0LrBNQyVzk5
qVHFJmg+iaOwTKbmlt2wx7B4t43BfS5g4LSJNGlvgwKBgQDarYKUu70xPYkpdxeC
fvzmEw+qCpkbZ0HSLJHXNqkA8+sqPdvW8xmhBlfYqDw7VMj+QoMGQaKnsQP3Frib
AnmhmO3ZRx6HkUNC5LWgTSQ8ZXH0iCNW7ccolIZ6zdm+gSDk/6c6ieXzSlyfYs6g
2PDHiqAok96u3TY91dj3e6uGVw==
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIDazCCAlOgAwIBAgIUPYpi/CMVjq2r+7PX1JWAzsUeFqQwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0xOTEwMTUwNjAxMDlaFw0yOTEw
MTIwNjAxMDlaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQC6ktKsm/OX1Xo6YxRg5/zUQnTEC5Lb5sGtLPmgpbh1
qmbXQyn+cC1A/pLL7G5//3vVvis707gTsxn25mpL3B31krShElqEYhdm22MKt1Ej
POpW2QX5wNTRdh3C2/KJuhQCnWoUmd1fwY6lQvSrJIyu6IjB7sO6IsL1Y2iqsSwN
Ff7Prr7NeizYkOqEZ1YVRcIp71lzthrRcAUGo/rDdM61St/JWIM7F0RNyZTlTw1E
FWGpE+RKN41zyfkWE4VdMctLMeL9XIPxGLseWmZXDwUwxb/yPy3MOfYE4ZCfzwOI
BNmyI6jKz2qxtISPKrK/Ba+YWufjZ56G7yVxtmjllwazAgMBAAGjUzBRMB0GA1Ud
DgQWBBRIwEHMjAQuWfatNPhtcBGSKHOXrTAfBgNVHSMEGDAWgBRIwEHMjAQuWfat
NPhtcBGSKHOXrTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQCp
SX9YnqyWuMBCcJ+xFzonYFNTeVDfSW3jmZhia1YJySrhtUkSk+ObFt3OS7ApP1Yy
sEY1OLwt73ajnGFh0lwJ7bb42ThAVbDrY61aL290/NkHtX1ESRzd6pNrn66nEVUw
40HWPjOzWqLEgQDhNv1jsOpFeLZufNbqnNkCdQh/B4A759FWMicpDWSS1YrIOkxa
3Bxe2NH7yxpH8LCR2SSbaF/dtKJjUxXnd862mC5zQNZp5sMhjH0/qDCUN237Desc
gyGcWJHU19YZzoD3DcJxkDufBf1VRiWdv/mCA56lsUBU3FFydN5a3dkFjRw/6dpC
ZAE8aGCvioLFBAoeLeTP
-----END CERTIFICATE-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,8 @@
-----BEGIN EC PARAMETERS-----
BggqhkjOPQMBBw==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIIe338KHD5vHeNeB1Fhs68Kpx2jHjpqh/QZptSME/iL0oAoGCCqGSM49
AwEHoUQDQgAEclUrtHdYtNdfl7cueN47hqM6SuyPn18rpsLutGJ/qHeHqvZdnL1b
+aJBNReZlaS24LlJVjsmxn/Zcg1BID0RWg==
-----END EC PRIVATE KEY-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEclUrtHdYtNdfl7cueN47hqM6SuyP
n18rpsLutGJ/qHeHqvZdnL1b+aJBNReZlaS24LlJVjsmxn/Zcg1BID0RWg==
-----END PUBLIC KEY-----

Просмотреть файл

@ -0,0 +1,8 @@
-----BEGIN EC PARAMETERS-----
BgUrgQQACg==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MHQCAQEEIMy+ZSqbwORvuWLCmEH12TJUM6zD7QGxgYczeU/2AZCyoAcGBSuBBAAK
oUQDQgAEH7Thoa/qhy7HoBSFPKOL9edHRqr305sCa7ozYkRLIe0WR98MA4LwXpZD
F3do0CMNqIYLzTJsG37DLngQZ4rJPw==
-----END EC PRIVATE KEY-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEH7Thoa/qhy7HoBSFPKOL9edHRqr305sC
a7ozYkRLIe0WR98MA4LwXpZDF3do0CMNqIYLzTJsG37DLngQZ4rJPw==
-----END PUBLIC KEY-----

Просмотреть файл

@ -0,0 +1,9 @@
-----BEGIN EC PARAMETERS-----
BgUrgQQAIg==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MIGkAgEBBDBG234N7Zwr021c4vi6M9mMz+Q3DVsAyahEqsNNY/XT3k5X3z4tfnth
/rgciYIxv1agBwYFK4EEACKhZANiAAReoBk8F60AVNazrJ9zUK1BU887MT41d5OA
oxPC5OocJGPvkSaK4NDZOOYj0IEvIw5F5y1QybXqhyfvj/0ydAxDulvvfDfmdcJ/
5o6rVip7XyFq9Kz6gnBNbQVVMbR7E/M=
-----END EC PRIVATE KEY-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,5 @@
-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEXqAZPBetAFTWs6yfc1CtQVPPOzE+NXeT
gKMTwuTqHCRj75EmiuDQ2TjmI9CBLyMORectUMm16ocn74/9MnQMQ7pb73w35nXC
f+aOq1Yqe18havSs+oJwTW0FVTG0exPz
-----END PUBLIC KEY-----

Просмотреть файл

@ -0,0 +1,10 @@
-----BEGIN EC PARAMETERS-----
BgUrgQQAIw==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MIHcAgEBBEIBnqXLzys3RKGPLPC7jIbo6rIAXiXVjx4bnZu/CpuiFpnZiqUB5+pf
Kd/X1Av6ikeVYCmM1bXAxIfP4BGCUWGy2wugBwYFK4EEACOhgYkDgYYABAB8/6kF
Fy9ujL9GRaW1c2Fz9wXb1h6bg1zCWCgNWljOIEXcis8m+9Q4wfYFu51zKUI3QXqs
DkPJts9ru/xm2NOZJQDJaU+9LNPHryvkd44xniyWbWDbvPD/js6zKDCVMlvmo7CS
aOYj3QWEzoWDMVxV39KrxYVYeSrRQW2czlYrtGQQGg==
-----END EC PRIVATE KEY-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,6 @@
-----BEGIN PUBLIC KEY-----
MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQAfP+pBRcvboy/RkWltXNhc/cF29Ye
m4NcwlgoDVpYziBF3IrPJvvUOMH2BbudcylCN0F6rA5DybbPa7v8ZtjTmSUAyWlP
vSzTx68r5HeOMZ4slm1g27zw/47OsygwlTJb5qOwkmjmI90FhM6FgzFcVd/Sq8WF
WHkq0UFtnM5WK7RkEBo=
-----END PUBLIC KEY-----

Просмотреть файл

@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAzJEYKuhIeHvKqZZtJRDtQjg17ChAZtY/yJfNqv30xnzkzOZw
Vmy7NViVQIRnkCYvAMCstja+EpEpeW02LD83teNQRKM9Nie74g7ehDn6ZZCSdQQ5
4TQemt26hMfnFVaUl376p0E398IP1leHcvYOaiVgT/ffUhNhgIUJ5sIphtf4D1p5
bWFYvs/Gd+A+Fk38hnerpl7JRF4y6p5WGJzvXKKs0QVSaQ1NHD7L1tQ0xTKra3FS
/BGwD7ZdgBZerqzBPgxRjuxzq2DQJlHtvINsFjJhsMtwI11UV5+tIBOEWPSBTIoQ
pUWGB+/4jZ44IpKlBDQuc1kqa2Y8+eO53Gxn+QIDAQABAoIBAQDK3zIai1YjtpDb
8oS3d7v0Kg6/74M++Uc0Ref/pe90UTQPSJEsBJT8aKdL3oNeX5/JnUsrQcrqWu/I
rlhFNUSoq5BVIZZ4+JrJq3ldpKoAw4mbZt+Hycp4R2DMgftYHA8s1w75hCJfISPX
q+J2TjMpbXvAks/0c6gEbuvM382THSDa+bA+BvYwilBBT347WkLdtuN9J+9qFyV9
ROJRRMYh3xGOcgs/mmlOgTSubU3Q2sIQHBTLtngOA4g456g4IH5G09GoEpAIQA8e
G7xzmkv+ECtqe9V0A/9njWIXNbO+V+01dUDiAKnnT5uzbPGT48hnA05WLUAQO2qP
5ZE4H6shAoGBAPQUXR2ByYX0e/VBF3lUo94yikRae6giM0k8MQwE1Y49FfuZwqp8
7E4hmuxlOJnvAQjzIQoHawL0fO7qLkvYcDJPxT5ROCeHKOCyJ6tGmVojppqiuq1G
RpOZ2XfIEt00rQguufYIr0V7OeP2X27Sveq0sJ/CYgX4rGABvq5OOW91AoGBANaO
t5T4qkuuxvxARx65S+imTg66U4aGz25rCj7LvcVhKmm2XCYz1ynAR81Tnh/t0RMd
8M3mUxRZU1MrbMCeYZbt5ClWmMfHKtZa29PYYcvVvqNBnqlbPGD7fBK+JyGnnd57
CQLA0WnmSDT0vBOSN+wH/Gk2IX3ekLMGBk1Zzyn1AoGAUhsfj7N/NR6fLEtvOBNu
5Gof9QpzGoYWtoYXAbIGnMiTwoVg5LUNUOMhGHCcb7vknzwaWyNPrjjMZhpE5KK0
a1hGQ8ZSm4luCNglXAptv9LKUq53GZ7QUwqoCxE0t1Dm/B+r0sXtH/Rp7vOL+t3N
oUyTNcrP6q5SXiF4IW6TB5kCgYAwNDhCm+uGvWmvWrGf0Xmgd1yqKmqBmuAXqqzO
lu+33LCut23Ul2kL1EtNci/gdIm4hc2INOsNc1QpJ2RzkiHSyver4ezJVZHmPtuM
qNyv8wG1pBSFcB4Mm/OwMlCQWxw40+OeXrut0zL90s4+h2dQ/CpVaPf1U3+m+P+J
eVf10QKBgDJZ0xVeun+aPMXqcwNppqvfKfMWsLb/Xx77O3q9SYG1JRXgIIneL8nD
8RwVQn8PbPcqdayFHZrmwhdgzIH/7dVEwd+QQKzeYos8Fvc4egpTZUrmZ1y5XeFt
OHl9TmHLSA1h8cJj0HrWCjyyi2cW+2PhY9K88V57KEn0yv5hjoBg
-----END RSA PRIVATE KEY-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzJEYKuhIeHvKqZZtJRDt
Qjg17ChAZtY/yJfNqv30xnzkzOZwVmy7NViVQIRnkCYvAMCstja+EpEpeW02LD83
teNQRKM9Nie74g7ehDn6ZZCSdQQ54TQemt26hMfnFVaUl376p0E398IP1leHcvYO
aiVgT/ffUhNhgIUJ5sIphtf4D1p5bWFYvs/Gd+A+Fk38hnerpl7JRF4y6p5WGJzv
XKKs0QVSaQ1NHD7L1tQ0xTKra3FS/BGwD7ZdgBZerqzBPgxRjuxzq2DQJlHtvINs
FjJhsMtwI11UV5+tIBOEWPSBTIoQpUWGB+/4jZ44IpKlBDQuc1kqa2Y8+eO53Gxn
+QIDAQAB
-----END PUBLIC KEY-----

Просмотреть файл

@ -0,0 +1,39 @@
-----BEGIN RSA PRIVATE KEY-----
MIIG5AIBAAKCAYEAt6f3peMvTmrOtW1Zzzl1z05xGYVck3KeWnBb/TvPSZp8XczO
a0QNCLJ+FFmvP7wyGrz7tsN3QNveITRqsk9/1PA3MQfxHCmBziSj2NDXPynuquwf
u+ew5mhgWsI/Wbx7UpAgXWTfdmrLkcWwCXqbfR74emxVsMiItpg8aOwFhihid4zi
EamMc3UX9IB6zKJN+VY3RHWa1QnFvMYXDTHjuqFIYGEGR8I5ZlJZDV/Cxkg1Lqqt
Xjd1gNglmcRVDOaMtvLy3WvObb8QLAJsdq+3xUzgh6YWLb9ErQZ5WdbdEL3YVQwR
Ci6yYHk5dOMyLfGUtqJg6zxMLxW8Abso5ZAn/4ULOlgsTwCZ+IT7fMa+QnrF6CjJ
tD93U2jdVURTGUo9PV41SO43L69Z83FqzJUZhIZNScERIZd5Km4EAhNJN59DNge7
T+089Y3iWmLGnywwoFYjoEjXVEizZPdvSSZjMECP3lLF0peFiWhcN2V2p3Q1yY3F
F1TfNleTsIydz5O/AgMBAAECggGAN0jIs5b/1oswTkzsjASwAgeK5DPQ+lG2eWL5
TfGDJJTsew/70y5Y/hU8/sNAjd8I9iONYibU7yFAbJ5qv+JOiLsG4iuR2Phlqrg8
2jeDk+/7eFg79UR5a+JfnvJ6P3kNZn0cQQDsg6kCPo9Tvoa556A7DB8wbFbxUIXj
KXJi90+Q1IwEQWzYaqkE3QUP8impbzUUzfbY9OhMLdczeTVbaALE1r5eNZuxy6te
QzhgWW/DEpkuNv5a0L5AE1mWgJulnZvR1KcYDPc8PxbRfORbydXlOvKTwBOPbcUT
I9qtq3gaMg+sao6qvBF4XjUBnsAclFT9G2H0loCP+WcrkFJTgdsqucQfRm10VERm
ZoebyQcLMkk/yoaPFaoKHwuJJr6dQ5lAu5JJ/QYMGqd59ubq5uFJbfbD4QoCLj4p
4kXrnqGzPhDAtoAyh1z9IvX0U0qvax8abl/6Ymk7raWL3zL8IfsF8JFlVni1bKND
XuZ92aHhaEbAYu3vIcKQX6eTC1kBAoHBANzxShtQj/JzHsya0atQS4EpixxzyBnd
NryUkLgvIDPbvL+DrHq1OLV95FvLhyNT+n9z6y0MAiBuI9oM0eTAfwS+/Me6fpaX
SONXZ7dtvBJEMUMtrAfAok28R2SdPCDPi1ZYAL4V9AzkbiIRuNOdp4ivJykg84D5
Wdmy36JnTAj5CCq+/hLDes/gJiajaY2slkyGcmYNg4dZj4j3b5rXZdRoew7y3BRo
LOJ65a5zMSysi01OWkIynOtacXPtRZEOVwKBwQDUzBl949nwZ9o+j3X/M+q7f/Ip
5r8yuV3baqFM+RtAd7sdZfJxOaqHHLPHUqKwEbmCUicMeZSxKDyr2DcjuCYfVSdM
bZmmzko1dD0My8teD7NAbvFmpsdeNgkNpYeuQcEHvoTUgxB8EgSEF2HZz8QGED3O
Z2kZ5bXxbWKnuEQhZW1/6rOYFymnPfmozqIWSWC9gsyqoPMEUp3aUreS6sSc8e50
9pI7MyMECbMiC2+gJ9wu5+U0dHOA8u63o+CddNkCgcAyzTRJ9Yszpy60wwBk0LCb
wU6gOysOb2PvloV0JDnWUrcingchq9ufN5QzWyf2go+9kIzJrdIrXMfXkk0MuQo7
sCJ1VjdXLu/ufiF19sBgvtdI6A5/Ndbb4ufThafWr4INV2zMSEX2VOvR35tM5Rop
foSVm2MCC9OSD+QF9pRwF7q+AW5wKAxsEdET300c60sfy2Ywevj8PSaYyrQZuV9L
qL5q4IKkGpP/e1ymcQwkhoP9QX/VasfUAdbGXg853D8CgcEA0JlS0+msFtJ3SqRv
U0CddjgyN4kPHLZBn3mjrUT0xfmY33S0ePHCjLhCM7555Ic7htjpln0ImbGL6BkH
1GgMVuKup2k5Gh9W95d+0TBlp0tUuHEJC0uqXFwz+8CshNHIW8MTiw7/9d/jtWkG
bvIQgrEhJViR2uUnugc0kp07jFFVSfPVId5y4pMKTcRhd99uidfSseEc2Lv0KbS0
Z7zkB8XRr66WIpo6VRb9Fv6G6kSovwJr2UPehiWehT6MTU3hAoHBALH+NJUVlGXi
RPs1XtY35lIPVGbLeZrqppXCALJsuYs+oqsr2OR3ysLS9MMItMPa8RXAgsp6d2Uq
OfuStTqAiWRLHR6etrLH1FKae2ab91rEW4IG+bsc3gMDOPfJ2+Qtp3mMOsKt2zqw
ErKWoXabnp52n+SMs1M85+d0Wg6rwwigpKX+Xssqx5UWSFTXUzVdRw61G+C6I81H
OdbJofM85KxxjjSUqbBfUgxrEWkCasJV8XXPikK5oX7cJx1baJBoLA==
-----END RSA PRIVATE KEY-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,11 @@
-----BEGIN PUBLIC KEY-----
MIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAt6f3peMvTmrOtW1Zzzl1
z05xGYVck3KeWnBb/TvPSZp8XczOa0QNCLJ+FFmvP7wyGrz7tsN3QNveITRqsk9/
1PA3MQfxHCmBziSj2NDXPynuquwfu+ew5mhgWsI/Wbx7UpAgXWTfdmrLkcWwCXqb
fR74emxVsMiItpg8aOwFhihid4ziEamMc3UX9IB6zKJN+VY3RHWa1QnFvMYXDTHj
uqFIYGEGR8I5ZlJZDV/Cxkg1LqqtXjd1gNglmcRVDOaMtvLy3WvObb8QLAJsdq+3
xUzgh6YWLb9ErQZ5WdbdEL3YVQwRCi6yYHk5dOMyLfGUtqJg6zxMLxW8Abso5ZAn
/4ULOlgsTwCZ+IT7fMa+QnrF6CjJtD93U2jdVURTGUo9PV41SO43L69Z83FqzJUZ
hIZNScERIZd5Km4EAhNJN59DNge7T+089Y3iWmLGnywwoFYjoEjXVEizZPdvSSZj
MECP3lLF0peFiWhcN2V2p3Q1yY3FF1TfNleTsIydz5O/AgMBAAE=
-----END PUBLIC KEY-----

Просмотреть файл

@ -0,0 +1,51 @@
-----BEGIN RSA PRIVATE KEY-----
MIIJKgIBAAKCAgEA3J+sKKSUS2AWjfOObdNZL1HnROsmHl4KM+w9E8uBvhmeRvEB
g/v3I3EFR2tHGvRiFAvxnU6ocdKnzAmU+qzs0lKbkqIs9NjvCxNcVClwZZ5+QNlF
p8FjVjf8rtWpYq/qbo2WCqMudZtk2SHZ1XEPIeL9blGG0J9RKAKhlHNeWiRxzJgl
ponaB/TQToFfvab2iV7rwyYzObhKPRXgw6QFqVueHBKCJlOHUJDwiaHBq9h89l4i
svcwafRIqGKr25H1PZpa5qB6TlDtBxfODAwFJsKZljvAPaTLCd/1cNPOiZ8G3IFe
l5GPuv7/9ZirVeulZ0RWWTYIO5ikFrvNG/nVUuzKG11q6tyMXhYeQRGAy10udnQ6
emggtW7vA7ev8GkdQUNBmQasWvZaTdRyTjV88AUiYMgz9g5cu6UYFTCFdgUhoPba
xEd6w1JJP9GUsdIIY9aDayj2Nsf4vuwiM3RpW+YrOJIPlkRuY0XuWFrF37lVi8iI
pMsgTO3XoalOg6GCW9TmHEgJkuETyLHYw84zRF40z6fTjDyGp7YChwOinmRcBF6T
oVpYxsosAzUk2QfNKa5IjuRdDXEucodw/1ViAENE2m58QPNFWcSZ9FYckBA+uRn4
kHffdFATR9Vx1Hh3cPESuDwXh8AzFwFuOLOATaSHkaQfGV6PQHgT7NUKv/kCAwEA
AQKCAgA1mY1H6oQks9mG7y8hO4GlX26ibca7BfnQl4pXLs/8kVjEv3SwzhxCvgic
S1HhGJJjcGto3l1KGfWuOn25UR3QE0W8oC3v5mxc8n0x7UdjSNg/hQnJMdCid8Op
7jrSwQ5hgYB8YRy+cdxUbEbx9h/JCc6saJ4qPSqIX+tFl6nKmKQVIrmy9jbETBP3
nrLV7qRix27b4IH9eep/YLtUjJrbhGirRUvdZ9muFyh5J5VX3KavbDtd43Qdqb2l
OyOpmpJMPx3qff543GxZlsz2XE08F3cc6rNPxqOVaJXGrY62HK6cD8odZL3Ynm8t
CcRGgZOTvSSFU/04DWOAKmwwacgLg8ieVGegnPsDoSrlRFK4+knpMxiUNbGdP5i4
3EZCzeFdL1uzHkvzhZz/5H8JYgYEK0agpVdDhiBnJZDhswicyGgP3WvjIUq6xWzk
7ziB0zuqa2vK41YunISRT+xrhvy3vWSeClYGQMhTkZ9voW6LcYKO788Res9MXx56
hPsw3Xc/uE2s9ZY5/FYXqn5rim0Tq5LGR2+U18FvWkb8VNWUSKOHaViBr2xCJp8c
keiRzEvyaEzuH9Na4mtgBQws3rKCvF0q7A7D/o308hG1r1wz9FnvmhrEN5/zVXdK
VlFpzUos2YuQm+lBv4TGrr8knd2StkbCFW6az+vPJMr35insCQKCAQEA/W3Tx0BL
UmiI1KngxBkLy42AgxWZ5n0isLk4rZSR01qukbStY8yNKNcswKmhBHKa8dBdEc7n
VjCBaA44DgnkKXzbnZcLCyZSaFl4657embH9HarcoFB8gM82caH57OuJhmoBqJjm
oxwRfvdyvff4gVAVopuuZorBKUZpDnIIEwHmThqZ2vsdjKdYsOwAz5aqVFhKSAIK
4/eH9FgxB3w4Q81RXe6kFxTnraJgmrzrQnao67kfOFIjvyWZKI7ypV4d7m07sMz1
JUYzTZuiyIcMOzDwUYHH/t1L+Mj/GcCTFKWaJsljd166AedWe85T/mnGax8kGPq4
QjtQGriW+8j5AwKCAQEA3tylyhmxP4rSQx5JGQWmNovoAHyD7DWU+Xm7pwvJyxr8
q68H92Ws6dV9mbOuG2iUqSh4HtdknrSuKgBTNzgC55/g8o9QtQxw6UyC4odJFCtZ
U85TcZLidnIlVNFEwvIGTjEAIjghtZpoxSXC5sMVnsMda/aGQ6SkAeBlmdY/J9sG
j40jIA3arck1sagz8pt5hIAKXwyCKRdavJREPMEeiu9clU54lcfA1nrbJobeSh4G
PR7Q/5giS4O+xSuoYGes+CLIK9vdUzDXKnMl5i1/tQ9Dp0W06kMI1jPwNj7vqxRW
Q5t0/3l12LAspAP5uMA1zkUlabAg8w+OeEUrD9ysUwKCAQEApuHvl0HLV9TmZcQH
8pnbnorrmWZcFd9JPL57iDJRZLBOTDyCATntqnsnSSdqlJczWREweE2bILKIRJE4
cGYrDPbfV4LjDtCJa5Wffuj7BJKkbyjYZ+kYU2ogG+vhvBXOVejwdqlZFwegrc8c
i+QCjITD+nQx/+xXDmsDOzP0BTA3DC+QKRc7eieoy7hdQFWijDAnmgteSIfzyv9Y
Kemu01ccwZIoE9r8ROasXrkQ4o9o5PDekiPkzjZgCMk5F5RGeX8M03vj4ku79NsL
8qibcU7ksYeYv0fSg104PykEsY/rVqc/DJggPKit1pEj1mCo/FlhV+Gh/Fs6gJ4V
LnBFKQKCAQEAt9ST4Ng+j+aHuBuEOmKhjz7qeXQ8MZylLQAQHSOpKaMyJr/zN0wk
TKHwv9cp16v1bG9YXkBX3F23iCfKfLL0GnGT0SEMdrszbA3TrN3hFwUG4w0/YWDC
8ucHCiawrImNT/Q1YwSgMbeTkoOqeEUVUWcqnsK0T5nAO1gJFtNWNx8BE2pdPfSP
nGhrpQbVCtraasRfSbX8q7569zDp9J9r/TiiSvp2lz41P/YJTYdUVxjbFpGT3jF0
oIuk0elIM3VxhSDTsvHiZ9vSsE5ZRbvkKsrTiGgEanQvFtmy3FwfwCO/YHccFBvx
bHMt74Dj/VR3TZVV3g8NrtD3ORf9BFGHxwKCAQEAwqjRIbxdmsmbM7K2smZNGcG0
Jqz6o+RhDLqTVUR7ZU0SpROIBosWYPPROsS275Rk7kA4PKyirpDLrIFecjTnMd/P
kpNfUEK+w/Zzp2GyQf08m8EI7WU18SCF+3iRMOFBDHIVBqpO5HjiQDC/4Bv+ik4H
Z/U3zhwtyFGF7lHwAbGWdqGdbLRAgfmyXTlHGU0h9N3vcechVIdQfHO6uCciGAtX
2GqGXvo8ocQI7Jv7bogbwZYZH/AB6WilIlvoiaC6vBNi0/46j+tdRD84sjWSq1Zk
p2IMuxs7AtuwmWXeOe1aOh6TrqwupuqBBjAJgPsbw5Lilm/JMcFC5FAPCaN4ww==
-----END RSA PRIVATE KEY-----

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,14 @@
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA3J+sKKSUS2AWjfOObdNZ
L1HnROsmHl4KM+w9E8uBvhmeRvEBg/v3I3EFR2tHGvRiFAvxnU6ocdKnzAmU+qzs
0lKbkqIs9NjvCxNcVClwZZ5+QNlFp8FjVjf8rtWpYq/qbo2WCqMudZtk2SHZ1XEP
IeL9blGG0J9RKAKhlHNeWiRxzJglponaB/TQToFfvab2iV7rwyYzObhKPRXgw6QF
qVueHBKCJlOHUJDwiaHBq9h89l4isvcwafRIqGKr25H1PZpa5qB6TlDtBxfODAwF
JsKZljvAPaTLCd/1cNPOiZ8G3IFel5GPuv7/9ZirVeulZ0RWWTYIO5ikFrvNG/nV
UuzKG11q6tyMXhYeQRGAy10udnQ6emggtW7vA7ev8GkdQUNBmQasWvZaTdRyTjV8
8AUiYMgz9g5cu6UYFTCFdgUhoPbaxEd6w1JJP9GUsdIIY9aDayj2Nsf4vuwiM3Rp
W+YrOJIPlkRuY0XuWFrF37lVi8iIpMsgTO3XoalOg6GCW9TmHEgJkuETyLHYw84z
RF40z6fTjDyGp7YChwOinmRcBF6ToVpYxsosAzUk2QfNKa5IjuRdDXEucodw/1Vi
AENE2m58QPNFWcSZ9FYckBA+uRn4kHffdFATR9Vx1Hh3cPESuDwXh8AzFwFuOLOA
TaSHkaQfGV6PQHgT7NUKv/kCAwEAAQ==
-----END PUBLIC KEY-----

Просмотреть файл

@ -0,0 +1,51 @@
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,0F2D269149D56431
9HIOY2Nh7BRcE5i525LwBEYVRB+XvoWK/HG7X/Pw2rGgBn5wGq1/HHVda4Nc4wL/
GjLEkvBIP1IxkMjSvInCCZvUUKI7EZjaUpKAub8Yc39QEWYFSGbvExMpEHe72Rz0
RTmea3ZoYHN2UlHc5mC9qCznS686q5NrjLDy9/QrEwSjDDD317vI4mNcKtcx0FfY
UCCYGhJFsSElas5+i/zfMsUnPWHxBoxME66QgPptk+q+vwI96ocZeWEfirvkoRgF
oQD/+iMlmELNqgGxDBNI+1UCEj59DYmJFGTsL7n0p6e5wMJB28nH0O7MhzOOL7mV
r9CVltiLRPTlVVQkfhcOkJFCrB5RNGKCPwjVxQXzv1KyakT6Wb71CXBFesQ+0svc
Y/40inDHKKMTUxpoi5MZTi99AIlHe3mTwxaD1Wu6I0ncCil8cEGekyIb1xUE6tjE
Nnun+hBDWYr5x7BIrtdTo3sfANsy7G4z/Ie7bWqahcdBaU7eKOcMyeKzXM1zcsOV
cuT5qMY5yvUp3xnhKek3/+zMVHs3/IwKsue1dHDwjJYIwzA2bTSqRn/hCJzuj4Np
m6eXh9LbkCFEUrV3A0sbStS0gbcCz5OKq5L23ZbuTkW0Ok1WJ8iMHkLf7v2TSAwV
AF9DQePiw3yq1p+xQOeo6q1b4z9A/yXoHKeMrSYfDKawP0kflzqO1qFedV4zPxXy
zmWfxm++rZQsRje2dfFT3cngDDY/bPU5BtGA6s/0icJh9dhbSYeIhlq8/7foAQXS
AlJVVqrBAU/R/xajxoFK5G2f6fu0vP+e3ukBkbU8wsdrVHLhf1MOW4GMs/EfR5FM
zVsFtVDtyr+ehpNxNQClxIld1aa7EJto5v5qflR8+88DI4gvbI5kNnlhLLqtZrxg
KR7Vqjdlc5KUpnwQSWoE7WKvrB5fI4VCe9KtOgy8zv60XtVI2II9UovG3p5lBEYn
iHc5tVEi6qsbgQSrZ09kiUAqb3J4+zRfbmZF+LzeDvtHmG+h6B+0adx3l0AMM5tb
AxmF7TxfFFhaXNPhGVEXb/6unaSUtDBwFRABb9jgPNfm8cwHIdtzfbirXPc+PxBe
QNG+ZNdbM7kic5xayS3vPbYQzzzDDdwRz+EEbgtDy34xlcax5pcVAgrM72bWdolB
9Zj22Zcn8NGq52Qu9GobErw8hZWH1S4MY70Bj9ATaJDVaDQIyyDPK+SLOdRqGa9U
Klp6szHuARZYJrxBWVOmYxW6+oAPXuwL8JLgQTbSOZLVkrXjeQskaxvXQp/hltfb
0fBizVUe3MpltMZN4cgfqR7VfmB48/FonPSagEFkU1FA9oiagDFYYlqO7VIU6b1E
1lZ1n8YFoKv8J8FIoEi7jTZMaBl0fmXaiLwIc81JIZ916mZrK9mtRGKr0iu3GE5l
bvkhW0bs1ejbPDLvnx1IMP1ThWGtpgIZa9MRQO/6mBJlmwYsNgR1A6HlQXlgD6IX
WVkG0MrNXIG+poXJBoJSE6WrIx+gaeX8Iwkp+jPySo+0aBx4UFYlgz6JXB0TQqsp
FolS7ksQVV5Uhuo+bZXe0MHaqxtJ9Tgprbhydnln7DmwxRo5BbvehM0B7H4OYM8S
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIDgjCCAmoCCQD56NLDrVRYGDANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UEBhMC
VVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZW1kb25kMRMwEQYDVQQKEwpUZXN0
IFdvcmxkMRAwDgYDVQQLEwdzZWN0aW9uMQ8wDQYDVQQDEwZUZXN0ZXIxHDAaBgkq
hkiG9w0BCQEWDXRlc3RAdGVzdC5jb20wHhcNMTYxMDI2MTY0MjU2WhcNMTcxMDI2
MTY0MjU2WjCBgjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdS
ZW1kb25kMRMwEQYDVQQKEwpUZXN0IFdvcmxkMRAwDgYDVQQLEwdzZWN0aW9uMQ8w
DQYDVQQDEwZUZXN0ZXIxHDAaBgkqhkiG9w0BCQEWDXRlc3RAdGVzdC5jb20wggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqQe89IyI+hTlGcsja/sRbky98
dw5sv9AmjzeqZaAoJtpoUbfNA0uskoJYJBS0/ai8HVmvX+CmXuY741dj5bgt/MAy
34+upHWgAMrUtdkNmuxW+FM3dZChRQOcbC7q1FqPARL644wa62QJ6ZbveNcpAOER
LHtsROUPxhvEp8e0jpiTHxgHCFOy4UtaZy+fgS94sZAHAxdl/BCKXWo0wtxmxUZm
Wk2S5+ksbQE7nswROjr3XQrerYIizzeaHKVjp4KOoB5W1f1CLmW3gzPyB9dXlywM
zazvDzgvS3Pz9WloLytCqDIHXq3vPQsw48gISQ4OZDxYidJ8ByrsnDZCg7mhAgMB
AAEwDQYJKoZIhvcNAQEFBQADggEBAES4MYE0dQMJwNw8uDL51qpHibJvZiwXVTBc
f23h12tdZAMPW8sgiCNdZHKRH/NQ0LGvV61iD2IXlHnRfPT880wDGUJGn9PPcusx
mKAfwlZogVX/KdX4zrIlxIBBHwiYnqJHLldTYQFqCO8uQqNHjkgmSfZ6IRbcamcR
OqewlEWAK6Jc6ZPSGzkjTrntGKDoiBtH2g9+VrD8hibqC2K+4cyrkt+SGubh3jtW
1emPqajxmcw99SYmyZcjZZ25K6x/zaR905ACAzmFwsrnBjSwAHXzsWWZP8Y6nRjs
YmDigry7A/JhVfckoS1jw5YFjKkpZyzI97YXRSAaWr5F9jqFO8s=
-----END CERTIFICATE-----

Просмотреть файл

@ -0,0 +1,31 @@
-----BEGIN CERTIFICATE-----
MIICfzCCAegCCQD1giVgxjPtiTANBgkqhkiG9w0BAQUFADCBgzELMAkGA1UEBhMC
VVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMQ4wDAYDVQQKEwVBenVy
ZTEPMA0GA1UECxMGRGV2RGl2MRUwEwYDVQQDEwxBenVyZSBEZXZEaXYxHTAbBgkq
hkiG9w0BCQEWDnRlc3RAYXp1cmUuY29tMB4XDTE2MDkyOTE5MTcxNVoXDTE3MDky
OTE5MTcxNVowgYMxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJXQTEQMA4GA1UEBxMH
UmVkbW9uZDEOMAwGA1UEChMFQXp1cmUxDzANBgNVBAsTBkRldkRpdjEVMBMGA1UE
AxMMQXp1cmUgRGV2RGl2MR0wGwYJKoZIhvcNAQkBFg50ZXN0QGF6dXJlLmNvbTCB
nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAzU0BesajA0+OXjH/bMo9dKMf74QM
LYQO0UlhQoiuv15GUE+HvaeKXNLeOeuDmNSq2o+VDTsI6Ayr43c3vI/Jd0fcU5gV
amLekxDmgdk4yZkBZHOlUFaCdRew7ClTIKTfeW9EoVeCfu+zlkpGoOPksotSqc9m
WtS2GbnO2mvBL7UCAwEAATANBgkqhkiG9w0BAQUFAAOBgQB8sdHw1zLju4yNIW/x
JGC5YBe9WS+JTxdqxKqx/wLCq/nv+UlKaF4cICul4SYNSmM0brBxXr9tofdL+UlW
4ZUuFGh3z+uSu/7S/EWQJ8BjHBcMO3ypw11FnNpfhTMi2/rXF0NxgiRJyY38ROB5
aJqvrwKv8Gku9DLkj5H0bbjqgg==
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQDNTQF6xqMDT45eMf9syj10ox/vhAwthA7RSWFCiK6/XkZQT4e9
p4pc0t4564OY1Kraj5UNOwjoDKvjdze8j8l3R9xTmBVqYt6TEOaB2TjJmQFkc6VQ
VoJ1F7DsKVMgpN95b0ShV4J+77OWSkag4+Syi1Kpz2Za1LYZuc7aa8EvtQIDAQAB
AoGAaY2BCD3ejBI4MWflWmq0pCZGgh/THwe5kpL2xX1+0vdGkX4CXVkpg0YLaZ4T
/9y/pzWRPccvchcpvP6LkpAe1R/jsmfP8QedT2yDTf4T+mE1hyl4D5zyObHjQ+g6
uUMT6FpeTgoSkcU90PK+lF31igCitfVgeSNIC7Fq+9ZywWECQQDy7/13vNOfvNP7
bAF+IxWB+g4/kaapXp46tZxEejTIbSaRhuu36HF2+gN3J7UeP1kYpx3n3Qam7ydU
sMm+5XA9AkEA2Fbzajbs4F1bTH6bmvkShrqRbx+XIW/qnbOtGs7ds2VIcqQIwM5c
8Y1YvqBKn6LP5nd/qBAmvVjSAMdh73382QJAOWxWym28y/4zUTOnaqxaUh3MLmR8
M36lAhWZeWo1fcanHjD5GMB9yXSxSwH8wsiQg85EuGC7SMwwzMj49wF+tQJBALrL
oROF51P2590NuLe/9fIk52xGn4y8gJy4RnBOS/kZK8vovLIVvQTIYeb+qlBaGR7K
8YugnoKBTZpkjbhnVUkCQQDOQ8xVFCB3Jq93ovCv2aG97O+2gVr0AEhhLMbkjQX9
BLoda2hBGCyuX2QaC80S9kg9oUYJqbXJbS3GSe87OfYT
-----END RSA PRIVATE KEY-----

Просмотреть файл

@ -0,0 +1,42 @@
{
"attributes": {
"enabled": true,
"expires": null,
"not_before": null
},
"issuer_parameters": {
"name": "Self"
},
"key_properties": {
"exportable": true,
"key_size": 2048,
"key_type": "RSA",
"reuse_key": false
},
"lifetime_actions": [
{
"action": {
"action_type": "AutoRenew"
},
"trigger": {
"lifetime_percentage": 90
}
}
],
"secret_properties": {
"content_type": "application/x-pkcs12"
},
"x509_certificate_properties": {
"ekus": null,
"key_usage": [
"digitalSignature",
"nonRepudiation",
"keyEncipherment",
"keyAgreement",
"keyCertSign"
],
"subject": "C=US, ST=WA, L=Redmon, O=Test Noodle, OU=TestNugget, CN=www.mytestdomain.com",
"subject_alternative_names": null,
"validity_in_months": 60
}
}

Просмотреть файл

@ -0,0 +1,42 @@
{
"attributes": {
"enabled": true,
"expires": null,
"not_before": null
},
"issuer_parameters": {
"name": "Self"
},
"key_properties": {
"exportable": true,
"key_size": 2048,
"key_type": "RSA",
"reuse_key": false
},
"lifetime_actions": [
{
"action": {
"action_type": "AutoRenew"
},
"trigger": {
"lifetime_percentage": 90
}
}
],
"secret_properties": {
"content_type": "application/x-pkcs12"
},
"x509_certificate_properties": {
"ekus": null,
"key_usage": [
"digitalSignature",
"nonRepudiation",
"keyEncipherment",
"keyAgreement",
"keyCertSign"
],
"subject": "C=US, ST=WA, L=Redmond, O=TestO, OU=TestOU, CN=www.mytestdomain.com",
"subject_alternative_names": null,
"validity_in_months": 50
}
}

Просмотреть файл

@ -0,0 +1 @@
{"attributes": {"created": "2020-08-21T03:55:29+00:00", "enabled": true, "expires": null, "notBefore": null, "recoveryLevel": null, "updated": "2020-08-21T03:55:29+00:00"}, "id": "https://cli-test-kv-ct-6tckojcnz.vault.azure.net/certificates/cert2/policy", "issuerParameters": {"certificateTransparency": null, "certificateType": null, "name": "Self"}, "keyProperties": {"curve": null, "exportable": true, "keySize": 2048, "keyType": "RSA", "reuseKey": false}, "lifetimeActions": [{"action": {"actionType": "AutoRenew"}, "trigger": {"daysBeforeExpiry": null, "lifetimePercentage": 90}}], "secretProperties": {"contentType": "application/x-pkcs12"}, "x509CertificateProperties": {"basic_constraints": {"ca": false}, "ekus": ["1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.2"], "keyUsage": ["digitalSignature", "keyAgreement", "keyCertSign", "keyEncipherment", "nonRepudiation"], "subject": "C=US, ST=WA, L=Redmon, O=Test Noodle, OU=TestNugget, CN=www.mytestdomain.com", "subjectAlternativeNames": null, "validityInMonths": 60}}

Просмотреть файл

@ -0,0 +1,14 @@
{
"issuer_parameters": {
"name": "Self"
},
"key_properties": {
"exportable": true,
"key_size": 2048,
"key_type": "RSA",
"reuse_key": false
},
"secret_properties": {
"content_type": "application/x-pem-file"
}
}

Просмотреть файл

@ -0,0 +1,14 @@
{
"issuer_parameters": {
"name": "Self"
},
"key_properties": {
"exportable": true,
"key_size": 2048,
"key_type": "RSA",
"reuse_key": false
},
"secret_properties": {
"content_type": "application/x-pkcs12"
}
}

Просмотреть файл

@ -0,0 +1,32 @@
{
"attributes": {
"enabled": true,
"expires": null,
"not_before": null
},
"issuer_parameters": {
"name": "Unknown"
},
"key_properties": {
"exportable": true,
"key_size": 2048,
"key_type": "RSA",
"reuse_key": false
},
"secret_properties": {
"content_type": "application/x-pkcs12"
},
"x509_certificate_properties": {
"ekus": null,
"key_usage": [
"digitalSignature",
"nonRepudiation",
"keyEncipherment",
"keyAgreement",
"keyCertSign"
],
"subject": "C=US, ST=WA, L=Redmond, O=TestO, OU=TestOU, CN=www.mytestdomain.com",
"subject_alternative_names": null,
"validity_in_months": 50
}
}

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1 @@
TestSecretTestSecretTestSecretTestSecret

Просмотреть файл

@ -552,7 +552,7 @@ def load_arguments(self, _):
c.argument('metadata', nargs='+', help='Metadata in space-separated key=value pairs. This overwrites any existing metadata.', validator=validate_metadata)
with self.argument_context('network dns list-references') as c:
c.argument('target_resources', nargs='+', help='Space-separated list of resource IDs you wish to query.', validator=validate_subresource_list)
c.argument('target_resources', nargs='+', min_api='2018-05-01', help='Space-separated list of resource IDs you wish to query.', validator=validate_subresource_list)
with self.argument_context('network dns zone') as c:
c.argument('zone_name', name_arg_type)

Просмотреть файл

@ -187,7 +187,7 @@ def load_command_table(self, _):
network_private_endpoint_sdk = CliCommandType(
operations_tmpl='azure.mgmt.network.operations#PrivateEndpointsOperations.{}',
client_factory=cf_private_endpoints,
min_api='2018-08-01'
min_api='2020-06-01'
)
network_private_endpoint_dns_zone_group_sdk = CliCommandType(

Просмотреть файл

@ -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.
# --------------------------------------------------------------------------------------------

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,158 @@
interactions:
- request:
body: '{"sku": {"name": "Standard_RAGRS"}, "kind": "StorageV2", "location": "southcentralus",
"properties": {"encryption": {"services": {"blob": {}}, "keySource": "Microsoft.Storage"},
"supportsHttpsTrafficOnly": true}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
Content-Length:
- '212'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g -l --kind --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2019-06-01
response:
body:
string: ''
headers:
cache-control:
- no-cache
content-length:
- '0'
content-type:
- text/plain; charset=utf-8
date:
- Tue, 29 Sep 2020 05:52:48 GMT
expires:
- '-1'
location:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/01bcbe99-c705-45af-a240-a932975e63ea?monitor=true&api-version=2019-06-01
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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: 202
message: Accepted
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
ParameterSetName:
- -n -g -l --kind --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/01bcbe99-c705-45af-a240-a932975e63ea?monitor=true&api-version=2019-06-01
response:
body:
string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:52:48.9116614Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:52:48.9116614Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-09-29T05:52:48.8334016Z","primaryEndpoints":{"dfs":"https://cli000002.dfs.core.windows.net/","web":"https://cli000002.z21.web.core.windows.net/","blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available","secondaryLocation":"northcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://cli000002-secondary.dfs.core.windows.net/","web":"https://cli000002-secondary.z21.web.core.windows.net/","blob":"https://cli000002-secondary.blob.core.windows.net/","queue":"https://cli000002-secondary.queue.core.windows.net/","table":"https://cli000002-secondary.table.core.windows.net/"}}}'
headers:
cache-control:
- no-cache
content-length:
- '1880'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:06 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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: '{"name": "cli000002", "type": "Microsoft.Storage/storageAccounts"}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account check-name
Connection:
- keep-alive
Content-Length:
- '81'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- --name
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/checkNameAvailability?api-version=2019-06-01
response:
body:
string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"The storage
account named cli000002 is already taken."}'
headers:
cache-control:
- no-cache
content-length:
- '129'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:08 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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
version: 1

Просмотреть файл

@ -0,0 +1,150 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku --assign-identity --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-09-29T05:52:43Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- '436'
content-type:
- application/json; charset=utf-8
date:
- Tue, 29 Sep 2020 05:52:46 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: '{"sku": {"name": "Standard_LRS"}, "kind": "StorageV2", "location": "southcentralus",
"identity": {"type": "SystemAssigned"}, "properties": {"encryption": {"services":
{"blob": {}}, "keySource": "Microsoft.Storage"}, "supportsHttpsTrafficOnly":
true}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
Content-Length:
- '250'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --sku --assign-identity --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2019-06-01
response:
body:
string: ''
headers:
cache-control:
- no-cache
content-length:
- '0'
content-type:
- text/plain; charset=utf-8
date:
- Tue, 29 Sep 2020 05:52:52 GMT
expires:
- '-1'
location:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/cb94062d-db6b-4b8b-bd80-fe026a75b5f0?monitor=true&api-version=2019-06-01
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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: 202
message: Accepted
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
ParameterSetName:
- -n -g --sku --assign-identity --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/cb94062d-db6b-4b8b-bd80-fe026a75b5f0?monitor=true&api-version=2019-06-01
response:
body:
string: '{"identity":{"principalId":"09728fd6-13a1-4b8b-8fca-2032dceaba62","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:52:52.6459263Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:52:52.6459263Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-09-29T05:52:52.5521717Z","primaryEndpoints":{"dfs":"https://cli000002.dfs.core.windows.net/","web":"https://cli000002.z21.web.core.windows.net/","blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}}'
headers:
cache-control:
- no-cache
content-length:
- '1547'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:10 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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
version: 1

Просмотреть файл

@ -0,0 +1,86 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- account list-locations
Connection:
- keep-alive
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2016-06-01
response:
body:
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East
Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast
Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central
US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East
US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East
US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West
US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North
Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South
Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North
Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West
Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan
West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan
East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil
South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia
East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia
Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South
India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central
India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West
India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada
Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada
East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK
South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK
West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West
Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West
US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea
Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea
South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France
Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France
South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia
Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia
Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE
Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE
North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South
Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South
Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland
North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland
West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany
North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany
West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway
West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway
East","longitude":"10.752245","latitude":"59.913868"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsoutheast","name":"brazilsoutheast","displayName":"Brazil
Southeast","longitude":"-43.2075","latitude":"-22.90278"}]}'
headers:
cache-control:
- no-cache
content-length:
- '7320'
content-type:
- application/json; charset=utf-8
date:
- Tue, 29 Sep 2020 05:52:44 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
version: 1

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,285 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account show-connection-string
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -g -n -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:07 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:07 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:08 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:08 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:08 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:09 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:10 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Logging><Version>1.0</Version><Delete>False</Delete><Read>True</Read><Write>False</Write><RetentionPolicy><Enabled>True</Enabled><Days>1</Days></RetentionPolicy></Logging></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '264'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:10 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:10 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:10 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:10 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:10 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>true</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>true</Enabled><Days>1</Days></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:10 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:11 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:11 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
version: 1

Просмотреть файл

@ -0,0 +1,294 @@
interactions:
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:07 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:08 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:08 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:09 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:08 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:09 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:09 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:09 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>True</Enabled><IncludeAPIs>True</IncludeAPIs><RetentionPolicy><Enabled>True</Enabled><Days>1</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>True</Enabled><IncludeAPIs>True</IncludeAPIs><RetentionPolicy><Enabled>True</Enabled><Days>1</Days></RetentionPolicy></MinuteMetrics></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '446'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:10 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:11 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:11 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>1</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>1</Days></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:11 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:11 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:11 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:11 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:11 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:11 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:12 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
version: 1

Просмотреть файл

@ -0,0 +1,165 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -g -n
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:34 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: '{"keyName": "key1"}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys renew
Connection:
- keep-alive
Content-Length:
- '19'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -g -n --key
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/regenerateKey?api-version=2019-06-01
response:
body:
string: '{"keys":[{"keyName":"key1","value":"UhCgjzS5PQzqZVec20BcqauQfUE+NRgODs1pzNHNeuMCns2Fkvyrq4bvCF4lzPKlLiHm79pCPFEcDGLWvU/lbw==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:34 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
code: 200
message: OK
- request:
body: '{"keyName": "key2"}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys renew
Connection:
- keep-alive
Content-Length:
- '19'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -g -n --key
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/regenerateKey?api-version=2019-06-01
response:
body:
string: '{"keys":[{"keyName":"key1","value":"UhCgjzS5PQzqZVec20BcqauQfUE+NRgODs1pzNHNeuMCns2Fkvyrq4bvCF4lzPKlLiHm79pCPFEcDGLWvU/lbw==","permissions":"FULL"},{"keyName":"key2","value":"CK79A3EgBcwfwHJ4QnJZU+8xpyV5Yye7ozLhmnzekh2zfx2U0CffO/WlccUnY+AZLCenratI+PWEbURgJtmaww==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:35 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
status:
code: 200
message: OK
version: 1

Просмотреть файл

@ -0,0 +1,52 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account show-usage
Connection:
- keep-alive
ParameterSetName:
- -l
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/westus/usages?api-version=2019-06-01
response:
body:
string: '{"value":[{"unit":"Count","currentValue":92,"limit":250,"name":{"value":"StorageAccounts","localizedValue":"Storage
Accounts"}}]}'
headers:
cache-control:
- no-cache
content-length:
- '129'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:24 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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
version: 1

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,144 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account show
Connection:
- keep-alive
ParameterSetName:
- -g -n
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2019-06-01
response:
body:
string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002","name":"clitest000002","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:53:16.1030394Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:53:16.1030394Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-09-29T05:53:16.0093009Z","primaryEndpoints":{"blob":"https://clitest000002.blob.core.windows.net/","queue":"https://clitest000002.queue.core.windows.net/","table":"https://clitest000002.table.core.windows.net/","file":"https://clitest000002.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}}'
headers:
cache-control:
- no-cache
content-length:
- '1240'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:35 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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:
- storage account show
Connection:
- keep-alive
ParameterSetName:
- -g -n
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fake_group/providers/Microsoft.Storage/storageAccounts/clitest000002?api-version=2019-06-01
response:
body:
string: '{"error":{"code":"ResourceGroupNotFound","message":"Resource group
''fake_group'' could not be found."}}'
headers:
cache-control:
- no-cache
content-length:
- '102'
content-type:
- application/json; charset=utf-8
date:
- Tue, 29 Sep 2020 05:53:35 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-ms-failure-cause:
- gateway
status:
code: 404
message: Not Found
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account show
Connection:
- keep-alive
ParameterSetName:
- -g -n
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/fake_account?api-version=2019-06-01
response:
body:
string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Storage/storageAccounts/fake_account''
under resource group ''clitest.rg000001'' was not found. For more details
please go to https://aka.ms/ARMResourceNotFoundFix"}}'
headers:
cache-control:
- no-cache
content-length:
- '293'
content-type:
- application/json; charset=utf-8
date:
- Tue, 29 Sep 2020 05:53:36 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
x-content-type-options:
- nosniff
x-ms-failure-cause:
- gateway
status:
code: 404
message: Not Found
version: 1

Просмотреть файл

@ -0,0 +1,317 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01&$expand=kerb
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:31 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:32 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:33 GMT
etag:
- '"0x8D8643BFFFF10D2"'
last-modified:
- Tue, 29 Sep 2020 05:53:33 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:33 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004
response:
body:
string: ''
headers:
date:
- Tue, 29 Sep 2020 05:53:33 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-error-code:
- BlobNotFound
x-ms-version:
- '2018-11-09'
status:
code: 404
message: The specified blob does not exist.
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
If-None-Match:
- '*'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-blob-type:
- AppendBlob
x-ms-date:
- Tue, 29 Sep 2020 05:53:33 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:33 GMT
etag:
- '"0x8D8643C0069C00E"'
last-modified:
- Tue, 29 Sep 2020 05:53:34 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
headers:
Connection:
- keep-alive
Content-Length:
- '1024'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:33 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004?comp=appendblock
response:
body:
string: ''
headers:
content-length:
- '0'
content-md5:
- DzQ7CTESaiDxM9Z8KwGKOw==
date:
- Tue, 29 Sep 2020 05:53:33 GMT
etag:
- '"0x8D8643C0074975A"'
last-modified:
- Tue, 29 Sep 2020 05:53:34 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-append-offset:
- '0'
x-ms-blob-committed-block-count:
- '1'
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:33 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=list&maxresults=5000
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><EnumerationResults
ServiceEndpoint=\"https://clitest000002.blob.core.windows.net/\" ContainerName=\"cont000003\"><MaxResults>5000</MaxResults><Blobs><Blob><Name>blob000004</Name><Properties><Creation-Time>Tue,
29 Sep 2020 05:53:34 GMT</Creation-Time><Last-Modified>Tue, 29 Sep 2020 05:53:34
GMT</Last-Modified><Etag>0x8D8643C0074975A</Etag><Content-Length>1024</Content-Length><Content-Type>application/octet-stream</Content-Type><Content-Encoding
/><Content-Language /><Content-MD5 /><Cache-Control /><Content-Disposition
/><BlobType>AppendBlob</BlobType><LeaseStatus>unlocked</LeaseStatus><LeaseState>available</LeaseState><ServerEncrypted>true</ServerEncrypted></Properties></Blob></Blobs><NextMarker
/></EnumerationResults>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:33 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:34 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004
response:
body:
string: ''
headers:
accept-ranges:
- bytes
content-length:
- '1024'
content-type:
- application/octet-stream
date:
- Tue, 29 Sep 2020 05:53:34 GMT
etag:
- '"0x8D8643C0074975A"'
last-modified:
- Tue, 29 Sep 2020 05:53:34 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-committed-block-count:
- '1'
x-ms-blob-type:
- AppendBlob
x-ms-creation-time:
- Tue, 29 Sep 2020 05:53:34 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
If-None-Match:
- '*'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:34 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004
response:
body:
string: ''
headers:
date:
- Tue, 29 Sep 2020 05:53:34 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-error-code:
- UnsatisfiableCondition
x-ms-version:
- '2018-11-09'
status:
code: 400
message: The request includes an unsatisfiable condition for this operation.
version: 1

Просмотреть файл

@ -0,0 +1,991 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01&$expand=kerb
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:57 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11997'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:57 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:58 GMT
etag:
- '"0x8D8643C0F507E0C"'
last-modified:
- Tue, 29 Sep 2020 05:53:59 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:58 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:58 GMT
etag:
- '"0x8D8643C0F507E0C"'
last-modified:
- Tue, 29 Sep 2020 05:53:59 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-has-immutability-policy:
- 'false'
x-ms-has-legal-hold:
- 'false'
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:59 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:59 GMT
etag:
- '"0x8D8643C0F507E0C"'
last-modified:
- Tue, 29 Sep 2020 05:53:59 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers />'
headers:
Connection:
- keep-alive
Content-Length:
- '60'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-blob-public-access:
- blob
x-ms-date:
- Tue, 29 Sep 2020 05:53:59 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C0FED3167"'
last-modified:
- Tue, 29 Sep 2020 05:54:00 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:59 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C0FED3167"'
last-modified:
- Tue, 29 Sep 2020 05:54:00 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-blob-public-access:
- blob
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:00 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C0FED3167"'
last-modified:
- Tue, 29 Sep 2020 05:54:00 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-blob-public-access:
- blob
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers />'
headers:
Connection:
- keep-alive
Content-Length:
- '60'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:00 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C107E8F31"'
last-modified:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:00 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C107E8F31"'
last-modified:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:00 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:01 GMT
etag:
- '"0x8D8643C107E8F31"'
last-modified:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-has-immutability-policy:
- 'false'
x-ms-has-legal-hold:
- 'false'
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:01 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?comp=list&maxresults=5000
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><EnumerationResults
ServiceEndpoint=\"https://clitest000002.blob.core.windows.net/\"><MaxResults>5000</MaxResults><Containers><Container><Name>cont000003</Name><Properties><Last-Modified>Tue,
29 Sep 2020 05:54:01 GMT</Last-Modified><Etag>\"0x8D8643C107E8F31\"</Etag><LeaseStatus>unlocked</LeaseStatus><LeaseState>available</LeaseState><HasImmutabilityPolicy>false</HasImmutabilityPolicy><HasLegalHold>false</HasLegalHold></Properties></Container></Containers><NextMarker
/></EnumerationResults>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:01 GMT
x-ms-meta-foo:
- bar
x-ms-meta-moo:
- bak
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:02 GMT
etag:
- '"0x8D8643C11701FBF"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:02 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:03 GMT
etag:
- '"0x8D8643C11701FBF"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-meta-foo:
- bar
x-ms-meta-moo:
- bak
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:02 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:03 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:03 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:03 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
If-Modified-Since:
- Fri, 01 Apr 2016 12:00:00 GMT
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:03 GMT
x-ms-lease-action:
- acquire
x-ms-lease-duration:
- '60'
x-ms-proposed-lease-id:
- abcdabcd-abcd-abcd-abcd-abcdabcdabcd
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=lease
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:04 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-lease-id:
- abcdabcd-abcd-abcd-abcd-abcdabcdabcd
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:04 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:04 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-has-immutability-policy:
- 'false'
x-ms-has-legal-hold:
- 'false'
x-ms-lease-duration:
- fixed
x-ms-lease-state:
- leased
x-ms-lease-status:
- locked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:04 GMT
x-ms-lease-action:
- change
x-ms-lease-id:
- abcdabcd-abcd-abcd-abcd-abcdabcdabcd
x-ms-proposed-lease-id:
- dcbadcba-dcba-dcba-dcba-dcbadcbadcba
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=lease
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-lease-id:
- dcbadcba-dcba-dcba-dcba-dcbadcbadcba
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:04 GMT
x-ms-lease-action:
- renew
x-ms-lease-id:
- dcbadcba-dcba-dcba-dcba-dcbadcbadcba
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=lease
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-lease-id:
- dcbadcba-dcba-dcba-dcba-dcbadcbadcba
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:05 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-has-immutability-policy:
- 'false'
x-ms-has-legal-hold:
- 'false'
x-ms-lease-duration:
- fixed
x-ms-lease-state:
- leased
x-ms-lease-status:
- locked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:05 GMT
x-ms-lease-action:
- break
x-ms-lease-break-period:
- '30'
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=lease
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-lease-time:
- '30'
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:05 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:06 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-has-immutability-policy:
- 'false'
x-ms-has-legal-hold:
- 'false'
x-ms-lease-state:
- breaking
x-ms-lease-status:
- locked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:06 GMT
x-ms-lease-action:
- release
x-ms-lease-id:
- dcbadcba-dcba-dcba-dcba-dcbadcbadcba
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=lease
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:06 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:06 GMT
etag:
- '"0x8D8643C121F9246"'
last-modified:
- Tue, 29 Sep 2020 05:54:03 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-has-immutability-policy:
- 'false'
x-ms-has-legal-hold:
- 'false'
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:07 GMT
x-ms-version:
- '2018-11-09'
method: DELETE
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:06 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:07 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>ContainerNotFound</Code><Message>The
specified container does not exist.\nRequestId:77a1e868-801e-0002-4c24-96b228000000\nTime:2020-09-29T05:54:08.2336477Z</Message></Error>"
headers:
content-length:
- '225'
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:07 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-error-code:
- ContainerNotFound
x-ms-version:
- '2018-11-09'
status:
code: 404
message: The specified container does not exist.
version: 1

Просмотреть файл

@ -0,0 +1,294 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:54:25 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:25 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000004?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:26 GMT
etag:
- '"0x8D8643C1FC6C8B9"'
last-modified:
- Tue, 29 Sep 2020 05:54:26 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-blob-content-length:
- '16384'
x-ms-blob-type:
- PageBlob
x-ms-date:
- Tue, 29 Sep 2020 05:54:26 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000004/src
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:26 GMT
etag:
- '"0x8D8643C2022A35F"'
last-modified:
- Tue, 29 Sep 2020 05:54:27 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:26 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000004/src?comp=snapshot
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:26 GMT
etag:
- '"0x8D8643C2022A35F"'
last-modified:
- Tue, 29 Sep 2020 05:54:27 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'false'
x-ms-snapshot:
- '2020-09-29T05:54:27.6824333Z'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000003/listKeys?api-version=2019-06-01
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:54:27 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11998'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:27 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000003.blob.core.windows.net/cont000005?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:28 GMT
etag:
- '"0x8D8643C211A34DC"'
last-modified:
- Tue, 29 Sep 2020 05:54:28 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-copy-source:
- https://clitestu6w2b5gowwtpgmtq6.blob.core.windows.net/contvnybrdow7n3wpfkyk3ps/src?se=2020-09-30T05%3A54%3A28Z&sp=r&spr=https&sv=2018-11-09&sr=b&sig=JAdF%2BrVrL/YWgt0piNVFsfqw0Ajo9Datl4hxsPTAw1U%3D&snapshot=2020-09-29T05:54:27.6824333Z
x-ms-date:
- Tue, 29 Sep 2020 05:54:28 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000003.blob.core.windows.net/cont000005/backup?comp=incrementalcopy
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:29 GMT
etag:
- '"0x8D8643C21566DEF"'
last-modified:
- Tue, 29 Sep 2020 05:54:29 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-copy-id:
- a6c0aa1e-98bd-4a2b-ab7a-784fd0b09fb1
x-ms-copy-status:
- pending
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
version: 1

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,522 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01&$expand=kerb
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:47 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:47 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:48 GMT
etag:
- '"0x8D8643C090B0EB6"'
last-modified:
- Tue, 29 Sep 2020 05:53:48 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: "# --------------------------------------------------------------------------------------------\r\n#
Copyright (c) Microsoft Corporation. All rights reserved.\r\n# Licensed under
the MIT License. See License.txt in the project root for license information.\r\n#
--------------------------------------------------------------------------------------------\r\n\r\nimport
os\r\nimport re\r\nimport unittest\r\nfrom datetime import datetime, timedelta\r\nfrom
azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer,\r\n
\ JMESPathCheck, JMESPathCheckExists, NoneCheck,
api_version_constraint)\r\nfrom knack.util import CLIError\r\nfrom azure.cli.core.profiles
import ResourceType\r\n\r\nfrom azure.cli.command_modules.storage._client_factory
import MISSING_CREDENTIALS_ERROR_MESSAGE\r\nfrom ..storage_test_util import
StorageScenarioMixin\r\nfrom azure_devtools.scenario_tests import AllowLargeResponse\r\n\r\n\r\n@api_version_constraint(ResourceType.MGMT_STORAGE,
min_api='2016-12-01')\r\nclass StorageBlobUploadTests(StorageScenarioMixin,
ScenarioTest):\r\n @ResourceGroupPreparer()\r\n @StorageAccountPreparer(parameter_name='source_account')\r\n
\ @StorageAccountPreparer(parameter_name='target_account')\r\n def test_storage_blob_incremental_copy(self,
resource_group, source_account, target_account):\r\n source_file = self.create_temp_file(16)\r\n
\ source_account_info = self.get_account_info(resource_group, source_account)\r\n
\ source_container = self.create_container(source_account_info)\r\n self.storage_cmd('storage
blob upload -c {} -n src -f \"{}\" -t page', source_account_info,\r\n source_container,
source_file)\r\n\r\n snapshot = self.storage_cmd('storage blob snapshot
-c {} -n src', source_account_info,\r\n source_container).get_output_in_json()['snapshot']\r\n\r\n
\ target_account_info = self.get_account_info(resource_group, target_account)\r\n
\ target_container = self.create_container(target_account_info)\r\n self.storage_cmd('storage
blob incremental-copy start --source-container {} --source-blob '\r\n 'src
--source-account-name {} --source-account-key {} --source-snapshot '\r\n '{}
--destination-container {} --destination-blob backup',\r\n target_account_info,
source_container, source_account,\r\n source_account_info[1],
snapshot, target_container)\r\n\r\n def test_storage_blob_no_credentials_scenario(self):\r\n
\ source_file = self.create_temp_file(1)\r\n self.cmd('storage
blob upload -c foo -n bar -f \"' + source_file + '\"', expect_failure=CLIError)\r\n\r\n
\ @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n def test_storage_blob_upload_small_file(self,
resource_group, storage_account):\r\n for blob_type in ['block', 'page']:\r\n
\ self.verify_blob_upload_and_download(resource_group, storage_account,
1, blob_type, 0)\r\n\r\n @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n
\ def test_storage_blob_upload_midsize_file(self, resource_group, storage_account):\r\n
\ for blob_type in ['block', 'page']:\r\n self.verify_blob_upload_and_download(resource_group,
storage_account, 4096, 'block', 0)\r\n\r\n def verify_blob_upload_and_download(self,
group, account, file_size_kb, blob_type,\r\n block_count=0,
skip_download=False):\r\n local_dir = self.create_temp_dir()\r\n local_file
= self.create_temp_file(file_size_kb)\r\n blob_name = self.create_random_name(prefix='blob',
length=24)\r\n account_info = self.get_account_info(group, account)\r\n\r\n
\ container = self.create_container(account_info)\r\n\r\n self.storage_cmd('storage
blob exists -n {} -c {}', account_info, blob_name, container) \\\r\n .assert_with_checks(JMESPathCheck('exists',
False))\r\n\r\n self.storage_cmd('storage blob upload -c {} -f \"{}\"
-n {} --type {}', account_info,\r\n container, local_file,
blob_name, blob_type)\r\n self.storage_cmd('storage blob exists -n {}
-c {}', account_info, blob_name, container) \\\r\n .assert_with_checks(JMESPathCheck('exists',
True))\r\n self.storage_cmd('storage blob list -c {} -otable --num-results
1', account_info, container)\r\n\r\n show_result = self.storage_cmd('storage
blob show -n {} -c {}', account_info, blob_name,\r\n container).get_output_in_json()\r\n
\ self.assertEqual(show_result.get('name'), blob_name)\r\n if blob_type
== 'page':\r\n self.assertEqual(type(show_result.get('properties').get('pageRanges')),
list)\r\n else:\r\n self.assertEqual(show_result.get('properties').get('pageRanges'),
None)\r\n\r\n expiry = (datetime.utcnow() + timedelta(hours=1)).strftime('%Y-%m-%dT%H:%MZ')\r\n
\ sas = self.storage_cmd('storage blob generate-sas -n {} -c {} --expiry
{} --permissions '\r\n 'r --https-only', account_info,
blob_name, container, expiry).output\r\n self.assertTrue(sas)\r\n self.assertIn('sig',
sas)\r\n\r\n self.storage_cmd('storage blob update -n {} -c {} --content-type
application/test-content',\r\n account_info, blob_name,
container)\r\n\r\n self.storage_cmd('storage blob show -n {} -c {}',
account_info, blob_name, container) \\\r\n .assert_with_checks(\r\n
\ [JMESPathCheck('properties.contentSettings.contentType', 'application/test-content'),\r\n
\ JMESPathCheck('properties.contentLength', file_size_kb * 1024)])\r\n\r\n
\ # check that blob properties can be set back to null\r\n self.storage_cmd('storage
blob update -n {} -c {} --content-type \"\"',\r\n account_info,
blob_name, container)\r\n\r\n self.storage_cmd('storage blob show -n
{} -c {}', account_info, blob_name, container) \\\r\n .assert_with_checks(JMESPathCheck('properties.contentSettings.contentType',
None))\r\n\r\n self.storage_cmd('storage blob service-properties show',
account_info) \\\r\n .assert_with_checks(JMESPathCheck('hourMetrics.enabled',
True))\r\n\r\n if not skip_download:\r\n downloaded = os.path.join(local_dir,
'test.file')\r\n\r\n self.storage_cmd('storage blob download -n {}
-c {} --file \"{}\"',\r\n account_info, blob_name,
container, downloaded)\r\n self.assertTrue(os.path.isfile(downloaded),
'The file is not downloaded.')\r\n self.assertEqual(file_size_kb
* 1024, os.stat(downloaded).st_size,\r\n 'The download
file size is not right.')\r\n self.storage_cmd('storage blob download
-n {} -c {} --file \"{}\" --start-range 10 --end-range 499',\r\n account_info,
blob_name, container, downloaded)\r\n self.assertEqual(490, os.stat(downloaded).st_size,\r\n
\ 'The download file size is not right.')\r\n\r\n
\ # Verify the requests in cassette to ensure the count of the block requests
is expected\r\n # This portion of validation doesn't verify anything
during playback because the recording\r\n # is fixed.\r\n\r\n def
is_block_put_req(request):\r\n if request.method != 'PUT':\r\n return
False\r\n\r\n if not re.search('/cont[0-9]+/blob[0-9]+', request.path):\r\n
\ return False\r\n\r\n comp_block = False\r\n has_blockid
= False\r\n for key, value in request.query:\r\n if
key == 'comp' and value == 'block':\r\n comp_block = True\r\n
\ elif key == 'blockid':\r\n has_blockid =
True\r\n\r\n return comp_block and has_blockid\r\n\r\n requests
= self.cassette.requests\r\n put_blocks = [request for request in requests
if is_block_put_req(request)]\r\n self.assertEqual(block_count, len(put_blocks),\r\n
\ 'The expected number of block put requests is {} but
the actual '\r\n 'number is {}.'.format(block_count,
len(put_blocks)))\r\n\r\n @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n
\ def test_storage_blob_socket_timeout(self, resource_group, storage_account):\r\n
\ local_dir = self.create_temp_dir()\r\n local_file = self.create_temp_file(1)\r\n
\ blob_name = self.create_random_name(prefix='blob', length=24)\r\n account_info
= self.get_account_info(resource_group, storage_account)\r\n\r\n container
= self.create_container(account_info)\r\n\r\n from azure.common import
AzureException\r\n with self.assertRaises(AzureException):\r\n self.storage_cmd('storage
blob upload -c {} -f \"{}\" -n {} --type block --socket-timeout -11',\r\n account_info,
container, local_file, blob_name)\r\n\r\n self.storage_cmd('storage blob
exists -n {} -c {}', account_info, blob_name, container) \\\r\n .assert_with_checks(JMESPathCheck('exists',
False))\r\n\r\n self.storage_cmd('storage blob upload -c {} -f \"{}\"
-n {} --type block --socket-timeout 10',\r\n account_info,
container, local_file, blob_name)\r\n self.storage_cmd('storage blob
exists -n {} -c {}', account_info, blob_name, container) \\\r\n .assert_with_checks(JMESPathCheck('exists',
True))\r\n\r\n self.storage_cmd('storage blob show -n {} -c {}', account_info,
blob_name, container) \\\r\n .assert_with_checks(JMESPathCheck('name',
blob_name))\r\n\r\n downloaded = os.path.join(local_dir, 'test.file')\r\n\r\n
\ self.storage_cmd('storage blob download -n {} -c {} --file \"{}\" --socket-timeout
10',\r\n account_info, blob_name, container, downloaded)\r\n
\ self.assertTrue(os.path.isfile(downloaded), 'The file is not downloaded.')\r\n\r\n
\ @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n def test_storage_blob_lease_operations(self,
resource_group, storage_account):\r\n account_info = self.get_account_info(resource_group,
storage_account)\r\n local_file = self.create_temp_file(128)\r\n c
= self.create_container(account_info)\r\n b = self.create_random_name('blob',
24)\r\n proposed_lease_id = 'abcdabcd-abcd-abcd-abcd-abcdabcdabcd'\r\n
\ new_lease_id = 'dcbadcba-dcba-dcba-dcba-dcbadcbadcba'\r\n date
= '2016-04-01t12:00z'\r\n\r\n self.storage_cmd('storage blob upload -c
{} -n {} -f \"{}\"', account_info, c, b, local_file)\r\n\r\n # test lease
operations\r\n self.storage_cmd('storage blob lease acquire --lease-duration
60 -b {} -c {} '\r\n '--if-modified-since {} --proposed-lease-id
{}', account_info, b, c, date,\r\n proposed_lease_id)\r\n
\ self.storage_cmd('storage blob show -n {} -c {}', account_info, b, c)
\\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
'fixed'),\r\n JMESPathCheck('properties.lease.state',
'leased'),\r\n JMESPathCheck('properties.lease.status',
'locked'))\r\n self.storage_cmd('storage blob lease change -b {} -c {}
--lease-id {} '\r\n '--proposed-lease-id {}', account_info,
b, c, proposed_lease_id,\r\n new_lease_id)\r\n self.storage_cmd('storage
blob lease renew -b {} -c {} --lease-id {}', account_info, b, c,\r\n new_lease_id)\r\n
\ self.storage_cmd('storage blob show -n {} -c {}', account_info, b, c)
\\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
'fixed'),\r\n JMESPathCheck('properties.lease.state',
'leased'),\r\n JMESPathCheck('properties.lease.status',
'locked'))\r\n self.storage_cmd('storage blob lease break -b {} -c {}
--lease-break-period 30',\r\n account_info, b, c)\r\n
\ self.storage_cmd('storage blob show -n {} -c {}', account_info, b, c)
\\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
None),\r\n JMESPathCheck('properties.lease.state',
'breaking'),\r\n JMESPathCheck('properties.lease.status',
'locked'))\r\n self.storage_cmd('storage blob lease release -b {} -c
{} --lease-id {}', account_info, b, c,\r\n new_lease_id)\r\n
\ self.storage_cmd('storage blob show -n {} -c {}', account_info, b, c)
\\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
None),\r\n JMESPathCheck('properties.lease.state',
'available'),\r\n JMESPathCheck('properties.lease.status',
'unlocked'))\r\n\r\n @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n
\ def test_storage_blob_snapshot_operations(self, resource_group, storage_account):\r\n
\ account_info = self.get_account_info(resource_group, storage_account)\r\n
\ local_file = self.create_temp_file(128)\r\n c = self.create_container(account_info)\r\n
\ b = self.create_random_name('blob', 24)\r\n\r\n self.storage_cmd('storage
blob upload -c {} -n {} -f \"{}\"', account_info, c, b, local_file)\r\n\r\n
\ snapshot_dt = self.storage_cmd('storage blob snapshot -c {} -n {}',
account_info, c, b) \\\r\n .get_output_in_json()['snapshot']\r\n
\ self.storage_cmd('storage blob exists -n {} -c {} --snapshot {}', account_info,
b, c,\r\n snapshot_dt) \\\r\n .assert_with_checks(JMESPathCheck('exists',
True))\r\n\r\n @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n
\ def test_storage_blob_metadata_operations(self, resource_group, storage_account):\r\n
\ account_info = self.get_account_info(resource_group, storage_account)\r\n
\ c = self.create_container(account_info)\r\n b = self.create_random_name('blob',
24)\r\n\r\n self.storage_cmd('storage blob upload -c {} -n {} -f \"{}\"',
account_info, c, b, __file__)\r\n self.storage_cmd('storage blob metadata
update -n {} -c {} --metadata a=b c=d',\r\n account_info,
b, c)\r\n self.storage_cmd('storage blob metadata show -n {} -c {}',
account_info, b, c) \\\r\n .assert_with_checks(JMESPathCheck('a',
'b'), JMESPathCheck('c', 'd'))\r\n self.storage_cmd('storage blob metadata
update -n {} -c {}', account_info, b, c)\r\n self.storage_cmd('storage
blob metadata show -n {} -c {}', account_info, b, c) \\\r\n .assert_with_checks(NoneCheck())\r\n\r\n
\ @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n def test_storage_blob_container_operations(self,
resource_group, storage_account):\r\n account_info = self.get_account_info(resource_group,
storage_account)\r\n c = self.create_container(account_info)\r\n proposed_lease_id
= 'abcdabcd-abcd-abcd-abcd-abcdabcdabcd'\r\n new_lease_id = 'dcbadcba-dcba-dcba-dcba-dcbadcbadcba'\r\n
\ date = '2016-04-01t12:00z'\r\n\r\n self.storage_cmd('storage
container exists -n {}', account_info, c) \\\r\n .assert_with_checks(JMESPathCheck('exists',
True))\r\n\r\n self.storage_cmd('storage container set-permission -n
{} --public-access blob',\r\n account_info, c)\r\n self.storage_cmd('storage
container show-permission -n {}', account_info, c) \\\r\n .assert_with_checks(JMESPathCheck('publicAccess',
'blob'))\r\n self.storage_cmd('storage container set-permission -n {}
--public-access off', account_info,\r\n c)\r\n self.storage_cmd('storage
container show-permission -n {}', account_info, c) \\\r\n .assert_with_checks(JMESPathCheck('publicAccess',
'off'))\r\n\r\n self.storage_cmd('storage container show -n {}', account_info,
c) \\\r\n .assert_with_checks(JMESPathCheck('name', c))\r\n\r\n self.assertIn(c,
self.storage_cmd('storage container list --query \"[].name\"',\r\n account_info).get_output_in_json())\r\n\r\n
\ self.storage_cmd('storage container metadata update -n {} --metadata
foo=bar moo=bak',\r\n account_info, c)\r\n self.storage_cmd('storage
container metadata show -n {}', account_info, c) \\\r\n .assert_with_checks(JMESPathCheck('foo',
'bar'), JMESPathCheck('moo', 'bak'))\r\n self.storage_cmd('storage container
metadata update -n {}', account_info, c)\r\n self.storage_cmd('storage
container metadata show -n {}', account_info, c) \\\r\n .assert_with_checks(NoneCheck())\r\n\r\n
\ # test lease operations\r\n self.storage_cmd('storage container
lease acquire --lease-duration 60 -c {} '\r\n '--if-modified-since
{} --proposed-lease-id {}', account_info, c, date,\r\n proposed_lease_id)\r\n
\ self.storage_cmd('storage container show --name {}', account_info, c)
\\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
'fixed'),\r\n JMESPathCheck('properties.lease.state',
'leased'),\r\n JMESPathCheck('properties.lease.status',
'locked'))\r\n self.storage_cmd('storage container lease change -c {}
--lease-id {} '\r\n '--proposed-lease-id {}', account_info,
c, proposed_lease_id, new_lease_id)\r\n self.storage_cmd('storage container
lease renew -c {} --lease-id {}',\r\n account_info,
c, new_lease_id)\r\n self.storage_cmd('storage container show -n {}',
account_info, c) \\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
'fixed'),\r\n JMESPathCheck('properties.lease.state',
'leased'),\r\n JMESPathCheck('properties.lease.status',
'locked'))\r\n self.storage_cmd('storage container lease break -c {}
--lease-break-period 30',\r\n account_info, c)\r\n self.storage_cmd('storage
container show --name {}', account_info, c) \\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
None),\r\n JMESPathCheck('properties.lease.state',
'breaking'),\r\n JMESPathCheck('properties.lease.status',
'locked'))\r\n self.storage_cmd('storage container lease release -c {}
--lease-id {}', account_info, c,\r\n new_lease_id)\r\n
\ self.storage_cmd('storage container show --name {}', account_info, c)
\\\r\n .assert_with_checks(JMESPathCheck('properties.lease.duration',
None),\r\n JMESPathCheck('properties.lease.state',
'available'),\r\n JMESPathCheck('properties.lease.status',
'unlocked'))\r\n\r\n from datetime import datetime, timedelta\r\n expiry
= (datetime.utcnow() + timedelta(hours=1)).strftime('%Y-%m-%dT%H:%MZ')\r\n self.assertIn('sig=',
self.storage_cmd('storage container generate-sas -n {} --permissions r --expiry
{}',\r\n account_info, c, expiry).output)\r\n\r\n
\ # verify delete operation\r\n self.storage_cmd('storage container
delete --name {} --fail-not-exist', account_info, c) \\\r\n .assert_with_checks(JMESPathCheck('deleted',
True))\r\n self.storage_cmd('storage container exists -n {}', account_info,
c) \\\r\n .assert_with_checks(JMESPathCheck('exists', False))\r\n\r\n
\ @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n def test_storage_blob_append(self,
resource_group, storage_account):\r\n account_info = self.get_account_info(resource_group,
storage_account)\r\n container = self.create_container(account_info)\r\n\r\n
\ # create an append blob\r\n local_file = self.create_temp_file(1)\r\n
\ blob_name = self.create_random_name(prefix='blob', length=24)\r\n\r\n
\ self.storage_cmd('storage blob upload -c {} -f \"{}\" -n {} --type append
--if-none-match *', account_info,\r\n container, local_file,
blob_name)\r\n self.assertEqual(len(self.storage_cmd('storage blob list
-c {}',\r\n account_info, container).get_output_in_json()),
1)\r\n\r\n # append if-none-match should throw exception\r\n with
self.assertRaises(Exception):\r\n self.storage_cmd('storage blob
upload -c {} -f \"{}\" -n {} --type append --if-none-match *', account_info,\r\n
\ container, local_file, blob_name)\r\n\r\n @AllowLargeResponse()\r\n
\ @ResourceGroupPreparer()\r\n @StorageAccountPreparer()\r\n @api_version_constraint(resource_type=ResourceType.DATA_STORAGE,
max_api='2018-11-09')\r\n def test_storage_blob_suppress_400(self, resource_group,
storage_account):\r\n # test for azure.cli.command_modules.storage.StorageCommandGroup.get_handler_suppress_some_400\r\n
\ # test 404\r\n with self.assertRaises(SystemExit) as ex:\r\n
\ self.cmd('storage blob show --account-name {} -c foo -n bar.txt
--auth-mode key'.format(storage_account))\r\n self.assertEqual(ex.exception.code,
3)\r\n\r\n # test 403\r\n from azure.common import AzureException\r\n
\ with self.assertRaisesRegexp(AzureException, \"Authentication failure\"):\r\n
\ self.cmd('storage blob show --account-name {} --account-key=\"YQ==\"
-c foo -n bar.txt '.format(storage_account))\r\n\r\n\r\nif __name__ == '__main__':\r\n
\ unittest.main()\r\n"
headers:
Connection:
- keep-alive
Content-Length:
- '21413'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-blob-content-type:
- text/x-python
x-ms-blob-type:
- BlockBlob
x-ms-date:
- Tue, 29 Sep 2020 05:53:48 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004
response:
body:
string: ''
headers:
content-length:
- '0'
content-md5:
- 090kLOcBQ5YC1LSW8lRzuA==
date:
- Tue, 29 Sep 2020 05:53:49 GMT
etag:
- '"0x8D8643C096EDEEA"'
last-modified:
- Tue, 29 Sep 2020 05:53:49 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:48 GMT
x-ms-meta-a:
- b
x-ms-meta-c:
- d
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004?comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:49 GMT
etag:
- '"0x8D8643C09A9D386"'
last-modified:
- Tue, 29 Sep 2020 05:53:49 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:49 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004?comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:49 GMT
etag:
- '"0x8D8643C09A9D386"'
last-modified:
- Tue, 29 Sep 2020 05:53:49 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-meta-a:
- b
x-ms-meta-c:
- d
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:49 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004?comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:49 GMT
etag:
- '"0x8D8643C0A13ABF9"'
last-modified:
- Tue, 29 Sep 2020 05:53:50 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:49 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003/blob000004?comp=metadata
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:50 GMT
etag:
- '"0x8D8643C0A13ABF9"'
last-modified:
- Tue, 29 Sep 2020 05:53:50 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
version: 1

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,307 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01&$expand=kerb
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:54:30 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:30 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000004?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:31 GMT
etag:
- '"0x8D8643C22B88E3D"'
last-modified:
- Tue, 29 Sep 2020 05:54:31 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:55:30 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/cont000004/blob000003
response:
body:
string: ''
headers:
date:
- Tue, 29 Sep 2020 05:55:30 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-error-code:
- BlobNotFound
x-ms-version:
- '2018-11-09'
status:
code: 404
message: The specified blob does not exist.
- request:
body: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
headers:
Connection:
- keep-alive
Content-Length:
- '1024'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-blob-type:
- BlockBlob
x-ms-date:
- Tue, 29 Sep 2020 05:55:30 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000004/blob000003
response:
body:
string: ''
headers:
content-length:
- '0'
content-md5:
- DzQ7CTESaiDxM9Z8KwGKOw==
date:
- Tue, 29 Sep 2020 05:55:30 GMT
etag:
- '"0x8D8643C464F46E6"'
last-modified:
- Tue, 29 Sep 2020 05:55:31 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:55:30 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/cont000004/blob000003
response:
body:
string: ''
headers:
accept-ranges:
- bytes
content-length:
- '1024'
content-md5:
- DzQ7CTESaiDxM9Z8KwGKOw==
content-type:
- application/octet-stream
date:
- Tue, 29 Sep 2020 05:55:30 GMT
etag:
- '"0x8D8643C464F46E6"'
last-modified:
- Tue, 29 Sep 2020 05:55:31 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- Tue, 29 Sep 2020 05:55:31 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:55:31 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.blob.core.windows.net/cont000004/blob000003
response:
body:
string: ''
headers:
accept-ranges:
- bytes
content-length:
- '1024'
content-md5:
- DzQ7CTESaiDxM9Z8KwGKOw==
content-type:
- application/octet-stream
date:
- Tue, 29 Sep 2020 05:55:31 GMT
etag:
- '"0x8D8643C464F46E6"'
last-modified:
- Tue, 29 Sep 2020 05:55:31 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- Tue, 29 Sep 2020 05:55:31 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:55:31 GMT
x-ms-range:
- bytes=0-33554431
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000004/blob000003
response:
body:
string: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
headers:
accept-ranges:
- bytes
content-length:
- '1024'
content-range:
- bytes 0-1023/1024
content-type:
- application/octet-stream
date:
- Tue, 29 Sep 2020 05:55:31 GMT
etag:
- '"0x8D8643C464F46E6"'
last-modified:
- Tue, 29 Sep 2020 05:55:31 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-blob-content-md5:
- DzQ7CTESaiDxM9Z8KwGKOw==
x-ms-blob-type:
- BlockBlob
x-ms-creation-time:
- Tue, 29 Sep 2020 05:55:31 GMT
x-ms-lease-state:
- available
x-ms-lease-status:
- unlocked
x-ms-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 206
message: Partial Content
version: 1

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,783 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01&$expand=kerb
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:35 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:35 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:35 GMT
etag:
- '"0x8D8643C020910CC"'
last-modified:
- Tue, 29 Sep 2020 05:53:36 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:36 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:36 GMT
etag:
- '"0x8D8643C020910CC"'
last-modified:
- Tue, 29 Sep 2020 05:53:36 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:36 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:36 GMT
etag:
- '"0x8D8643C020910CC"'
last-modified:
- Tue, 29 Sep 2020 05:53:36 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '184'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:37 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:36 GMT
etag:
- '"0x8D8643C0286A9B1"'
last-modified:
- Tue, 29 Sep 2020 05:53:37 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:37 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:37 GMT
etag:
- '"0x8D8643C0286A9B1"'
last-modified:
- Tue, 29 Sep 2020 05:53:37 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00Z</Start></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '296'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:37 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:37 GMT
etag:
- '"0x8D8643C02C9644F"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:37 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:38 GMT
etag:
- '"0x8D8643C02C9644F"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00Z</Expiry></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '413'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:37 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:38 GMT
etag:
- '"0x8D8643C030EDE8E"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:38 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:37 GMT
etag:
- '"0x8D8643C030EDE8E"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00Z</Start><Expiry>2016-05-01T00:00Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '591'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:38 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:38 GMT
etag:
- '"0x8D8643C0350FCB1"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:38 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:38 GMT
etag:
- '"0x8D8643C0350FCB1"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:39 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:39 GMT
etag:
- '"0x8D8643C0350FCB1"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:39 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:39 GMT
etag:
- '"0x8D8643C0350FCB1"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:39 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:39 GMT
etag:
- '"0x8D8643C0350FCB1"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:40 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:40 GMT
etag:
- '"0x8D8643C0350FCB1"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:40 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:41 GMT
etag:
- '"0x8D8643C0350FCB1"'
last-modified:
- Tue, 29 Sep 2020 05:53:38 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>r</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start><Expiry>2016-05-01T00:00:00Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '597'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:40 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:41 GMT
etag:
- '"0x8D8643C04CEBAE2"'
last-modified:
- Tue, 29 Sep 2020 05:53:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:41 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>r</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:41 GMT
etag:
- '"0x8D8643C04CEBAE2"'
last-modified:
- Tue, 29 Sep 2020 05:53:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:41 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>r</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:41 GMT
etag:
- '"0x8D8643C04CEBAE2"'
last-modified:
- Tue, 29 Sep 2020 05:53:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start><Expiry>2016-05-01T00:00:00Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '491'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:41 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:42 GMT
etag:
- '"0x8D8643C05440072"'
last-modified:
- Tue, 29 Sep 2020 05:53:42 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:41 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/cont000003?restype=container&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:53:42 GMT
etag:
- '"0x8D8643C05440072"'
last-modified:
- Tue, 29 Sep 2020 05:53:42 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
version: 1

Просмотреть файл

@ -0,0 +1,997 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account show-connection-string
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01&$expand=kerb
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:54:32 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11998'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:32 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:32 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:32 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:33 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:33 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:34 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:34 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:34 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:34 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:35 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors><CorsRule><AllowedOrigins>http://example.com</AllowedOrigins><AllowedMethods>POST</AllowedMethods><MaxAgeInSeconds>60</MaxAgeInSeconds><ExposedHeaders
/><AllowedHeaders /></CorsRule></Cors></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '287'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:35 GMT
x-ms-version:
- '2018-03-28'
method: PUT
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:36 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-03-28'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:36 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:36 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors><CorsRule><AllowedOrigins>http://example.com</AllowedOrigins><AllowedMethods>POST</AllowedMethods><MaxAgeInSeconds>60</MaxAgeInSeconds><ExposedHeaders
/><AllowedHeaders /></CorsRule></Cors></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '287'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:36 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:36 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:36 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:36 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors><CorsRule><AllowedOrigins>http://example.com</AllowedOrigins><AllowedMethods>POST</AllowedMethods><MaxAgeInSeconds>60</MaxAgeInSeconds><ExposedHeaders
/><AllowedHeaders /></CorsRule></Cors></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '287'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:36 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:37 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:37 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors><CorsRule><AllowedMethods>POST</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>60</MaxAgeInSeconds></CorsRule></Cors><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:37 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors><CorsRule><AllowedOrigins>http://example.com</AllowedOrigins><AllowedMethods>POST</AllowedMethods><MaxAgeInSeconds>60</MaxAgeInSeconds><ExposedHeaders
/><AllowedHeaders /></CorsRule><CorsRule><AllowedOrigins>http://example.com</AllowedOrigins><AllowedMethods>GET</AllowedMethods><MaxAgeInSeconds>0</MaxAgeInSeconds><ExposedHeaders
/><AllowedHeaders /></CorsRule></Cors></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '467'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:37 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:37 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:38 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors><CorsRule><AllowedMethods>POST</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>60</MaxAgeInSeconds></CorsRule></Cors></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:37 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors><CorsRule><AllowedOrigins>http://example.com</AllowedOrigins><AllowedMethods>POST</AllowedMethods><MaxAgeInSeconds>60</MaxAgeInSeconds><ExposedHeaders
/><AllowedHeaders /></CorsRule><CorsRule><AllowedOrigins>http://example.com</AllowedOrigins><AllowedMethods>GET</AllowedMethods><MaxAgeInSeconds>0</MaxAgeInSeconds><ExposedHeaders
/><AllowedHeaders /></CorsRule></Cors></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '467'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:38 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:38 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:39 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors><CorsRule><AllowedMethods>POST</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>60</MaxAgeInSeconds></CorsRule><CorsRule><AllowedMethods>GET</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>0</MaxAgeInSeconds></CorsRule></Cors></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:39 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:39 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:39 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:39 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors><CorsRule><AllowedMethods>POST</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>60</MaxAgeInSeconds></CorsRule><CorsRule><AllowedMethods>GET</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>0</MaxAgeInSeconds></CorsRule></Cors><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:40 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:39 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors><CorsRule><AllowedMethods>POST</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>60</MaxAgeInSeconds></CorsRule></Cors></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:39 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors /></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '100'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:40 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:40 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors /></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '100'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:40 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:41 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:41 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:42 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:41 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:41 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:41 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:41 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:42 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors><CorsRule><AllowedMethods>POST</AllowedMethods><AllowedOrigins>http://example.com</AllowedOrigins><AllowedHeaders
/><ExposedHeaders /><MaxAgeInSeconds>60</MaxAgeInSeconds></CorsRule></Cors></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:42 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<StorageServiceProperties><Cors /></StorageServiceProperties>'
headers:
Connection:
- keep-alive
Content-Length:
- '100'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:42 GMT
x-ms-version:
- '2018-03-28'
method: PUT
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:43 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-03-28'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:43 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:44 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
DataServiceVersion:
- 3.0;NetFx
MaxDataServiceVersion:
- '3.0'
User-Agent:
- Azure-CosmosDB/0.37.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:43 GMT
x-ms-version:
- '2017-04-17'
method: GET
uri: https://clitest000002.table.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:44 GMT
server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2017-04-17'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:44 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/><DeleteRetentionPolicy><Enabled>false</Enabled></DeleteRetentionPolicy></StorageServiceProperties>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:44 GMT
server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:44 GMT
x-ms-version:
- '2018-03-28'
method: GET
uri: https://clitest000002.queue.core.windows.net/?restype=service&comp=properties
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><StorageServiceProperties><Logging><Version>1.0</Version><Read>false</Read><Write>false</Write><Delete>false</Delete><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></Logging><HourMetrics><Version>1.0</Version><Enabled>true</Enabled><IncludeAPIs>true</IncludeAPIs><RetentionPolicy><Enabled>true</Enabled><Days>7</Days></RetentionPolicy></HourMetrics><MinuteMetrics><Version>1.0</Version><Enabled>false</Enabled><RetentionPolicy><Enabled>false</Enabled></RetentionPolicy></MinuteMetrics><Cors
/></StorageServiceProperties>"
headers:
cache-control:
- no-cache
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:44 GMT
server:
- Windows-Azure-Queue/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-03-28'
status:
code: 200
message: OK
version: 1

Просмотреть файл

@ -0,0 +1,149 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
ParameterSetName:
- -n -g --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-09-29T05:52:44Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- '436'
content-type:
- application/json; charset=utf-8
date:
- Tue, 29 Sep 2020 05:52:47 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: '{"sku": {"name": "Standard_RAGRS"}, "kind": "StorageV2", "location": "southcentralus",
"properties": {"encryption": {"services": {"blob": {}}, "keySource": "Microsoft.Storage"},
"supportsHttpsTrafficOnly": true}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
Content-Length:
- '212'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2019-06-01
response:
body:
string: ''
headers:
cache-control:
- no-cache
content-length:
- '0'
content-type:
- text/plain; charset=utf-8
date:
- Tue, 29 Sep 2020 05:52:49 GMT
expires:
- '-1'
location:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/b5a0b7ce-a9da-4c4c-8c14-f48991eb0d89?monitor=true&api-version=2019-06-01
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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: 202
message: Accepted
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
ParameterSetName:
- -n -g --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/b5a0b7ce-a9da-4c4c-8c14-f48991eb0d89?monitor=true&api-version=2019-06-01
response:
body:
string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:52:49.6302463Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:52:49.6302463Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-09-29T05:52:49.5521563Z","primaryEndpoints":{"dfs":"https://cli000002.dfs.core.windows.net/","web":"https://cli000002.z21.web.core.windows.net/","blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available","secondaryLocation":"northcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://cli000002-secondary.dfs.core.windows.net/","web":"https://cli000002-secondary.z21.web.core.windows.net/","blob":"https://cli000002-secondary.blob.core.windows.net/","queue":"https://cli000002-secondary.queue.core.windows.net/","table":"https://cli000002-secondary.table.core.windows.net/"}}}'
headers:
cache-control:
- no-cache
content-length:
- '1880'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:07 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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
version: 1

Просмотреть файл

@ -0,0 +1,149 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
ParameterSetName:
- -n -g --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2019-10-01
response:
body:
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-09-29T05:53:31Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- '436'
content-type:
- application/json; charset=utf-8
date:
- Tue, 29 Sep 2020 05:53:32 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: '{"sku": {"name": "Standard_RAGRS"}, "kind": "StorageV2", "location": "southcentralus",
"properties": {"encryption": {"services": {"blob": {}}, "keySource": "Microsoft.Storage"},
"supportsHttpsTrafficOnly": true}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
Content-Length:
- '212'
Content-Type:
- application/json; charset=utf-8
ParameterSetName:
- -n -g --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002?api-version=2019-06-01
response:
body:
string: ''
headers:
cache-control:
- no-cache
content-length:
- '0'
content-type:
- text/plain; charset=utf-8
date:
- Tue, 29 Sep 2020 05:53:35 GMT
expires:
- '-1'
location:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/743f52e2-406a-4ff8-bb2b-8f9820e6dafc?monitor=true&api-version=2019-06-01
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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: 202
message: Accepted
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account create
Connection:
- keep-alive
ParameterSetName:
- -n -g --https-only
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/southcentralus/asyncoperations/743f52e2-406a-4ff8-bb2b-8f9820e6dafc?monitor=true&api-version=2019-06-01
response:
body:
string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/cli000002","name":"cli000002","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:53:34.9122093Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-09-29T05:53:34.9122093Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-09-29T05:53:34.8341455Z","primaryEndpoints":{"dfs":"https://cli000002.dfs.core.windows.net/","web":"https://cli000002.z21.web.core.windows.net/","blob":"https://cli000002.blob.core.windows.net/","queue":"https://cli000002.queue.core.windows.net/","table":"https://cli000002.table.core.windows.net/","file":"https://cli000002.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available","secondaryLocation":"northcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://cli000002-secondary.dfs.core.windows.net/","web":"https://cli000002-secondary.z21.web.core.windows.net/","blob":"https://cli000002-secondary.blob.core.windows.net/","queue":"https://cli000002-secondary.queue.core.windows.net/","table":"https://cli000002-secondary.table.core.windows.net/"}}}'
headers:
cache-control:
- no-cache
content-length:
- '1880'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:52 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,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
version: 1

Просмотреть файл

@ -0,0 +1,532 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01&$expand=kerb
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:54:51 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:52 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:52 GMT
etag:
- '"0x8D8643C2FAD802C"'
last-modified:
- Tue, 29 Sep 2020 05:54:53 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:52 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000004?restype=share
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:52 GMT
etag:
- '"0x8D8643C2FE70538"'
last-modified:
- Tue, 29 Sep 2020 05:54:53 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:53 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003/dir1?restype=directory
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:54 GMT
etag:
- '"0x8D8643C3018D483"'
last-modified:
- Tue, 29 Sep 2020 05:54:54 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:53 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000004/dir2?restype=directory
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:53 GMT
etag:
- '"0x8D8643C304DA9C5"'
last-modified:
- Tue, 29 Sep 2020 05:54:54 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-content-length:
- '524288'
x-ms-date:
- Tue, 29 Sep 2020 05:54:54 GMT
x-ms-type:
- file
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003/dir1/source_file.txt
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:54 GMT
etag:
- '"0x8D8643C30893700"'
last-modified:
- Tue, 29 Sep 2020 05:54:54 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: '!!! The request body has been omitted from the recording because its size
524288 is larger than 128KB. !!!'
headers:
Connection:
- keep-alive
Content-Length:
- '524288'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:54 GMT
x-ms-range:
- bytes=0-524287
x-ms-version:
- '2018-11-09'
x-ms-write:
- update
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003/dir1/source_file.txt?comp=range
response:
body:
string: ''
headers:
content-length:
- '0'
content-md5:
- WQcVkAmdId1DmJZZIzi/lQ==
date:
- Tue, 29 Sep 2020 05:54:54 GMT
etag:
- '"0x8D8643C30BEA88E"'
last-modified:
- Tue, 29 Sep 2020 05:54:55 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-server-encrypted:
- 'true'
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:54 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.file.core.windows.net/share000003/dir1/source_file.txt
response:
body:
string: ''
headers:
content-length:
- '524288'
content-type:
- application/octet-stream
date:
- Tue, 29 Sep 2020 05:54:54 GMT
etag:
- '"0x8D8643C30BEA88E"'
last-modified:
- Tue, 29 Sep 2020 05:54:55 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-server-encrypted:
- 'true'
x-ms-type:
- File
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-copy-source:
- https://clitester6s3kldaazdhfivs.file.core.windows.net/shareg6o5q53igesxcsfs7c5/dir1/source_file.txt
x-ms-date:
- Tue, 29 Sep 2020 05:54:55 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000004/dir2/destination_file.txt
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:56 GMT
etag:
- '"0x8D8643C31B7B482"'
last-modified:
- Tue, 29 Sep 2020 05:54:56 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-copy-id:
- 1663004d-e771-46bf-b0ad-862db1de0375
x-ms-copy-status:
- success
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:56 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.file.core.windows.net/share000004/dir2/destination_file.txt
response:
body:
string: ''
headers:
content-length:
- '524288'
content-type:
- application/octet-stream
date:
- Tue, 29 Sep 2020 05:54:56 GMT
etag:
- '"0x8D8643C31B7B482"'
last-modified:
- Tue, 29 Sep 2020 05:54:56 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-copy-completion-time:
- Tue, 29 Sep 2020 05:54:56 GMT
x-ms-copy-id:
- 1663004d-e771-46bf-b0ad-862db1de0375
x-ms-copy-progress:
- 524288/524288
x-ms-copy-source:
- https://clitester6s3kldaazdhfivs.file.core.windows.net/shareg6o5q53igesxcsfs7c5/dir1/source_file.txt
x-ms-copy-status:
- success
x-ms-server-encrypted:
- 'true'
x-ms-type:
- File
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-copy-source:
- https://clitester6s3kldaazdhfivs.file.core.windows.net/shareg6o5q53igesxcsfs7c5/dir1/source_file.txt
x-ms-date:
- Tue, 29 Sep 2020 05:54:56 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000004/dir2/destination_file.txt
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:57 GMT
etag:
- '"0x8D8643C322E5985"'
last-modified:
- Tue, 29 Sep 2020 05:54:57 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-copy-id:
- 947a5b4e-3b23-47c2-a6ed-8ab9e0705158
x-ms-copy-status:
- success
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:57 GMT
x-ms-version:
- '2018-11-09'
method: HEAD
uri: https://clitest000002.file.core.windows.net/share000004/dir2/destination_file.txt
response:
body:
string: ''
headers:
content-length:
- '524288'
content-type:
- application/octet-stream
date:
- Tue, 29 Sep 2020 05:54:57 GMT
etag:
- '"0x8D8643C322E5985"'
last-modified:
- Tue, 29 Sep 2020 05:54:57 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-copy-completion-time:
- Tue, 29 Sep 2020 05:54:57 GMT
x-ms-copy-id:
- 947a5b4e-3b23-47c2-a6ed-8ab9e0705158
x-ms-copy-progress:
- 524288/524288
x-ms-copy-source:
- https://clitester6s3kldaazdhfivs.file.core.windows.net/shareg6o5q53igesxcsfs7c5/dir1/source_file.txt
x-ms-copy-status:
- success
x-ms-server-encrypted:
- 'true'
x-ms-type:
- File
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-copy-source:
- https://clitester6s3kldaazdhfivs.file.core.windows.net/shareg6o5q53igesxcsfs7c5/dir1%5Csource_file.txt
x-ms-date:
- Tue, 29 Sep 2020 05:54:57 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000004/dir2/destination_file.txt
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:57 GMT
etag:
- '"0x8D8643C32A4625E"'
last-modified:
- Tue, 29 Sep 2020 05:54:58 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-copy-id:
- abab8abe-dba5-4305-9033-b3abcf3337fc
x-ms-copy-status:
- success
x-ms-version:
- '2018-11-09'
status:
code: 202
message: Accepted
version: 1

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,783 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- storage account keys list
Connection:
- keep-alive
Content-Length:
- '0'
ParameterSetName:
- -n -g --query -o
User-Agent:
- python/3.8.5 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3
azure-mgmt-storage/11.1.0 Azure-SDK-For-Python AZURECLI/2.11.1
accept-language:
- en-US
method: POST
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2019-06-01
response:
body:
string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}'
headers:
cache-control:
- no-cache
content-length:
- '288'
content-type:
- application/json
date:
- Tue, 29 Sep 2020 05:53:59 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-resource-requests:
- '11999'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:59 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:53:59 GMT
etag:
- '"0x8D8643C10164C54"'
last-modified:
- Tue, 29 Sep 2020 05:54:00 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 201
message: Created
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:53:59 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C10164C54"'
last-modified:
- Tue, 29 Sep 2020 05:54:00 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:00 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers
/>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:01 GMT
etag:
- '"0x8D8643C10164C54"'
last-modified:
- Tue, 29 Sep 2020 05:54:00 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '184'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:00 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:01 GMT
etag:
- '"0x8D8643C1093F425"'
last-modified:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:00 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C1093F425"'
last-modified:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00Z</Start></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '296'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:01 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:00 GMT
etag:
- '"0x8D8643C10D68754"'
last-modified:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:01 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:01 GMT
etag:
- '"0x8D8643C10D68754"'
last-modified:
- Tue, 29 Sep 2020 05:54:01 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00Z</Expiry></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '413'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:01 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:01 GMT
etag:
- '"0x8D8643C111D8816"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:01 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:02 GMT
etag:
- '"0x8D8643C111D8816"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00Z</Start><Expiry>2016-05-01T00:00Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '591'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:02 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:02 GMT
etag:
- '"0x8D8643C11A5E35A"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:02 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:03 GMT
etag:
- '"0x8D8643C11A5E35A"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:03 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:03 GMT
etag:
- '"0x8D8643C11A5E35A"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:03 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:03 GMT
etag:
- '"0x8D8643C11A5E35A"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:03 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:03 GMT
etag:
- '"0x8D8643C11A5E35A"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:04 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C11A5E35A"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:04 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>l</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C11A5E35A"'
last-modified:
- Tue, 29 Sep 2020 05:54:02 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>r</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start><Expiry>2016-05-01T00:00:00Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '597'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:04 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C1331376F"'
last-modified:
- Tue, 29 Sep 2020 05:54:05 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:05 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>r</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C1331376F"'
last-modified:
- Tue, 29 Sep 2020 05:54:05 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:05 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test1</Id><AccessPolicy><Permission>r</Permission></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C1331376F"'
last-modified:
- Tue, 29 Sep 2020 05:54:05 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: '<?xml version=''1.0'' encoding=''utf-8''?>
<SignedIdentifiers><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00Z</Start><Expiry>2016-05-01T00:00:00Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>'
headers:
Connection:
- keep-alive
Content-Length:
- '491'
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:05 GMT
x-ms-version:
- '2018-11-09'
method: PUT
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: ''
headers:
content-length:
- '0'
date:
- Tue, 29 Sep 2020 05:54:05 GMT
etag:
- '"0x8D8643C13B1C93C"'
last-modified:
- Tue, 29 Sep 2020 05:54:06 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
- request:
body: null
headers:
Connection:
- keep-alive
User-Agent:
- Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.5; Windows 10) AZURECLI/2.11.1
x-ms-date:
- Tue, 29 Sep 2020 05:54:06 GMT
x-ms-version:
- '2018-11-09'
method: GET
uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=acl
response:
body:
string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><SignedIdentifiers><SignedIdentifier><Id>test2</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test3</Id><AccessPolicy><Expiry>2018-01-01T00:00:00.0000000Z</Expiry></AccessPolicy></SignedIdentifier><SignedIdentifier><Id>test4</Id><AccessPolicy><Start>2016-01-01T00:00:00.0000000Z</Start><Expiry>2016-05-01T00:00:00.0000000Z</Expiry><Permission>rwdl</Permission></AccessPolicy></SignedIdentifier></SignedIdentifiers>"
headers:
content-type:
- application/xml
date:
- Tue, 29 Sep 2020 05:54:06 GMT
etag:
- '"0x8D8643C13B1C93C"'
last-modified:
- Tue, 29 Sep 2020 05:54:06 GMT
server:
- Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0
transfer-encoding:
- chunked
x-ms-version:
- '2018-11-09'
status:
code: 200
message: OK
version: 1

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше